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

RISC-V: compiler/cpuflags/TestAESIntrinsicsOnUnsupportedConfig.java is failing with Zvkn

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 25
    • 25
    • hotspot
    • b18
    • riscv
    • linux

      QEMU-system ISA: rv64imafdcvh_zicbom_zicboz_zicntr_zicsr_zifencei_zihintntl_zihintpause_zihpm_zacas_zawrs_zfa_zfh_zfhmin_zca_zcd_zba_zbb_zbc_zbkb_zbs_zvbb_zve32f_zve32x_zve64d_zve64f_zve64x_zvkb_zvkned_zvknhb_zvkt_sstc

      $ java -XX:+UnlockExperimentalVMOptions -XX:+PrintFlagsFinal -version | grep Zvkn
           bool UseZvkn = true {ARCH experimental} {default}
      openjdk version "25-internal" 2025-09-16
      OpenJDK Runtime Environment (fastdebug build 25-internal-adhoc.ubuntu.jdk)
      OpenJDK 64-Bit Server VM (fastdebug build 25-internal-adhoc.ubuntu.jdk, mixed mode, sharing)

      $ make test TEST="compiler/cpuflags/TestAESIntrinsicsOnUnsupportedConfig.java"

      ```
      java.lang.AssertionError: Expected message not found: 'warning: AES instructions are not available on this CPU'.
      Case testUseAES failed
              at jdk.test.lib.cli.CommandLineOptionTest.verifyOutput(CommandLineOptionTest.java:159)
              at compiler.cpuflags.TestAESIntrinsicsOnUnsupportedConfig.testUseAES(TestAESIntrinsicsOnUnsupportedConfig.java:96)
              at compiler.cpuflags.TestAESIntrinsicsOnUnsupportedConfig.runTestCases(TestAESIntrinsicsOnUnsupportedConfig.java:54)
              at compiler.cpuflags.TestAESIntrinsicsOnUnsupportedConfig.main(TestAESIntrinsicsOnUnsupportedConfig.java:106)
              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:1447)
      Caused by: java.lang.RuntimeException: 'warning: AES instructions are not available on this CPU' missing from stdout/stderr
              at jdk.test.lib.process.OutputAnalyzer.shouldMatch(OutputAnalyzer.java:372)
              at jdk.test.lib.cli.CommandLineOptionTest.verifyOutput(CommandLineOptionTest.java:154)
              ... 7 more

      JavaTest Message: Test threw exception: java.lang.AssertionError: Expected message not found: 'warning: AES instructions are not available on this CPU'.
      Case testUseAES failed
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.AssertionError: Expected message not found: 'warning: AES instructions are not available on this CPU'. Case testUseAES failed
      ```

            fyang Fei Yang
            fyang Fei Yang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: