Skip to content

Commit

Permalink
Merge pull request #3609 from CAS-Atlantic/fix_aarch64_lneg_evaluator
Browse files Browse the repository at this point in the history
AArch64: Fix lnegEvaluator to correctly generate 64-bit negate instruction
  • Loading branch information
0xdaryl authored Feb 26, 2019
2 parents 0e86ce1 + e0878d1 commit b15ab57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/aarch64/codegen/UnaryEvaluator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ TR::Register *OMR::ARM64::TreeEvaluator::lnegEvaluator(TR::Node *node, TR::CodeG
{
TR::Node *firstChild = node->getFirstChild();
TR::Register *tempReg = cg->gprClobberEvaluate(firstChild);
generateNegInstruction(cg, node, tempReg, tempReg);
generateNegInstruction(cg, node, tempReg, tempReg, true);
firstChild->decReferenceCount();
return node->setRegister(tempReg);
}
Expand Down

0 comments on commit b15ab57

Please sign in to comment.