RFR: 8361353: [PPC64] C2: Add nodes UMulHiL, CmpUL3, UMinV, UMaxV, NegVI [v2]
Martin Doerr
mdoerr at openjdk.org
Fri Jul 4 10:11:40 UTC 2025
On Fri, 4 Jul 2025 08:14:11 GMT, David Briemann <dbriemann at openjdk.org> wrote:
>> src/hotspot/cpu/ppc/ppc.ad line 2196:
>>
>>> 2194: case Op_AbsVF:
>>> 2195: case Op_AbsVD:
>>> 2196: case Op_NegVI:
>>
>> vnegw requires Power9 (`PowerArchitecturePPC64 >= 9`).
>
> Thanks for catching that.
I think we'd need to check that here, too. Otherwise we'd get "bad AD file" errors.
However, there's another problem: vnegw computes the one’s-complement for each element, but we'd need two’s-complement.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/26115#discussion_r2184936783
More information about the hotspot-compiler-dev
mailing list