From 945feccb4d0a20e50c2f6680edc5ddbcc1e833d0 Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Sat, 30 Nov 2024 16:09:50 +0100 Subject: [PATCH] Fix test-case --- crates/core_arch/src/x86_64/avx512f.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/core_arch/src/x86_64/avx512f.rs b/crates/core_arch/src/x86_64/avx512f.rs index fb7255a84e..8a8a82b735 100644 --- a/crates/core_arch/src/x86_64/avx512f.rs +++ b/crates/core_arch/src/x86_64/avx512f.rs @@ -11189,8 +11189,11 @@ mod tests { let r = _mm256_alignr_epi64::<0>(a, b); let e = _mm256_set_epi64x(8, 7, 6, 5); assert_eq_m256i(r, e); + let r = _mm256_alignr_epi64::<1>(a, b); + let e = _mm256_set_epi64x(1, 8, 7, 6); + assert_eq_m256i(r, e); let r = _mm256_alignr_epi64::<6>(a, b); - let e = _mm256_set_epi64x(6, 5, 4, 3); + let e = _mm256_set_epi64x(2, 1, 8, 7); assert_eq_m256i(r, e); }