File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
src/tools/miri/tests/pass/shims/x86 Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 1
1
// We're testing x86 target specific features
2
+ //@revisions: avx512 avx
2
3
//@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
4
6
5
7
// The constants in the tests below are just bit patterns. They should not
6
8
// be interpreted as integers; signedness does not make sense for them, but
@@ -20,11 +22,13 @@ fn main() {
20
22
21
23
assert ! ( is_x86_feature_detected!( "pclmulqdq" ) ) ;
22
24
assert ! ( is_x86_feature_detected!( "vpclmulqdq" ) ) ;
23
- assert ! ( is_x86_feature_detected!( "avx512f" ) ) ;
24
25
25
26
unsafe {
26
27
test_mm256_clmulepi64_epi128 ( ) ;
27
- test_mm512_clmulepi64_epi128 ( ) ;
28
+
29
+ if is_x86_feature_detected ! ( "avx512f" ) {
30
+ test_mm512_clmulepi64_epi128 ( ) ;
31
+ }
28
32
}
29
33
}
30
34
You can’t perform that action at this time.
0 commit comments