emit_x64_vector: Fix typo in VectorShuffleImpl

This is supposed to be pshufd, not pshufw (which only allows a 64-bit operand)
This commit is contained in:
Lioncash 2018-03-23 14:44:10 -04:00 committed by MerryMage
parent 586b00d11d
commit b8d5765f9b

View file

@ -1156,7 +1156,7 @@ static void VectorShuffleImpl(ShuffleType type, EmitContext& ctx, IR::Inst* inst
} else if (type == ShuffleType::HighHalfwords) { } else if (type == ShuffleType::HighHalfwords) {
code.pshufhw(result, operand, mask); code.pshufhw(result, operand, mask);
} else { } else {
code.pshufw(result, operand, mask); code.pshufd(result, operand, mask);
} }
ctx.reg_alloc.DefineValue(inst, result); ctx.reg_alloc.DefineValue(inst, result);