Skip to content

Commit

Permalink
Merge pull request #7015 from Spencer-Comin/fix-immediate-address
Browse files Browse the repository at this point in the history
Z: Use IILF for 31-bit inline address constants
  • Loading branch information
0xdaryl authored May 31, 2023
2 parents be868e8 + 80c97cf commit 0509e46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/z/codegen/OMRTreeEvaluator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2501,9 +2501,9 @@ genLoadAddressConstant(TR::CodeGenerator * cg, TR::Node * node, uintptr_t value,
return generateRegLitRefInstruction(cg, TR::InstOpCode::getLoadOpCode(), node, targetRegister, value, reloKind, cond, cursor, base);
}

cursor = generateRILInstruction(cg, TR::InstOpCode::LLILF, node, targetRegister, static_cast<uint32_t>(value), cursor);

TR::Compilation *comp = cg->comp();
cursor = generateRILInstruction(cg, comp->target().is64Bit() ? TR::InstOpCode::LLILF : TR::InstOpCode::IILF, node, targetRegister, static_cast<uint32_t>(value), cursor);

bool assumePatch = false;
bool isCompressedClassPointer = false;
if (node->isClassUnloadingConst())
Expand Down

0 comments on commit 0509e46

Please sign in to comment.