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

RISC-V: compiler/cpuflags/TestAESIntrinsicsOnUnsupportedConfig.java fails after JDK-8334999

XMLWordPrintable

    • b23
    • riscv
    • linux

      Testing on linux-riscv64 platform without RISC-V Zvkn extension:

      Error message looks like:

      stderr: [OpenJDK 64-Bit Server VM warning: AES intrinsics require Zvkn extension (not available on this CPU).
      Exception in thread "main" java.lang.UnsatisfiedLinkError: 'void jdk.test.whitebox.WhiteBox.registerNatives()'
              at jdk.test.whitebox.WhiteBox.registerNatives(Native Method)
              at jdk.test.whitebox.WhiteBox.<clinit>(WhiteBox.java:67)
              at jdk.test.whitebox.code.Compiler.<clinit>(Compiler.java:35)
              at compiler.codegen.aes.TestAESMain.main(TestAESMain.java:158)
      ]
       exitValue = 1

      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:573)
              at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
              at java.base/java.lang.Thread.run(Thread.java:1576)
      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

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

              Created:
              Updated:
              Resolved: