Adjust the vpclmulqdq test case

This commit is contained in:
Tobias Decking 2024-10-26 13:58:59 +02:00
parent 9622a79378
commit 05530b6e10
No known key found for this signature in database

View File

@ -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
@ -20,13 +22,15 @@ 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();
if is_x86_feature_detected!("avx512f") {
test_mm512_clmulepi64_epi128();
}
}
}
macro_rules! verify_kat_pclmul {
($broadcast:ident, $clmul:ident, $assert:ident) => {