[jdk17] RFR: 8268966: AArch64: 'bad AD file' in some vector conversion tests

Vladimir Kozlov kvn at openjdk.java.net
Tue Jul 6 03:39:53 UTC 2021


On Mon, 5 Jul 2021 11:41:42 GMT, Eric Liu <eliu at openjdk.org> wrote:

> JVM crashes with 'bad AD file' on some vector api test cases with
> 'Xcomp' option. Further analysis shows that, there are some missing
> rules for vector conversion. Since we are now in jdk 17 RDP 1, it would
> be better to mark them as unsupported for now and add match rules in
> future. Test cases also added to verify the conversion between types.

Testing passed on aarch64 but I have issues with new tests on x86. When running with "-ea -esa -XX:CompileThreshold=100" on x86 I got AssertionError (with tiered, C2 only and C1 only):

test compiler.vectorapi.VectorCastShape128Test.testCastShape128(): failure
java.lang.AssertionError: expected [-9.297751E8] but found [-1.16216768E9]
	at org.testng.Assert.fail(Assert.java:99)
	at org.testng.Assert.failNotEquals(Assert.java:1037)
	at org.testng.Assert.assertEquals(Assert.java:774)
	at org.testng.Assert.assertEquals(Assert.java:785)
	at compiler.vectorapi.VectorCastShape128Test.testIntToFloat(VectorCastShape128Test.java:262)
	at compiler.vectorapi.VectorCastShape128Test.testCastShape128(VectorCastShape128Test.java:488)

and


java.lang.AssertionError: expected [1.72418381E9] but found [1.27127309E9]
	at org.testng.Assert.fail(Assert.java:99)
	at org.testng.Assert.failNotEquals(Assert.java:1037)
	at org.testng.Assert.assertEquals(Assert.java:774)
	at org.testng.Assert.assertEquals(Assert.java:785)
	at compiler.vectorapi.VectorCastShape64Test.testIntToFloat(VectorCastShape64Test.java:262)
	at compiler.vectorapi.VectorCastShape64Test.testCastShape64(VectorCastShape64Test.java:488)
``` 

I will file a bug for x86 after you push.

-------------

PR: https://git.openjdk.java.net/jdk17/pull/211


More information about the hotspot-compiler-dev mailing list