Skip to content

Commit

Permalink
AArch64: Change generation of "mov" instruction in register assignment
Browse files Browse the repository at this point in the history
This commit changes code generation of GPR-to-GPR "mov" instruction
in registerCopy() in register assignment for AArch64.

Signed-off-by: KONNO Kazuhiro <konno@jp.ibm.com>
  • Loading branch information
knn-k committed Aug 19, 2021
1 parent a99c1b6 commit bccc42a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions compiler/aarch64/codegen/OMRMachine.cpp
Expand Up @@ -663,12 +663,10 @@ static void registerCopy(TR::Instruction *precedingInstruction,
TR::CodeGenerator *cg)
{
TR::Node *node = precedingInstruction->getNode();
TR::RealRegister *zeroReg;
switch (rk)
{
case TR_GPR:
zeroReg = cg->machine()->getRealRegister(TR::RealRegister::xzr);
generateTrg1Src2Instruction(cg, TR::InstOpCode::orrx, node, targetReg, zeroReg, sourceReg, precedingInstruction); /* mov (register) */
generateMovInstruction(cg, node, targetReg, sourceReg, true, precedingInstruction);
break;
case TR_FPR:
generateTrg1Src1Instruction(cg, TR::InstOpCode::fmovd, node, targetReg, sourceReg, precedingInstruction);
Expand Down

0 comments on commit bccc42a

Please sign in to comment.