8334083: C2 SuperWord: TestCompatibleUseDefTypeSize.java fails with -XX:+AlignVector after JDK-8325155

Reviewed-by: chagedorn, kvn
This commit is contained in:
Emanuel Peter 2024-06-24 07:14:57 +00:00
parent 13dce296fc
commit edf7f055ee

View File

@ -359,6 +359,7 @@ public class TestCompatibleUseDefTypeSize {
IRNode.ADD_VI, "> 0",
IRNode.STORE_VECTOR, "> 0"},
applyIfPlatform = {"64-bit", "true"},
applyIf = {"AlignVector", "false"}, // a[i] and a[i+1] cannot both be aligned.
applyIfCPUFeatureOr = {"sse4.1", "true", "asimd", "true"})
// Used to not vectorize because of "alignment boundaries".
// Assume 64 byte vector width:
@ -376,6 +377,7 @@ public class TestCompatibleUseDefTypeSize {
IRNode.ADD_VI, "> 0",
IRNode.STORE_VECTOR, "> 0"},
applyIfPlatform = {"64-bit", "true"},
applyIf = {"AlignVector", "false"}, // a[i] and a[i+1] cannot both be aligned.
applyIfCPUFeatureOr = {"sse4.1", "true", "asimd", "true"})
// same as test3, but hand-unrolled
static Object[] test4(int[] a, int[] b) {