Vector: Use unary handler for scalar unary insertions

Same behavior, but just uses a more proper handler.
This commit is contained in:
LC committed 2026-07-10 07:27:54 -04:00
1 parent 5f2d19c7aa
commit 401e542fcd
1 file changed
+2 -2
@@ -366,13 +366,13 @@ Ref OpDispatchBuilder::VectorScalarUnaryInsertALUOpImpl(OpcodeArgs, IROps IROp,
void OpDispatchBuilder::VectorScalarUnaryInsertALUOp(OpcodeArgs, IROps IROp, IR::OpSize ElementSize) {
const auto DstSize = GetGuestVectorLength();
auto Result = VectorScalarInsertALUOpImpl(Op, IROp, DstSize, ElementSize, Op->Dest, Op->Src[0], false);
auto Result = VectorScalarUnaryInsertALUOpImpl(Op, IROp, DstSize, ElementSize, Op->Dest, Op->Src[0], false);
StoreResultFPR_WithOpSize(Op, Op->Dest, Result, DstSize);
}
void OpDispatchBuilder::AVXVectorScalarUnaryInsertALUOp(OpcodeArgs, IROps IROp, IR::OpSize ElementSize) {
const auto DstSize = GetGuestVectorLength();
auto Result = VectorScalarInsertALUOpImpl(Op, IROp, DstSize, ElementSize, Op->Src[0], Op->Src[1], true);
auto Result = VectorScalarUnaryInsertALUOpImpl(Op, IROp, DstSize, ElementSize, Op->Src[0], Op->Src[1], true);
StoreResultFPR_WithOpSize(Op, Op->Dest, Result, DstSize);
}