From b8d5765f9b8db33c24d6337ac13310e6b004c93b Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 23 Mar 2018 14:44:10 -0400 Subject: [PATCH] emit_x64_vector: Fix typo in VectorShuffleImpl This is supposed to be pshufd, not pshufw (which only allows a 64-bit operand) --- src/backend_x64/emit_x64_vector.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend_x64/emit_x64_vector.cpp b/src/backend_x64/emit_x64_vector.cpp index 18136087..928421d6 100644 --- a/src/backend_x64/emit_x64_vector.cpp +++ b/src/backend_x64/emit_x64_vector.cpp @@ -1156,7 +1156,7 @@ static void VectorShuffleImpl(ShuffleType type, EmitContext& ctx, IR::Inst* inst } else if (type == ShuffleType::HighHalfwords) { code.pshufhw(result, operand, mask); } else { - code.pshufw(result, operand, mask); + code.pshufd(result, operand, mask); } ctx.reg_alloc.DefineValue(inst, result);