Skip to content

Commit b4d7fca

Browse files
authored
Add Sve.IsSupported check (#116026)
1 parent ffcd1c5 commit b4d7fca

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

src/tests/JIT/opt/SVE/PredicateInstructions.cs

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,21 @@ public class PredicateInstructions
1515
[Fact]
1616
public static void TestPredicateInstructions()
1717
{
18-
ZipLow();
19-
ZipHigh();
20-
UnzipOdd();
21-
UnzipEven();
22-
TransposeOdd();
23-
TransposeEven();
24-
ReverseElement();
25-
And();
26-
BitwiseClear();
27-
Xor();
28-
Or();
29-
ConditionalSelect();
18+
if (Sve.IsSupported)
19+
{
20+
ZipLow();
21+
ZipHigh();
22+
UnzipOdd();
23+
UnzipEven();
24+
TransposeOdd();
25+
TransposeEven();
26+
ReverseElement();
27+
And();
28+
BitwiseClear();
29+
Xor();
30+
Or();
31+
ConditionalSelect();
32+
}
3033
}
3134

3235
[MethodImpl(MethodImplOptions.NoInlining)]

0 commit comments

Comments
 (0)