Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8364391

AArch64: TestFloat16VectorOperations.java crashed with invalid immediate

XMLWordPrintable

      As the title said, "compiler.vectorization.TestFloat16VectorOperations" crashed on SVE machine which the vector size is larger than 128-bit.

      Here is the log details:

      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (jdk/src/hotspot/cpu/aarch64/assembler_aarch64.hpp:3756), pid=588617, tid=588639
      # guarantee(false) failed: invalid immediate
      #
      # JRE version: OpenJDK Runtime Environment (26.0) (fastdebug build 26-internal-git-unknown)
      # Java VM: OpenJDK 64-Bit Server VM (fastdebug 26-internal-git-unknown, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-aarch64)
      # Problematic frame:
      # V [libjvm.so+0x474618] Assembler::sve_dup(FloatRegister, Assembler::SIMD_RegVariant, int)+0x128
      #
      # Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport -p%p -s%s -c%c -d%d -P%P -u%u -g%g -- %E" (or dumping to jtreg/aarch64/jtwork/scratch/0/core.588617)
      #
      Unsupported internal testing APIs have been used.

      # An error report file with more information is saved as:
      # jtreg/aarch64/jtwork/scratch/0/hs_err_pid588617.log
      #
      # Compiler replay data is saved as:
      # jtreg/aarch64/jtwork/scratch/0/replay_pid588617.log
      #
      # If you would like to submit a bug report, please visit:
      # https://bugreport.java.com/bugreport/crash.jsp
      #
      WARNING: Using incubator modules: jdk.incubator.vector

      Command Line:
      build/images/jdk/bin/java -DReproduce=true -cp jtreg/aarch64/jtwork/classes/0/compiler/vectorization/TestFloat16VectorOperations.d:jdk/test/hotspot/jtreg/compiler/vectorization:jdk/test/lib:jdk/test/hotspot/jtreg:/usr/local/lib/jtreg/jtreg-8+2/lib/jtreg.jar -Djava.library.path=build/images/test/hotspot/jtreg/native -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -server -ea -esa -Xmx768m -Djdk.incubator.vector.test.loop-iterations=500 -Dir.framework.server.port=37581 --add-modules=jdk.incubator.vector -XX:+PrintCompilation -XX:+UnlockDiagnosticVMOptions -XX:+LogCompilation -XX:CompilerDirectivesFile=test-vm-compile-commands-pid-588585.log -XX:CompilerDirectivesLimit=171 -XX:-OmitStackTraceInFastThrow -DShouldDoIRVerification=true -XX:-BackgroundCompilation -XX:CompileCommand=quiet compiler.lib.ir_framework.test.TestVM compiler.vectorization.TestFloat16VectorOperations


      Error Output
      ------------
      WARNING: Using incubator modules: jdk.incubator.vector


        #############################################################
         - To only run the failed tests use -DTest, -DExclude,
           and/or -DScenarios.
         - To also get the standard output of the test VM run with
           -DReportStdout=true or for even more fine-grained logging
           use -DVerbose=true.
        #############################################################


      compiler.lib.ir_framework.driver.TestVMException: There were one or multiple errors. Please check stderr for more information.
              at compiler.lib.ir_framework.driver.TestVMProcess.throwTestVMException(TestVMProcess.java:251)
              at compiler.lib.ir_framework.driver.TestVMProcess.checkTestVMExitCode(TestVMProcess.java:232)
              at compiler.lib.ir_framework.driver.TestVMProcess.<init>(TestVMProcess.java:77)
              at compiler.lib.ir_framework.TestFramework.runTestVM(TestFramework.java:794)
              at compiler.lib.ir_framework.TestFramework.start(TestFramework.java:765)
              at compiler.lib.ir_framework.TestFramework.start(TestFramework.java:357)
              at compiler.lib.ir_framework.TestFramework.runWithFlags(TestFramework.java:254)
              at compiler.vectorization.TestFloat16VectorOperations.main(TestFloat16VectorOperations.java:57)
              at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
              at java.base/java.lang.reflect.Method.invoke(Method.java:565)
              at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
              at java.base/java.lang.Thread.run(Thread.java:1474)

      JavaTest Message: Test threw exception: compiler.lib.ir_framework.driver.TestVMException: There were one or multiple errors. Please check stderr for more information.
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: compiler.lib.ir_framework.driver.TestVMException: There were one or multiple errors. Please check stderr for more information.
      build/images/jdk/bin/java \
              -Dtest.vm.opts='-server -ea -esa -Xmx768m -Djdk.incubator.vector.test.loop-iterations=500' \
              -Dtest.tool.vm.opts='-J-server -J-ea -J-esa -J-Xmx768m -J-Djdk.incubator.vector.test.loop-iterations=500' \
              -Dtest.compiler.opts= \
              -Dtest.java.opts= \
              -Dtest.name=compiler/vectorization/TestFloat16VectorOperations.java \
              -Dtest.verbose=Verbose[p=BRIEF,f=FULL,e=FULL,t=false,m=false] \
              -Dtest.file=jdk/test/hotspot/jtreg/compiler/vectorization/TestFloat16VectorOperations.java \
              -Dtest.main.class=compiler.vectorization.TestFloat16VectorOperations

            Unassigned Unassigned
            xgong Xiaohong Gong
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: