JDK-8365206 : RISC-V: compiler/c2/irTests/TestFloat16ScalarOperations.java is failing on riscv64
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 26
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • CPU: riscv
  • Submitted: 2025-08-11
  • Updated: 2025-08-30
  • Resolved: 2025-08-26
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 25 JDK 26
25.0.2Fixed 26 b13Fixed
Related Reports
Relates :  
Relates :  
Description
Running the test with release build on BPI-F3:

$ make test TEST="test/hotspot/jtreg/compiler/c2/irTests/TestFloat16ScalarOperations.java" JTREG="TIMEOUT_FACTOR=8"

Error Output
------------
WARNING: Using incubator modules: jdk.incubator.vector
ERROR: Equality matching failed: value mismatch: -2048 vs -2560
  aParent: <none>
  bParent: <none>
  field:   <root>
  a:       -2048
  b:       -2560
Exception in thread "main" compiler.lib.ir_framework.shared.TestRunException:

Test Failures (1)
-----------------
Checked Test: @Check checkSNaNFP16ConstantPatterns - @Test: testSNaNFP16ConstantPatterns:
compiler.lib.ir_framework.shared.TestRunException: There was an error while invoking @Check method public void TestFloat16ScalarOperations.checkSNaNFP16ConstantPatterns(short)
        at compiler.lib.ir_framework.test.CheckedTest.verify(CheckedTest.java:89)
        at compiler.lib.ir_framework.test.BaseTest.invokeTest(BaseTest.java:71)
        at compiler.lib.ir_framework.test.AbstractTest.run(AbstractTest.java:100)
        at compiler.lib.ir_framework.test.TestVM.runTests(TestVM.java:865)
        at compiler.lib.ir_framework.test.TestVM.start(TestVM.java:255)
        at compiler.lib.ir_framework.test.TestVM.main(TestVM.java:168)
Caused by: java.lang.reflect.InvocationTargetException
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:119)
        at java.base/java.lang.reflect.Method.invoke(Method.java:565)
        at compiler.lib.ir_framework.test.CheckedTest.verify(CheckedTest.java:84)
        ... 5 more
Caused by: compiler.lib.verify.VerifyException: Value verification failed:
Value mismatch: -2048 vs -2560
        at compiler.lib.verify.Verify.checkEQimpl(Verify.java:191)
        at compiler.lib.verify.Verify.checkEQdispatch(Verify.java:134)
        at compiler.lib.verify.Verify.checkEQ(Verify.java:98)
        at TestFloat16ScalarOperations.checkSNaNFP16ConstantPatterns(TestFloat16ScalarOperations.java:382)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
        ... 7 more



        at compiler.lib.ir_framework.test.TestVM.runTests(TestVM.java:901)
        at compiler.lib.ir_framework.test.TestVM.start(TestVM.java:255)
        at compiler.lib.ir_framework.test.TestVM.main(TestVM.java:168)
Comments
[jdk25u-fix-request] Approval Request from Hamlin Li no workaround, and clean patch
27-08-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk25u/pull/136 Date: 2025-08-27 13:09:11 +0000
27-08-2025

A pull request was submitted for review. Branch: jdk25 URL: https://git.openjdk.org/jdk/pull/26958 Date: 2025-08-27 12:24:48 +0000
27-08-2025

Changeset: 28602f3d Branch: master Author: Hamlin Li <mli@openjdk.org> Date: 2025-08-26 09:54:41 +0000 URL: https://git.openjdk.org/jdk/commit/28602f3d3ec15b5241a33a46ce43349e6300395d
26-08-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/26838 Date: 2025-08-19 08:22:59 +0000
19-08-2025

FYI: TestFloat16ScalarOperations.java fails on riscv64 after JDK-8352635
13-08-2025