-
Type:
Enhancement
-
Resolution: Fixed
-
Priority:
P4
-
Affects Version/s: 25
-
Component/s: hotspot
-
b20
-
riscv
-
linux
There is no need to do a type conversion when the shift amount of bitwise rotation is an integer converted from long (ConvL2I).
There reason is that these instruction performs a rotate right/left of source by the amount in the least-significant 5/6 bits
of the shift amount depending on the width of the operation (32-bit/64-bit). For 32-bit operations, the resulting 32-bit
value is sign-extended by copying bit 31 to all of the more-significant bits. This means that we could use iRegIorL2I type for
source for these 32-bit operations as well.
There reason is that these instruction performs a rotate right/left of source by the amount in the least-significant 5/6 bits
of the shift amount depending on the width of the operation (32-bit/64-bit). For 32-bit operations, the resulting 32-bit
value is sign-extended by copying bit 31 to all of the more-significant bits. This means that we could use iRegIorL2I type for
source for these 32-bit operations as well.
- links to
-
Commit(master)
openjdk/jdk/0995b940
-
Review(master)
openjdk/jdk/24618