Skip to content

Commit 05530b6

Browse files
committed
Adjust the vpclmulqdq test case
1 parent 9622a79 commit 05530b6

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/tools/miri/tests/pass/shims/x86/intrinsics-x86-vpclmulqdq.rs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// We're testing x86 target specific features
2+
//@revisions: avx512 avx
23
//@only-target: x86_64 i686
3-
//@compile-flags: -C target-feature=+vpclmulqdq,+avx512f
4+
//@[avx512]compile-flags: -C target-feature=+vpclmulqdq,+avx512f
5+
//@[avx]compile-flags: -C target-feature=+vpclmulqdq,+avx2
46

57
// The constants in the tests below are just bit patterns. They should not
68
// be interpreted as integers; signedness does not make sense for them, but
@@ -20,11 +22,13 @@ fn main() {
2022

2123
assert!(is_x86_feature_detected!("pclmulqdq"));
2224
assert!(is_x86_feature_detected!("vpclmulqdq"));
23-
assert!(is_x86_feature_detected!("avx512f"));
2425

2526
unsafe {
2627
test_mm256_clmulepi64_epi128();
27-
test_mm512_clmulepi64_epi128();
28+
29+
if is_x86_feature_detected!("avx512f") {
30+
test_mm512_clmulepi64_epi128();
31+
}
2832
}
2933
}
3034

0 commit comments

Comments
 (0)