Skip to content

Commit

Permalink
Adjust the vpclmulqdq test case
Browse files Browse the repository at this point in the history
  • Loading branch information
TDecking committed Oct 26, 2024
1 parent 357195a commit fb4905d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions tests/pass/shims/x86/intrinsics-x86-vpclmulqdq.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// We're testing x86 target specific features
//@revisions: avx512 avx
//@only-target: x86_64 i686
//@compile-flags: -C target-feature=+vpclmulqdq,+avx512f
//@[avx512]compile-flags: -C target-feature=+vpclmulqdq,+avx512f
//@[avx]compile-flags: -C target-feature=+vpclmulqdq,+avx2

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

assert!(is_x86_feature_detected!("pclmulqdq"));
assert!(is_x86_feature_detected!("vpclmulqdq"));
assert!(is_x86_feature_detected!("avx512f"));

unsafe {
test_mm256_clmulepi64_epi128();
test_mm512_clmulepi64_epi128();

if is_x86_feature_detected!("avx512f") {
test_mm512_clmulepi64_epi128();
}
}
}

Expand Down

0 comments on commit fb4905d

Please sign in to comment.