diff --git a/include/xsimd/arch/xsimd_wasm.hpp b/include/xsimd/arch/xsimd_wasm.hpp index 54cbdb170..78d838352 100644 --- a/include/xsimd/arch/xsimd_wasm.hpp +++ b/include/xsimd/arch/xsimd_wasm.hpp @@ -1276,11 +1276,11 @@ namespace xsimd { // shuffle within lane if (I0 < 2 && I1 >= 2) - return wasm_i64x2_shuffle(x, y, I0, I1); + return wasm_i64x2_shuffle(x, y, I1, I0); // shuffle within opposite lane if (I0 >= 2 && I1 < 2) - return wasm_i64x2_shuffle(y, x, I0, I1); + return wasm_i64x2_shuffle(y, x, I1, I0); return shuffle(x, y, mask, generic {}); }