[llvm] [PAC][CodeGen][ELF][AArch64] Support signed GOT with tiny code model (PR #114525)
Daniil Kovalev via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 1 02:32:58 PDT 2024
================
@@ -2277,28 +2277,39 @@ void AArch64AsmPrinter::LowerLOADgotAUTH(const MachineInstr &MI) {
const MachineOperand &GAMO = MI.getOperand(1);
assert(GAMO.getOffset() == 0);
- MachineOperand GAHiOp(GAMO);
- MachineOperand GALoOp(GAMO);
- GAHiOp.addTargetFlag(AArch64II::MO_PAGE);
- GALoOp.addTargetFlag(AArch64II::MO_PAGEOFF | AArch64II::MO_NC);
+ if (MI.getMF()->getTarget().getCodeModel() == CodeModel::Tiny) {
----------------
kovdan01 wrote:
@ilovepi Thanks for your suggestion from https://github.com/llvm/llvm-project/pull/113812#discussion_r1823353946! Applied here.
https://github.com/llvm/llvm-project/pull/114525
More information about the llvm-commits
mailing list