N32 support will follow in a later patch since the symbol version of 'la'
incorrectly believes N32 to have 64-bit pointers and rejects it early.
This fixes the three incorrectly expanded 'la' macros found in bionic.
Paths
| Differential D20820
[mips] Implement 'la' macro in PIC mode for O32. ClosedPublic Authored by dsanders on May 31 2016, 8:35 AM.
Details Summary N32 support will follow in a later patch since the symbol version of 'la' This fixes the three incorrectly expanded 'la' macros found in bionic.
Diff Detail
Event Timelinedsanders updated this object. sdardis edited edge metadata. Comment ActionsThe only difference I'm seeing is the la $25, 1f cases where the addend is already written due to the section relative relocation. ld handles that case fine. This revision is now accepted and ready to land.Jun 1 2016, 8:26 AM Comment Actions
I think this difference may arise from comparing MIPS32R6 objects. MIPS32R6 restricted the changes that can be made to relocations but LLVM doesn't know about this yet. Closed by commit rL271644: [mips] Implement 'la' macro in PIC mode for O32. (authored by dsanders). · Explain WhyJun 3 2016, 2:59 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 59520 llvm/trunk/lib/Target/Mips/AsmParser/MipsAsmParser.cpp
llvm/trunk/lib/Target/Mips/InstPrinter/MipsInstPrinter.cpp
llvm/trunk/lib/Target/Mips/MCTargetDesc/MipsABIInfo.h
llvm/trunk/lib/Target/Mips/MCTargetDesc/MipsABIInfo.cpp
llvm/trunk/test/CodeGen/Mips/hf1_body.ll
llvm/trunk/test/MC/Mips/macro-la-pic.s
|