Skip to content

Commit

Permalink
Merge pull request #6150 from knn-k/aarch64regCopy
Browse files Browse the repository at this point in the history
AArch64: Change generation of "mov" instruction in register assignment
  • Loading branch information
0xdaryl committed Aug 20, 2021
2 parents 30d46b6 + bccc42a commit 6eec759
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions compiler/aarch64/codegen/OMRMachine.cpp
Original file line number Diff line number Diff line change
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 6eec759

Please sign in to comment.