Skip to content

Commit 4696831

Browse files
authored
[LoongArch] Move fix-tle-le-sym-type test to test/MC. NFC (#133839)
1 parent ae8dd63 commit 4696831

File tree

2 files changed

+26
-24
lines changed

2 files changed

+26
-24
lines changed

llvm/test/CodeGen/LoongArch/fix-tle-le-sym-type.ll

-24
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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

0 commit comments

Comments
 (0)