RFR: 8344304: [s390x] ubsan: negation of -2147483648 cannot be represented in type 'int'
Kim Barrett
kbarrett at openjdk.org
Fri Nov 29 13:52:42 UTC 2024
On Fri, 29 Nov 2024 11:08:45 GMT, Amit Kumar <amitkumar at openjdk.org> wrote:
> fixes the issue reported by ubsan.
src/hotspot/cpu/s390/c1_LIRAssembler_s390.cpp line 1542:
> 1540: __ z_slfi(lreg, c);
> 1541: }
> 1542: break;
Would it be simpler to use `java_negate(c)` (from globalDefinitions.hpp)?
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/22456#discussion_r1863554225
More information about the hotspot-compiler-dev
mailing list