[clang] [llvm] [PowerPC][AIX] 64-bit large code-model support for toc-data (PR #90619)
Chen Zheng via cfe-commits
cfe-commits at lists.llvm.org
Wed May 15 19:26:15 PDT 2024
================
@@ -1292,8 +1291,9 @@ void PPCAsmPrinter::emitInstruction(const MachineInstr *MI) {
unsigned Op = MI->getOpcode();
- // Change the opcode to load address for tocdata
- TmpInst.setOpcode(Op == PPC::ADDItocL8 ? PPC::ADDI8 : PPC::LA);
+ // Change the opcode to load address for toc data.
----------------
chenzheng1030 wrote:
nit: maybe we can also add a comment here saying that for `ADDItocL`, it is only used for 32-bit toc data on AIX, so always using LA?
https://github.com/llvm/llvm-project/pull/90619
More information about the cfe-commits
mailing list