Skip to content

Commit

Permalink
RISC-V: fix registerExchange() for FP registers
Browse files Browse the repository at this point in the history
By mistake, parameters to registerCopy() used in registerExchange()
were swapped.
  • Loading branch information
janvrany committed Jun 12, 2021
1 parent 29eff54 commit ce144df
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions compiler/riscv/codegen/OMRMachine.cpp
Expand Up @@ -499,9 +499,9 @@ static void registerExchange(TR::Instruction *precedingInstruction,
}
else
{
registerCopy(precedingInstruction, rk, targetReg, middleReg, cg);
registerCopy(precedingInstruction, rk, sourceReg, targetReg, cg);
registerCopy(precedingInstruction, rk, middleReg, sourceReg, cg);
registerCopy(precedingInstruction, rk, middleReg, targetReg, cg);
registerCopy(precedingInstruction, rk, targetReg, sourceReg, cg);
registerCopy(precedingInstruction, rk, sourceReg, middleReg, cg);
}
}

Expand Down

0 comments on commit ce144df

Please sign in to comment.