8318683: compiler/c2/irTests/TestPhiDuplicatedConversion.java "Failed IR Rules (2) of Methods (2)"

Reviewed-by: thartmann, kvn
This commit is contained in:
Jasmine Karthikeyan 2023-11-01 06:12:55 +00:00 committed by Tobias Hartmann
parent b3fec6b5f3
commit 2a76ad975c
2 changed files with 3 additions and 2 deletions

View File

@ -114,13 +114,13 @@ public class TestPhiDuplicatedConversion {
}
@Test
@IR(counts = {IRNode.CONV, "1"}, applyIfCPUFeatureOr = {"avx", "true", "asimd", "true"})
@IR(counts = {IRNode.CONV, "1"}, applyIfCPUFeatureOr = {"f16c", "true", "avx512vl", "true", "asimd", "true"})
public static short float2HalfFloat(boolean c, float a, float b) {
return c ? Float.floatToFloat16(a) : Float.floatToFloat16(b);
}
@Test
@IR(counts = {IRNode.CONV, "1"}, applyIfCPUFeatureOr = {"avx", "true", "asimd", "true"})
@IR(counts = {IRNode.CONV, "1"}, applyIfCPUFeatureOr = {"f16c", "true", "avx512vl", "true", "asimd", "true"})
public static float halfFloat2Float(boolean c, short a, short b) {
return c ? Float.float16ToFloat(a) : Float.float16ToFloat(b);
}

View File

@ -83,6 +83,7 @@ public class IREncodingPrinter {
private static final List<String> verifiedCPUFeatures = new ArrayList<String>( Arrays.asList(
// x86
"fma",
"f16c",
// Intel SSE
"sse",
"sse2",