JDK-8365206 : compiler/c2/irTests/TestFloat16ScalarOperations.java is failing on riscv64
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 26
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • CPU: riscv
  • Submitted: 2025-08-11
  • Updated: 2025-08-15
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.
Other
tbdUnresolved
Related Reports
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
FYI: TestFloat16ScalarOperations.java fails on riscv64 after JDK-8352635
13-08-2025