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
)
7 # CHECK-NEXT: Value: 0x0
9 # CHECK-NEXT: Binding: Global
10 # CHECK-NEXT: Type: TLS
11 # CHECK-NEXT: Other: 0
12 # CHECK-NEXT: Section: Undefined
15 pcalau12i $a1
, %gd_pc_hi20
(gd_pcrel
)
16 # CHECK-NEXT: Symbol {
17 # CHECK-NEXT: Name: gd_pcrel
18 # CHECK-NEXT: Value: 0x0
20 # CHECK-NEXT: Binding: Global
21 # CHECK-NEXT: Type: TLS
22 # CHECK-NEXT: Other: 0
23 # CHECK-NEXT: Section: Undefined
26 lu12i.w $a1
, %ld_hi20
(ld_abs
)
27 # CHECK-NEXT: Symbol {
28 # CHECK-NEXT: Name: ld_abs
29 # CHECK-NEXT: Value: 0x0
31 # CHECK-NEXT: Binding: Global
32 # CHECK-NEXT: Type: TLS
33 # CHECK-NEXT: Other: 0
34 # CHECK-NEXT: Section: Undefined
37 pcalau12i $a1
, %ld_pc_hi20
(ld_pcrel
)
38 # CHECK-NEXT: Symbol {
39 # CHECK-NEXT: Name: ld_pcrel
40 # CHECK-NEXT: Value: 0x0
42 # CHECK-NEXT: Binding: Global
43 # CHECK-NEXT: Type: TLS
44 # CHECK-NEXT: Other: 0
45 # CHECK-NEXT: Section: Undefined
48 lu12i.w $a1
, %ie_hi20
(ie_abs
)
49 # CHECK-NEXT: Symbol {
50 # CHECK-NEXT: Name: ie_abs
51 # CHECK-NEXT: Value: 0x0
53 # CHECK-NEXT: Binding: Global
54 # CHECK-NEXT: Type: TLS
55 # CHECK-NEXT: Other: 0
56 # CHECK-NEXT: Section: Undefined
59 pcalau12i $a1
, %ie_pc_hi20
(ie_pcrel
)
60 # CHECK-NEXT: Symbol {
61 # CHECK-NEXT: Name: ie_pcrel
62 # CHECK-NEXT: Value: 0x0
64 # CHECK-NEXT: Binding: Global
65 # CHECK-NEXT: Type: TLS
66 # CHECK-NEXT: Other: 0
67 # CHECK-NEXT: Section: Undefined
70 lu12i.w $a1
, %le_hi20
(le
)
71 # CHECK-NEXT: Symbol {
72 # CHECK-NEXT: Name: le
73 # CHECK-NEXT: Value: 0x0
75 # CHECK-NEXT: Binding: Global
76 # CHECK-NEXT: Type: TLS
77 # CHECK-NEXT: Other: 0
78 # CHECK-NEXT: Section: Undefined
81 pcalau12i $a1
, %desc_pc_hi20
(desc_pc
)
82 # CHECK-NEXT: Symbol {
83 # CHECK-NEXT: Name: desc_pc
84 # CHECK-NEXT: Value: 0x0
86 # CHECK-NEXT: Binding: Global
87 # CHECK-NEXT: Type: TLS
88 # CHECK-NEXT: Other: 0
89 # CHECK-NEXT: Section: Undefined
92 lu12i.w $a1
, %desc_hi20
(desc_abs
)
93 # CHECK-NEXT: Symbol {
94 # CHECK-NEXT: Name: desc_abs
95 # CHECK-NEXT: Value: 0x0
97 # CHECK-NEXT: Binding: Global
98 # CHECK-NEXT: Type: TLS
99 # CHECK-NEXT: Other: 0
100 # CHECK-NEXT: Section: Undefined