This is a further step after https://bugs.openjdk.org/browse/JDK-8345110.
`revb_h_h_u` and `revb_h_w_u` assembler routines are mainly used to change byte-ordering for one halfword or two halfwords.
The names don't look obvious and the callsites emit more instructions when Zbb is not available (6 and 14 instructions respectively).
Seems the code will be more readable if we do the ordering while loading the bytes for these callsites, which results in less instructions.
Similar approach is taken for other callsites in riscv and other ports like arm.
`revb_h_h_u` and `revb_h_w_u` assembler routines are mainly used to change byte-ordering for one halfword or two halfwords.
The names don't look obvious and the callsites emit more instructions when Zbb is not available (6 and 14 instructions respectively).
Seems the code will be more readable if we do the ordering while loading the bytes for these callsites, which results in less instructions.
Similar approach is taken for other callsites in riscv and other ports like arm.
- links to
-
Commit(master) openjdk/jdk/dfcbfb5a
-
Review(master) openjdk/jdk/22452