RFR: 8370579: PPC: fix inswri immediate argument order

Manuel Hässig mhaessig at openjdk.org
Mon Oct 27 12:11:09 UTC 2025


On Fri, 24 Oct 2025 15:19:06 GMT, Manuel Hässig <mhaessig at openjdk.org> wrote:

> This cleanup PR swaps and renames the immediate arguments of the two `insrwi` instruction macros in `ppc.ad` such that they correspond to the order and names in the manual. This involved swapping the arguments in all six usages. I hope this saves the next person trying to reason about this some confused hours.
> 
> Testing:
>  - [x] Github Actions
>  - [x] Running some relevant tests (`compiler/c2/TestCharShortByteSwap.java`, `jdk/java/lang/Short/ByteSwap.java`, `jdk/java/lang/Integer/BitTwiddle.java`, `compiler/codegen/Test6431242.java`) in qemu

Perhaps @MBaesken or @TheRealMDoerr could give this a tier1 spin on their ppc CI?

-------------

PR Comment: https://git.openjdk.org/jdk/pull/27978#issuecomment-3450956197


More information about the hotspot-compiler-dev mailing list