JDK-8278623 : compiler/vectorapi/reshape/TestVectorCastAVX512.java after JDK-8259610
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 19
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: x86_64
  • Submitted: 2021-12-13
  • Updated: 2022-01-03
  • Resolved: 2021-12-17
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.
JDK 19
19 b03Fixed
Related Reports
Duplicate :  
Relates :  
Relates :  
Sub Tasks
JDK-8278630 :  
Description
The following test failed in the JDK19 CI:

compiler/vectorapi/reshape/TestVectorCastAVX512.java

Here's a snippet from the log file:

Error Output
------------
WARNING: Using incubator modules: jdk.incubator.vector
Exception in thread "main" compiler.lib.ir_framework.shared.TestRunException: 

Test Failures (8)
-----------------
Custom Run Test: @Run: runL512toI256 - @Test: testL512toI256:
compiler.lib.ir_framework.shared.TestRunException: Method public static void compiler.vectorapi.reshape.tests.TestVectorCast.testL512toI256(byte[],byte[]) not compilable at level C2. Did you use compileonly without including all @Test methods?
	at compiler.lib.ir_framework.shared.TestRun.check(TestRun.java:32)
	at compiler.lib.ir_framework.test.AbstractTest.compileMethod(AbstractTest.java:119)
	at compiler.lib.ir_framework.test.CustomRunTest.compileSingleTest(CustomRunTest.java:113)
	at compiler.lib.ir_framework.test.CustomRunTest.compileTest(CustomRunTest.java:101)
	at compiler.lib.ir_framework.test.AbstractTest.run(AbstractTest.java:102)
	at compiler.lib.ir_framework.test.CustomRunTest.run(CustomRunTest.java:89)
	at compiler.lib.ir_framework.test.TestVM.runTests(TestVM.java:818)
	at compiler.lib.ir_framework.test.TestVM.start(TestVM.java:249)
	at compiler.lib.ir_framework.test.TestVM.main(TestVM.java:164)


Custom Run Test: @Run: runI512toS256 - @Test: testI512toS256:
compiler.lib.ir_framework.shared.TestRunException: Method public static void compiler.vectorapi.reshape.tests.TestVectorCast.testI512toS256(byte[],byte[]) not compilable at level C2. Did you use compileonly without including all @Test methods?
	at compiler.lib.ir_framework.shared.TestRun.check(TestRun.java:32)
	at compiler.lib.ir_framework.test.AbstractTest.compileMethod(AbstractTest.java:119)
	at compiler.lib.ir_framework.test.CustomRunTest.compileSingleTest(CustomRunTest.java:113)
	at compiler.lib.ir_framework.test.CustomRunTest.compileTest(CustomRunTest.java:101)
	at compiler.lib.ir_framework.test.AbstractTest.run(AbstractTest.java:102)
	at compiler.lib.ir_framework.test.CustomRunTest.run(CustomRunTest.java:89)
	at compiler.lib.ir_framework.test.TestVM.runTests(TestVM.java:818)
	at compiler.lib.ir_framework.test.TestVM.start(TestVM.java:249)
	at compiler.lib.ir_framework.test.TestVM.main(TestVM.java:164)


Custom Run Test: @Run: runL512toB64 - @Test: testL512toB64:
compiler.lib.ir_framework.shared.TestRunException: Method public static void compiler.vectorapi.reshape.tests.TestVectorCast.testL512toB64(byte[],byte[]) not compilable at level C2. Did you use compileonly without including all @Test methods?
	at compiler.lib.ir_framework.shared.TestRun.check(TestRun.java:32)
	at compiler.lib.ir_framework.test.AbstractTest.compileMethod(AbstractTest.java:119)
	at compiler.lib.ir_framework.test.CustomRunTest.compileSingleTest(CustomRunTest.java:113)
	at compiler.lib.ir_framework.test.CustomRunTest.compileTest(CustomRunTest.java:101)
	at compiler.lib.ir_framework.test.AbstractTest.run(AbstractTest.java:102)
	at compiler.lib.ir_framework.test.CustomRunTest.run(CustomRunTest.java:89)
	at compiler.lib.ir_framework.test.TestVM.runTests(TestVM.java:818)
	at compiler.lib.ir_framework.test.TestVM.start(TestVM.java:249)
	at compiler.lib.ir_framework.test.TestVM.main(TestVM.java:164)


Custom Run Test: @Run: runL512toS128 - @Test: testL512toS128:
compiler.lib.ir_framework.shared.TestRunException: Method public static void compiler.vectorapi.reshape.tests.TestVectorCast.testL512toS128(byte[],byte[]) not compilable at level C2. Did you use compileonly without including all @Test methods?
	at compiler.lib.ir_framework.shared.TestRun.check(TestRun.java:32)
	at compiler.lib.ir_framework.test.AbstractTest.compileMethod(AbstractTest.java:119)
	at compiler.lib.ir_framework.test.CustomRunTest.compileSingleTest(CustomRunTest.java:113)
	at compiler.lib.ir_framework.test.CustomRunTest.compileTest(CustomRunTest.java:101)
	at compiler.lib.ir_framework.test.AbstractTest.run(AbstractTest.java:102)
	at compiler.lib.ir_framework.test.CustomRunTest.run(CustomRunTest.java:89)
	at compiler.lib.ir_framework.test.TestVM.runTests(TestVM.java:818)
	at compiler.lib.ir_framework.test.TestVM.start(TestVM.java:249)
	at compiler.lib.ir_framework.test.TestVM.main(TestVM.java:164)


Custom Run Test: @Run: runD512toF256 - @Test: testD512toF256:
compiler.lib.ir_framework.shared.TestRunException: Method public static void compiler.vectorapi.reshape.tests.TestVectorCast.testD512toF256(byte[],byte[]) not compilable at level C2. Did you use compileonly without including all @Test methods?
	at compiler.lib.ir_framework.shared.TestRun.check(TestRun.java:32)
	at compiler.lib.ir_framework.test.AbstractTest.compileMethod(AbstractTest.java:119)
	at compiler.lib.ir_framework.test.CustomRunTest.compileSingleTest(CustomRunTest.java:113)
	at compiler.lib.ir_framework.test.CustomRunTest.compileTest(CustomRunTest.java:101)
	at compiler.lib.ir_framework.test.AbstractTest.run(AbstractTest.java:102)
	at compiler.lib.ir_framework.test.CustomRunTest.run(CustomRunTest.java:89)
	at compiler.lib.ir_framework.test.TestVM.runTests(TestVM.java:818)
	at compiler.lib.ir_framework.test.TestVM.start(TestVM.java:249)
	at compiler.lib.ir_framework.test.TestVM.main(TestVM.java:164)


Custom Run Test: @Run: runF512toI512 - @Test: testF512toI512:
compiler.lib.ir_framework.shared.TestRunException: Method public static void compiler.vectorapi.reshape.tests.TestVectorCast.testF512toI512(byte[],byte[]) not compilable at level C2. Did you use compileonly without including all @Test methods?
	at compiler.lib.ir_framework.shared.TestRun.check(TestRun.java:32)
	at compiler.lib.ir_framework.test.AbstractTest.compileMethod(AbstractTest.java:119)
	at compiler.lib.ir_framework.test.CustomRunTest.compileSingleTest(CustomRunTest.java:113)
	at compiler.lib.ir_framework.test.CustomRunTest.compileTest(CustomRunTest.java:101)
	at compiler.lib.ir_framework.test.AbstractTest.run(AbstractTest.java:102)
	at compiler.lib.ir_framework.test.CustomRunTest.run(CustomRunTest.java:89)
	at compiler.lib.ir_framework.test.TestVM.runTests(TestVM.java:818)
	at compiler.lib.ir_framework.test.TestVM.start(TestVM.java:249)
	at compiler.lib.ir_framework.test.TestVM.main(TestVM.java:164)


Custom Run Test: @Run: runI512toF512 - @Test: testI512toF512:
compiler.lib.ir_framework.shared.TestRunException: Method public static void compiler.vectorapi.reshape.tests.TestVectorCast.testI512toF512(byte[],byte[]) not compilable at level C2. Did you use compileonly without including all @Test methods?
	at compiler.lib.ir_framework.shared.TestRun.check(TestRun.java:32)
	at compiler.lib.ir_framework.test.AbstractTest.compileMethod(AbstractTest.java:119)
	at compiler.lib.ir_framework.test.CustomRunTest.compileSingleTest(CustomRunTest.java:113)
	at compiler.lib.ir_framework.test.CustomRunTest.compileTest(CustomRunTest.java:101)
	at compiler.lib.ir_framework.test.AbstractTest.run(AbstractTest.java:102)
	at compiler.lib.ir_framework.test.CustomRunTest.run(CustomRunTest.java:89)
	at compiler.lib.ir_framework.test.TestVM.runTests(TestVM.java:818)
	at compiler.lib.ir_framework.test.TestVM.start(TestVM.java:249)
	at compiler.lib.ir_framework.test.TestVM.main(TestVM.java:164)


Custom Run Test: @Run: runI512toB128 - @Test: testI512toB128:
compiler.lib.ir_framework.shared.TestRunException: Method public static void compiler.vectorapi.reshape.tests.TestVectorCast.testI512toB128(byte[],byte[]) not compilable at level C2. Did you use compileonly without including all @Test methods?
	at compiler.lib.ir_framework.shared.TestRun.check(TestRun.java:32)
	at compiler.lib.ir_framework.test.AbstractTest.compileMethod(AbstractTest.java:119)
	at compiler.lib.ir_framework.test.CustomRunTest.compileSingleTest(CustomRunTest.java:113)
	at compiler.lib.ir_framework.test.CustomRunTest.compileTest(CustomRunTest.java:101)
	at compiler.lib.ir_framework.test.AbstractTest.run(AbstractTest.java:102)
	at compiler.lib.ir_framework.test.CustomRunTest.run(CustomRunTest.java:89)
	at compiler.lib.ir_framework.test.TestVM.runTests(TestVM.java:818)
	at compiler.lib.ir_framework.test.TestVM.start(TestVM.java:249)
	at compiler.lib.ir_framework.test.TestVM.main(TestVM.java:164)



	at compiler.lib.ir_framework.test.TestVM.runTests(TestVM.java:853)
	at compiler.lib.ir_framework.test.TestVM.start(TestVM.java:249)
	at compiler.lib.ir_framework.test.TestVM.main(TestVM.java:164)


  #############################################################
   - 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:238)
	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:697)
	at compiler.lib.ir_framework.TestFramework.start(TestFramework.java:669)
	at compiler.lib.ir_framework.TestFramework.start(TestFramework.java:322)
	at compiler.vectorapi.reshape.utils.VectorReshapeHelper.runMainHelper(VectorReshapeHelper.java:92)
	at compiler.vectorapi.reshape.TestVectorCastAVX512.main(TestVectorCastAVX512.java:42)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
	at java.base/java.lang.reflect.Method.invoke(Method.java:577)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
	at java.base/java.lang.Thread.run(Thread.java:833)

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.
----------rerun:(38/8239)*----------
Comments
Changeset: cc44e137 Author: merykitty <anhmdq99@gmail.com> Committer: Vladimir Kozlov <kvn@openjdk.org> Date: 2021-12-17 23:42:28 +0000 URL: https://git.openjdk.java.net/jdk/commit/cc44e137973808436311aaaa50916d051759f705
17-12-2021

Note, -XX:+UseKNLSetting flag reduce number of available avx512 instructions to amulate old Intel's CPU. So it is reasonable that some vector instructions can't be generated with it. But my impression was that IR framework fork process to avoid such issues when conflicting flags are specified by testing.
14-12-2021

ILW = Test failure due to methods that cannot be compiled, single IR test and problem-listed already, no workaround = MLH = P4
14-12-2021

I also noticed this in the logs: IR verification disabled due to using non-whitelisted JTreg VM or Javaoptions flag(s). There are two issues: 1) The IR verification appears disabled for all the newly added rehape tests because the hotspot_vector_1 group is run under various flags in Oracle's test infrastructure. 2) The addition of -XX:+UseKNLSetting seems to be affecting a subset of the AVX512 cast tests. It's not clear if such cast tests need to be split accordingly or need not be run with this flag.
13-12-2021