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 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
You can’t perform that action at this time.
0 commit comments