• Home
  • Raw
  • Download

Lines Matching +full:- +full:- +full:target

2 # RUN: llvm-mc -triple powerpc64-unknown-unknown --show-encoding %s | FileCheck -check-prefix=CHECK
3 # RUN: llvm-mc -triple powerpc64le-unknown-unknown --show-encoding %s | FileCheck -check-prefix=CHE…
5 # RUN: llvm-mc -triple powerpc64-unknown-unknown -filetype=obj %s | \
6 # RUN: llvm-readobj -r | FileCheck %s -check-prefix=CHECK-BE-REL
7 # RUN: llvm-mc -triple powerpc64le-unknown-unknown -filetype=obj %s | \
8 # RUN: llvm-readobj -r | FileCheck %s -check-prefix=CHECK-LE-REL
10 # CHECK-BE: b target # encoding: [0b010010AA,A,A,0bAAAAAA00]
11 # CHECK-LE: b target # encoding: [0bAAAAAA00,A,A,0b010010AA]
12 # CHECK-BE-NEXT: # fixup A - offset: 0, value: target, kind: fixup_ppc…
13 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target, kind: fixup_ppc…
14 # CHECK-BE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_REL24 target 0x0
15 # CHECK-LE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_REL24 target 0x0
16 b target
18 # CHECK-BE: ba target # encoding: [0b010010AA,A,A,0bAAAAAA10]
19 # CHECK-LE: ba target # encoding: [0bAAAAAA10,A,A,0b010010AA]
20 # CHECK-BE-NEXT: # fixup A - offset: 0, value: target, kind: fixup_ppc…
21 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target, kind: fixup_ppc…
22 # CHECK-BE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_ADDR24 target 0x0
23 # CHECK-LE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_ADDR24 target 0x0
24 ba target
26 # CHECK-BE: beq 0, target # encoding: [0x41,0x82,A,0bAAAAAA00]
27 # CHECK-LE: beq 0, target # encoding: [0bAAAAAA00,A,0x82,0x41]
28 # CHECK-BE-NEXT: # fixup A - offset: 0, value: target, kind: fixup_ppc…
29 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target, kind: fixup_ppc…
30 # CHECK-BE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_REL14 target 0x0
31 # CHECK-LE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_REL14 target 0x0
32 beq target
34 # CHECK-BE: beqa 0, target # encoding: [0x41,0x82,A,0bAAAAAA10]
35 # CHECK-LE: beqa 0, target # encoding: [0bAAAAAA10,A,0x82,0x41]
36 # CHECK-BE-NEXT: # fixup A - offset: 0, value: target, kind: fixup_ppc…
37 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target, kind: fixup_ppc…
38 # CHECK-BE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_ADDR14 target 0x0
39 # CHECK-LE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_ADDR14 target 0x0
40 beqa target
43 # CHECK-BE: li 3, target@l # encoding: [0x38,0x60,A,A]
44 # CHECK-LE: li 3, target@l # encoding: [A,A,0x60,0x38]
45 # CHECK-BE-NEXT: # fixup A - offset: 2, value: target@l, kind: fixup_p…
46 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target@l, kind: fixup_p…
47 # CHECK-BE-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_ADDR16_LO target 0x0
48 # CHECK-LE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_ADDR16_LO target 0x0
49 li 3, target@l
51 # CHECK-BE: addis 3, 3, target@ha # encoding: [0x3c,0x63,A,A]
52 # CHECK-LE: addis 3, 3, target@ha # encoding: [A,A,0x63,0x3c]
53 # CHECK-BE-NEXT: # fixup A - offset: 2, value: target@ha, kind: fixup_…
54 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target@ha, kind: fixup_…
55 # CHECK-BE-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_ADDR16_HA target 0x0
56 # CHECK-LE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_ADDR16_HA target 0x0
57 addis 3, 3, target@ha
59 # CHECK-BE: lis 3, target@ha # encoding: [0x3c,0x60,A,A]
60 # CHECK-LE: lis 3, target@ha # encoding: [A,A,0x60,0x3c]
61 # CHECK-BE-NEXT: # fixup A - offset: 2, value: target@ha, kind: fixup_…
62 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target@ha, kind: fixup_…
63 # CHECK-BE-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_ADDR16_HA target 0x0
64 # CHECK-LE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_ADDR16_HA target 0x0
65 lis 3, target@ha
67 # CHECK-BE: addi 4, 3, target@l # encoding: [0x38,0x83,A,A]
68 # CHECK-LE: addi 4, 3, target@l # encoding: [A,A,0x83,0x38]
69 # CHECK-BE-NEXT: # fixup A - offset: 2, value: target@l, kind: fixup_p…
70 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target@l, kind: fixup_p…
71 # CHECK-BE-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_ADDR16_LO target 0x0
72 # CHECK-LE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_ADDR16_LO target 0x0
73 addi 4, 3, target@l
75 # CHECK-BE: li 3, target@ha # encoding: [0x38,0x60,A,A]
76 # CHECK-LE: li 3, target@ha # encoding: [A,A,0x60,0x38]
77 # CHECK-BE-NEXT: # fixup A - offset: 2, value: target@ha, kind: fixup_…
78 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target@ha, kind: fixup_…
79 # CHECK-BE-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_ADDR16_HA target 0x0
80 # CHECK-LE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_ADDR16_HA target 0x0
81 li 3, target@ha
83 # CHECK-BE: lis 3, target@l # encoding: [0x3c,0x60,A,A]
84 # CHECK-LE: lis 3, target@l # encoding: [A,A,0x60,0x3c]
85 # CHECK-BE-NEXT: # fixup A - offset: 2, value: target@l, kind: fixup_p…
86 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target@l, kind: fixup_p…
87 # CHECK-BE-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_ADDR16_LO target 0x0
88 # CHECK-LE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_ADDR16_LO target 0x0
89 lis 3, target@l
91 # CHECK-BE: li 3, target@h # encoding: [0x38,0x60,A,A]
92 # CHECK-LE: li 3, target@h # encoding: [A,A,0x60,0x38]
93 # CHECK-BE-NEXT: # fixup A - offset: 2, value: target@h, kind: fixup_p…
94 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target@h, kind: fixup_p…
95 # CHECK-BE-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_ADDR16_HI target 0x0
96 # CHECK-LE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_ADDR16_HI target 0x0
97 li 3, target@h
99 # CHECK-BE: lis 3, target@h # encoding: [0x3c,0x60,A,A]
100 # CHECK-LE: lis 3, target@h # encoding: [A,A,0x60,0x3c]
101 # CHECK-BE-NEXT: # fixup A - offset: 2, value: target@h, kind: fixup_p…
102 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target@h, kind: fixup_p…
103 # CHECK-BE-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_ADDR16_HI target 0x0
104 # CHECK-LE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_ADDR16_HI target 0x0
105 lis 3, target@h
107 # CHECK-BE: li 3, target@higher # encoding: [0x38,0x60,A,A]
108 # CHECK-LE: li 3, target@higher # encoding: [A,A,0x60,0x38]
109 # CHECK-BE-NEXT: # fixup A - offset: 2, value: target@higher, kind: fi…
110 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target@higher, kind: fi…
111 # CHECK-BE-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_ADDR16_HIGHER target 0x0
112 # CHECK-LE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_ADDR16_HIGHER target 0x0
113 li 3, target@higher
115 # CHECK-BE: lis 3, target@highest # encoding: [0x3c,0x60,A,A]
116 # CHECK-LE: lis 3, target@highest # encoding: [A,A,0x60,0x3c]
117 # CHECK-BE-NEXT: # fixup A - offset: 2, value: target@highest, kind: f…
118 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target@highest, kind: f…
119 # CHECK-BE-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_ADDR16_HIGHEST target 0x0
120 # CHECK-LE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_ADDR16_HIGHEST target 0x0
121 lis 3, target@highest
123 # CHECK-BE: li 3, target@highera # encoding: [0x38,0x60,A,A]
124 # CHECK-LE: li 3, target@highera # encoding: [A,A,0x60,0x38]
125 # CHECK-BE-NEXT: # fixup A - offset: 2, value: target@highera, kind: f…
126 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target@highera, kind: f…
127 # CHECK-BE-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_ADDR16_HIGHERA target 0x0
128 # CHECK-LE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_ADDR16_HIGHERA target 0x0
129 li 3, target@highera
131 # CHECK-BE: lis 3, target@highesta # encoding: [0x3c,0x60,A,A]
132 # CHECK-LE: lis 3, target@highesta # encoding: [A,A,0x60,0x3c]
133 # CHECK-BE-NEXT: # fixup A - offset: 2, value: target@highesta, kind: …
134 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target@highesta, kind: …
135 # CHECK-BE-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_ADDR16_HIGHESTA target 0x0
136 # CHECK-LE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_ADDR16_HIGHESTA target 0x0
137 lis 3, target@highesta
139 # CHECK-BE: lwz 1, target@l(3) # encoding: [0x80,0x23,A,A]
140 # CHECK-LE: lwz 1, target@l(3) # encoding: [A,A,0x23,0x80]
141 # CHECK-BE-NEXT: # fixup A - offset: 2, value: target@l, kind: fixup_p…
142 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target@l, kind: fixup_p…
143 # CHECK-BE-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_ADDR16_LO target 0x0
144 # CHECK-LE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_ADDR16_LO target 0x0
145 lwz 1, target@l(3)
147 # CHECK-BE: lwz 1, target(3) # encoding: [0x80,0x23,A,A]
148 # CHECK-LE: lwz 1, target(3) # encoding: [A,A,0x23,0x80]
149 # CHECK-BE-NEXT: # fixup A - offset: 2, value: target, kind: fixup_ppc…
150 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target, kind: fixup_ppc…
151 # CHECK-BE-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_ADDR16 target 0x0
152 # CHECK-LE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_ADDR16 target 0x0
153 lwz 1, target(3)
155 # CHECK-BE: ld 1, target@l(3) # encoding: [0xe8,0x23,A,0bAAAAAA00]
156 # CHECK-LE: ld 1, target@l(3) # encoding: [0bAAAAAA00,A,0x23,0xe8]
157 # CHECK-BE-NEXT: # fixup A - offset: 2, value: target@l, kind: fixup_p…
158 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target@l, kind: fixup_p…
159 # CHECK-BE-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_ADDR16_LO_DS target 0x0
160 # CHECK-LE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_ADDR16_LO_DS target 0x0
161 ld 1, target@l(3)
163 # CHECK-BE: ld 1, target(3) # encoding: [0xe8,0x23,A,0bAAAAAA00]
164 # CHECK-LE: ld 1, target(3) # encoding: [0bAAAAAA00,A,0x23,0xe8]
165 # CHECK-BE-NEXT: # fixup A - offset: 2, value: target, kind: fixup_ppc…
166 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target, kind: fixup_ppc…
167 # CHECK-BE-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_ADDR16_DS target 0x0
168 # CHECK-LE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_ADDR16_DS target 0x0
169 ld 1, target(3)
172 # CHECK-BE: lwz 1, target-base(3) # encoding: [0x80,0x23,A,A]
173 # CHECK-LE: lwz 1, target-base(3) # encoding: [A,A,0x23,0x80]
174 # CHECK-BE-NEXT: # fixup A - offset: 2, value: target-base, kind: fixu…
175 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target-base, kind: fixu…
176 # CHECK-BE-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_REL16 target 0x2
177 # CHECK-LE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_REL16 target 0x0
178 lwz 1, target-base(3)
180 # CHECK-BE: li 3, target-base@h # encoding: [0x38,0x60,A,A]
181 # CHECK-LE: li 3, target-base@h # encoding: [A,A,0x60,0x38]
182 # CHECK-BE-NEXT: # fixup A - offset: 2, value: target-base@h, kind: fi…
183 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target-base@h, kind: fi…
184 # CHECK-BE-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_REL16_HI target 0x6
185 # CHECK-LE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_REL16_HI target 0x4
186 li 3, target-base@h
188 # CHECK-BE: li 3, target-base@l # encoding: [0x38,0x60,A,A]
189 # CHECK-LE: li 3, target-base@l # encoding: [A,A,0x60,0x38]
190 # CHECK-BE-NEXT: # fixup A - offset: 2, value: target-base@l, kind: fi…
191 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target-base@l, kind: fi…
192 # CHECK-BE-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_REL16_LO target 0xA
193 # CHECK-LE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_REL16_LO target 0x8
194 li 3, target-base@l
196 # CHECK-BE: li 3, target-base@ha # encoding: [0x38,0x60,A,A]
197 # CHECK-LE: li 3, target-base@ha # encoding: [A,A,0x60,0x38]
198 # CHECK-BE-NEXT: # fixup A - offset: 2, value: target-base@ha, kind: f…
199 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target-base@ha, kind: f…
200 # CHECK-BE-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_REL16_HA target 0xE
201 # CHECK-LE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_REL16_HA target 0xC
202 li 3, target-base@ha
204 # CHECK-BE: ori 3, 3, target@l # encoding: [0x60,0x63,A,A]
205 # CHECK-LE: ori 3, 3, target@l # encoding: [A,A,0x63,0x60]
206 # CHECK-BE-NEXT: # fixup A - offset: 2, value: target@l, kind: fixup_p…
207 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target@l, kind: fixup_p…
208 # CHECK-BE-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_ADDR16_LO target 0x0
209 # CHECK-LE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_ADDR16_LO target 0x0
210 ori 3, 3, target@l
212 # CHECK-BE: oris 3, 3, target@h # encoding: [0x64,0x63,A,A]
213 # CHECK-LE: oris 3, 3, target@h # encoding: [A,A,0x63,0x64]
214 # CHECK-BE-NEXT: # fixup A - offset: 2, value: target@h, kind: fixup_p…
215 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target@h, kind: fixup_p…
216 # CHECK-BE-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_ADDR16_HI target 0x0
217 # CHECK-LE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_ADDR16_HI target 0x0
218 oris 3, 3, target@h
220 # CHECK-BE: ld 1, target@toc(2) # encoding: [0xe8,0x22,A,0bAAAAAA00]
221 # CHECK-LE: ld 1, target@toc(2) # encoding: [0bAAAAAA00,A,0x22,0xe8]
222 # CHECK-BE-NEXT: # fixup A - offset: 2, value: target@toc, kind: fixup…
223 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target@toc, kind: fixup…
224 # CHECK-BE-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_TOC16_DS target 0x0
225 # CHECK-LE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_TOC16_DS target 0x0
226 ld 1, target@toc(2)
228 # CHECK-BE: addis 3, 2, target@toc@ha # encoding: [0x3c,0x62,A,A]
229 # CHECK-LE: addis 3, 2, target@toc@ha # encoding: [A,A,0x62,0x3c]
230 # CHECK-BE-NEXT: # fixup A - offset: 2, value: target@toc@ha, kind: fi…
231 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target@toc@ha, kind: fi…
232 # CHECK-BE-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_TOC16_HA target 0x0
233 # CHECK-LE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_TOC16_HA target 0x0
234 addis 3, 2, target@toc@ha
236 # CHECK-BE: addi 4, 3, target@toc@l # encoding: [0x38,0x83,A,A]
237 # CHECK-LE: addi 4, 3, target@toc@l # encoding: [A,A,0x83,0x38]
238 # CHECK-BE-NEXT: # fixup A - offset: 2, value: target@toc@l, kind: fix…
239 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target@toc@l, kind: fix…
240 # CHECK-BE-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_TOC16_LO target 0x0
241 # CHECK-LE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_TOC16_LO target 0x0
242 addi 4, 3, target@toc@l
244 # CHECK-BE: addis 3, 2, target@toc@h # encoding: [0x3c,0x62,A,A]
245 # CHECK-LE: addis 3, 2, target@toc@h # encoding: [A,A,0x62,0x3c]
246 # CHECK-BE-NEXT: # fixup A - offset: 2, value: target@toc@h, kind: fix…
247 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target@toc@h, kind: fix…
248 # CHECK-BE-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_TOC16_HI target 0x0
249 # CHECK-LE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_TOC16_HI target 0x0
250 addis 3, 2, target@toc@h
252 # CHECK-BE: lwz 1, target@toc@l(3) # encoding: [0x80,0x23,A,A]
253 # CHECK-LE: lwz 1, target@toc@l(3) # encoding: [A,A,0x23,0x80]
254 # CHECK-BE-NEXT: # fixup A - offset: 2, value: target@toc@l, kind: fix…
255 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target@toc@l, kind: fix…
256 # CHECK-BE-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_TOC16_LO target 0x0
257 # CHECK-LE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_TOC16_LO target 0x0
258 lwz 1, target@toc@l(3)
260 # CHECK-BE: ld 1, target@toc@l(3) # encoding: [0xe8,0x23,A,0bAAAAAA00]
261 # CHECK-LE: ld 1, target@toc@l(3) # encoding: [0bAAAAAA00,A,0x23,0xe8]
262 # CHECK-BE-NEXT: # fixup A - offset: 2, value: target@toc@l, kind: fix…
263 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target@toc@l, kind: fix…
264 # CHECK-BE-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_TOC16_LO_DS target 0x0
265 # CHECK-LE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_TOC16_LO_DS target 0x0
266 ld 1, target@toc@l(3)
268 # CHECK-BE: addi 4, 3, target@GOT # encoding: [0x38,0x83,A,A]
269 # CHECK-LE: addi 4, 3, target@GOT # encoding: [A,A,0x83,0x38]
270 # CHECK-BE-NEXT: # fixup A - offset: 2, value: target@GOT, kind: fixup…
271 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target@GOT, kind: fixup…
272 # CHECK-BE-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_GOT16 target 0x0
273 # CHECK-LE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_GOT16 target 0x0
274 addi 4, 3, target@got
276 # CHECK-BE: ld 1, target@GOT(2) # encoding: [0xe8,0x22,A,0bAAAAAA00]
277 # CHECK-LE: ld 1, target@GOT(2) # encoding: [0bAAAAAA00,A,0x22,0xe8]
278 # CHECK-BE-NEXT: # fixup A - offset: 2, value: target@GOT, kind: fixup…
279 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target@GOT, kind: fixup…
280 # CHECK-BE-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_GOT16_DS target 0x0
281 # CHECK-LE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_GOT16_DS target 0x0
282 ld 1, target@got(2)
284 # CHECK-BE: addis 3, 2, target@got@ha # encoding: [0x3c,0x62,A,A]
285 # CHECK-LE: addis 3, 2, target@got@ha # encoding: [A,A,0x62,0x3c]
286 # CHECK-BE-NEXT: # fixup A - offset: 2, value: target@got@ha, kind: fi…
287 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target@got@ha, kind: fi…
288 # CHECK-BE-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_GOT16_HA target 0x0
289 # CHECK-LE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_GOT16_HA target 0x0
290 addis 3, 2, target@got@ha
292 # CHECK-BE: addi 4, 3, target@got@l # encoding: [0x38,0x83,A,A]
293 # CHECK-LE: addi 4, 3, target@got@l # encoding: [A,A,0x83,0x38]
294 # CHECK-BE-NEXT: # fixup A - offset: 2, value: target@got@l, kind: fix…
295 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target@got@l, kind: fix…
296 # CHECK-BE-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_GOT16_LO target 0x0
297 # CHECK-LE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_GOT16_LO target 0x0
298 addi 4, 3, target@got@l
300 # CHECK-BE: addis 3, 2, target@got@h # encoding: [0x3c,0x62,A,A]
301 # CHECK-LE: addis 3, 2, target@got@h # encoding: [A,A,0x62,0x3c]
302 # CHECK-BE-NEXT: # fixup A - offset: 2, value: target@got@h, kind: fix…
303 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target@got@h, kind: fix…
304 # CHECK-BE-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_GOT16_HI target 0x0
305 # CHECK-LE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_GOT16_HI target 0x0
306 addis 3, 2, target@got@h
308 # CHECK-BE: lwz 1, target@got@l(3) # encoding: [0x80,0x23,A,A]
309 # CHECK-LE: lwz 1, target@got@l(3) # encoding: [A,A,0x23,0x80]
310 # CHECK-BE-NEXT: # fixup A - offset: 2, value: target@got@l, kind: fix…
311 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target@got@l, kind: fix…
312 # CHECK-BE-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_GOT16_LO target 0x0
313 # CHECK-LE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_GOT16_LO target 0x0
314 lwz 1, target@got@l(3)
316 # CHECK-BE: ld 1, target@got@l(3) # encoding: [0xe8,0x23,A,0bAAAAAA00]
317 # CHECK-LE: ld 1, target@got@l(3) # encoding: [0bAAAAAA00,A,0x23,0xe8]
318 # CHECK-BE-NEXT: # fixup A - offset: 2, value: target@got@l, kind: fix…
319 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target@got@l, kind: fix…
320 # CHECK-BE-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_GOT16_LO_DS target 0x0
321 # CHECK-LE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_GOT16_LO_DS target 0x0
322 ld 1, target@got@l(3)
325 # CHECK-BE: addis 3, 2, target@tprel@ha # encoding: [0x3c,0x62,A,A]
326 # CHECK-LE: addis 3, 2, target@tprel@ha # encoding: [A,A,0x62,0x3c]
327 # CHECK-BE-NEXT: # fixup A - offset: 2, value: target@tprel@ha, kind: …
328 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target@tprel@ha, kind: …
329 # CHECK-BE-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_TPREL16_HA target 0x0
330 # CHECK-LE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_TPREL16_HA target 0x0
331 addis 3, 2, target@tprel@ha
333 # CHECK-BE: addi 3, 3, target@tprel@l # encoding: [0x38,0x63,A,A]
334 # CHECK-LE: addi 3, 3, target@tprel@l # encoding: [A,A,0x63,0x38]
335 # CHECK-BE-NEXT: # fixup A - offset: 2, value: target@tprel@l, kind: f…
336 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target@tprel@l, kind: f…
337 # CHECK-BE-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_TPREL16_LO target 0x0
338 # CHECK-LE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_TPREL16_LO target 0x0
339 addi 3, 3, target@tprel@l
341 # CHECK-BE: addi 3, 3, target@TPREL # encoding: [0x38,0x63,A,A]
342 # CHECK-LE: addi 3, 3, target@TPREL # encoding: [A,A,0x63,0x38]
343 # CHECK-BE-NEXT: # fixup A - offset: 2, value: target@TPREL, kind: fix…
344 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target@TPREL, kind: fix…
345 # CHECK-BE-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_TPREL16 target 0x0
346 # CHECK-LE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_TPREL16 target 0x0
347 addi 3, 3, target@tprel
349 # CHECK-BE: addi 3, 3, target@tprel@h # encoding: [0x38,0x63,A,A]
350 # CHECK-LE: addi 3, 3, target@tprel@h # encoding: [A,A,0x63,0x38]
351 # CHECK-BE-NEXT: # fixup A - offset: 2, value: target@tprel@h, kind: f…
352 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target@tprel@h, kind: f…
353 # CHECK-BE-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_TPREL16_HI target 0x0
354 # CHECK-LE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_TPREL16_HI target 0x0
355 addi 3, 3, target@tprel@h
357 # CHECK-BE: addi 3, 3, target@tprel@higher # encoding: [0x38,0x63,A,A]
358 # CHECK-LE: addi 3, 3, target@tprel@higher # encoding: [A,A,0x63,0x38]
359 # CHECK-BE-NEXT: # fixup A - offset: 2, value: target@tprel@higher, ki…
360 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target@tprel@higher, ki…
361 # CHECK-BE-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_TPREL16_HIGHER target 0x0
362 # CHECK-LE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_TPREL16_HIGHER target 0x0
363 addi 3, 3, target@tprel@higher
365 # CHECK-BE: addis 3, 2, target@tprel@highest # encoding: [0x3c,0x62,A,A]
366 # CHECK-LE: addis 3, 2, target@tprel@highest # encoding: [A,A,0x62,0x3c]
367 # CHECK-BE-NEXT: # fixup A - offset: 2, value: target@tprel@highest, k…
368 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target@tprel@highest, k…
369 # CHECK-BE-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_TPREL16_HIGHEST target 0x0
370 # CHECK-LE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_TPREL16_HIGHEST target 0x0
371 addis 3, 2, target@tprel@highest
373 # CHECK-BE: addi 3, 3, target@tprel@highera # encoding: [0x38,0x63,A,A]
374 # CHECK-LE: addi 3, 3, target@tprel@highera # encoding: [A,A,0x63,0x38]
375 # CHECK-BE-NEXT: # fixup A - offset: 2, value: target@tprel@highera, k…
376 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target@tprel@highera, k…
377 # CHECK-BE-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_TPREL16_HIGHERA target 0x0
378 # CHECK-LE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_TPREL16_HIGHERA target 0x0
379 addi 3, 3, target@tprel@highera
381 # CHECK-BE: addis 3, 2, target@tprel@highesta # encoding: [0x3c,0x62,A,A]
382 # CHECK-LE: addis 3, 2, target@tprel@highesta # encoding: [A,A,0x62,0x3c]
383 # CHECK-BE-NEXT: # fixup A - offset: 2, value: target@tprel@highesta, …
384 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target@tprel@highesta, …
385 # CHECK-BE-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_TPREL16_HIGHESTA target 0…
386 # CHECK-LE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_TPREL16_HIGHESTA target 0…
387 addis 3, 2, target@tprel@highesta
389 # CHECK-BE: ld 1, target@tprel@l(3) # encoding: [0xe8,0x23,A,0bAAAAAA00]
390 # CHECK-LE: ld 1, target@tprel@l(3) # encoding: [0bAAAAAA00,A,0x23,0xe8]
391 # CHECK-BE-NEXT: # fixup A - offset: 2, value: target@tprel@l, kind: f…
392 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target@tprel@l, kind: f…
393 # CHECK-BE-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_TPREL16_LO_DS target 0x0
394 # CHECK-LE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_TPREL16_LO_DS target 0x0
395 ld 1, target@tprel@l(3)
397 # CHECK-BE: ld 1, target@TPREL(3) # encoding: [0xe8,0x23,A,0bAAAAAA00]
398 # CHECK-LE: ld 1, target@TPREL(3) # encoding: [0bAAAAAA00,A,0x23,0xe8]
399 # CHECK-BE-NEXT: # fixup A - offset: 2, value: target@TPREL, kind: fix…
400 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target@TPREL, kind: fix…
401 # CHECK-BE-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_TPREL16_DS target 0x0
402 # CHECK-LE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_TPREL16_DS target 0x0
403 ld 1, target@tprel(3)
405 # CHECK-BE: addis 3, 2, target@dtprel@ha # encoding: [0x3c,0x62,A,A]
406 # CHECK-LE: addis 3, 2, target@dtprel@ha # encoding: [A,A,0x62,0x3c]
407 # CHECK-BE-NEXT: # fixup A - offset: 2, value: target@dtprel@ha, kind:…
408 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target@dtprel@ha, kind:…
409 # CHECK-BE-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_DTPREL16_HA target 0x0
410 # CHECK-LE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_DTPREL16_HA target 0x0
411 addis 3, 2, target@dtprel@ha
413 # CHECK-BE: addi 3, 3, target@dtprel@l # encoding: [0x38,0x63,A,A]
414 # CHECK-LE: addi 3, 3, target@dtprel@l # encoding: [A,A,0x63,0x38]
415 # CHECK-BE-NEXT: # fixup A - offset: 2, value: target@dtprel@l, kind: …
416 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target@dtprel@l, kind: …
417 # CHECK-BE-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_DTPREL16_LO target 0x0
418 # CHECK-LE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_DTPREL16_LO target 0x0
419 addi 3, 3, target@dtprel@l
421 # CHECK-BE: addi 3, 3, target@DTPREL # encoding: [0x38,0x63,A,A]
422 # CHECK-LE: addi 3, 3, target@DTPREL # encoding: [A,A,0x63,0x38]
423 # CHECK-BE-NEXT: # fixup A - offset: 2, value: target@DTPREL, kind: fi…
424 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target@DTPREL, kind: fi…
425 # CHECK-BE-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_DTPREL16 target 0x0
426 # CHECK-LE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_DTPREL16 target 0x0
427 addi 3, 3, target@dtprel
429 # CHECK-BE: addi 3, 3, target@dtprel@h # encoding: [0x38,0x63,A,A]
430 # CHECK-LE: addi 3, 3, target@dtprel@h # encoding: [A,A,0x63,0x38]
431 # CHECK-BE-NEXT: # fixup A - offset: 2, value: target@dtprel@h, kind: …
432 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target@dtprel@h, kind: …
433 # CHECK-BE-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_DTPREL16_HI target 0x0
434 # CHECK-LE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_DTPREL16_HI target 0x0
435 addi 3, 3, target@dtprel@h
437 # CHECK-BE: addi 3, 3, target@dtprel@higher # encoding: [0x38,0x63,A,A]
438 # CHECK-LE: addi 3, 3, target@dtprel@higher # encoding: [A,A,0x63,0x38]
439 # CHECK-BE-NEXT: # fixup A - offset: 2, value: target@dtprel@higher, k…
440 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target@dtprel@higher, k…
441 # CHECK-BE-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_DTPREL16_HIGHER target 0x0
442 # CHECK-LE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_DTPREL16_HIGHER target 0x0
443 addi 3, 3, target@dtprel@higher
445 # CHECK-BE: addis 3, 2, target@dtprel@highest # encoding: [0x3c,0x62,A,A]
446 # CHECK-LE: addis 3, 2, target@dtprel@highest # encoding: [A,A,0x62,0x3c]
447 # CHECK-BE-NEXT: # fixup A - offset: 2, value: target@dtprel@highest, …
448 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target@dtprel@highest, …
449 # CHECK-BE-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_DTPREL16_HIGHEST target 0…
450 # CHECK-LE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_DTPREL16_HIGHEST target 0…
451 addis 3, 2, target@dtprel@highest
453 # CHECK-BE: addi 3, 3, target@dtprel@highera # encoding: [0x38,0x63,A,A]
454 # CHECK-LE: addi 3, 3, target@dtprel@highera # encoding: [A,A,0x63,0x38]
455 # CHECK-BE-NEXT: # fixup A - offset: 2, value: target@dtprel@highera, …
456 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target@dtprel@highera, …
457 # CHECK-BE-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_DTPREL16_HIGHERA target 0…
458 # CHECK-LE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_DTPREL16_HIGHERA target 0…
459 addi 3, 3, target@dtprel@highera
461 # CHECK-BE: addis 3, 2, target@dtprel@highesta # encoding: [0x3c,0x62,A,A]
462 # CHECK-LE: addis 3, 2, target@dtprel@highesta # encoding: [A,A,0x62,0x3c]
463 # CHECK-BE-NEXT: # fixup A - offset: 2, value: target@dtprel@highesta,…
464 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target@dtprel@highesta,…
465 # CHECK-BE-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_DTPREL16_HIGHESTA target
466 # CHECK-LE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_DTPREL16_HIGHESTA target
467 addis 3, 2, target@dtprel@highesta
469 # CHECK-BE: ld 1, target@dtprel@l(3) # encoding: [0xe8,0x23,A,0bAAAAAA00]
470 # CHECK-LE: ld 1, target@dtprel@l(3) # encoding: [0bAAAAAA00,A,0x23,0xe8]
471 # CHECK-BE-NEXT: # fixup A - offset: 2, value: target@dtprel@l, kind: …
472 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target@dtprel@l, kind: …
473 # CHECK-BE-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_DTPREL16_LO_DS target 0x0
474 # CHECK-LE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_DTPREL16_LO_DS target 0x0
475 ld 1, target@dtprel@l(3)
477 # CHECK-BE: ld 1, target@DTPREL(3) # encoding: [0xe8,0x23,A,0bAAAAAA00]
478 # CHECK-LE: ld 1, target@DTPREL(3) # encoding: [0bAAAAAA00,A,0x23,0xe8]
479 # CHECK-BE-NEXT: # fixup A - offset: 2, value: target@DTPREL, kind: fi…
480 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target@DTPREL, kind: fi…
481 # CHECK-BE-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_DTPREL16_DS target 0x0
482 # CHECK-LE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_DTPREL16_DS target 0x0
483 ld 1, target@dtprel(3)
486 # CHECK-BE: addis 3, 2, target@got@tprel@ha # encoding: [0x3c,0x62,A,A]
487 # CHECK-LE: addis 3, 2, target@got@tprel@ha # encoding: [A,A,0x62,0x3c]
488 # CHECK-BE-NEXT: # fixup A - offset: 2, value: target@got@tprel@ha, ki…
489 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target@got@tprel@ha, ki…
490 # CHECK-BE-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_GOT_TPREL16_HA target 0x0
491 # CHECK-LE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_GOT_TPREL16_HA target 0x0
492 addis 3, 2, target@got@tprel@ha
494 # CHECK-BE: ld 1, target@got@tprel@l(3) # encoding: [0xe8,0x23,A,0bAAAAAA00]
495 # CHECK-LE: ld 1, target@got@tprel@l(3) # encoding: [0bAAAAAA00,A,0x23,0xe8]
496 # CHECK-BE-NEXT: # fixup A - offset: 2, value: target@got@tprel@l, kin…
497 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target@got@tprel@l, kin…
498 # CHECK-BE-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_GOT_TPREL16_LO_DS target
499 # CHECK-LE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_GOT_TPREL16_LO_DS target
500 ld 1, target@got@tprel@l(3)
502 # CHECK-BE: addis 3, 2, target@got@tprel@h # encoding: [0x3c,0x62,A,A]
503 # CHECK-LE: addis 3, 2, target@got@tprel@h # encoding: [A,A,0x62,0x3c]
504 # CHECK-BE-NEXT: # fixup A - offset: 2, value: target@got@tprel@h, kin…
505 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target@got@tprel@h, kin…
506 # CHECK-BE-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_GOT_TPREL16_HI target 0x0
507 # CHECK-LE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_GOT_TPREL16_HI target 0x0
508 addis 3, 2, target@got@tprel@h
510 # CHECK-BE: addis 3, 2, target@got@tprel@l # encoding: [0x3c,0x62,A,A]
511 # CHECK-LE: addis 3, 2, target@got@tprel@l # encoding: [A,A,0x62,0x3c]
512 # CHECK-BE-NEXT: # fixup A - offset: 2, value: target@got@tprel@l, kin…
513 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target@got@tprel@l, kin…
514 # CHECK-BE-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_GOT_TPREL16_LO_DS target
515 # CHECK-LE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_GOT_TPREL16_LO_DS target
516 addis 3, 2, target@got@tprel@l
518 # CHECK-BE: addis 3, 2, target@got@tprel # encoding: [0x3c,0x62,A,A]
519 # CHECK-LE: addis 3, 2, target@got@tprel # encoding: [A,A,0x62,0x3c]
520 # CHECK-BE-NEXT: # fixup A - offset: 2, value: target@got@tprel, kind:…
521 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target@got@tprel, kind:…
522 # CHECK-BE-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_GOT_TPREL16_DS target 0x0
523 # CHECK-LE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_GOT_TPREL16_DS target 0x0
524 addis 3, 2, target@got@tprel
526 # CHECK-BE: ld 1, target@got@tprel(3) # encoding: [0xe8,0x23,A,0bAAAAAA00]
527 # CHECK-LE: ld 1, target@got@tprel(3) # encoding: [0bAAAAAA00,A,0x23,0xe8]
528 # CHECK-BE-NEXT: # fixup A - offset: 2, value: target@got@tprel, kind:…
529 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target@got@tprel, kind:…
530 # CHECK-BE-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_GOT_TPREL16_DS target 0x0
531 # CHECK-LE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_GOT_TPREL16_DS target 0x0
532 ld 1, target@got@tprel(3)
534 # CHECK-BE: addis 3, 2, target@got@dtprel@ha # encoding: [0x3c,0x62,A,A]
535 # CHECK-LE: addis 3, 2, target@got@dtprel@ha # encoding: [A,A,0x62,0x3c]
536 # CHECK-BE-NEXT: # fixup A - offset: 2, value: target@got@dtprel@ha, k…
537 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target@got@dtprel@ha, k…
538 # CHECK-BE-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_GOT_DTPREL16_HA target 0x0
539 # CHECK-LE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_GOT_DTPREL16_HA target 0x0
540 addis 3, 2, target@got@dtprel@ha
542 # CHECK-BE: ld 1, target@got@dtprel@l(3) # encoding: [0xe8,0x23,A,0bAAAAAA00]
543 # CHECK-LE: ld 1, target@got@dtprel@l(3) # encoding: [0bAAAAAA00,A,0x23,0xe8]
544 # CHECK-BE-NEXT: # fixup A - offset: 2, value: target@got@dtprel@l, ki…
545 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target@got@dtprel@l, ki…
546 # CHECK-BE-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_GOT_DTPREL16_LO_DS target
547 # CHECK-LE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_GOT_DTPREL16_LO_DS target
548 ld 1, target@got@dtprel@l(3)
550 # CHECK-BE: addis 3, 2, target@got@dtprel@h # encoding: [0x3c,0x62,A,A]
551 # CHECK-LE: addis 3, 2, target@got@dtprel@h # encoding: [A,A,0x62,0x3c]
552 # CHECK-BE-NEXT: # fixup A - offset: 2, value: target@got@dtprel@h, ki…
553 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target@got@dtprel@h, ki…
554 # CHECK-BE-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_GOT_DTPREL16_HI target 0x0
555 # CHECK-LE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_GOT_DTPREL16_HI target 0x0
556 addis 3, 2, target@got@dtprel@h
558 # CHECK-BE: addis 3, 2, target@got@dtprel@l # encoding: [0x3c,0x62,A,A]
559 # CHECK-LE: addis 3, 2, target@got@dtprel@l # encoding: [A,A,0x62,0x3c]
560 # CHECK-BE-NEXT: # fixup A - offset: 2, value: target@got@dtprel@l, ki…
561 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target@got@dtprel@l, ki…
562 # CHECK-BE-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_GOT_DTPREL16_LO_DS target
563 # CHECK-LE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_GOT_DTPREL16_LO_DS target
564 addis 3, 2, target@got@dtprel@l
566 # CHECK-BE: addis 3, 2, target@got@dtprel # encoding: [0x3c,0x62,A,A]
567 # CHECK-LE: addis 3, 2, target@got@dtprel # encoding: [A,A,0x62,0x3c]
568 # CHECK-BE-NEXT: # fixup A - offset: 2, value: target@got@dtprel, kind…
569 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target@got@dtprel, kind…
570 # CHECK-BE-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_GOT_DTPREL16_DS target 0x0
571 # CHECK-LE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_GOT_DTPREL16_DS target 0x0
572 addis 3, 2, target@got@dtprel
574 # CHECK-BE: ld 1, target@got@dtprel(3) # encoding: [0xe8,0x23,A,0bAAAAAA00]
575 # CHECK-LE: ld 1, target@got@dtprel(3) # encoding: [0bAAAAAA00,A,0x23,0xe8]
576 # CHECK-BE-NEXT: # fixup A - offset: 2, value: target@got@dtprel, kind…
577 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target@got@dtprel, kind…
578 # CHECK-BE-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_GOT_DTPREL16_DS target 0x0
579 # CHECK-LE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_GOT_DTPREL16_DS target 0x0
580 ld 1, target@got@dtprel(3)
582 # CHECK-BE: addis 3, 2, target@got@tlsgd@ha # encoding: [0x3c,0x62,A,A]
583 # CHECK-LE: addis 3, 2, target@got@tlsgd@ha # encoding: [A,A,0x62,0x3c]
584 # CHECK-BE-NEXT: # fixup A - offset: 2, value: target@got@tlsgd@ha, ki…
585 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target@got@tlsgd@ha, ki…
586 # CHECK-BE-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_GOT_TLSGD16_HA target 0x0
587 # CHECK-LE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_GOT_TLSGD16_HA target 0x0
588 addis 3, 2, target@got@tlsgd@ha
590 # CHECK-BE: addi 3, 3, target@got@tlsgd@l # encoding: [0x38,0x63,A,A]
591 # CHECK-LE: addi 3, 3, target@got@tlsgd@l # encoding: [A,A,0x63,0x38]
592 # CHECK-BE-NEXT: # fixup A - offset: 2, value: target@got@tlsgd@l, kin…
593 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target@got@tlsgd@l, kin…
594 # CHECK-BE-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_GOT_TLSGD16_LO target 0x0
595 # CHECK-LE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_GOT_TLSGD16_LO target 0x0
596 addi 3, 3, target@got@tlsgd@l
598 # CHECK-BE: addi 3, 3, target@got@tlsgd@h # encoding: [0x38,0x63,A,A]
599 # CHECK-LE: addi 3, 3, target@got@tlsgd@h # encoding: [A,A,0x63,0x38]
600 # CHECK-BE-NEXT: # fixup A - offset: 2, value: target@got@tlsgd@h, kin…
601 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target@got@tlsgd@h, kin…
602 # CHECK-BE-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_GOT_TLSGD16_HI target 0x0
603 # CHECK-LE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_GOT_TLSGD16_HI target 0x0
604 addi 3, 3, target@got@tlsgd@h
606 # CHECK-BE: addi 3, 3, target@got@tlsgd # encoding: [0x38,0x63,A,A]
607 # CHECK-LE: addi 3, 3, target@got@tlsgd # encoding: [A,A,0x63,0x38]
608 # CHECK-BE-NEXT: # fixup A - offset: 2, value: target@got@tlsgd, kind:…
609 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target@got@tlsgd, kind:…
610 # CHECK-BE-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_GOT_TLSGD16 target 0x0
611 # CHECK-LE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_GOT_TLSGD16 target 0x0
612 addi 3, 3, target@got@tlsgd
615 # CHECK-BE: addis 3, 2, target@got@tlsld@ha # encoding: [0x3c,0x62,A,A]
616 # CHECK-LE: addis 3, 2, target@got@tlsld@ha # encoding: [A,A,0x62,0x3c]
617 # CHECK-BE-NEXT: # fixup A - offset: 2, value: target@got@tlsld@ha, ki…
618 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target@got@tlsld@ha, ki…
619 # CHECK-BE-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_GOT_TLSLD16_HA target 0x0
620 # CHECK-LE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_GOT_TLSLD16_HA target 0x0
621 addis 3, 2, target@got@tlsld@ha
623 # CHECK-BE: addi 3, 3, target@got@tlsld@l # encoding: [0x38,0x63,A,A]
624 # CHECK-LE: addi 3, 3, target@got@tlsld@l # encoding: [A,A,0x63,0x38]
625 # CHECK-BE-NEXT: # fixup A - offset: 2, value: target@got@tlsld@l, kin…
626 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target@got@tlsld@l, kin…
627 # CHECK-BE-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_GOT_TLSLD16_LO target 0x0
628 # CHECK-LE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_GOT_TLSLD16_LO target 0x0
629 addi 3, 3, target@got@tlsld@l
631 # CHECK-BE: addi 3, 3, target@got@tlsld@h # encoding: [0x38,0x63,A,A]
632 # CHECK-LE: addi 3, 3, target@got@tlsld@h # encoding: [A,A,0x63,0x38]
633 # CHECK-BE-NEXT: # fixup A - offset: 2, value: target@got@tlsld@h, kin…
634 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target@got@tlsld@h, kin…
635 # CHECK-BE-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_GOT_TLSLD16_HI target 0x0
636 # CHECK-LE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_GOT_TLSLD16_HI target 0x0
637 addi 3, 3, target@got@tlsld@h
639 # CHECK-BE: addi 3, 3, target@got@tlsld # encoding: [0x38,0x63,A,A]
640 # CHECK-LE: addi 3, 3, target@got@tlsld # encoding: [A,A,0x63,0x38]
641 # CHECK-BE-NEXT: # fixup A - offset: 2, value: target@got@tlsld, kind:…
642 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target@got@tlsld, kind:…
643 # CHECK-BE-REL: 0x{{[0-9A-F]*[26AE]}} R_PPC64_GOT_TLSLD16 target 0x0
644 # CHECK-LE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_GOT_TLSLD16 target 0x0
645 addi 3, 3, target@got@tlsld
647 # CHECK-BE: bl __tls_get_addr(target@tlsgd) # encoding: [0b010010BB,B,B,0bBBBBBB01]
648 # CHECK-LE: bl __tls_get_addr(target@tlsgd) # encoding: [0bBBBBBB01,B,B,0b010010BB]
649 # CHECK-BE-NEXT: # fixup A - offset: 0, value: target@tlsgd, kind: fix…
650 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target@tlsgd, kind: fix…
651 # CHECK-BE-NEXT: # fixup B - offset: 0, value: __tls_get_addr, kind: f…
652 # CHECK-LE-NEXT: # fixup B - offset: 0, value: __tls_get_addr, kind: f…
653 # CHECK-BE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_TLSGD target 0x0
654 # CHECK-LE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_TLSGD target 0x0
655 # CHECK-BE-REL-NEXT: 0x{{[0-9A-F]*[048C]}} R_PPC64_REL24 __tls_get_addr 0x0
656 # CHECK-LE-REL-NEXT: 0x{{[0-9A-F]*[048C]}} R_PPC64_REL24 __tls_get_addr 0x0
657 bl __tls_get_addr(target@tlsgd)
659 # CHECK-BE: bl __tls_get_addr(target@tlsld) # encoding: [0b010010BB,B,B,0bBBBBBB01]
660 # CHECK-LE: bl __tls_get_addr(target@tlsld) # encoding: [0bBBBBBB01,B,B,0b010010BB]
661 # CHECK-BE-NEXT: # fixup A - offset: 0, value: target@tlsld, kind: fix…
662 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target@tlsld, kind: fix…
663 # CHECK-BE-NEXT: # fixup B - offset: 0, value: __tls_get_addr, kind: f…
664 # CHECK-LE-NEXT: # fixup B - offset: 0, value: __tls_get_addr, kind: f…
665 # CHECK-BE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_TLSLD target 0x0
666 # CHECK-LE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_TLSLD target 0x0
667 # CHECK-BE-REL-NEXT: 0x{{[0-9A-F]*[048C]}} R_PPC64_REL24 __tls_get_addr 0x0
668 # CHECK-LE-REL-NEXT: 0x{{[0-9A-F]*[048C]}} R_PPC64_REL24 __tls_get_addr 0x0
669 bl __tls_get_addr(target@tlsld)
671 # CHECK-BE: add 3, 4, target@tls # encoding: [0x7c,0x64,0x6a,0x14]
672 # CHECK-LE: add 3, 4, target@tls # encoding: [0x14,0x6a,0x64,0x7c]
673 # CHECK-BE-NEXT: # fixup A - offset: 0, value: target@tls, kind: fixup…
674 # CHECK-LE-NEXT: # fixup A - offset: 0, value: target@tls, kind: fixup…
675 # CHECK-BE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_TLS target 0x0
676 # CHECK-LE-REL: 0x{{[0-9A-F]*[048C]}} R_PPC64_TLS target 0x0
677 add 3, 4, target@tls
681 # CHECK-BE: ori 1, 2, 65535 # encoding: [0x60,0x41,0xff,0xff]
682 # CHECK-LE: ori 1, 2, 65535 # encoding: [0xff,0xff,0x41,0x60]
684 # CHECK-BE: ori 1, 2, 1 # encoding: [0x60,0x41,0x00,0x01]
685 # CHECK-LE: ori 1, 2, 1 # encoding: [0x01,0x00,0x41,0x60]
687 # CHECK-BE: ori 1, 2, 2 # encoding: [0x60,0x41,0x00,0x02]
688 # CHECK-LE: ori 1, 2, 2 # encoding: [0x02,0x00,0x41,0x60]
690 # CHECK-BE: addi 1, 2, -1 # encoding: [0x38,0x22,0xff,0xff]
691 # CHECK-LE: addi 1, 2, -1 # encoding: [0xff,0xff,0x22,0x38]
693 # CHECK-BE: addi 1, 2, 1 # encoding: [0x38,0x22,0x00,0x01]
694 # CHECK-LE: addi 1, 2, 1 # encoding: [0x01,0x00,0x22,0x38]
696 # CHECK-BE: addi 1, 2, 2 # encoding: [0x38,0x22,0x00,0x02]
697 # CHECK-LE: addi 1, 2, 2 # encoding: [0x02,0x00,0x22,0x38]
699 # CHECK-BE: addis 1, 2, -4096 # encoding: [0x3c,0x22,0xf0,0x00]
700 # CHECK-LE: addis 1, 2, -4096 # encoding: [0x00,0xf0,0x22,0x3c]
704 # llvm-mc does not show any "encoding" string for data, so we just check the relocs
706 # CHECK-BE-REL: .rela.data
707 # CHECK-LE-REL: .rela.data
710 # CHECK-BE-REL: 0x{{[0-9A-F]*[08]}} R_PPC64_TOC - 0x0
711 # CHECK-LE-REL: 0x{{[0-9A-F]*[08]}} R_PPC64_TOC - 0x0
714 # CHECK-BE-REL: 0x{{[0-9A-F]*[08]}} R_PPC64_DTPMOD64 target 0x0
715 # CHECK-LE-REL: 0x{{[0-9A-F]*[08]}} R_PPC64_DTPMOD64 target 0x0
716 .quad target@dtpmod
718 # CHECK-BE-REL: 0x{{[0-9A-F]*[08]}} R_PPC64_TPREL64 target 0x0
719 # CHECK-LE-REL: 0x{{[0-9A-F]*[08]}} R_PPC64_TPREL64 target 0x0
720 .quad target@tprel
722 # CHECK-BE-REL: 0x{{[0-9A-F]*[08]}} R_PPC64_DTPREL64 target 0x0
723 # CHECK-LE-REL: 0x{{[0-9A-F]*[08]}} R_PPC64_DTPREL64 target 0x0
724 .quad target@dtprel