Remove check for Android in Mips.cpp (#123793)
[llvm-project.git] / llvm / test / MC / LoongArch / Misc / tls-symbols.s
blob340fea29ed94a31ed74d455f392de3dac4678f68
1 # RUN: llvm-mc --triple=loongarch64 --filetype=obj %s -o %t
2 # RUN: llvm-readobj -s %t | FileCheck %s
4 lu12i.w $a1, %gd_hi20(gd_abs)
5 # CHECK: Symbol {
6 # CHECK: Name: gd_abs
7 # CHECK-NEXT: Value: 0x0
8 # CHECK-NEXT: Size: 0
9 # CHECK-NEXT: Binding: Global
10 # CHECK-NEXT: Type: TLS
11 # CHECK-NEXT: Other: 0
12 # CHECK-NEXT: Section: Undefined
13 # CHECK-NEXT: }
15 pcalau12i $a1, %gd_pc_hi20(gd_pcrel)
16 # CHECK-NEXT: Symbol {
17 # CHECK-NEXT: Name: gd_pcrel
18 # CHECK-NEXT: Value: 0x0
19 # CHECK-NEXT: Size: 0
20 # CHECK-NEXT: Binding: Global
21 # CHECK-NEXT: Type: TLS
22 # CHECK-NEXT: Other: 0
23 # CHECK-NEXT: Section: Undefined
24 # CHECK-NEXT: }
26 lu12i.w $a1, %ld_hi20(ld_abs)
27 # CHECK-NEXT: Symbol {
28 # CHECK-NEXT: Name: ld_abs
29 # CHECK-NEXT: Value: 0x0
30 # CHECK-NEXT: Size: 0
31 # CHECK-NEXT: Binding: Global
32 # CHECK-NEXT: Type: TLS
33 # CHECK-NEXT: Other: 0
34 # CHECK-NEXT: Section: Undefined
35 # CHECK-NEXT: }
37 pcalau12i $a1, %ld_pc_hi20(ld_pcrel)
38 # CHECK-NEXT: Symbol {
39 # CHECK-NEXT: Name: ld_pcrel
40 # CHECK-NEXT: Value: 0x0
41 # CHECK-NEXT: Size: 0
42 # CHECK-NEXT: Binding: Global
43 # CHECK-NEXT: Type: TLS
44 # CHECK-NEXT: Other: 0
45 # CHECK-NEXT: Section: Undefined
46 # CHECK-NEXT: }
48 lu12i.w $a1, %ie_hi20(ie_abs)
49 # CHECK-NEXT: Symbol {
50 # CHECK-NEXT: Name: ie_abs
51 # CHECK-NEXT: Value: 0x0
52 # CHECK-NEXT: Size: 0
53 # CHECK-NEXT: Binding: Global
54 # CHECK-NEXT: Type: TLS
55 # CHECK-NEXT: Other: 0
56 # CHECK-NEXT: Section: Undefined
57 # CHECK-NEXT: }
59 pcalau12i $a1, %ie_pc_hi20(ie_pcrel)
60 # CHECK-NEXT: Symbol {
61 # CHECK-NEXT: Name: ie_pcrel
62 # CHECK-NEXT: Value: 0x0
63 # CHECK-NEXT: Size: 0
64 # CHECK-NEXT: Binding: Global
65 # CHECK-NEXT: Type: TLS
66 # CHECK-NEXT: Other: 0
67 # CHECK-NEXT: Section: Undefined
68 # CHECK-NEXT: }
70 lu12i.w $a1, %le_hi20(le)
71 # CHECK-NEXT: Symbol {
72 # CHECK-NEXT: Name: le
73 # CHECK-NEXT: Value: 0x0
74 # CHECK-NEXT: Size: 0
75 # CHECK-NEXT: Binding: Global
76 # CHECK-NEXT: Type: TLS
77 # CHECK-NEXT: Other: 0
78 # CHECK-NEXT: Section: Undefined
79 # CHECK-NEXT: }
81 pcalau12i $a1, %desc_pc_hi20(desc_pc)
82 # CHECK-NEXT: Symbol {
83 # CHECK-NEXT: Name: desc_pc
84 # CHECK-NEXT: Value: 0x0
85 # CHECK-NEXT: Size: 0
86 # CHECK-NEXT: Binding: Global
87 # CHECK-NEXT: Type: TLS
88 # CHECK-NEXT: Other: 0
89 # CHECK-NEXT: Section: Undefined
90 # CHECK-NEXT: }
92 lu12i.w $a1, %desc_hi20(desc_abs)
93 # CHECK-NEXT: Symbol {
94 # CHECK-NEXT: Name: desc_abs
95 # CHECK-NEXT: Value: 0x0
96 # CHECK-NEXT: Size: 0
97 # CHECK-NEXT: Binding: Global
98 # CHECK-NEXT: Type: TLS
99 # CHECK-NEXT: Other: 0
100 # CHECK-NEXT: Section: Undefined
101 # CHECK-NEXT: }