diff --git a/test/hotspot/jtreg/compiler/c2/irTests/TestVectorizeTypeConversion.java b/test/hotspot/jtreg/compiler/c2/irTests/TestVectorizeTypeConversion.java index c8a09e4aad8c6..9255bf4aeeef6 100644 --- a/test/hotspot/jtreg/compiler/c2/irTests/TestVectorizeTypeConversion.java +++ b/test/hotspot/jtreg/compiler/c2/irTests/TestVectorizeTypeConversion.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022, Arm Limited. All rights reserved. + * Copyright (c) 2022, 2023, Arm Limited. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -57,7 +57,10 @@ public static void main(String[] args) { @Test @IR(counts = {IRNode.LOAD_VECTOR, ">0", IRNode.VECTOR_CAST_I2X, ">0", - IRNode.STORE_VECTOR, ">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"}) private static void testConvI2D(double[] d, int[] a) { for(int i = 0; i < d.length; i++) { d[i] = (double) (a[i]); diff --git a/test/hotspot/jtreg/compiler/vectorization/runner/ArrayTypeConvertTest.java b/test/hotspot/jtreg/compiler/vectorization/runner/ArrayTypeConvertTest.java index b729fa8f9985c..f7f3dc3943141 100644 --- a/test/hotspot/jtreg/compiler/vectorization/runner/ArrayTypeConvertTest.java +++ b/test/hotspot/jtreg/compiler/vectorization/runner/ArrayTypeConvertTest.java @@ -143,6 +143,9 @@ public float[] convertIntToFloat() { @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_I2X, ">0"}) public double[] convertIntToDouble() { double[] res = new double[SIZE]; @@ -230,6 +233,9 @@ public int[] convertFloatToInt() { @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_F2X, ">0"}) public long[] convertFloatToLong() { long[] res = new long[SIZE]; @@ -311,6 +317,9 @@ public char[] convertDoubleToChar() { // ---------------- 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_F2X, ">0"}) public double[] convertFloatToDouble() { double[] res = new double[SIZE];