RFR: 8313372: [JVMCI] Export vmIntrinsics::is_intrinsic_available results to JVMCI compilers.

Yudi Zheng yzheng at openjdk.org
Thu Aug 3 06:57:52 UTC 2023


This PR exports `vmIntrinsic::is_intrinsic_available`, `Compiler::is_intrinsic_supported`, and `C2Compiler::is_intrinsic_supported` results to JVMCI compiler. This allows JVMCI compiler to comply with `-XX:DisableIntrinsic`, `-XX:ControlIntrinsic`, `-XX:-UseXXXIntrinsic`, and is essential for running test that depends on these flags, e.g., `java/lang/Float/Binary16ConversionNaN` that returns different result in the interpreter with `-XX:DisableIntrinsic=_float16ToFloat,_floatToFloat16`.
This PR also attempts to fix some of the `is_intrinsic_available` results. Please see the inlined comments.

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

Commit messages:
 - Allow jvmci compiler to query if an intrinsic is disabled by the HotSpot runtime.

Changes: https://git.openjdk.org/jdk/pull/15133/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=15133&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8313372
  Stats: 109 lines in 12 files changed: 93 ins; 4 del; 12 mod
  Patch: https://git.openjdk.org/jdk/pull/15133.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/15133/head:pull/15133

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


More information about the graal-dev mailing list