emit_arm64_vector: Swap arguments of EmitSaturatedAccumulate
This commit is contained in:
parent
e74e03010b
commit
f7a092c06b
1 changed files with 2 additions and 2 deletions
|
@ -201,8 +201,8 @@ static void EmitThreeOpArrangedLower(oaknut::CodeGenerator& code, EmitContext& c
|
||||||
template<size_t size, typename EmitFn>
|
template<size_t size, typename EmitFn>
|
||||||
static void EmitSaturatedAccumulate(oaknut::CodeGenerator&, EmitContext& ctx, IR::Inst* inst, EmitFn emit) {
|
static void EmitSaturatedAccumulate(oaknut::CodeGenerator&, EmitContext& ctx, IR::Inst* inst, EmitFn emit) {
|
||||||
auto args = ctx.reg_alloc.GetArgumentInfo(inst);
|
auto args = ctx.reg_alloc.GetArgumentInfo(inst);
|
||||||
auto Qaccumulator = ctx.reg_alloc.ReadWriteQ(args[0], inst);
|
auto Qaccumulator = ctx.reg_alloc.ReadWriteQ(args[1], inst); // NB: Swapped
|
||||||
auto Qoperand = ctx.reg_alloc.ReadQ(args[1]);
|
auto Qoperand = ctx.reg_alloc.ReadQ(args[0]); // NB: Swapped
|
||||||
RegAlloc::Realize(Qaccumulator, Qoperand);
|
RegAlloc::Realize(Qaccumulator, Qoperand);
|
||||||
ctx.fpsr.Load();
|
ctx.fpsr.Load();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue