The following test failed in the JDK21 CI:
testlibrary_tests/ir_framework/tests/TestCPUFeatureCheck.java
Here's a snippet from the log file:
#section:driver
----------messages:(7/278)----------
command: driver ir_framework.tests.TestCPUFeatureCheck
reason: User specified action: run driver ir_framework.tests.TestCPUFeatureCheck
started: Mon Feb 27 23:21:18 UTC 2023
Mode: agentvm
Agent id: 15
finished: Mon Feb 27 23:21:21 UTC 2023
elapsed time (seconds): 2.528
----------configuration:(16/1686)*----------
<snip>
----------System.out:(23/5913)*----------
Run Flag VM:
Command line: [c:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-21+12-936\\windows-x64-debug.jdk\\jdk-21\\fastdebug\\bin\\java.exe -cp C:\\sb\\prod\\1677539930\\testoutput\\test-support\\jtreg_open_test_hotspot_jtreg_hotspot_misc\\classes\\5\\testlibrary_tests\\ir_framework\\tests\\TestCPUFeatureCheck.d;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-21+12-936\\src.full\\open\\test\\hotspot\\jtreg\\testlibrary_tests\\ir_framework\\tests;C:\\sb\\prod\\1677539930\\testoutput\\test-support\\jtreg_open_test_hotspot_jtreg_hotspot_misc\\classes\\5\\test\\lib;C:\\sb\\prod\\1677539930\\testoutput\\test-support\\jtreg_open_test_hotspot_jtreg_hotspot_misc\\classes\\5;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\7.1.1\\1\\bundles\\jtreg-7.1.1+1.zip\\jtreg\\lib\\jtreg.jar;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\7.1.1\\1\\bundles\\jtreg-7.1.1+1.zip\\jtreg\\lib\\junit-platform-console-standalone-1.8.2.jar;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\7.1.1\\1\\bundles\\jtreg-7.1.1+1.zip\\jtreg\\lib\\testng-7.3.0.jar;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\7.1.1\\1\\bundles\\jtreg-7.1.1+1.zip\\jtreg\\lib\\jcommander-1.78.jar;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\7.1.1\\1\\bundles\\jtreg-7.1.1+1.zip\\jtreg\\lib\\guice-4.2.3.jar -XX:MaxRAMPercentage=4.16667 -Dtest.boot.jdk=c:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk\\19\\36\\bundles\\windows-x64\\jdk-19_windows-x64_bin.zip\\jdk-19 -Djava.io.tmpdir=c:\\sb\\prod\\1677539930\\testoutput\\test-support\\jtreg_open_test_hotspot_jtreg_hotspot_misc\\tmp -Dtest.jdk=c:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-21+12-936\\windows-x64-debug.jdk\\jdk-21\\fastdebug -Djava.library.path=c:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-21+12-936\\windows-x64-debug.test\\hotspot\\jtreg\\native -cp C:\\sb\\prod\\1677539930\\testoutput\\test-support\\jtreg_open_test_hotspot_jtreg_hotspot_misc\\classes\\5\\testlibrary_tests\\ir_framework\\tests\\TestCPUFeatureCheck.d;C:\\sb\\prod\\1677539930\\testoutput\\test-support\\jtreg_open_test_hotspot_jtreg_hotspot_misc\\classes\\5\\test\\lib;C:\\sb\\prod\\1677539930\\testoutput\\test-support\\jtreg_open_test_hotspot_jtreg_hotspot_misc\\classes\\5 -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -XX:+UseKNLSetting compiler.lib.ir_framework.flag.FlagVM ir_framework.tests.TestCPUFeatureCheck ]
[2023-02-27T23:21:18.709862300Z] Gathering output for process 29624
[2023-02-27T23:21:19.299886700Z] Waiting for completion for process 29624
[2023-02-27T23:21:19.299886700Z] Waiting for completion finished for process 29624
Output and diagnostic info for process 29624 was saved into 'pid-29624-output.log'
[2023-02-27T23:21:19.309879800Z] Waiting for completion for process 29624
[2023-02-27T23:21:19.309879800Z] Waiting for completion finished for process 29624
Run Test VM - [-XX:+UseKNLSetting]:
Command line: [c:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-21+12-936\\windows-x64-debug.jdk\\jdk-21\\fastdebug\\bin\\java.exe -cp C:\\sb\\prod\\1677539930\\testoutput\\test-support\\jtreg_open_test_hotspot_jtreg_hotspot_misc\\classes\\5\\testlibrary_tests\\ir_framework\\tests\\TestCPUFeatureCheck.d;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-21+12-936\\src.full\\open\\test\\hotspot\\jtreg\\testlibrary_tests\\ir_framework\\tests;C:\\sb\\prod\\1677539930\\testoutput\\test-support\\jtreg_open_test_hotspot_jtreg_hotspot_misc\\classes\\5\\test\\lib;C:\\sb\\prod\\1677539930\\testoutput\\test-support\\jtreg_open_test_hotspot_jtreg_hotspot_misc\\classes\\5;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\7.1.1\\1\\bundles\\jtreg-7.1.1+1.zip\\jtreg\\lib\\jtreg.jar;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\7.1.1\\1\\bundles\\jtreg-7.1.1+1.zip\\jtreg\\lib\\junit-platform-console-standalone-1.8.2.jar;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\7.1.1\\1\\bundles\\jtreg-7.1.1+1.zip\\jtreg\\lib\\testng-7.3.0.jar;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\7.1.1\\1\\bundles\\jtreg-7.1.1+1.zip\\jtreg\\lib\\jcommander-1.78.jar;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\7.1.1\\1\\bundles\\jtreg-7.1.1+1.zip\\jtreg\\lib\\guice-4.2.3.jar -Djava.library.path=c:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-21+12-936\\windows-x64-debug.test\\hotspot\\jtreg\\native -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -XX:MaxRAMPercentage=4.16667 -Dtest.boot.jdk=c:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk\\19\\36\\bundles\\windows-x64\\jdk-19_windows-x64_bin.zip\\jdk-19 -Djava.io.tmpdir=c:\\sb\\prod\\1677539930\\testoutput\\test-support\\jtreg_open_test_hotspot_jtreg_hotspot_misc\\tmp -Dir.framework.server.port=52024 -XX:+UseKNLSetting -XX:+PrintCompilation -XX:+UnlockDiagnosticVMOptions -XX:+LogCompilation -XX:CompilerDirectivesFile=test-vm-compile-commands-pid-29624.log -XX:CompilerDirectivesLimit=31 -XX:-OmitStackTraceInFastThrow -DShouldDoIRVerification=true -XX:-BackgroundCompilation -XX:CompileCommand=quiet compiler.lib.ir_framework.test.TestVM ir_framework.tests.TestCPUFeatureCheck ]
[2023-02-27T23:21:19.323858400Z] Gathering output for process 32120
[2023-02-27T23:21:21.092885400Z] Waiting for completion for process 32120
[2023-02-27T23:21:21.092885400Z] Waiting for completion finished for process 32120
Output and diagnostic info for process 32120 was saved into 'pid-32120-output.log'
Messages from Test VM
---------------------
[IREncodingPrinter] Disabling IR matching for rule 1 of 1 in test2: Not all feature constraints are met (applyIfCPUFeatureAnd): avx512bw, false, avx512f, true
[IREncodingPrinter] Disabling IR matching for rule 1 of 1 in test1: Feature constraint not met (applyIfCPUFeature): avx512bw, false
[2023-02-27T23:21:21.108891600Z] Waiting for completion for process 32120
[2023-02-27T23:21:21.108891600Z] Waiting for completion finished for process 32120
----------System.err:(24/1643)----------
compiler.lib.ir_framework.shared.TestFormatException:
Violations (3)
--------------
- Provided CPU feature is not in verified list: avx512bw in @IR rule 1 at public static void ir_framework.tests.TestCPUFeatureCheck.test3()
- Provided CPU feature is not in verified list: avx512bw in @IR rule 1 at public static void ir_framework.tests.TestCPUFeatureCheck.test2()
- Provided CPU feature is not in verified list: avx512bw in @IR rule 1 at public static void ir_framework.tests.TestCPUFeatureCheck.test1()
at compiler.lib.ir_framework.driver.TestVMProcess.throwTestVMException(TestVMProcess.java:233)
at compiler.lib.ir_framework.driver.TestVMProcess.checkTestVMExitCode(TestVMProcess.java:219)
at compiler.lib.ir_framework.driver.TestVMProcess.<init>(TestVMProcess.java:74)
at compiler.lib.ir_framework.TestFramework.runTestVM(TestFramework.java:747)
at compiler.lib.ir_framework.TestFramework.start(TestFramework.java:719)
at compiler.lib.ir_framework.TestFramework.start(TestFramework.java:339)
at compiler.lib.ir_framework.TestFramework.runWithFlags(TestFramework.java:245)
at ir_framework.tests.TestCPUFeatureCheck.main(TestCPUFeatureCheck.java:53)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:578)
at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
at java.base/java.lang.Thread.run(Thread.java:1623)
JavaTest Message: Test threw exception: compiler.lib.ir_framework.shared.TestFormatException
JavaTest Message: shutting down test
result: Failed. Execution failed: `main' threw exception: compiler.lib.ir_framework.shared.TestFormatException: Violations (3) -------------- - Provided CPU feature is not in verified list: avx512bw in @IR rule 1 at public static void ir_framework.tests.TestCPUFeatureCheck.test3() - Provided CPU feature is not in verified list: avx512bw in @IR rule 1 at public static void ir_framework.tests.TestCPUFeatureCheck.test2() - Provided CPU feature is not in verified list: avx512bw in @IR rule 1 at public static void ir_framework.tests.TestCPUFeatureCheck.test1()