[ELF] Make SyntheticSection parameter order match InputSection
[llvm-project.git] / lld / test / ELF / mips-traps.s
blob76b68f85c68920de35d4bb3e4d169a2037ccaee9
1 # Check trap instruction encoding.
3 # REQUIRES: mips
5 # RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux -mcpu=mips32r6 -o %t.o %s
6 # RUN: ld.lld -r -o %t %t.o %t.o
7 # RUN: llvm-objdump --no-print-imm-hex -d -r --no-show-raw-insn %t | FileCheck --check-prefix=EB %s
9 # RUN: llvm-mc -filetype=obj -triple=mipsel-unknown-linux -mcpu=mips32r6 -o %t.o %s
10 # RUN: ld.lld -r -o %t %t.o %t.o
11 # RUN: llvm-objdump --no-print-imm-hex -d -r --no-show-raw-insn %t | FileCheck --check-prefix=EL %s
13 # EB: 8: sigrie 1
14 # EL: 8: sigrie 1
16 .text
17 lw $t9, %got(.data)($gp)
18 addiu $a0, $t9, %lo(.data)
20 .data
21 data:
22 .word 0