Mercurial > hg > CbC > CbC_llvm
comparison lld/test/ELF/mips-traps.s @ 150:1d019706d866
LLVM10
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 15:10:13 +0900 |
parents | |
children | c4bab56944e8 |
comparison
equal
deleted
inserted
replaced
147:c2174574ed3a | 150:1d019706d866 |
---|---|
1 # Check trap instruction encoding. | |
2 | |
3 # REQUIRES: mips | |
4 | |
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 -d -r --no-show-raw-insn %t | FileCheck --check-prefix=EB %s | |
8 | |
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 -d -r --no-show-raw-insn %t | FileCheck --check-prefix=EL %s | |
12 | |
13 # EB: 8: sigrie 1 | |
14 # EL: 8: sigrie 1 | |
15 | |
16 .text | |
17 lw $t9, %got(.data)($gp) | |
18 addiu $a0, $t9, %lo(.data) | |
19 | |
20 .data | |
21 data: | |
22 .word 0 |