@@ -143,6 +143,9 @@ public float[] convertIntToFloat() {
143
143
144
144
@ Test
145
145
@ IR (applyIfCPUFeatureOr = {"asimd" , "true" , "avx" , "true" },
146
+ // The vectorization of some conversions may fail when `+AlignVector`.
147
+ // We can remove the condition after JDK-8303827.
148
+ applyIf = {"AlignVector" , "false" },
146
149
counts = {IRNode .VECTOR_CAST_I2X , ">0" })
147
150
public double [] convertIntToDouble () {
148
151
double [] res = new double [SIZE ];
@@ -230,6 +233,9 @@ public int[] convertFloatToInt() {
230
233
231
234
@ Test
232
235
@ IR (applyIfCPUFeatureOr = {"asimd" , "true" , "avx512dq" , "true" },
236
+ // The vectorization of some conversions may fail when `+AlignVector`.
237
+ // We can remove the condition after JDK-8303827.
238
+ applyIf = {"AlignVector" , "false" },
233
239
counts = {IRNode .VECTOR_CAST_F2X , ">0" })
234
240
public long [] convertFloatToLong () {
235
241
long [] res = new long [SIZE ];
@@ -311,6 +317,9 @@ public char[] convertDoubleToChar() {
311
317
// ---------------- Convert Between F & D ----------------
312
318
@ Test
313
319
@ IR (applyIfCPUFeatureOr = {"asimd" , "true" , "avx" , "true" },
320
+ // The vectorization of some conversions may fail when `+AlignVector`.
321
+ // We can remove the condition after JDK-8303827.
322
+ applyIf = {"AlignVector" , "false" },
314
323
counts = {IRNode .VECTOR_CAST_F2X , ">0" })
315
324
public double [] convertFloatToDouble () {
316
325
double [] res = new double [SIZE ];
0 commit comments