mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-08 09:35:16 +00:00
8318683: compiler/c2/irTests/TestPhiDuplicatedConversion.java "Failed IR Rules (2) of Methods (2)"
Reviewed-by: thartmann, kvn
This commit is contained in:
parent
b3fec6b5f3
commit
2a76ad975c
@ -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);
|
||||
}
|
||||
|
||||
@ -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",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user