From d29b7c8a5908606d19985f918baf1f22deb05fad Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Thu, 16 Dec 2021 12:36:52 -0600 Subject: [PATCH] Fix a simd shuffle test (#3607) Cranelift shuffles require indices to be in-bounds, which the avx512-using backend also requires via a debug assert, so this commit fixes a test with simd shuffles to only use in-bounds indices. This is motivated by another failure on CI where the machine we were running on presumably had avx512 things enabled. This should fix those failures. Closes #3581 --- cranelift/filetests/filetests/runtests/simd-shuffle.clif | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cranelift/filetests/filetests/runtests/simd-shuffle.clif b/cranelift/filetests/filetests/runtests/simd-shuffle.clif index d4151953e6..0f684314e4 100644 --- a/cranelift/filetests/filetests/runtests/simd-shuffle.clif +++ b/cranelift/filetests/filetests/runtests/simd-shuffle.clif @@ -6,7 +6,7 @@ target x86_64 function %shuffle_i8x16(i8x16, i8x16) -> i8x16 { block0(v0: i8x16, v1: i8x16): - v2 = shuffle v0, v1, [3 0 31 26 100 6 12 11 23 13 24 4 2 15 17 5] + v2 = shuffle v0, v1, [3 0 31 26 4 6 12 11 23 13 24 4 2 15 17 5] return v2 } -; run: %shuffle_i8x16([1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16], [17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32]) == [4 1 32 27 0 7 13 12 24 14 25 5 3 16 18 6] +; run: %shuffle_i8x16([1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16], [17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32]) == [4 1 32 27 5 7 13 12 24 14 25 5 3 16 18 6]