Skip to content

Commit

Permalink
8318683: compiler/c2/irTests/TestPhiDuplicatedConversion.java "Failed…
Browse files Browse the repository at this point in the history
… IR Rules (2) of Methods (2)"

Reviewed-by: thartmann, kvn
  • Loading branch information
jaskarth authored and TobiHartmann committed Nov 1, 2023
1 parent b3fec6b commit 2a76ad9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,13 +114,13 @@ public static int long2Int(boolean c, long a, long 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 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);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

1 comment on commit 2a76ad9

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.