Index: lld/test/ELF/mips-got16-relocatable.s =================================================================== --- lld/test/ELF/mips-got16-relocatable.s +++ lld/test/ELF/mips-got16-relocatable.s @@ -15,8 +15,8 @@ # OBJ-NEXT: 00000000: R_MIPS_GOT16 .data # OBJ-NEXT: 4: 27 24 00 00 addiu $4, $25, 0 # OBJ-NEXT: 00000004: R_MIPS_LO16 .data -# OBJ-NEXT: 8: ef ef ef ef -# OBJ-NEXT: c: ef ef ef ef +# OBJ-NEXT: 8: ef ef ef ef trap_ri +# OBJ-NEXT: c: ef ef ef ef trap_ri # OBJ-NEXT: 10: 8f 99 00 00 lw $25, 0($gp) # OBJ-NEXT: 00000010: R_MIPS_GOT16 .data # OBJ-NEXT: 14: 27 24 00 10 addiu $4, $25, 16 @@ -26,8 +26,8 @@ # SO-NEXT: .text: # SO-NEXT: 10000: 8f 99 80 18 lw $25, -32744($gp) # SO-NEXT: 10004: 27 24 00 00 addiu $4, $25, 0 -# SO-NEXT: 10008: ef ef ef ef -# SO-NEXT: 1000c: ef ef ef ef +# SO-NEXT: 10008: ef ef ef ef trap_ri +# SO-NEXT: 1000c: ef ef ef ef trap_ri # SO-NEXT: 10010: 8f 99 80 18 lw $25, -32744($gp) # SO-NEXT: 10014: 27 24 00 10 addiu $4, $25, 16 Index: lld/test/ELF/mips-npic-call-pic-os.s =================================================================== --- lld/test/ELF/mips-npic-call-pic-os.s +++ lld/test/ELF/mips-npic-call-pic-os.s @@ -33,8 +33,8 @@ # CHECK-NEXT: 2002c: 08 00 80 10 j 131136 # CHECK-NEXT: 20030: 27 39 00 40 addiu $25, $25, 64 # CHECK-NEXT: 20034: 00 00 00 00 nop -# CHECK-NEXT: 20038: ef ef ef ef -# CHECK-NEXT: 2003c: ef ef ef ef +# CHECK-NEXT: 20038: ef ef ef ef trap_ri +# CHECK-NEXT: 2003c: ef ef ef ef trap_ri # CHECK: foo2: # CHECK-NEXT: 20040: 00 00 00 00 nop # CHECK: __LA25Thunk_fpic: @@ -42,14 +42,14 @@ # CHECK-NEXT: 20048: 08 00 80 18 j 131168 # CHECK-NEXT: 2004c: 27 39 00 60 addiu $25, $25, 96 # CHECK-NEXT: 20050: 00 00 00 00 nop -# CHECK-NEXT: 20054: ef ef ef ef -# CHECK-NEXT: 20058: ef ef ef ef -# CHECK-NEXT: 2005c: ef ef ef ef +# CHECK-NEXT: 20054: ef ef ef ef trap_ri +# CHECK-NEXT: 20058: ef ef ef ef trap_ri +# CHECK-NEXT: 2005c: ef ef ef ef trap_ri # CHECK: fpic: # CHECK-NEXT: 20060: 00 00 00 00 nop -# CHECK-NEXT: 20064: ef ef ef ef -# CHECK-NEXT: 20068: ef ef ef ef -# CHECK-NEXT: 2006c: ef ef ef ef +# CHECK-NEXT: 20064: ef ef ef ef trap_ri +# CHECK-NEXT: 20068: ef ef ef ef trap_ri +# CHECK-NEXT: 2006c: ef ef ef ef trap_ri # CHECK: fnpic: # CHECK-NEXT: 20070: 00 00 00 00 nop # CHECK-NEXT: Disassembly of section differentos: @@ -93,13 +93,13 @@ # REVERSE-NEXT: 2002c: 08 00 80 10 j 131136 # REVERSE-NEXT: 20030: 27 39 00 40 addiu $25, $25, 64 # REVERSE-NEXT: 20034: 00 00 00 00 nop -# REVERSE-NEXT: 20038: ef ef ef ef -# REVERSE-NEXT: 2003c: ef ef ef ef +# REVERSE-NEXT: 20038: ef ef ef ef trap_ri +# REVERSE-NEXT: 2003c: ef ef ef ef trap_ri # REVERSE: foo2: # REVERSE-NEXT: 20040: 00 00 00 00 nop -# REVERSE-NEXT: 20044: ef ef ef ef -# REVERSE-NEXT: 20048: ef ef ef ef -# REVERSE-NEXT: 2004c: ef ef ef ef +# REVERSE-NEXT: 20044: ef ef ef ef trap_ri +# REVERSE-NEXT: 20048: ef ef ef ef trap_ri +# REVERSE-NEXT: 2004c: ef ef ef ef trap_ri # REVERSE: __LA25Thunk_fpic: # REVERSE-NEXT: 20050: 3c 19 00 02 lui $25, 2 # REVERSE-NEXT: 20054: 08 00 80 18 j 131168 @@ -107,9 +107,9 @@ # REVERSE-NEXT: 2005c: 00 00 00 00 nop # REVERSE: fpic: # REVERSE-NEXT: 20060: 00 00 00 00 nop -# REVERSE-NEXT: 20064: ef ef ef ef -# REVERSE-NEXT: 20068: ef ef ef ef -# REVERSE-NEXT: 2006c: ef ef ef ef +# REVERSE-NEXT: 20064: ef ef ef ef trap_ri +# REVERSE-NEXT: 20068: ef ef ef ef trap_ri +# REVERSE-NEXT: 2006c: ef ef ef ef trap_ri # REVERSE: fnpic: # REVERSE-NEXT: 20070: 00 00 00 00 nop # REVERSE-NEXT: Disassembly of section differentos: Index: lld/test/ELF/mips-npic-call-pic-script.s =================================================================== --- lld/test/ELF/mips-npic-call-pic-script.s +++ lld/test/ELF/mips-npic-call-pic-script.s @@ -33,77 +33,77 @@ # CHECK-NEXT: 2002c: 08 00 80 10 j 131136 # CHECK-NEXT: 20030: 27 39 00 40 addiu $25, $25, 64 # CHECK-NEXT: 20034: 00 00 00 00 nop -# CHECK-NEXT: 20038: ef ef ef ef -# CHECK-NEXT: 2003c: ef ef ef ef +# CHECK-NEXT: 20038: ef ef ef ef trap_ri +# CHECK-NEXT: 2003c: ef ef ef ef trap_ri # CHECK: foo2: # CHECK-NEXT: 20040: 00 00 00 00 nop -# CHECK-NEXT: 20044: ef ef ef ef -# CHECK-NEXT: 20048: ef ef ef ef -# CHECK-NEXT: 2004c: ef ef ef ef -# CHECK-NEXT: 20050: ef ef ef ef -# CHECK-NEXT: 20054: ef ef ef ef -# CHECK-NEXT: 20058: ef ef ef ef -# CHECK-NEXT: 2005c: ef ef ef ef -# CHECK-NEXT: 20060: ef ef ef ef -# CHECK-NEXT: 20064: ef ef ef ef -# CHECK-NEXT: 20068: ef ef ef ef -# CHECK-NEXT: 2006c: ef ef ef ef -# CHECK-NEXT: 20070: ef ef ef ef -# CHECK-NEXT: 20074: ef ef ef ef -# CHECK-NEXT: 20078: ef ef ef ef -# CHECK-NEXT: 2007c: ef ef ef ef -# CHECK-NEXT: 20080: ef ef ef ef -# CHECK-NEXT: 20084: ef ef ef ef -# CHECK-NEXT: 20088: ef ef ef ef -# CHECK-NEXT: 2008c: ef ef ef ef -# CHECK-NEXT: 20090: ef ef ef ef -# CHECK-NEXT: 20094: ef ef ef ef -# CHECK-NEXT: 20098: ef ef ef ef -# CHECK-NEXT: 2009c: ef ef ef ef -# CHECK-NEXT: 200a0: ef ef ef ef -# CHECK-NEXT: 200a4: ef ef ef ef -# CHECK-NEXT: 200a8: ef ef ef ef -# CHECK-NEXT: 200ac: ef ef ef ef -# CHECK-NEXT: 200b0: ef ef ef ef -# CHECK-NEXT: 200b4: ef ef ef ef -# CHECK-NEXT: 200b8: ef ef ef ef -# CHECK-NEXT: 200bc: ef ef ef ef -# CHECK-NEXT: 200c0: ef ef ef ef -# CHECK-NEXT: 200c4: ef ef ef ef -# CHECK-NEXT: 200c8: ef ef ef ef -# CHECK-NEXT: 200cc: ef ef ef ef -# CHECK-NEXT: 200d0: ef ef ef ef -# CHECK-NEXT: 200d4: ef ef ef ef -# CHECK-NEXT: 200d8: ef ef ef ef -# CHECK-NEXT: 200dc: ef ef ef ef -# CHECK-NEXT: 200e0: ef ef ef ef -# CHECK-NEXT: 200e4: ef ef ef ef -# CHECK-NEXT: 200e8: ef ef ef ef -# CHECK-NEXT: 200ec: ef ef ef ef -# CHECK-NEXT: 200f0: ef ef ef ef -# CHECK-NEXT: 200f4: ef ef ef ef -# CHECK-NEXT: 200f8: ef ef ef ef -# CHECK-NEXT: 200fc: ef ef ef ef -# CHECK-NEXT: 20100: ef ef ef ef -# CHECK-NEXT: 20104: ef ef ef ef -# CHECK-NEXT: 20108: ef ef ef ef -# CHECK-NEXT: 2010c: ef ef ef ef -# CHECK-NEXT: 20110: ef ef ef ef -# CHECK-NEXT: 20114: ef ef ef ef -# CHECK-NEXT: 20118: ef ef ef ef -# CHECK-NEXT: 2011c: ef ef ef ef -# CHECK-NEXT: 20120: ef ef ef ef -# CHECK-NEXT: 20124: ef ef ef ef -# CHECK-NEXT: 20128: ef ef ef ef -# CHECK-NEXT: 2012c: ef ef ef ef -# CHECK-NEXT: 20130: ef ef ef ef -# CHECK-NEXT: 20134: ef ef ef ef -# CHECK-NEXT: 20138: ef ef ef ef -# CHECK-NEXT: 2013c: ef ef ef ef -# CHECK-NEXT: 20140: ef ef ef ef -# CHECK-NEXT: 20144: ef ef ef ef -# CHECK-NEXT: 20148: ef ef ef ef -# CHECK-NEXT: 2014c: ef ef ef ef +# CHECK-NEXT: 20044: ef ef ef ef trap_ri +# CHECK-NEXT: 20048: ef ef ef ef trap_ri +# CHECK-NEXT: 2004c: ef ef ef ef trap_ri +# CHECK-NEXT: 20050: ef ef ef ef trap_ri +# CHECK-NEXT: 20054: ef ef ef ef trap_ri +# CHECK-NEXT: 20058: ef ef ef ef trap_ri +# CHECK-NEXT: 2005c: ef ef ef ef trap_ri +# CHECK-NEXT: 20060: ef ef ef ef trap_ri +# CHECK-NEXT: 20064: ef ef ef ef trap_ri +# CHECK-NEXT: 20068: ef ef ef ef trap_ri +# CHECK-NEXT: 2006c: ef ef ef ef trap_ri +# CHECK-NEXT: 20070: ef ef ef ef trap_ri +# CHECK-NEXT: 20074: ef ef ef ef trap_ri +# CHECK-NEXT: 20078: ef ef ef ef trap_ri +# CHECK-NEXT: 2007c: ef ef ef ef trap_ri +# CHECK-NEXT: 20080: ef ef ef ef trap_ri +# CHECK-NEXT: 20084: ef ef ef ef trap_ri +# CHECK-NEXT: 20088: ef ef ef ef trap_ri +# CHECK-NEXT: 2008c: ef ef ef ef trap_ri +# CHECK-NEXT: 20090: ef ef ef ef trap_ri +# CHECK-NEXT: 20094: ef ef ef ef trap_ri +# CHECK-NEXT: 20098: ef ef ef ef trap_ri +# CHECK-NEXT: 2009c: ef ef ef ef trap_ri +# CHECK-NEXT: 200a0: ef ef ef ef trap_ri +# CHECK-NEXT: 200a4: ef ef ef ef trap_ri +# CHECK-NEXT: 200a8: ef ef ef ef trap_ri +# CHECK-NEXT: 200ac: ef ef ef ef trap_ri +# CHECK-NEXT: 200b0: ef ef ef ef trap_ri +# CHECK-NEXT: 200b4: ef ef ef ef trap_ri +# CHECK-NEXT: 200b8: ef ef ef ef trap_ri +# CHECK-NEXT: 200bc: ef ef ef ef trap_ri +# CHECK-NEXT: 200c0: ef ef ef ef trap_ri +# CHECK-NEXT: 200c4: ef ef ef ef trap_ri +# CHECK-NEXT: 200c8: ef ef ef ef trap_ri +# CHECK-NEXT: 200cc: ef ef ef ef trap_ri +# CHECK-NEXT: 200d0: ef ef ef ef trap_ri +# CHECK-NEXT: 200d4: ef ef ef ef trap_ri +# CHECK-NEXT: 200d8: ef ef ef ef trap_ri +# CHECK-NEXT: 200dc: ef ef ef ef trap_ri +# CHECK-NEXT: 200e0: ef ef ef ef trap_ri +# CHECK-NEXT: 200e4: ef ef ef ef trap_ri +# CHECK-NEXT: 200e8: ef ef ef ef trap_ri +# CHECK-NEXT: 200ec: ef ef ef ef trap_ri +# CHECK-NEXT: 200f0: ef ef ef ef trap_ri +# CHECK-NEXT: 200f4: ef ef ef ef trap_ri +# CHECK-NEXT: 200f8: ef ef ef ef trap_ri +# CHECK-NEXT: 200fc: ef ef ef ef trap_ri +# CHECK-NEXT: 20100: ef ef ef ef trap_ri +# CHECK-NEXT: 20104: ef ef ef ef trap_ri +# CHECK-NEXT: 20108: ef ef ef ef trap_ri +# CHECK-NEXT: 2010c: ef ef ef ef trap_ri +# CHECK-NEXT: 20110: ef ef ef ef trap_ri +# CHECK-NEXT: 20114: ef ef ef ef trap_ri +# CHECK-NEXT: 20118: ef ef ef ef trap_ri +# CHECK-NEXT: 2011c: ef ef ef ef trap_ri +# CHECK-NEXT: 20120: ef ef ef ef trap_ri +# CHECK-NEXT: 20124: ef ef ef ef trap_ri +# CHECK-NEXT: 20128: ef ef ef ef trap_ri +# CHECK-NEXT: 2012c: ef ef ef ef trap_ri +# CHECK-NEXT: 20130: ef ef ef ef trap_ri +# CHECK-NEXT: 20134: ef ef ef ef trap_ri +# CHECK-NEXT: 20138: ef ef ef ef trap_ri +# CHECK-NEXT: 2013c: ef ef ef ef trap_ri +# CHECK-NEXT: 20140: ef ef ef ef trap_ri +# CHECK-NEXT: 20144: ef ef ef ef trap_ri +# CHECK-NEXT: 20148: ef ef ef ef trap_ri +# CHECK-NEXT: 2014c: ef ef ef ef trap_ri # CHECK: __start: # CHECK-NEXT: 20150: 0c 00 80 00 jal 131072 <__LA25Thunk_foo1a> # CHECK-NEXT: 20154: 00 00 00 00 nop @@ -124,9 +124,9 @@ # CHECK-NEXT: 2018c: 00 00 00 00 nop # CHECK: fpic: # CHECK-NEXT: 20190: 00 00 00 00 nop -# CHECK-NEXT: 20194: ef ef ef ef -# CHECK-NEXT: 20198: ef ef ef ef -# CHECK-NEXT: 2019c: ef ef ef ef +# CHECK-NEXT: 20194: ef ef ef ef trap_ri +# CHECK-NEXT: 20198: ef ef ef ef trap_ri +# CHECK-NEXT: 2019c: ef ef ef ef trap_ri # CHECK: fnpic: # CHECK-NEXT: 201a0: 00 00 00 00 nop @@ -166,9 +166,9 @@ # ORPH1-NEXT: 2003c: 00 00 00 00 nop # ORPH1: fpic: # ORPH1-NEXT: 20040: 00 00 00 00 nop -# ORPH1-NEXT: 20044: ef ef ef ef -# ORPH1-NEXT: 20048: ef ef ef ef -# ORPH1-NEXT: 2004c: ef ef ef ef +# ORPH1-NEXT: 20044: ef ef ef ef trap_ri +# ORPH1-NEXT: 20048: ef ef ef ef trap_ri +# ORPH1-NEXT: 2004c: ef ef ef ef trap_ri # ORPH1: fnpic: # ORPH1-NEXT: 20050: 00 00 00 00 nop # ORPH1: __LA25Thunk_foo1a: @@ -181,9 +181,9 @@ # ORPH1-NEXT: 20068: 08 00 80 21 j 131204 # ORPH1-NEXT: 2006c: 27 39 00 84 addiu $25, $25, 132 # ORPH1-NEXT: 20070: 00 00 00 00 nop -# ORPH1-NEXT: 20074: ef ef ef ef -# ORPH1-NEXT: 20078: ef ef ef ef -# ORPH1-NEXT: 2007c: ef ef ef ef +# ORPH1-NEXT: 20074: ef ef ef ef trap_ri +# ORPH1-NEXT: 20078: ef ef ef ef trap_ri +# ORPH1-NEXT: 2007c: ef ef ef ef trap_ri # ORPH1: foo1a: # ORPH1-NEXT: 20080: 00 00 00 00 nop # ORPH1: foo1b: @@ -193,8 +193,8 @@ # ORPH1-NEXT: 2008c: 08 00 80 28 j 131232 # ORPH1-NEXT: 20090: 27 39 00 a0 addiu $25, $25, 160 # ORPH1-NEXT: 20094: 00 00 00 00 nop -# ORPH1-NEXT: 20098: ef ef ef ef -# ORPH1-NEXT: 2009c: ef ef ef ef +# ORPH1-NEXT: 20098: ef ef ef ef trap_ri +# ORPH1-NEXT: 2009c: ef ef ef ef trap_ri # ORPH1: foo2: # ORPH1-NEXT: 200a0: 00 00 00 00 nop @@ -224,9 +224,9 @@ # ORPH2-NEXT: 2003c: 00 00 00 00 nop # ORPH2: fpic: # ORPH2-NEXT: 20040: 00 00 00 00 nop -# ORPH2-NEXT: 20044: ef ef ef ef -# ORPH2-NEXT: 20048: ef ef ef ef -# ORPH2-NEXT: 2004c: ef ef ef ef +# ORPH2-NEXT: 20044: ef ef ef ef trap_ri +# ORPH2-NEXT: 20048: ef ef ef ef trap_ri +# ORPH2-NEXT: 2004c: ef ef ef ef trap_ri # ORPH2: fnpic: # ORPH2-NEXT: 20050: 00 00 00 00 nop # ORPH2-NEXT: Disassembly of section .text: @@ -249,7 +249,7 @@ # ORPH2-NEXT: 2008c: 08 00 80 28 j 131232 # ORPH2-NEXT: 20090: 27 39 00 a0 addiu $25, $25, 160 # ORPH2-NEXT: 20094: 00 00 00 00 nop -# ORPH2-NEXT: 20098: ef ef ef ef -# ORPH2-NEXT: 2009c: ef ef ef ef +# ORPH2-NEXT: 20098: ef ef ef ef trap_ri +# ORPH2-NEXT: 2009c: ef ef ef ef trap_ri # ORPH2: foo2: # ORPH2-NEXT: 200a0: 00 00 00 00 nop Index: lld/test/ELF/mips-npic-call-pic.s =================================================================== --- lld/test/ELF/mips-npic-call-pic.s +++ lld/test/ELF/mips-npic-call-pic.s @@ -51,8 +51,8 @@ # CHECK-NEXT: 2005c: 08 00 80 1c j 131184 # CHECK-NEXT: 20060: 27 39 00 70 addiu $25, $25, 112 # CHECK-NEXT: 20064: 00 00 00 00 nop -# CHECK-NEXT: 20068: ef ef ef ef -# CHECK-NEXT: 2006c: ef ef ef ef +# CHECK-NEXT: 20068: ef ef ef ef trap_ri +# CHECK-NEXT: 2006c: ef ef ef ef trap_ri # CHECK: foo2: # CHECK-NEXT: 20070: 00 00 00 00 nop @@ -62,15 +62,15 @@ # CHECK-NEXT: 20078: 08 00 80 24 j 131216 # CHECK-NEXT: 2007c: 27 39 00 90 addiu $25, $25, 144 # CHECK-NEXT: 20080: 00 00 00 00 nop -# CHECK-NEXT: 20084: ef ef ef ef -# CHECK-NEXT: 20088: ef ef ef ef -# CHECK-NEXT: 2008c: ef ef ef ef +# CHECK-NEXT: 20084: ef ef ef ef trap_ri +# CHECK-NEXT: 20088: ef ef ef ef trap_ri +# CHECK-NEXT: 2008c: ef ef ef ef trap_ri # CHECK: fpic: # CHECK-NEXT: 20090: 00 00 00 00 nop -# CHECK-NEXT: 20094: ef ef ef ef -# CHECK-NEXT: 20098: ef ef ef ef -# CHECK-NEXT: 2009c: ef ef ef ef +# CHECK-NEXT: 20094: ef ef ef ef trap_ri +# CHECK-NEXT: 20098: ef ef ef ef trap_ri +# CHECK-NEXT: 2009c: ef ef ef ef trap_ri # CHECK: fnpic: # CHECK-NEXT: 200a0: 00 00 00 00 nop @@ -101,13 +101,13 @@ # REVERSE-NEXT: 2002c: 08 00 80 10 j 131136 # REVERSE-NEXT: 20030: 27 39 00 40 addiu $25, $25, 64 # REVERSE-NEXT: 20034: 00 00 00 00 nop -# REVERSE-NEXT: 20038: ef ef ef ef -# REVERSE-NEXT: 2003c: ef ef ef ef +# REVERSE-NEXT: 20038: ef ef ef ef trap_ri +# REVERSE-NEXT: 2003c: ef ef ef ef trap_ri # REVERSE: foo2: # REVERSE-NEXT: 20040: 00 00 00 00 nop -# REVERSE-NEXT: 20044: ef ef ef ef -# REVERSE-NEXT: 20048: ef ef ef ef -# REVERSE-NEXT: 2004c: ef ef ef ef +# REVERSE-NEXT: 20044: ef ef ef ef trap_ri +# REVERSE-NEXT: 20048: ef ef ef ef trap_ri +# REVERSE-NEXT: 2004c: ef ef ef ef trap_ri # REVERSE: __start: # REVERSE-NEXT: 20050: 0c 00 80 00 jal 131072 <__LA25Thunk_foo1a> # REVERSE-NEXT: 20054: 00 00 00 00 nop @@ -128,9 +128,9 @@ # REVERSE-NEXT: 2008c: 00 00 00 00 nop # REVERSE: fpic: # REVERSE-NEXT: 20090: 00 00 00 00 nop -# REVERSE-NEXT: 20094: ef ef ef ef -# REVERSE-NEXT: 20098: ef ef ef ef -# REVERSE-NEXT: 2009c: ef ef ef ef +# REVERSE-NEXT: 20094: ef ef ef ef trap_ri +# REVERSE-NEXT: 20098: ef ef ef ef trap_ri +# REVERSE-NEXT: 2009c: ef ef ef ef trap_ri # REVERSE: fnpic: # REVERSE-NEXT: 200a0: 00 00 00 00 nop Index: llvm/lib/Target/Mips/MipsInstrFormats.td =================================================================== --- llvm/lib/Target/Mips/MipsInstrFormats.td +++ llvm/lib/Target/Mips/MipsInstrFormats.td @@ -970,3 +970,10 @@ let Inst{20-16} = hint; let Inst{15-0} = offset; } + +class TRAP_RI_FM : + InstSE<(outs), (ins), asmstr, [], II_TRAP, FrmOther> { + bits<32> Inst; + let Inst{31-0} = 0xefefefef; +} + Index: llvm/lib/Target/Mips/MipsInstrInfo.td =================================================================== --- llvm/lib/Target/Mips/MipsInstrInfo.td +++ llvm/lib/Target/Mips/MipsInstrInfo.td @@ -2189,6 +2189,8 @@ /// No operation. def NOP : PseudoSE<(outs), (ins), []>, PseudoInstExpansion<(SLL ZERO, ZERO, 0)>; +/// Reserved instruction trap (use as padding by LLD) +def TRAP_RI : TRAP_RI_FM<"trap_ri">; // FrameIndexes are legalized when they are operands from load/store // instructions. The same not happens for stack address copies, so an Index: llvm/test/MC/Mips/disas-lld-trap-padding.s =================================================================== --- /dev/null +++ llvm/test/MC/Mips/disas-lld-trap-padding.s @@ -0,0 +1,4 @@ +# RUN: echo "0xef 0xef 0xef 0xef" | llvm-mc -disassemble -triple=mips64-unknown-linux-gnu | FileCheck %s +# CHECK: .text +# CHECK-NEXT: trap_ri +