8323577: C2 SuperWord: remove AlignVector restrictions on IR tests added in JDK-8305055
Reviewed-by: rcastanedalo, chagedorn
This commit is contained in:
parent
8643cc2133
commit
45c65e6b1a
test/hotspot/jtreg/compiler
@ -58,10 +58,7 @@ public class TestVectorizeTypeConversion {
|
||||
// Mixing types of different sizes has the effect that some vectors are shorter than the type allows.
|
||||
@IR(counts = {IRNode.LOAD_VECTOR_I, IRNode.VECTOR_SIZE + "min(max_int, max_double)", ">0",
|
||||
IRNode.VECTOR_CAST_I2D, IRNode.VECTOR_SIZE + "min(max_int, max_double)", ">0",
|
||||
IRNode.STORE_VECTOR, ">0"},
|
||||
// The vectorization of some conversions may fail when `+AlignVector`.
|
||||
// We can remove the condition after JDK-8303827.
|
||||
applyIf = {"AlignVector", "false"})
|
||||
IRNode.STORE_VECTOR, ">0"})
|
||||
private static void testConvI2D(double[] d, int[] a) {
|
||||
for(int i = 0; i < d.length; i++) {
|
||||
d[i] = (double) (a[i]);
|
||||
|
@ -143,9 +143,6 @@ public class ArrayTypeConvertTest extends VectorizationTestRunner {
|
||||
|
||||
@Test
|
||||
@IR(applyIfCPUFeatureOr = {"asimd", "true", "avx", "true"},
|
||||
// The vectorization of some conversions may fail when `+AlignVector`.
|
||||
// We can remove the condition after JDK-8303827.
|
||||
applyIf = {"AlignVector", "false"},
|
||||
counts = {IRNode.VECTOR_CAST_I2D, IRNode.VECTOR_SIZE + "min(max_int, max_double)", ">0"})
|
||||
public double[] convertIntToDouble() {
|
||||
double[] res = new double[SIZE];
|
||||
@ -233,9 +230,6 @@ public class ArrayTypeConvertTest extends VectorizationTestRunner {
|
||||
|
||||
@Test
|
||||
@IR(applyIfCPUFeatureOr = {"asimd", "true", "avx512dq", "true"},
|
||||
// The vectorization of some conversions may fail when `+AlignVector`.
|
||||
// We can remove the condition after JDK-8303827.
|
||||
applyIf = {"AlignVector", "false"},
|
||||
counts = {IRNode.VECTOR_CAST_F2L, IRNode.VECTOR_SIZE + "min(max_float, max_long)", ">0"})
|
||||
public long[] convertFloatToLong() {
|
||||
long[] res = new long[SIZE];
|
||||
@ -317,9 +311,6 @@ public class ArrayTypeConvertTest extends VectorizationTestRunner {
|
||||
// ---------------- Convert Between F & D ----------------
|
||||
@Test
|
||||
@IR(applyIfCPUFeatureOr = {"asimd", "true", "avx", "true"},
|
||||
// The vectorization of some conversions may fail when `+AlignVector`.
|
||||
// We can remove the condition after JDK-8303827.
|
||||
applyIf = {"AlignVector", "false"},
|
||||
counts = {IRNode.VECTOR_CAST_F2D, IRNode.VECTOR_SIZE + "min(max_float, max_double)", ">0"})
|
||||
public double[] convertFloatToDouble() {
|
||||
double[] res = new double[SIZE];
|
||||
|
Loading…
x
Reference in New Issue
Block a user