RFR: 8353266: C2: Wrong execution with Integer.bitCount(int) intrinsic on AArch64 [v2]

Marc Chevalier mchevalier at openjdk.org
Mon Jun 2 10:37:12 UTC 2025


On Sat, 31 May 2025 03:11:28 GMT, SendaoYan <syan at openjdk.org> wrote:

>> Marc Chevalier has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Apply suggestions
>
> test/hotspot/jtreg/compiler/intrinsics/BitCountIAarch64PreservesArgument.java line 58:
> 
>> 56:             if (result != 0xfedc_ba98_7654_3210L) {
>> 57:                 // Wrongly outputs the cut input 0x7654_3210 == 1985229328
>> 58:                 throw new RuntimeException("Wrong result. lFld=" + lFld + "; result=" + result);
> 
> How about:
> 
> 
> throw new RuntimeException("Wrong result. Expected result = " + lFld + "; Actual result = " + result);

That looks better indeed. Applied.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/25551#discussion_r2120724260


More information about the hotspot-compiler-dev mailing list