File tree Expand file tree Collapse file tree 2 files changed +26
-24
lines changed Expand file tree Collapse file tree 2 files changed +26
-24
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ # RUN: llvm-mc --filetype=obj --triple=loongarch32 %s -o %t-la32
2+ # RUN: llvm-readelf -rs %t-la32 | FileCheck %s --check-prefixes=CHECK,RELOC32
3+ # RUN: llvm-mc --filetype=obj --triple=loongarch64 %s -o %t-la64
4+ # RUN: llvm-readelf -rs %t-la64 | FileCheck %s --check-prefixes=CHECK,RELOC64
5+
6+ ## This test is similar to test/MC/CSKY/relocation-specifier.s.
7+
8+ # RELOC32: '.rela.data'
9+ # RELOC32: R_LARCH_32 00000000 .data + 0
10+
11+ # RELOC64: '.rela.data'
12+ # RELOC64: R_LARCH_32 0000000000000000 .data + 0
13+
14+ # CHECK: TLS GLOBAL DEFAULT UND gd
15+ # CHECK: TLS GLOBAL DEFAULT UND ld
16+ # CHECK: TLS GLOBAL DEFAULT UND ie
17+ # CHECK: TLS GLOBAL DEFAULT UND le
18+
19+ pcalau12i $t1, %gd_pc_hi20(gd)
20+ pcalau12i $t1, %ld_pc_hi20(ld)
21+ pcalau12i $t1, %ie_pc_hi20(ie)
22+ lu12i.w $t1, %le_hi20_r(le)
23+
24+ .data
25+ local:
26+ .long local
You can’t perform that action at this time.
0 commit comments