Skip to content

Commit 9c7d728

Browse files
zhaoqi5tstellar
authored andcommitted
[LoongArch] Move fix-tle-le-sym-type test to test/MC. NFC (llvm#133839)
(cherry picked from commit 4696831)
1 parent 0c30835 commit 9c7d728

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

Lines changed: 0 additions & 24 deletions
This file was deleted.
Lines changed: 26 additions & 0 deletions
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)