23 lines · plain
1# Check trap instruction encoding.2 3# REQUIRES: mips4 5# RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux -mcpu=mips32r6 -o %t.o %s6# RUN: ld.lld -r -o %t %t.o %t.o7# RUN: llvm-objdump --no-print-imm-hex -d -r --no-show-raw-insn %t | FileCheck --check-prefix=EB %s8 9# RUN: llvm-mc -filetype=obj -triple=mipsel-unknown-linux -mcpu=mips32r6 -o %t.o %s10# RUN: ld.lld -r -o %t %t.o %t.o11# RUN: llvm-objdump --no-print-imm-hex -d -r --no-show-raw-insn %t | FileCheck --check-prefix=EL %s12 13# EB: 8: sigrie 114# EL: 8: sigrie 115 16 .text17 lw $t9, %got(.data)($gp)18 addiu $a0, $t9, %lo(.data)19 20 .data21data:22 .word 023