Integrated: 8357982: Fix several failing BMI tests with -XX:+UseAPX

Jatin Bhateja jbhateja at openjdk.org
Wed Jun 11 13:51:35 UTC 2025


On Wed, 28 May 2025 16:21:56 GMT, Jatin Bhateja <jbhateja at openjdk.org> wrote:

> A) Patch extends the following tests with hard-coded encoding checks for various BMI instructions to cover REX2 or extended EVEX encodings supported by APX. 
> 
> 
>      compiler/intrinsics/bmi/verifycode/AndnTestI.java
>      compiler/intrinsics/bmi/verifycode/AndnTestL.java
>      compiler/intrinsics/bmi/verifycode/BzhiTestI2L.java
>      compiler/intrinsics/bmi/verifycode/LZcntTestL.java
>      compiler/intrinsics/bmi/verifycode/TZcntTestL.java
> 
> 
> B) After integration of JDK-8349582, which added APX NDD support, AndN instruction selection patterns that expect (Xor SRC, -1) as one of its operands were not getting selected because of a lower-cost generic immediate pattern match; patch fixes this issue through strict predicate checks.
> 
> Above tests are now passing, validations were carried out using Intel Software Development emulator.
> 
> Kindly review and share your feedback.
> 
> Best Regards,
> Jatin

This pull request has now been integrated.

Changeset: c98dffa1
Author:    Jatin Bhateja <jbhateja at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/c98dffa186d48c41e76fd3a60e0129a8da60310f
Stats:     122 lines in 9 files changed: 108 ins; 0 del; 14 mod

8357982: Fix several failing BMI tests with -XX:+UseAPX

Reviewed-by: epeter, sviswanathan

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

PR: https://git.openjdk.org/jdk/pull/25501


More information about the hotspot-compiler-dev mailing list