[PATCH] D41821: [MIPS] Disassemble the 0xefefefef trap padding used by LLD

Alexander Richardson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 8 06:51:15 PST 2018


arichardson created this revision.
arichardson added reviewers: atanasyan, sdardis.
Herald added subscribers: hiraditya, emaste.

Previously using llvm-objdump would just print a lot of 0xefefefef unknown
instructions. If we disassemble this as `trap_ri` it should be obvious that
it is a explicit trap padding rather than some instruction that is not
available because the wrong -triple was passed to llvm-objdump.

I am not sure if there `trap_ri` is the best mnemonic to use here, I just
decided to go for that since it will always cause a reserved instruction
trap.


https://reviews.llvm.org/D41821

Files:
  lld/test/ELF/mips-got16-relocatable.s
  lld/test/ELF/mips-npic-call-pic-os.s
  lld/test/ELF/mips-npic-call-pic-script.s
  lld/test/ELF/mips-npic-call-pic.s
  llvm/lib/Target/Mips/MipsInstrFormats.td
  llvm/lib/Target/Mips/MipsInstrInfo.td
  llvm/test/MC/Mips/disas-lld-trap-padding.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41821.128926.patch
Type: text/x-patch
Size: 21198 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180108/7142350d/attachment-0001.bin>


More information about the llvm-commits mailing list