RFR: 8350177: C2 SuperWord: Integer.numberOfLeadingZeros, numberOfTrailingZeros, reverse and bitCount have input types wrongly turncated for byte and short [v6]

Jasmine Karthikeyan jkarthikeyan at openjdk.org
Thu Jun 26 03:55:30 UTC 2025


On Wed, 25 Jun 2025 06:44:49 GMT, Emanuel Peter <epeter at openjdk.org> wrote:

>> Jasmine Karthikeyan has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Add more nodes to the non-truncating list
>
> src/hotspot/share/opto/superword.cpp line 2552:
> 
>> 2550:     switch (opc) {
>> 2551:     case Op_ExtractS:
>> 2552:     case Op_ExtractC:
> 
> Are there any tests for these somewhere?

I ended up encountering `ExtractS` when running `Short128VectorTests.java`, but I thought I should add `ExtractC` to the list as well. Unfortunately I don't think we don't have tests for that one yet because `char` doesn't vectorize yet.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/25440#discussion_r2168044808


More information about the hotspot-compiler-dev mailing list