[PATCH] [mips] Expand JAL instructions when PIC is enabled.

Toma Tabacu toma.tabacu at imgtec.com
Thu Nov 13 06:15:56 PST 2014


-We now emit a correct JALR instruction, which makes us unable to add the R_(MICRO)MIPS_JALR relocation after it.
This is fine because that relocation is just an optimization hint for the linker and is not needed for correctness.
This means that we don't need to implement that relocation any more.

-Added a FIXME which explains this situation.

-Made tests match with the changes mentioned above.

http://reviews.llvm.org/D6231

Files:
  lib/Target/Mips/AsmParser/MipsAsmParser.cpp
  test/MC/Mips/expansion-jal-sym-pic-noreorder.s
  test/MC/Mips/expansion-jal-sym-pic-reorder.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D6231.16154.patch
Type: text/x-patch
Size: 13273 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141113/0db6ea49/attachment.bin>


More information about the llvm-commits mailing list