Debian Codegraph @

llvm/test/CodeGen/PowerPC/convert-rr-to-ri-instrs.mir

raw
1 # RUN: llc -run-pass ppc-mi-peepholes -ppc-convert-rr-to-ri %s -o - -verify-machineinstrs | FileCheck %s
2 # RUN: llc -start-after ppc-mi-peepholes -ppc-late-peephole %s -o - -verify-machineinstrs | FileCheck %s --check-prefix=CHECK-LATE
3
4 --- |
5 ; ModuleID = 'convert-rr-to-ri-instrs.ll'
6 source_filename = "convert-rr-to-ri-instrs.c"
7 target datalayout = "e-m:e-i64:64-n32:64"
8 target triple = "powerpc64le-unknown-linux-gnu"
9
10 ; Function Attrs: norecurse nounwind readnone
11 define signext i32 @testADD4(i32 signext %a, i32 signext %b) local_unnamed_addr #0 {
12 entry:
13 %add = add nsw i32 %a, 33
14 %add1 = add nsw i32 %add, %b
15 ret i32 %add1
16 }
17
18 ; Function Attrs: norecurse nounwind readnone
19 define i64 @testADD8(i64 %a, i64 %b) local_unnamed_addr #0 {
20 entry:
21 %add = add nsw i64 %a, 33
22 %add1 = add nsw i64 %add, %b
23 ret i64 %add1
24 }
25
26 ; Function Attrs: norecurse nounwind readnone
27 define i128 @testADDC(i128 %a, i128 %b) local_unnamed_addr #0 {
28 entry:
29 %add = add nsw i128 %b, %a
30 ret i128 %add
31 }
32
33 ; Function Attrs: norecurse nounwind readnone
34 define i128 @testADDC8(i128 %a, i128 %b) local_unnamed_addr #0 {
35 entry:
36 %add = add nsw i128 %b, %a
37 ret i128 %add
38 }
39
40 ; Function Attrs: norecurse nounwind readnone
41 define i64 @testADDC_rec(i64 %a, i64 %b) local_unnamed_addr #0 {
42 entry:
43 %add = add nsw i64 %b, %a
44 %cmp = icmp eq i64 %add, 0
45 %neg = sext i1 %cmp to i64
46 %retval.0 = xor i64 %add, %neg
47 ret i64 %retval.0
48 }
49
50 ; Function Attrs: norecurse nounwind readnone
51 define signext i32 @testADDI(i32 signext %a) local_unnamed_addr #0 {
52 entry:
53 %add = add nsw i32 %a, 44
54 ret i32 %add
55 }
56
57 ; Function Attrs: norecurse nounwind readnone
58 define signext i32 @testADDI8(i32 signext %a) local_unnamed_addr #0 {
59 entry:
60 %add = add nsw i32 %a, 44
61 ret i32 %add
62 }
63
64 ; Function Attrs: norecurse nounwind readnone
65 define signext i32 @testAND_rec(i64 %a, i64 %b) local_unnamed_addr #0 {
66 entry:
67 %and = and i64 %b, %a
68 %tobool = icmp eq i64 %and, 0
69 %cond = select i1 %tobool, i64 %b, i64 %a
70 %conv = trunc i64 %cond to i32
71 ret i32 %conv
72 }
73
74 ; Function Attrs: norecurse nounwind readnone
75 define i64 @testAND8_rec(i64 %a, i64 %b) local_unnamed_addr #0 {
76 entry:
77 %and = and i64 %b, %a
78 %tobool = icmp eq i64 %and, 0
79 %cond = select i1 %tobool, i64 %b, i64 %a
80 ret i64 %cond
81 }
82
83 ; Function Attrs: norecurse nounwind readnone
84 define i64 @testCMPD(i64 %a, i64 %b) local_unnamed_addr #0 {
85 entry:
86 %cmp = icmp sgt i64 %a, %b
87 %add = select i1 %cmp, i64 0, i64 %a
88 %cond = add nsw i64 %add, %b
89 ret i64 %cond
90 }
91
92 ; Function Attrs: norecurse nounwind readnone
93 define i64 @testCMPDI(i64 %a, i64 %b) local_unnamed_addr #0 {
94 entry:
95 %cmp = icmp sgt i64 %a, 87
96 %add = select i1 %cmp, i64 0, i64 %a
97 %cond = add nsw i64 %add, %b
98 ret i64 %cond
99 }
100
101 ; Function Attrs: norecurse nounwind readnone
102 define i64 @testCMPDI_F(i64 %a, i64 %b) local_unnamed_addr #0 {
103 entry:
104 %cmp = icmp sgt i64 %a, 87
105 %add = select i1 %cmp, i64 0, i64 %a
106 %cond = add nsw i64 %add, %b
107 ret i64 %cond
108 }
109
110 ; Function Attrs: norecurse nounwind readnone
111 define i64 @testCMPLD(i64 %a, i64 %b) local_unnamed_addr #0 {
112 entry:
113 %cmp = icmp ugt i64 %a, %b
114 %add = select i1 %cmp, i64 0, i64 %a
115 %cond = add i64 %add, %b
116 ret i64 %cond
117 }
118
119 ; Function Attrs: norecurse nounwind readnone
120 define i64 @testCMPLDI(i64 %a, i64 %b) local_unnamed_addr #0 {
121 entry:
122 %cmp = icmp ugt i64 %a, 87
123 %add = select i1 %cmp, i64 0, i64 %a
124 %cond = add i64 %add, %b
125 ret i64 %cond
126 }
127
128 ; Function Attrs: norecurse nounwind readnone
129 define signext i32 @testCMPW(i32 signext %a, i32 signext %b) local_unnamed_addr #0 {
130 entry:
131 %cmp = icmp sgt i32 %a, %b
132 %add = select i1 %cmp, i32 0, i32 %a
133 %cond = add nsw i32 %add, %b
134 ret i32 %cond
135 }
136
137 ; Function Attrs: norecurse nounwind readnone
138 define signext i32 @testCMPWI(i32 signext %a, i32 signext %b) local_unnamed_addr #0 {
139 entry:
140 %cmp = icmp sgt i32 %a, 87
141 %add = select i1 %cmp, i32 0, i32 %a
142 %cond = add nsw i32 %add, %b
143 ret i32 %cond
144 }
145
146 ; Function Attrs: norecurse nounwind readnone
147 define zeroext i32 @testCMPLW(i32 zeroext %a, i32 zeroext %b) local_unnamed_addr #0 {
148 entry:
149 %cmp = icmp ugt i32 %a, %b
150 %add = select i1 %cmp, i32 0, i32 %a
151 %cond = add i32 %add, %b
152 ret i32 %cond
153 }
154
155 ; Function Attrs: norecurse nounwind readnone
156 define zeroext i32 @testCMPLWI(i32 zeroext %a, i32 zeroext %b) local_unnamed_addr #0 {
157 entry:
158 %cmp = icmp ugt i32 %a, 87
159 %add = select i1 %cmp, i32 0, i32 %a
160 %cond = add i32 %add, %b
161 ret i32 %cond
162 }
163
164 ; Function Attrs: norecurse nounwind readonly
165 define zeroext i8 @testLBZUX(ptr nocapture readonly %ptr, i32 zeroext %idx) local_unnamed_addr #1 {
166 entry:
167 %add = add i32 %idx, 1
168 %idxprom = zext i32 %add to i64
169 %arrayidx = getelementptr inbounds i8, ptr %ptr, i64 %idxprom
170 %0 = load i8, ptr %arrayidx, align 1, !tbaa !3
171 %conv = zext i8 %0 to i32
172 %add1 = add i32 %idx, 2
173 %idxprom2 = zext i32 %add1 to i64
174 %arrayidx3 = getelementptr inbounds i8, ptr %ptr, i64 %idxprom2
175 %1 = load i8, ptr %arrayidx3, align 1, !tbaa !3
176 %conv4 = zext i8 %1 to i32
177 %add5 = add nuw nsw i32 %conv4, %conv
178 %conv6 = trunc i32 %add5 to i8
179 ret i8 %conv6
180 }
181
182 ; Function Attrs: norecurse nounwind readonly
183 define zeroext i8 @testLBZX(ptr nocapture readonly %ptr, i32 zeroext %idx) local_unnamed_addr #1 {
184 entry:
185 %add = add i32 %idx, 1
186 %idxprom = zext i32 %add to i64
187 %arrayidx = getelementptr inbounds i8, ptr %ptr, i64 %idxprom
188 %0 = load i8, ptr %arrayidx, align 1, !tbaa !3
189 %conv = zext i8 %0 to i32
190 %add1 = add i32 %idx, 2
191 %idxprom2 = zext i32 %add1 to i64
192 %arrayidx3 = getelementptr inbounds i8, ptr %ptr, i64 %idxprom2
193 %1 = load i8, ptr %arrayidx3, align 1, !tbaa !3
194 %conv4 = zext i8 %1 to i32
195 %add5 = add nuw nsw i32 %conv4, %conv
196 %conv6 = trunc i32 %add5 to i8
197 ret i8 %conv6
198 }
199
200 ; Function Attrs: norecurse nounwind readonly
201 define zeroext i16 @testLHZUX(ptr nocapture readonly %ptr, i32 zeroext %idx) local_unnamed_addr #1 {
202 entry:
203 %add = add i32 %idx, 1
204 %idxprom = zext i32 %add to i64
205 %arrayidx = getelementptr inbounds i16, ptr %ptr, i64 %idxprom
206 %0 = load i16, ptr %arrayidx, align 2, !tbaa !6
207 %conv = zext i16 %0 to i32
208 %add1 = add i32 %idx, 2
209 %idxprom2 = zext i32 %add1 to i64
210 %arrayidx3 = getelementptr inbounds i16, ptr %ptr, i64 %idxprom2
211 %1 = load i16, ptr %arrayidx3, align 2, !tbaa !6
212 %conv4 = zext i16 %1 to i32
213 %add5 = add nuw nsw i32 %conv4, %conv
214 %conv6 = trunc i32 %add5 to i16
215 ret i16 %conv6
216 }
217
218 ; Function Attrs: norecurse nounwind readonly
219 define zeroext i16 @testLHZX(ptr nocapture readonly %ptr, i32 zeroext %idx) local_unnamed_addr #1 {
220 entry:
221 %add = add i32 %idx, 1
222 %idxprom = zext i32 %add to i64
223 %arrayidx = getelementptr inbounds i16, ptr %ptr, i64 %idxprom
224 %0 = load i16, ptr %arrayidx, align 2, !tbaa !6
225 %conv = zext i16 %0 to i32
226 %add1 = add i32 %idx, 2
227 %idxprom2 = zext i32 %add1 to i64
228 %arrayidx3 = getelementptr inbounds i16, ptr %ptr, i64 %idxprom2
229 %1 = load i16, ptr %arrayidx3, align 2, !tbaa !6
230 %conv4 = zext i16 %1 to i32
231 %add5 = add nuw nsw i32 %conv4, %conv
232 %conv6 = trunc i32 %add5 to i16
233 ret i16 %conv6
234 }
235
236 ; Function Attrs: norecurse nounwind readonly
237 define signext i16 @testLHAUX(ptr nocapture readonly %ptr, i32 zeroext %idx) local_unnamed_addr #1 {
238 entry:
239 %add = add i32 %idx, 1
240 %idxprom = zext i32 %add to i64
241 %arrayidx = getelementptr inbounds i16, ptr %ptr, i64 %idxprom
242 %0 = load i16, ptr %arrayidx, align 2, !tbaa !6
243 %conv9 = zext i16 %0 to i32
244 %add1 = add i32 %idx, 2
245 %idxprom2 = zext i32 %add1 to i64
246 %arrayidx3 = getelementptr inbounds i16, ptr %ptr, i64 %idxprom2
247 %1 = load i16, ptr %arrayidx3, align 2, !tbaa !6
248 %conv410 = zext i16 %1 to i32
249 %add5 = add nuw nsw i32 %conv410, %conv9
250 %conv6 = trunc i32 %add5 to i16
251 ret i16 %conv6
252 }
253
254 ; Function Attrs: norecurse nounwind readonly
255 define signext i16 @testLHAX(ptr nocapture readonly %ptr, i32 zeroext %idx) local_unnamed_addr #1 {
256 entry:
257 %add = add i32 %idx, 1
258 %idxprom = zext i32 %add to i64
259 %arrayidx = getelementptr inbounds i16, ptr %ptr, i64 %idxprom
260 %0 = load i16, ptr %arrayidx, align 2, !tbaa !6
261 %conv9 = zext i16 %0 to i32
262 %add1 = add i32 %idx, 2
263 %idxprom2 = zext i32 %add1 to i64
264 %arrayidx3 = getelementptr inbounds i16, ptr %ptr, i64 %idxprom2
265 %1 = load i16, ptr %arrayidx3, align 2, !tbaa !6
266 %conv410 = zext i16 %1 to i32
267 %add5 = add nuw nsw i32 %conv410, %conv9
268 %conv6 = trunc i32 %add5 to i16
269 ret i16 %conv6
270 }
271
272 ; Function Attrs: norecurse nounwind readonly
273 define zeroext i32 @testLWZUX(ptr nocapture readonly %ptr, i32 zeroext %idx) local_unnamed_addr #1 {
274 entry:
275 %add = add i32 %idx, 1
276 %idxprom = zext i32 %add to i64
277 %arrayidx = getelementptr inbounds i32, ptr %ptr, i64 %idxprom
278 %0 = load i32, ptr %arrayidx, align 4, !tbaa !8
279 %add1 = add i32 %idx, 2
280 %idxprom2 = zext i32 %add1 to i64
281 %arrayidx3 = getelementptr inbounds i32, ptr %ptr, i64 %idxprom2
282 %1 = load i32, ptr %arrayidx3, align 4, !tbaa !8
283 %add4 = add i32 %1, %0
284 ret i32 %add4
285 }
286
287 ; Function Attrs: norecurse nounwind readonly
288 define zeroext i32 @testLWZX(ptr nocapture readonly %ptr, i32 zeroext %idx) local_unnamed_addr #1 {
289 entry:
290 %add = add i32 %idx, 1
291 %idxprom = zext i32 %add to i64
292 %arrayidx = getelementptr inbounds i32, ptr %ptr, i64 %idxprom
293 %0 = load i32, ptr %arrayidx, align 4, !tbaa !8
294 %add1 = add i32 %idx, 2
295 %idxprom2 = zext i32 %add1 to i64
296 %arrayidx3 = getelementptr inbounds i32, ptr %ptr, i64 %idxprom2
297 %1 = load i32, ptr %arrayidx3, align 4, !tbaa !8
298 %add4 = add i32 %1, %0
299 ret i32 %add4
300 }
301
302 ; Function Attrs: norecurse nounwind readonly
303 define i64 @testLWAX(ptr nocapture readonly %ptr, i32 zeroext %idx) local_unnamed_addr #1 {
304 entry:
305 %add = add i32 %idx, 1
306 %idxprom = zext i32 %add to i64
307 %arrayidx = getelementptr inbounds i32, ptr %ptr, i64 %idxprom
308 %0 = load i32, ptr %arrayidx, align 4, !tbaa !8
309 %conv = sext i32 %0 to i64
310 %add1 = add i32 %idx, 2
311 %idxprom2 = zext i32 %add1 to i64
312 %arrayidx3 = getelementptr inbounds i32, ptr %ptr, i64 %idxprom2
313 %1 = load i32, ptr %arrayidx3, align 4, !tbaa !8
314 %conv4 = sext i32 %1 to i64
315 %add5 = add nsw i64 %conv4, %conv
316 ret i64 %add5
317 }
318
319 ; Function Attrs: norecurse nounwind readonly
320 define i64 @testLDUX(ptr nocapture readonly %ptr, i32 zeroext %idx) local_unnamed_addr #1 {
321 entry:
322 %add = add i32 %idx, 1
323 %idxprom = zext i32 %add to i64
324 %arrayidx = getelementptr inbounds i64, ptr %ptr, i64 %idxprom
325 %0 = load i64, ptr %arrayidx, align 8, !tbaa !10
326 %add1 = add i32 %idx, 2
327 %idxprom2 = zext i32 %add1 to i64
328 %arrayidx3 = getelementptr inbounds i64, ptr %ptr, i64 %idxprom2
329 %1 = load i64, ptr %arrayidx3, align 8, !tbaa !10
330 %add4 = add i64 %1, %0
331 ret i64 %add4
332 }
333
334 ; Function Attrs: norecurse nounwind readonly
335 define i64 @testLDX(ptr nocapture readonly %ptr, i32 zeroext %idx) local_unnamed_addr #1 {
336 entry:
337 %add = add i32 %idx, 1
338 %idxprom = zext i32 %add to i64
339 %arrayidx = getelementptr inbounds i64, ptr %ptr, i64 %idxprom
340 %0 = load i64, ptr %arrayidx, align 8, !tbaa !10
341 %add1 = add i32 %idx, 2
342 %idxprom2 = zext i32 %add1 to i64
343 %arrayidx3 = getelementptr inbounds i64, ptr %ptr, i64 %idxprom2
344 %1 = load i64, ptr %arrayidx3, align 8, !tbaa !10
345 %add4 = add i64 %1, %0
346 ret i64 %add4
347 }
348
349 ; Function Attrs: norecurse nounwind readonly
350 define double @testLFDUX(ptr nocapture readonly %ptr, i32 zeroext %idx) local_unnamed_addr #2 {
351 entry:
352 %add = add i32 %idx, 1
353 %idxprom = zext i32 %add to i64
354 %arrayidx = getelementptr inbounds double, ptr %ptr, i64 %idxprom
355 %0 = load double, ptr %arrayidx, align 8, !tbaa !12
356 %add1 = add i32 %idx, 2
357 %idxprom2 = zext i32 %add1 to i64
358 %arrayidx3 = getelementptr inbounds double, ptr %ptr, i64 %idxprom2
359 %1 = load double, ptr %arrayidx3, align 8, !tbaa !12
360 %add4 = fadd double %0, %1
361 ret double %add4
362 }
363
364 ; Function Attrs: norecurse nounwind readonly
365 define double @testLFDX(ptr nocapture readonly %ptr, i32 zeroext %idx) local_unnamed_addr #2 {
366 entry:
367 %add = add i32 %idx, 1
368 %idxprom = zext i32 %add to i64
369 %arrayidx = getelementptr inbounds double, ptr %ptr, i64 %idxprom
370 %0 = load double, ptr %arrayidx, align 8, !tbaa !12
371 %add1 = add i32 %idx, 2
372 %idxprom2 = zext i32 %add1 to i64
373 %arrayidx3 = getelementptr inbounds double, ptr %ptr, i64 %idxprom2
374 %1 = load double, ptr %arrayidx3, align 8, !tbaa !12
375 %add4 = fadd double %0, %1
376 ret double %add4
377 }
378
379 ; Function Attrs: norecurse nounwind readonly
380 define <4 x float> @testLFSUX(ptr nocapture readonly %ptr, i32 signext %idx) local_unnamed_addr #2 {
381 entry:
382 %idxprom = sext i32 %idx to i64
383 %arrayidx = getelementptr inbounds float, ptr %ptr, i64 %idxprom
384 %0 = load float, ptr %arrayidx, align 4, !tbaa !14
385 %conv = fptoui float %0 to i32
386 %vecinit = insertelement <4 x i32> undef, i32 %conv, i32 0
387 %1 = bitcast ptr %ptr to ptr
388 %2 = shl i64 %idxprom, 2
389 %uglygep = getelementptr i8, ptr %1, i64 %2
390 %uglygep2 = getelementptr i8, ptr %uglygep, i64 4
391 %3 = bitcast ptr %uglygep2 to ptr
392 %4 = load float, ptr %3, align 4, !tbaa !14
393 %conv3 = fptoui float %4 to i32
394 %vecinit4 = insertelement <4 x i32> %vecinit, i32 %conv3, i32 1
395 %uglygep5 = getelementptr i8, ptr %uglygep, i64 8
396 %5 = bitcast ptr %uglygep5 to ptr
397 %6 = load float, ptr %5, align 4, !tbaa !14
398 %conv8 = fptoui float %6 to i32
399 %vecinit9 = insertelement <4 x i32> %vecinit4, i32 %conv8, i32 2
400 %uglygep8 = getelementptr i8, ptr %uglygep, i64 12
401 %7 = bitcast ptr %uglygep8 to ptr
402 %8 = load float, ptr %7, align 4, !tbaa !14
403 %conv13 = fptoui float %8 to i32
404 %vecinit14 = insertelement <4 x i32> %vecinit9, i32 %conv13, i32 3
405 %9 = bitcast <4 x i32> %vecinit14 to <4 x float>
406 ret <4 x float> %9
407 }
408
409 ; Function Attrs: norecurse nounwind readonly
410 define float @testLFSX(ptr nocapture readonly %ptr, i32 zeroext %idx) local_unnamed_addr #2 {
411 entry:
412 %add = add i32 %idx, 1
413 %idxprom = zext i32 %add to i64
414 %arrayidx = getelementptr inbounds float, ptr %ptr, i64 %idxprom
415 %0 = load float, ptr %arrayidx, align 4, !tbaa !14
416 %add1 = add i32 %idx, 2
417 %idxprom2 = zext i32 %add1 to i64
418 %arrayidx3 = getelementptr inbounds float, ptr %ptr, i64 %idxprom2
419 %1 = load float, ptr %arrayidx3, align 4, !tbaa !14
420 %add4 = fadd float %0, %1
421 ret float %add4
422 }
423
424 ; Function Attrs: norecurse nounwind readonly
425 define double @testLXSDX(ptr nocapture readonly %ptr, i32 zeroext %idx) local_unnamed_addr #1 {
426 entry:
427 %add = add i32 %idx, 1
428 %idxprom = zext i32 %add to i64
429 %arrayidx = getelementptr inbounds double, ptr %ptr, i64 %idxprom
430 %0 = load double, ptr %arrayidx, align 8, !tbaa !12
431 %add1 = add i32 %idx, 2
432 %idxprom2 = zext i32 %add1 to i64
433 %arrayidx3 = getelementptr inbounds double, ptr %ptr, i64 %idxprom2
434 %1 = load double, ptr %arrayidx3, align 8, !tbaa !12
435 %add4 = fadd double %0, %1
436 ret double %add4
437 }
438
439 ; Function Attrs: norecurse nounwind readonly
440 define float @testLXSSPX(ptr nocapture readonly %ptr, i32 zeroext %idx) local_unnamed_addr #1 {
441 entry:
442 %add = add i32 %idx, 1
443 %idxprom = zext i32 %add to i64
444 %arrayidx = getelementptr inbounds float, ptr %ptr, i64 %idxprom
445 %0 = load float, ptr %arrayidx, align 4, !tbaa !14
446 %add1 = add i32 %idx, 2
447 %idxprom2 = zext i32 %add1 to i64
448 %arrayidx3 = getelementptr inbounds float, ptr %ptr, i64 %idxprom2
449 %1 = load float, ptr %arrayidx3, align 4, !tbaa !14
450 %add4 = fadd float %0, %1
451 ret float %add4
452 }
453
454 ; Function Attrs: norecurse nounwind readonly
455 define <4 x i32> @testLXVX(ptr nocapture readonly %ptr, i32 zeroext %idx) local_unnamed_addr #1 {
456 entry:
457 %add = add i32 %idx, 1
458 %idxprom = zext i32 %add to i64
459 %arrayidx = getelementptr inbounds <4 x i32>, ptr %ptr, i64 %idxprom
460 %0 = load <4 x i32>, ptr %arrayidx, align 16, !tbaa !3
461 %add1 = add i32 %idx, 2
462 %idxprom2 = zext i32 %add1 to i64
463 %arrayidx3 = getelementptr inbounds <4 x i32>, ptr %ptr, i64 %idxprom2
464 %1 = load <4 x i32>, ptr %arrayidx3, align 16, !tbaa !3
465 %add4 = add <4 x i32> %1, %0
466 ret <4 x i32> %add4
467 }
468
469 ; Function Attrs: norecurse nounwind readnone
470 define signext i32 @testOR(i32 signext %a, i32 signext %b) local_unnamed_addr #0 {
471 entry:
472 %or = or i32 %b, %a
473 ret i32 %or
474 }
475
476 ; Function Attrs: norecurse nounwind readnone
477 define i64 @testOR8(i64 %a, i64 %b) local_unnamed_addr #0 {
478 entry:
479 %or = or i64 %b, %a
480 ret i64 %or
481 }
482
483 ; Function Attrs: norecurse nounwind readnone
484 define signext i32 @testORI(i32 signext %a) local_unnamed_addr #0 {
485 entry:
486 %or = or i32 %a, 88
487 ret i32 %or
488 }
489
490 ; Function Attrs: norecurse nounwind readnone
491 define i64 @testORI8(i64 %a) local_unnamed_addr #0 {
492 entry:
493 %or = or i64 %a, 99
494 ret i64 %or
495 }
496
497 ; Function Attrs: norecurse nounwind readnone
498 define i64 @testRLDCL(i64 %a, i64 %b) local_unnamed_addr #0 {
499 entry:
500 %and = and i64 %b, 63
501 %shl = shl i64 %a, %and
502 %sub = sub nsw i64 64, %and
503 %shr = lshr i64 %a, %sub
504 %or = or i64 %shr, %shl
505 ret i64 %or
506 }
507
508 ; Function Attrs: norecurse nounwind readnone
509 define i64 @testRLDCL_rec(i64 %a, i64 %b) local_unnamed_addr #0 {
510 entry:
511 %and = and i64 %b, 63
512 %shl = shl i64 %a, %and
513 %sub = sub nsw i64 64, %and
514 %shr = lshr i64 %a, %sub
515 %or = or i64 %shr, %shl
516 %tobool = icmp eq i64 %or, 0
517 %cond = select i1 %tobool, i64 %and, i64 %a
518 ret i64 %cond
519 }
520
521 ; Function Attrs: norecurse nounwind readnone
522 define i64 @testRLDCR(i64 %a, i64 %b) local_unnamed_addr #0 {
523 entry:
524 %and = and i64 %b, 63
525 %shl = shl i64 %a, %and
526 %sub = sub nsw i64 64, %and
527 %shr = lshr i64 %a, %sub
528 %or = or i64 %shr, %shl
529 ret i64 %or
530 }
531
532 ; Function Attrs: norecurse nounwind readnone
533 define i64 @testRLDCR_rec(i64 %a, i64 %b) local_unnamed_addr #0 {
534 entry:
535 %and = and i64 %b, 63
536 %shl = shl i64 %a, %and
537 %sub = sub nsw i64 64, %and
538 %shr = lshr i64 %a, %sub
539 %or = or i64 %shr, %shl
540 %tobool = icmp eq i64 %or, 0
541 %cond = select i1 %tobool, i64 %and, i64 %a
542 ret i64 %cond
543 }
544
545 ; Function Attrs: norecurse nounwind readnone
546 define i64 @testRLDICL(i64 %a) local_unnamed_addr #0 {
547 entry:
548 %shr = lshr i64 %a, 11
549 %and = and i64 %shr, 16777215
550 ret i64 %and
551 }
552
553 ; Function Attrs: norecurse nounwind readnone
554 define i64 @testRLDICL_MB0(i64 %a) local_unnamed_addr #0 {
555 entry:
556 %shr = lshr i64 %a, 11
557 %and = and i64 %shr, 16777215
558 ret i64 %and
559 }
560
561 ; Function Attrs: norecurse nounwind readnone
562 define i64 @testRLDICL_rec(i64 %a, i64 %b) local_unnamed_addr #0 {
563 entry:
564 %shr = lshr i64 %a, 11
565 %and = and i64 %shr, 16777215
566 %tobool = icmp eq i64 %and, 0
567 %cond = select i1 %tobool, i64 %b, i64 %and
568 ret i64 %cond
569 }
570
571 ; Function Attrs: norecurse nounwind readnone
572 define i64 @testRLDICL_rec2(i64 %a, i64 %b) local_unnamed_addr #0 {
573 entry:
574 %shr = lshr i64 %a, 11
575 %and = and i64 %shr, 16777215
576 %tobool = icmp eq i64 %and, 0
577 %cond = select i1 %tobool, i64 %b, i64 %and
578 ret i64 %cond
579 }
580
581 ; Function Attrs: norecurse nounwind readnone
582 define i64 @testRLDICL_rec3(i64 %a, i64 %b) local_unnamed_addr #0 {
583 entry:
584 %shr = lshr i64 %a, 11
585 %and = and i64 %shr, 16777215
586 %tobool = icmp eq i64 %and, 0
587 %cond = select i1 %tobool, i64 %b, i64 %and
588 ret i64 %cond
589 }
590
591 ; Function Attrs: norecurse nounwind readnone
592 define zeroext i32 @testRLWINM(i32 zeroext %a) local_unnamed_addr #0 {
593 entry:
594 %shl = shl i32 %a, 4
595 %and = and i32 %shl, 4080
596 ret i32 %and
597 }
598
599 ; Function Attrs: norecurse nounwind readnone
600 define zeroext i32 @testRLWINMFullReg(i32 zeroext %a) local_unnamed_addr #0 {
601 entry:
602 %shl = shl i32 %a, 4
603 %and = and i32 %shl, 4080
604 ret i32 %and
605 }
606
607 ; Function Attrs: norecurse nounwind readnone
608 define zeroext i32 @testRLWINMFullRegOutOfRange(i32 zeroext %a) local_unnamed_addr #0 {
609 entry:
610 %shl = shl i32 %a, 4
611 %and = and i32 %shl, 4080
612 ret i32 %and
613 }
614
615 ; Function Attrs: norecurse nounwind readnone
616 define i64 @testRLWINM8(i64 %a) local_unnamed_addr #0 {
617 entry:
618 %shl = shl i64 %a, 4
619 %and = and i64 %shl, 4080
620 ret i64 %and
621 }
622
623 ; Function Attrs: norecurse nounwind readnone
624 define zeroext i32 @testRLWINM_rec(i32 zeroext %a, i32 zeroext %b) local_unnamed_addr #0 {
625 entry:
626 %and = and i32 %a, 255
627 %tobool = icmp eq i32 %and, 0
628 %cond = select i1 %tobool, i32 %b, i32 %a
629 ret i32 %cond
630 }
631
632 ; Function Attrs: norecurse nounwind readnone
633 define zeroext i32 @testRLWINM_rec2(i32 zeroext %a, i32 zeroext %b) local_unnamed_addr #0 {
634 entry:
635 %and = and i32 %a, 255
636 %tobool = icmp eq i32 %and, 0
637 %cond = select i1 %tobool, i32 %b, i32 %a
638 ret i32 %cond
639 }
640
641 ; Function Attrs: norecurse nounwind readnone
642 define i64 @testRLWINM8_rec(i64 %a, i64 %b) local_unnamed_addr #0 {
643 entry:
644 %a.tr = trunc i64 %a to i32
645 %0 = shl i32 %a.tr, 4
646 %conv = and i32 %0, 4080
647 %tobool = icmp eq i32 %conv, 0
648 %conv1 = zext i32 %conv to i64
649 %cond = select i1 %tobool, i64 %b, i64 %conv1
650 ret i64 %cond
651 }
652
653 ; Function Attrs: norecurse nounwind readnone
654 define i64 @testSLD(i64 %a, i64 %b) local_unnamed_addr #0 {
655 entry:
656 %shl = shl i64 %a, %b
657 ret i64 %shl
658 }
659
660 ; Function Attrs: norecurse nounwind readnone
661 define i64 @testSLD_rec(i64 %a, i64 %b) local_unnamed_addr #0 {
662 entry:
663 %shl = shl i64 %a, %b
664 %tobool = icmp eq i64 %shl, 0
665 %cond = select i1 %tobool, i64 %b, i64 %a
666 ret i64 %cond
667 }
668
669 ; Function Attrs: norecurse nounwind readnone
670 define i64 @testSRD(i64 %a, i64 %b) local_unnamed_addr #0 {
671 entry:
672 %shr = lshr i64 %a, %b
673 ret i64 %shr
674 }
675
676 ; Function Attrs: norecurse nounwind readnone
677 define i64 @testSRD_rec(i64 %a, i64 %b) local_unnamed_addr #0 {
678 entry:
679 %shr = lshr i64 %a, %b
680 %tobool = icmp eq i64 %shr, 0
681 %cond = select i1 %tobool, i64 %b, i64 %a
682 ret i64 %cond
683 }
684
685 ; Function Attrs: norecurse nounwind readnone
686 define zeroext i32 @testSLW(i32 zeroext %a, i32 zeroext %b) local_unnamed_addr #0 {
687 entry:
688 %shl = shl i32 %a, %b
689 ret i32 %shl
690 }
691
692 ; Function Attrs: norecurse nounwind readnone
693 define zeroext i32 @testSLW_rec(i32 zeroext %a, i32 zeroext %b) local_unnamed_addr #0 {
694 entry:
695 %shl = shl i32 %a, %b
696 %tobool = icmp eq i32 %shl, 0
697 %cond = select i1 %tobool, i32 %b, i32 %a
698 ret i32 %cond
699 }
700
701 ; Function Attrs: norecurse nounwind readnone
702 define zeroext i32 @testSRW(i32 zeroext %a, i32 zeroext %b) local_unnamed_addr #0 {
703 entry:
704 %shr = lshr i32 %a, %b
705 ret i32 %shr
706 }
707
708 ; Function Attrs: norecurse nounwind readnone
709 define zeroext i32 @testSRW_rec(i32 zeroext %a, i32 zeroext %b) local_unnamed_addr #0 {
710 entry:
711 %shr = lshr i32 %a, %b
712 %tobool = icmp eq i32 %shr, 0
713 %cond = select i1 %tobool, i32 %b, i32 %a
714 ret i32 %cond
715 }
716
717 ; Function Attrs: norecurse nounwind readnone
718 define signext i32 @testSRAW(i32 signext %a, i32 signext %b) local_unnamed_addr #0 {
719 entry:
720 %shr = ashr i32 %a, %b
721 ret i32 %shr
722 }
723
724 ; Function Attrs: norecurse nounwind readnone
725 define signext i32 @testSRAW_rec(i32 signext %a, i32 signext %b) local_unnamed_addr #0 {
726 entry:
727 %shr = ashr i32 %a, %b
728 %tobool = icmp eq i32 %shr, 0
729 %cond = select i1 %tobool, i32 %b, i32 %shr
730 ret i32 %cond
731 }
732
733 ; Function Attrs: norecurse nounwind readnone
734 define i64 @testSRAD(i64 %a, i64 %b) local_unnamed_addr #0 {
735 entry:
736 %shr = ashr i64 %a, %b
737 ret i64 %shr
738 }
739
740 ; Function Attrs: norecurse nounwind readnone
741 define i64 @testSRAD_rec(i64 %a, i64 %b) local_unnamed_addr #0 {
742 entry:
743 %shr = ashr i64 %a, %b
744 %tobool = icmp eq i64 %shr, 0
745 %cond = select i1 %tobool, i64 %b, i64 %shr
746 ret i64 %cond
747 }
748
749 ; Function Attrs: norecurse nounwind
750 define void @testSTBUX(ptr nocapture %ptr, i8 zeroext %a, i32 zeroext %idx) local_unnamed_addr #3 {
751 entry:
752 %add = add i32 %idx, 1
753 %idxprom = zext i32 %add to i64
754 %arrayidx = getelementptr inbounds i8, ptr %ptr, i64 %idxprom
755 store i8 %a, ptr %arrayidx, align 1, !tbaa !3
756 %add1 = add i32 %idx, 2
757 %idxprom2 = zext i32 %add1 to i64
758 %arrayidx3 = getelementptr inbounds i8, ptr %ptr, i64 %idxprom2
759 store i8 %a, ptr %arrayidx3, align 1, !tbaa !3
760 ret void
761 }
762
763 ; Function Attrs: norecurse nounwind
764 define void @testSTBX(ptr nocapture %ptr, i8 zeroext %a, i32 zeroext %idx) local_unnamed_addr #3 {
765 entry:
766 %add = add i32 %idx, 1
767 %idxprom = zext i32 %add to i64
768 %arrayidx = getelementptr inbounds i8, ptr %ptr, i64 %idxprom
769 store i8 %a, ptr %arrayidx, align 1, !tbaa !3
770 %add1 = add i32 %idx, 2
771 %idxprom2 = zext i32 %add1 to i64
772 %arrayidx3 = getelementptr inbounds i8, ptr %ptr, i64 %idxprom2
773 store i8 %a, ptr %arrayidx3, align 1, !tbaa !3
774 ret void
775 }
776
777 ; Function Attrs: norecurse nounwind
778 define void @testSTHUX(ptr nocapture %ptr, i16 zeroext %a, i32 zeroext %idx) local_unnamed_addr #3 {
779 entry:
780 %add = add i32 %idx, 1
781 %idxprom = zext i32 %add to i64
782 %arrayidx = getelementptr inbounds i16, ptr %ptr, i64 %idxprom
783 store i16 %a, ptr %arrayidx, align 2, !tbaa !6
784 %add1 = add i32 %idx, 2
785 %idxprom2 = zext i32 %add1 to i64
786 %arrayidx3 = getelementptr inbounds i16, ptr %ptr, i64 %idxprom2
787 store i16 %a, ptr %arrayidx3, align 2, !tbaa !6
788 ret void
789 }
790
791 ; Function Attrs: norecurse nounwind
792 define void @testSTHX(ptr nocapture %ptr, i16 zeroext %a, i32 zeroext %idx) local_unnamed_addr #3 {
793 entry:
794 %add = add i32 %idx, 1
795 %idxprom = zext i32 %add to i64
796 %arrayidx = getelementptr inbounds i16, ptr %ptr, i64 %idxprom
797 store i16 %a, ptr %arrayidx, align 1, !tbaa !3
798 %add1 = add i32 %idx, 2
799 %idxprom2 = zext i32 %add1 to i64
800 %arrayidx3 = getelementptr inbounds i16, ptr %ptr, i64 %idxprom2
801 store i16 %a, ptr %arrayidx3, align 1, !tbaa !3
802 ret void
803 }
804
805 ; Function Attrs: norecurse nounwind
806 define void @testSTWUX(ptr nocapture %ptr, i32 zeroext %a, i32 zeroext %idx) local_unnamed_addr #3 {
807 entry:
808 %add = add i32 %idx, 1
809 %idxprom = zext i32 %add to i64
810 %arrayidx = getelementptr inbounds i32, ptr %ptr, i64 %idxprom
811 store i32 %a, ptr %arrayidx, align 4, !tbaa !8
812 %add1 = add i32 %idx, 2
813 %idxprom2 = zext i32 %add1 to i64
814 %arrayidx3 = getelementptr inbounds i32, ptr %ptr, i64 %idxprom2
815 store i32 %a, ptr %arrayidx3, align 4, !tbaa !8
816 ret void
817 }
818
819 ; Function Attrs: norecurse nounwind
820 define void @testSTWX(ptr nocapture %ptr, i32 zeroext %a, i32 zeroext %idx) local_unnamed_addr #3 {
821 entry:
822 %add = add i32 %idx, 1
823 %idxprom = zext i32 %add to i64
824 %arrayidx = getelementptr inbounds i32, ptr %ptr, i64 %idxprom
825 store i32 %a, ptr %arrayidx, align 4, !tbaa !8
826 %add1 = add i32 %idx, 2
827 %idxprom2 = zext i32 %add1 to i64
828 %arrayidx3 = getelementptr inbounds i32, ptr %ptr, i64 %idxprom2
829 store i32 %a, ptr %arrayidx3, align 4, !tbaa !8
830 ret void
831 }
832
833 ; Function Attrs: norecurse nounwind
834 define void @testSTDUX(ptr nocapture %ptr, i64 %a, i32 zeroext %idx) local_unnamed_addr #3 {
835 entry:
836 %add = add i32 %idx, 1
837 %idxprom = zext i32 %add to i64
838 %arrayidx = getelementptr inbounds i64, ptr %ptr, i64 %idxprom
839 store i64 %a, ptr %arrayidx, align 8, !tbaa !10
840 %add1 = add i32 %idx, 2
841 %idxprom2 = zext i32 %add1 to i64
842 %arrayidx3 = getelementptr inbounds i64, ptr %ptr, i64 %idxprom2
843 store i64 %a, ptr %arrayidx3, align 8, !tbaa !10
844 ret void
845 }
846
847 ; Function Attrs: norecurse nounwind
848 define void @testSTDX(ptr nocapture %ptr, i64 %a, i32 zeroext %idx) local_unnamed_addr #3 {
849 entry:
850 %add = add i32 %idx, 1
851 %idxprom = zext i32 %add to i64
852 %arrayidx = getelementptr inbounds i64, ptr %ptr, i64 %idxprom
853 store i64 %a, ptr %arrayidx, align 8, !tbaa !10
854 %add1 = add i32 %idx, 2
855 %idxprom2 = zext i32 %add1 to i64
856 %arrayidx3 = getelementptr inbounds i64, ptr %ptr, i64 %idxprom2
857 store i64 %a, ptr %arrayidx3, align 8, !tbaa !10
858 ret void
859 }
860
861 ; Function Attrs: norecurse nounwind readonly
862 define void @testSTFSX(ptr nocapture %ptr, float %a, i32 zeroext %idx) local_unnamed_addr #2 {
863 entry:
864 %add = add i32 %idx, 1
865 %idxprom = zext i32 %add to i64
866 %arrayidx = getelementptr inbounds float, ptr %ptr, i64 %idxprom
867 store float %a, ptr %arrayidx, align 4, !tbaa !14
868 %add1 = add i32 %idx, 2
869 %idxprom2 = zext i32 %add1 to i64
870 %arrayidx3 = getelementptr inbounds float, ptr %ptr, i64 %idxprom2
871 store float %a, ptr %arrayidx3, align 4, !tbaa !14
872 ret void
873 }
874
875 ; Function Attrs: norecurse nounwind readonly
876 define void @testSTFSUX(ptr nocapture %ptr, float %a, i32 zeroext %idx) local_unnamed_addr #2 {
877 entry:
878 %add = add i32 %idx, 1
879 %idxprom = zext i32 %add to i64
880 %arrayidx = getelementptr inbounds float, ptr %ptr, i64 %idxprom
881 store float %a, ptr %arrayidx, align 4, !tbaa !14
882 %add1 = add i32 %idx, 2
883 %idxprom2 = zext i32 %add1 to i64
884 %arrayidx3 = getelementptr inbounds float, ptr %ptr, i64 %idxprom2
885 store float %a, ptr %arrayidx3, align 4, !tbaa !14
886 ret void
887 }
888
889 ; Function Attrs: norecurse nounwind readonly
890 define void @testSTFDX(ptr nocapture %ptr, double %a, i32 zeroext %idx) local_unnamed_addr #2 {
891 entry:
892 %add = add i32 %idx, 1
893 %idxprom = zext i32 %add to i64
894 %arrayidx = getelementptr inbounds double, ptr %ptr, i64 %idxprom
895 store double %a, ptr %arrayidx, align 8, !tbaa !12
896 %add1 = add i32 %idx, 2
897 %idxprom2 = zext i32 %add1 to i64
898 %arrayidx3 = getelementptr inbounds double, ptr %ptr, i64 %idxprom2
899 store double %a, ptr %arrayidx3, align 8, !tbaa !12
900 ret void
901 }
902
903 ; Function Attrs: norecurse nounwind readonly
904 define void @testSTFDUX(ptr nocapture %ptr, double %a, i32 zeroext %idx) local_unnamed_addr #2 {
905 entry:
906 %add = add i32 %idx, 1
907 %idxprom = zext i32 %add to i64
908 %arrayidx = getelementptr inbounds double, ptr %ptr, i64 %idxprom
909 store double %a, ptr %arrayidx, align 8, !tbaa !12
910 %add1 = add i32 %idx, 2
911 %idxprom2 = zext i32 %add1 to i64
912 %arrayidx3 = getelementptr inbounds double, ptr %ptr, i64 %idxprom2
913 store double %a, ptr %arrayidx3, align 8, !tbaa !12
914 ret void
915 }
916
917 ; Function Attrs: norecurse nounwind
918 define void @testSTXSSPX(ptr nocapture %ptr, float %a, i32 zeroext %idx) local_unnamed_addr #3 {
919 entry:
920 %idxprom = zext i32 %idx to i64
921 %arrayidx = getelementptr inbounds float, ptr %ptr, i64 %idxprom
922 store float %a, ptr %arrayidx, align 4, !tbaa !14
923 ret void
924 }
925
926 ; Function Attrs: norecurse nounwind
927 define void @testSTXSDX(ptr nocapture %ptr, double %a, i32 zeroext %idx) local_unnamed_addr #3 {
928 entry:
929 %idxprom = zext i32 %idx to i64
930 %arrayidx = getelementptr inbounds double, ptr %ptr, i64 %idxprom
931 store double %a, ptr %arrayidx, align 8, !tbaa !12
932 ret void
933 }
934
935 ; Function Attrs: norecurse nounwind
936 define void @testSTXVX(ptr nocapture %ptr, <4 x i32> %a, i32 zeroext %idx) local_unnamed_addr #3 {
937 entry:
938 %idxprom = zext i32 %idx to i64
939 %arrayidx = getelementptr inbounds <4 x i32>, ptr %ptr, i64 %idxprom
940 store <4 x i32> %a, ptr %arrayidx, align 16, !tbaa !3
941 ret void
942 }
943
944 ; Function Attrs: norecurse nounwind readnone
945 define i128 @testSUBFC(i128 %a, i128 %b) local_unnamed_addr #0 {
946 entry:
947 %sub = sub nsw i128 %a, %b
948 ret i128 %sub
949 }
950
951 ; Function Attrs: norecurse nounwind readnone
952 define i128 @testSUBFC8(i128 %a, i128 %b) local_unnamed_addr #0 {
953 entry:
954 %sub = sub nsw i128 %a, %b
955 ret i128 %sub
956 }
957
958 ; Function Attrs: norecurse nounwind readnone
959 define signext i32 @testXOR(i32 signext %a, i32 signext %b) local_unnamed_addr #0 {
960 entry:
961 %xor = xor i32 %b, %a
962 ret i32 %xor
963 }
964
965 ; Function Attrs: norecurse nounwind readnone
966 define i64 @testXOR8(i64 %a, i64 %b) local_unnamed_addr #0 {
967 entry:
968 %xor = xor i64 %b, %a
969 ret i64 %xor
970 }
971
972 ; Function Attrs: norecurse nounwind readnone
973 define signext i32 @testXORI(i32 signext %a) local_unnamed_addr #0 {
974 entry:
975 %xor = xor i32 %a, 17
976 ret i32 %xor
977 }
978
979 ; Function Attrs: norecurse nounwind readnone
980 define i64 @testXOR8I(i64 %a) local_unnamed_addr #0 {
981 entry:
982 %xor = xor i64 %a, 17
983 ret i64 %xor
984 }
985
986 attributes #0 = { norecurse nounwind readnone "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="none" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="pwr9" "target-features"="+altivec,+bpermd,+crypto,+direct-move,+extdiv,+htm,+power8-vector,+power9-vector,+vsx" "use-soft-float"="false" }
987 attributes #1 = { norecurse nounwind readonly "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="none" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="pwr9" "target-features"="+altivec,+bpermd,+crypto,+direct-move,+extdiv,+htm,+power8-vector,+power9-vector,+vsx" "use-soft-float"="false" }
988 attributes #2 = { norecurse nounwind readonly "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="none" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="pwr9" "target-features"="+altivec,+bpermd,+crypto,+direct-move,+extdiv,+htm,+power8-vector,+power9-vector,-vsx" "use-soft-float"="false" }
989 attributes #3 = { norecurse nounwind "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="none" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="pwr9" "target-features"="+altivec,+bpermd,+crypto,+direct-move,+extdiv,+htm,+power8-vector,+power9-vector,+vsx" "use-soft-float"="false" }
990
991 !llvm.module.flags = !{!0, !1}
992 !llvm.ident = !{!2}
993
994 !0 = !{i32 1, !"wchar_size", i32 4}
995 !1 = !{i32 7, !"PIC Level", i32 2}
996 !2 = !{!"clang version 6.0.0 (trunk 316067)"}
997 !3 = !{!4, !4, i64 0}
998 !4 = !{!"omnipotent char", !5, i64 0}
999 !5 = !{!"Simple C/C++ TBAA"}
1000 !6 = !{!7, !7, i64 0}
1001 !7 = !{!"short", !4, i64 0}
1002 !8 = !{!9, !9, i64 0}
1003 !9 = !{!"int", !4, i64 0}
1004 !10 = !{!11, !11, i64 0}
1005 !11 = !{!"long long", !4, i64 0}
1006 !12 = !{!13, !13, i64 0}
1007 !13 = !{!"double", !4, i64 0}
1008 !14 = !{!15, !15, i64 0}
1009 !15 = !{!"float", !4, i64 0}
1010
1011 ...
1012 ---
1013 name: testADD4
1014 # CHECK-ALL: name: testADD4
1015 alignment: 16
1016 exposesReturnsTwice: false
1017 legalized: false
1018 regBankSelected: false
1019 selected: false
1020 tracksRegLiveness: true
1021 registers:
1022 - { id: 0, class: g8rc, preferred-register: '' }
1023 - { id: 1, class: g8rc, preferred-register: '' }
1024 - { id: 2, class: gprc, preferred-register: '' }
1025 - { id: 3, class: gprc, preferred-register: '' }
1026 - { id: 4, class: gprc_and_gprc_nor0, preferred-register: '' }
1027 - { id: 5, class: gprc, preferred-register: '' }
1028 - { id: 6, class: g8rc, preferred-register: '' }
1029 liveins:
1030 - { reg: '$x3', virtual-reg: '%0' }
1031 - { reg: '$x4', virtual-reg: '%1' }
1032 frameInfo:
1033 isFrameAddressTaken: false
1034 isReturnAddressTaken: false
1035 hasStackMap: false
1036 hasPatchPoint: false
1037 stackSize: 0
1038 offsetAdjustment: 0
1039 maxAlignment: 0
1040 adjustsStack: false
1041 hasCalls: false
1042 stackProtector: ''
1043 maxCallFrameSize: 4294967295
1044 hasOpaqueSPAdjustment: false
1045 hasVAStart: false
1046 hasMustTailInVarArgFunc: false
1047 savePoint: []
1048 restorePoint: []
1049 fixedStack:
1050 stack:
1051 constants:
1052 body: |
1053 bb.0.entry:
1054 liveins: $x3, $x4
1055
1056 %1 = COPY $x4
1057 %0 = COPY $x3
1058 %2 = LI 33
1059 %3 = COPY %0.sub_32
1060 %4 = ADD4 killed %3, %2
1061 %5 = ADD4 killed %2, killed %4
1062 ; CHECK: ADDI killed %3, 33
1063 ; CHECK: ADDI killed %4, 33
1064 ; CHECK-LATE: addi 3, 3, 33
1065 ; CHECK-LATE: addi 3, 3, 33
1066 %6 = EXTSW_32_64 killed %5
1067 $x3 = COPY %6
1068 BLR8 implicit $lr8, implicit $rm, implicit $x3
1069
1070 ...
1071 ---
1072 name: testADD8
1073 # CHECK-ALL: name: testADD8
1074 alignment: 16
1075 exposesReturnsTwice: false
1076 legalized: false
1077 regBankSelected: false
1078 selected: false
1079 tracksRegLiveness: true
1080 registers:
1081 - { id: 0, class: g8rc, preferred-register: '' }
1082 - { id: 1, class: g8rc, preferred-register: '' }
1083 - { id: 2, class: g8rc_and_g8rc_nox0, preferred-register: '' }
1084 - { id: 3, class: g8rc, preferred-register: '' }
1085 liveins:
1086 - { reg: '$x3', virtual-reg: '%0' }
1087 - { reg: '$x4', virtual-reg: '%1' }
1088 frameInfo:
1089 isFrameAddressTaken: false
1090 isReturnAddressTaken: false
1091 hasStackMap: false
1092 hasPatchPoint: false
1093 stackSize: 0
1094 offsetAdjustment: 0
1095 maxAlignment: 0
1096 adjustsStack: false
1097 hasCalls: false
1098 stackProtector: ''
1099 maxCallFrameSize: 4294967295
1100 hasOpaqueSPAdjustment: false
1101 hasVAStart: false
1102 hasMustTailInVarArgFunc: false
1103 savePoint: []
1104 restorePoint: []
1105 fixedStack:
1106 stack:
1107 constants:
1108 body: |
1109 bb.0.entry:
1110 liveins: $x3, $x4
1111
1112 %1 = LI8 33
1113 %0 = COPY $x3
1114 %2 = ADD8 %0, %1
1115 %3 = ADD8 killed %1, killed %2
1116 ; CHECK: ADDI8 killed %0, 33
1117 ; CHECK: ADDI8 killed %2, 33
1118 ; CHECK-LATE: addi 3, 3, 33
1119 ; CHECK-LATE: addi 3, 3, 33
1120 $x3 = COPY %3
1121 BLR8 implicit $lr8, implicit $rm, implicit $x3
1122
1123 ...
1124 ---
1125 name: testADDC
1126 # CHECK-ALL: name: testADDC
1127 alignment: 16
1128 exposesReturnsTwice: false
1129 legalized: false
1130 regBankSelected: false
1131 selected: false
1132 tracksRegLiveness: true
1133 registers:
1134 - { id: 0, class: g8rc, preferred-register: '' }
1135 - { id: 1, class: g8rc, preferred-register: '' }
1136 - { id: 2, class: g8rc, preferred-register: '' }
1137 - { id: 3, class: g8rc, preferred-register: '' }
1138 - { id: 4, class: gprc, preferred-register: '' }
1139 - { id: 5, class: gprc, preferred-register: '' }
1140 - { id: 6, class: gprc, preferred-register: '' }
1141 - { id: 7, class: g8rc, preferred-register: '' }
1142 - { id: 8, class: g8rc, preferred-register: '' }
1143 liveins:
1144 - { reg: '$x3', virtual-reg: '%0' }
1145 - { reg: '$x4', virtual-reg: '%1' }
1146 - { reg: '$x5', virtual-reg: '%2' }
1147 - { reg: '$x6', virtual-reg: '%3' }
1148 frameInfo:
1149 isFrameAddressTaken: false
1150 isReturnAddressTaken: false
1151 hasStackMap: false
1152 hasPatchPoint: false
1153 stackSize: 0
1154 offsetAdjustment: 0
1155 maxAlignment: 0
1156 adjustsStack: false
1157 hasCalls: false
1158 stackProtector: ''
1159 maxCallFrameSize: 4294967295
1160 hasOpaqueSPAdjustment: false
1161 hasVAStart: false
1162 hasMustTailInVarArgFunc: false
1163 savePoint: []
1164 restorePoint: []
1165 fixedStack:
1166 stack:
1167 constants:
1168 body: |
1169 bb.0.entry:
1170 liveins: $x3, $x4, $x5, $x6
1171
1172 %3 = COPY $x6
1173 %2 = COPY $x5
1174 %1 = COPY $x4
1175 %0 = COPY $x3
1176 %4 = COPY %0.sub_32
1177 %5 = LI 55
1178 %6 = ADDC %5, %4, implicit-def $carry
1179 ; CHECK: ADDIC killed %4, 55, implicit-def $carry
1180 ; CHECK-LATE: addic 3, 3, 55
1181 %7 = ADDE8 %3, %1, implicit-def dead $carry, implicit $carry
1182 %8 = EXTSW_32_64 %6
1183 $x3 = COPY %8
1184 $x4 = COPY %7
1185 BLR8 implicit $lr8, implicit $rm, implicit $x3, implicit $x4
1186
1187 ...
1188 ---
1189 name: testADDC8
1190 # CHECK-ALL: name: testADDC8
1191 alignment: 16
1192 exposesReturnsTwice: false
1193 legalized: false
1194 regBankSelected: false
1195 selected: false
1196 tracksRegLiveness: true
1197 registers:
1198 - { id: 0, class: g8rc, preferred-register: '' }
1199 - { id: 1, class: g8rc, preferred-register: '' }
1200 - { id: 2, class: g8rc, preferred-register: '' }
1201 - { id: 3, class: g8rc, preferred-register: '' }
1202 - { id: 4, class: g8rc, preferred-register: '' }
1203 - { id: 5, class: g8rc, preferred-register: '' }
1204 liveins:
1205 - { reg: '$x3', virtual-reg: '%0' }
1206 - { reg: '$x4', virtual-reg: '%1' }
1207 - { reg: '$x5', virtual-reg: '%2' }
1208 - { reg: '$x6', virtual-reg: '%3' }
1209 frameInfo:
1210 isFrameAddressTaken: false
1211 isReturnAddressTaken: false
1212 hasStackMap: false
1213 hasPatchPoint: false
1214 stackSize: 0
1215 offsetAdjustment: 0
1216 maxAlignment: 0
1217 adjustsStack: false
1218 hasCalls: false
1219 stackProtector: ''
1220 maxCallFrameSize: 4294967295
1221 hasOpaqueSPAdjustment: false
1222 hasVAStart: false
1223 hasMustTailInVarArgFunc: false
1224 savePoint: []
1225 restorePoint: []
1226 fixedStack:
1227 stack:
1228 constants:
1229 body: |
1230 bb.0.entry:
1231 liveins: $x3, $x4, $x5, $x6
1232
1233 %3 = COPY $x6
1234 %2 = COPY $x5
1235 %1 = COPY $x4
1236 %0 = LI8 777
1237 %4 = ADDC8 %2, %0, implicit-def $carry
1238 ; CHECK: ADDIC8 killed %2, 777, implicit-def $carry
1239 ; CHECK-LATE: addic 3, 5, 777
1240 %5 = ADDE8 %3, %1, implicit-def dead $carry, implicit $carry
1241 $x3 = COPY %4
1242 $x4 = COPY %5
1243 BLR8 implicit $lr8, implicit $rm, implicit $x3, implicit $x4
1244
1245 ...
1246 ---
1247 name: testADDC_rec
1248 # CHECK-ALL: name: testADDC_rec
1249 alignment: 16
1250 exposesReturnsTwice: false
1251 legalized: false
1252 regBankSelected: false
1253 selected: false
1254 tracksRegLiveness: true
1255 registers:
1256 - { id: 0, class: g8rc, preferred-register: '' }
1257 - { id: 1, class: gprc, preferred-register: '' }
1258 - { id: 2, class: gprc, preferred-register: '' }
1259 - { id: 3, class: gprc, preferred-register: '' }
1260 - { id: 4, class: crrc, preferred-register: '' }
1261 - { id: 5, class: crbitrc, preferred-register: '' }
1262 - { id: 6, class: g8rc_and_g8rc_nox0, preferred-register: '' }
1263 - { id: 7, class: g8rc_and_g8rc_nox0, preferred-register: '' }
1264 - { id: 8, class: g8rc, preferred-register: '' }
1265 liveins:
1266 - { reg: '$x3', virtual-reg: '%0' }
1267 - { reg: '$x4', virtual-reg: '%1' }
1268 frameInfo:
1269 isFrameAddressTaken: false
1270 isReturnAddressTaken: false
1271 hasStackMap: false
1272 hasPatchPoint: false
1273 stackSize: 0
1274 offsetAdjustment: 0
1275 maxAlignment: 0
1276 adjustsStack: false
1277 hasCalls: false
1278 stackProtector: ''
1279 maxCallFrameSize: 4294967295
1280 hasOpaqueSPAdjustment: false
1281 hasVAStart: false
1282 hasMustTailInVarArgFunc: false
1283 savePoint: []
1284 restorePoint: []
1285 fixedStack:
1286 stack:
1287 constants:
1288 body: |
1289 bb.0.entry:
1290 liveins: $x3, $x4
1291
1292 %1 = LI 433
1293 %0 = COPY $x3
1294 %2 = COPY %0.sub_32
1295 %3 = ADDC_rec %1, %2, implicit-def $cr0, implicit-def $carry
1296 ; CHECK: ADDIC_rec killed %2, 433, implicit-def $cr0, implicit-def dead $carry
1297 ; CHECK-LATE: addic. 3, 3, 433
1298 %4 = COPY killed $cr0
1299 %5 = COPY %4.sub_eq
1300 %6 = LI8 0
1301 %7 = LI8 -1
1302 %8 = ISEL8 %7, %6, %5
1303 $x3 = COPY %8
1304 BLR8 implicit $lr8, implicit $rm, implicit $x3
1305
1306 ...
1307 ---
1308 name: testADDI
1309 # CHECK-ALL: name: testADDI
1310 alignment: 16
1311 exposesReturnsTwice: false
1312 legalized: false
1313 regBankSelected: false
1314 selected: false
1315 tracksRegLiveness: true
1316 registers:
1317 - { id: 0, class: g8rc, preferred-register: '' }
1318 - { id: 1, class: gprc_and_gprc_nor0, preferred-register: '' }
1319 - { id: 2, class: gprc, preferred-register: '' }
1320 - { id: 3, class: g8rc, preferred-register: '' }
1321 liveins:
1322 - { reg: '$x3', virtual-reg: '%0' }
1323 frameInfo:
1324 isFrameAddressTaken: false
1325 isReturnAddressTaken: false
1326 hasStackMap: false
1327 hasPatchPoint: false
1328 stackSize: 0
1329 offsetAdjustment: 0
1330 maxAlignment: 0
1331 adjustsStack: false
1332 hasCalls: false
1333 stackProtector: ''
1334 maxCallFrameSize: 4294967295
1335 hasOpaqueSPAdjustment: false
1336 hasVAStart: false
1337 hasMustTailInVarArgFunc: false
1338 savePoint: []
1339 restorePoint: []
1340 fixedStack:
1341 stack:
1342 constants:
1343 body: |
1344 bb.0.entry:
1345 liveins: $x3
1346
1347 %0 = COPY $x3
1348 %1 = LI 77
1349 %2 = ADDI killed %1, 44
1350 %3 = EXTSW_32_64 killed %2
1351 ; CHECK: LI8 121
1352 ; CHECK-LATE: li 3, 121
1353 $x3 = COPY %3
1354 BLR8 implicit $lr8, implicit $rm, implicit $x3
1355
1356 ...
1357 ---
1358 name: testADDI8
1359 # CHECK-ALL: name: testADDI8
1360 alignment: 16
1361 exposesReturnsTwice: false
1362 legalized: false
1363 regBankSelected: false
1364 selected: false
1365 tracksRegLiveness: true
1366 registers:
1367 - { id: 0, class: g8rc, preferred-register: '' }
1368 - { id: 1, class: g8rc_and_g8rc_nox0, preferred-register: '' }
1369 - { id: 2, class: g8rc, preferred-register: '' }
1370 - { id: 3, class: g8rc, preferred-register: '' }
1371 liveins:
1372 - { reg: '$x3', virtual-reg: '%0' }
1373 frameInfo:
1374 isFrameAddressTaken: false
1375 isReturnAddressTaken: false
1376 hasStackMap: false
1377 hasPatchPoint: false
1378 stackSize: 0
1379 offsetAdjustment: 0
1380 maxAlignment: 0
1381 adjustsStack: false
1382 hasCalls: false
1383 stackProtector: ''
1384 maxCallFrameSize: 4294967295
1385 hasOpaqueSPAdjustment: false
1386 hasVAStart: false
1387 hasMustTailInVarArgFunc: false
1388 savePoint: []
1389 restorePoint: []
1390 fixedStack:
1391 stack:
1392 constants:
1393 body: |
1394 bb.0.entry:
1395 liveins: $x3
1396
1397 %0 = COPY $x3
1398 %1 = LI8 333
1399 %2 = ADDI8 killed %1, 44
1400 ; CHECK: LI8 377
1401 ; CHECK-LATE: li 3, 377
1402 %3 = EXTSW killed %2
1403 $x3 = COPY %3
1404 BLR8 implicit $lr8, implicit $rm, implicit $x3
1405
1406 ...
1407 ---
1408 name: testAND_rec
1409 # CHECK-ALL: name: testAND_rec
1410 alignment: 16
1411 exposesReturnsTwice: false
1412 legalized: false
1413 regBankSelected: false
1414 selected: false
1415 tracksRegLiveness: true
1416 registers:
1417 - { id: 0, class: g8rc_and_g8rc_nox0, preferred-register: '' }
1418 - { id: 1, class: gprc, preferred-register: '' }
1419 - { id: 2, class: gprc_and_gprc_nor0, preferred-register: '' }
1420 - { id: 3, class: gprc, preferred-register: '' }
1421 - { id: 4, class: crrc, preferred-register: '' }
1422 - { id: 5, class: gprc, preferred-register: '' }
1423 - { id: 6, class: g8rc, preferred-register: '' }
1424 liveins:
1425 - { reg: '$x3', virtual-reg: '%0' }
1426 - { reg: '$x4', virtual-reg: '%1' }
1427 frameInfo:
1428 isFrameAddressTaken: false
1429 isReturnAddressTaken: false
1430 hasStackMap: false
1431 hasPatchPoint: false
1432 stackSize: 0
1433 offsetAdjustment: 0
1434 maxAlignment: 0
1435 adjustsStack: false
1436 hasCalls: false
1437 stackProtector: ''
1438 maxCallFrameSize: 4294967295
1439 hasOpaqueSPAdjustment: false
1440 hasVAStart: false
1441 hasMustTailInVarArgFunc: false
1442 savePoint: []
1443 restorePoint: []
1444 fixedStack:
1445 stack:
1446 constants:
1447 body: |
1448 bb.0.entry:
1449 liveins: $x3, $x4
1450
1451 %1 = LI 78
1452 %0 = COPY $x3
1453 %2 = COPY %0.sub_32
1454 %3 = AND_rec %1, %2, implicit-def $cr0
1455 ; CHECK: ANDI_rec %2, 78, implicit-def $cr0
1456 ; CHECK-LATE: andi. 5, 3, 78
1457 %4 = COPY killed $cr0
1458 %5 = ISEL %2, %1, %4.sub_eq
1459 %6 = EXTSW_32_64 killed %5
1460 $x3 = COPY %6
1461 BLR8 implicit $lr8, implicit $rm, implicit $x3
1462
1463 ...
1464 ---
1465 name: testAND8_rec
1466 # CHECK-ALL: name: testAND8_rec
1467 alignment: 16
1468 exposesReturnsTwice: false
1469 legalized: false
1470 regBankSelected: false
1471 selected: false
1472 tracksRegLiveness: true
1473 registers:
1474 - { id: 0, class: g8rc_and_g8rc_nox0, preferred-register: '' }
1475 - { id: 1, class: g8rc_and_g8rc_nox0, preferred-register: '' }
1476 - { id: 2, class: g8rc, preferred-register: '' }
1477 - { id: 3, class: crrc, preferred-register: '' }
1478 - { id: 4, class: g8rc, preferred-register: '' }
1479 liveins:
1480 - { reg: '$x3', virtual-reg: '%0' }
1481 - { reg: '$x4', virtual-reg: '%1' }
1482 frameInfo:
1483 isFrameAddressTaken: false
1484 isReturnAddressTaken: false
1485 hasStackMap: false
1486 hasPatchPoint: false
1487 stackSize: 0
1488 offsetAdjustment: 0
1489 maxAlignment: 0
1490 adjustsStack: false
1491 hasCalls: false
1492 stackProtector: ''
1493 maxCallFrameSize: 4294967295
1494 hasOpaqueSPAdjustment: false
1495 hasVAStart: false
1496 hasMustTailInVarArgFunc: false
1497 savePoint: []
1498 restorePoint: []
1499 fixedStack:
1500 stack:
1501 constants:
1502 body: |
1503 bb.0.entry:
1504 liveins: $x3, $x4
1505
1506 %1 = LI8 321
1507 %0 = COPY $x3
1508 %2 = AND8_rec %1, %0, implicit-def $cr0
1509 ; CHECK: ANDI8_rec %0, 321, implicit-def $cr0
1510 ; CHECK-LATE: andi. 5, 3, 321
1511 %3 = COPY killed $cr0
1512 %4 = ISEL8 %1, %0, %3.sub_eq
1513 $x3 = COPY %4
1514 BLR8 implicit $lr8, implicit $rm, implicit $x3
1515
1516 ...
1517 ---
1518 name: testCMPD
1519 # CHECK-ALL: name: testCMPD
1520 alignment: 16
1521 exposesReturnsTwice: false
1522 legalized: false
1523 regBankSelected: false
1524 selected: false
1525 tracksRegLiveness: true
1526 registers:
1527 - { id: 0, class: g8rc_and_g8rc_nox0, preferred-register: '' }
1528 - { id: 1, class: g8rc, preferred-register: '' }
1529 - { id: 2, class: crrc, preferred-register: '' }
1530 - { id: 3, class: g8rc_and_g8rc_nox0, preferred-register: '' }
1531 - { id: 4, class: g8rc, preferred-register: '' }
1532 - { id: 5, class: g8rc, preferred-register: '' }
1533 liveins:
1534 - { reg: '$x3', virtual-reg: '%0' }
1535 - { reg: '$x4', virtual-reg: '%1' }
1536 frameInfo:
1537 isFrameAddressTaken: false
1538 isReturnAddressTaken: false
1539 hasStackMap: false
1540 hasPatchPoint: false
1541 stackSize: 0
1542 offsetAdjustment: 0
1543 maxAlignment: 0
1544 adjustsStack: false
1545 hasCalls: false
1546 stackProtector: ''
1547 maxCallFrameSize: 4294967295
1548 hasOpaqueSPAdjustment: false
1549 hasVAStart: false
1550 hasMustTailInVarArgFunc: false
1551 savePoint: []
1552 restorePoint: []
1553 fixedStack:
1554 stack:
1555 constants:
1556 body: |
1557 bb.0.entry:
1558 liveins: $x3, $x4
1559
1560 %1 = LI8 65533
1561 %0 = COPY $x3
1562 %2 = CMPD %0, %1
1563 ; CHECK: CMPDI %0, -3
1564 ; CHECK-LATE: cmpdi 3, -3
1565 %4 = ISEL8 $zero8, %0, %2.sub_gt
1566 %5 = ADD8 killed %4, %1
1567 $x3 = COPY %5
1568 BLR8 implicit $lr8, implicit $rm, implicit $x3
1569
1570 ...
1571 ---
1572 name: testCMPDI
1573 # CHECK-ALL: name: testCMPDI
1574 alignment: 16
1575 exposesReturnsTwice: false
1576 legalized: false
1577 regBankSelected: false
1578 selected: false
1579 tracksRegLiveness: true
1580 registers:
1581 - { id: 0, class: g8rc_and_g8rc_nox0, preferred-register: '' }
1582 - { id: 1, class: g8rc, preferred-register: '' }
1583 - { id: 2, class: crrc, preferred-register: '' }
1584 - { id: 3, class: g8rc_and_g8rc_nox0, preferred-register: '' }
1585 - { id: 4, class: g8rc, preferred-register: '' }
1586 - { id: 5, class: g8rc, preferred-register: '' }
1587 liveins:
1588 - { reg: '$x3', virtual-reg: '%0' }
1589 - { reg: '$x4', virtual-reg: '%1' }
1590 frameInfo:
1591 isFrameAddressTaken: false
1592 isReturnAddressTaken: false
1593 hasStackMap: false
1594 hasPatchPoint: false
1595 stackSize: 0
1596 offsetAdjustment: 0
1597 maxAlignment: 0
1598 adjustsStack: false
1599 hasCalls: false
1600 stackProtector: ''
1601 maxCallFrameSize: 4294967295
1602 hasOpaqueSPAdjustment: false
1603 hasVAStart: false
1604 hasMustTailInVarArgFunc: false
1605 savePoint: []
1606 restorePoint: []
1607 fixedStack:
1608 stack:
1609 constants:
1610 body: |
1611 bb.0.entry:
1612 liveins: $x3, $x4
1613
1614 %1 = COPY $x4
1615 %0 = LI8 89
1616 %2 = CMPDI %0, 87
1617 %4 = ISEL8 $zero8, %0, %2.sub_gt
1618 ; CHECK: ADDI8 killed %1, 0
1619 %5 = ADD8 killed %4, %1
1620 $x3 = COPY %5
1621 BLR8 implicit $lr8, implicit $rm, implicit $x3
1622
1623 ...
1624 ---
1625 name: testCMPDI_F
1626 # CHECK-ALL: name: testCMPDI_F
1627 alignment: 16
1628 exposesReturnsTwice: false
1629 legalized: false
1630 regBankSelected: false
1631 selected: false
1632 tracksRegLiveness: true
1633 registers:
1634 - { id: 0, class: g8rc_and_g8rc_nox0, preferred-register: '' }
1635 - { id: 1, class: g8rc, preferred-register: '' }
1636 - { id: 2, class: crrc, preferred-register: '' }
1637 - { id: 3, class: g8rc_and_g8rc_nox0, preferred-register: '' }
1638 - { id: 4, class: g8rc, preferred-register: '' }
1639 - { id: 5, class: g8rc, preferred-register: '' }
1640 liveins:
1641 - { reg: '$x3', virtual-reg: '%0' }
1642 - { reg: '$x4', virtual-reg: '%1' }
1643 frameInfo:
1644 isFrameAddressTaken: false
1645 isReturnAddressTaken: false
1646 hasStackMap: false
1647 hasPatchPoint: false
1648 stackSize: 0
1649 offsetAdjustment: 0
1650 maxAlignment: 0
1651 adjustsStack: false
1652 hasCalls: false
1653 stackProtector: ''
1654 maxCallFrameSize: 4294967295
1655 hasOpaqueSPAdjustment: false
1656 hasVAStart: false
1657 hasMustTailInVarArgFunc: false
1658 savePoint: []
1659 restorePoint: []
1660 fixedStack:
1661 stack:
1662 constants:
1663 body: |
1664 bb.0.entry:
1665 liveins: $x3, $x4
1666
1667 %1 = COPY $x4
1668 %0 = LI8 87
1669 %2 = CMPDI %0, 87
1670 %4 = ISEL8 $zero8, %0, %2.sub_gt
1671 ; CHECK: COPY killed %0
1672 %5 = ADD8 killed %4, %1
1673 $x3 = COPY %5
1674 BLR8 implicit $lr8, implicit $rm, implicit $x3
1675
1676 ...
1677 ---
1678 name: testCMPLD
1679 # CHECK-ALL: name: testCMPLD
1680 alignment: 16
1681 exposesReturnsTwice: false
1682 legalized: false
1683 regBankSelected: false
1684 selected: false
1685 tracksRegLiveness: true
1686 registers:
1687 - { id: 0, class: g8rc_and_g8rc_nox0, preferred-register: '' }
1688 - { id: 1, class: g8rc, preferred-register: '' }
1689 - { id: 2, class: crrc, preferred-register: '' }
1690 - { id: 3, class: g8rc_and_g8rc_nox0, preferred-register: '' }
1691 - { id: 4, class: g8rc, preferred-register: '' }
1692 - { id: 5, class: g8rc, preferred-register: '' }
1693 liveins:
1694 - { reg: '$x3', virtual-reg: '%0' }
1695 - { reg: '$x4', virtual-reg: '%1' }
1696 frameInfo:
1697 isFrameAddressTaken: false
1698 isReturnAddressTaken: false
1699 hasStackMap: false
1700 hasPatchPoint: false
1701 stackSize: 0
1702 offsetAdjustment: 0
1703 maxAlignment: 0
1704 adjustsStack: false
1705 hasCalls: false
1706 stackProtector: ''
1707 maxCallFrameSize: 4294967295
1708 hasOpaqueSPAdjustment: false
1709 hasVAStart: false
1710 hasMustTailInVarArgFunc: false
1711 savePoint: []
1712 restorePoint: []
1713 fixedStack:
1714 stack:
1715 constants:
1716 body: |
1717 bb.0.entry:
1718 liveins: $x3, $x4
1719
1720 %1 = LI8 99
1721 %0 = COPY $x3
1722 %2 = CMPLD %0, %1
1723 ; CHECK: CMPLDI %0, 99
1724 ; CHECK-LATE: cmpldi 3, 99
1725 %4 = ISEL8 $zero8, %0, %2.sub_gt
1726 %5 = ADD8 killed %4, %1
1727 $x3 = COPY %5
1728 BLR8 implicit $lr8, implicit $rm, implicit $x3
1729
1730 ...
1731 ---
1732 name: testCMPLDI
1733 # CHECK-ALL: name: testCMPLDI
1734 alignment: 16
1735 exposesReturnsTwice: false
1736 legalized: false
1737 regBankSelected: false
1738 selected: false
1739 tracksRegLiveness: true
1740 registers:
1741 - { id: 0, class: g8rc_and_g8rc_nox0, preferred-register: '' }
1742 - { id: 1, class: g8rc, preferred-register: '' }
1743 - { id: 2, class: crrc, preferred-register: '' }
1744 - { id: 3, class: g8rc_and_g8rc_nox0, preferred-register: '' }
1745 - { id: 4, class: g8rc, preferred-register: '' }
1746 - { id: 5, class: g8rc, preferred-register: '' }
1747 liveins:
1748 - { reg: '$x3', virtual-reg: '%0' }
1749 - { reg: '$x4', virtual-reg: '%1' }
1750 frameInfo:
1751 isFrameAddressTaken: false
1752 isReturnAddressTaken: false
1753 hasStackMap: false
1754 hasPatchPoint: false
1755 stackSize: 0
1756 offsetAdjustment: 0
1757 maxAlignment: 0
1758 adjustsStack: false
1759 hasCalls: false
1760 stackProtector: ''
1761 maxCallFrameSize: 4294967295
1762 hasOpaqueSPAdjustment: false
1763 hasVAStart: false
1764 hasMustTailInVarArgFunc: false
1765 savePoint: []
1766 restorePoint: []
1767 fixedStack:
1768 stack:
1769 constants:
1770 body: |
1771 bb.0.entry:
1772 liveins: $x3, $x4
1773
1774 %1 = COPY $x4
1775 %0 = LI8 65534
1776 %2 = CMPLDI %0, 65535
1777 %4 = ISEL8 $zero8, %0, %2.sub_gt
1778 ; CHECK: COPY killed %0
1779 %5 = ADD8 killed %4, %1
1780 $x3 = COPY %5
1781 BLR8 implicit $lr8, implicit $rm, implicit $x3
1782
1783 ...
1784 ---
1785 name: testCMPW
1786 # CHECK-ALL: name: testCMPW
1787 alignment: 16
1788 exposesReturnsTwice: false
1789 legalized: false
1790 regBankSelected: false
1791 selected: false
1792 tracksRegLiveness: true
1793 registers:
1794 - { id: 0, class: g8rc, preferred-register: '' }
1795 - { id: 1, class: g8rc, preferred-register: '' }
1796 - { id: 2, class: gprc, preferred-register: '' }
1797 - { id: 3, class: gprc_and_gprc_nor0, preferred-register: '' }
1798 - { id: 4, class: crrc, preferred-register: '' }
1799 - { id: 5, class: gprc_and_gprc_nor0, preferred-register: '' }
1800 - { id: 6, class: gprc, preferred-register: '' }
1801 - { id: 7, class: gprc, preferred-register: '' }
1802 - { id: 8, class: g8rc, preferred-register: '' }
1803 liveins:
1804 - { reg: '$x3', virtual-reg: '%0' }
1805 - { reg: '$x4', virtual-reg: '%1' }
1806 frameInfo:
1807 isFrameAddressTaken: false
1808 isReturnAddressTaken: false
1809 hasStackMap: false
1810 hasPatchPoint: false
1811 stackSize: 0
1812 offsetAdjustment: 0
1813 maxAlignment: 0
1814 adjustsStack: false
1815 hasCalls: false
1816 stackProtector: ''
1817 maxCallFrameSize: 4294967295
1818 hasOpaqueSPAdjustment: false
1819 hasVAStart: false
1820 hasMustTailInVarArgFunc: false
1821 savePoint: []
1822 restorePoint: []
1823 fixedStack:
1824 stack:
1825 constants:
1826 body: |
1827 bb.0.entry:
1828 liveins: $x3, $x4
1829
1830 %1 = COPY $x4
1831 %0 = COPY $x3
1832 %2 = LI -1
1833 %3 = COPY %0.sub_32
1834 %4 = CMPW %3, %2
1835 ; CHECK: CMPWI %3, -1
1836 %6 = ISEL $zero, %3, %4.sub_gt
1837 %7 = ADD4 killed %6, %2
1838 %8 = EXTSW_32_64 killed %7
1839 $x3 = COPY %8
1840 BLR8 implicit $lr8, implicit $rm, implicit $x3
1841
1842 ...
1843 ---
1844 name: testCMPWI
1845 # CHECK-ALL: name: testCMPWI
1846 alignment: 16
1847 exposesReturnsTwice: false
1848 legalized: false
1849 regBankSelected: false
1850 selected: false
1851 tracksRegLiveness: true
1852 registers:
1853 - { id: 0, class: g8rc, preferred-register: '' }
1854 - { id: 1, class: g8rc, preferred-register: '' }
1855 - { id: 2, class: gprc, preferred-register: '' }
1856 - { id: 3, class: gprc_and_gprc_nor0, preferred-register: '' }
1857 - { id: 4, class: crrc, preferred-register: '' }
1858 - { id: 5, class: gprc_and_gprc_nor0, preferred-register: '' }
1859 - { id: 6, class: gprc, preferred-register: '' }
1860 - { id: 7, class: gprc, preferred-register: '' }
1861 - { id: 8, class: g8rc, preferred-register: '' }
1862 liveins:
1863 - { reg: '$x3', virtual-reg: '%0' }
1864 - { reg: '$x4', virtual-reg: '%1' }
1865 frameInfo:
1866 isFrameAddressTaken: false
1867 isReturnAddressTaken: false
1868 hasStackMap: false
1869 hasPatchPoint: false
1870 stackSize: 0
1871 offsetAdjustment: 0
1872 maxAlignment: 0
1873 adjustsStack: false
1874 hasCalls: false
1875 stackProtector: ''
1876 maxCallFrameSize: 4294967295
1877 hasOpaqueSPAdjustment: false
1878 hasVAStart: false
1879 hasMustTailInVarArgFunc: false
1880 savePoint: []
1881 restorePoint: []
1882 fixedStack:
1883 stack:
1884 constants:
1885 body: |
1886 bb.0.entry:
1887 liveins: $x3, $x4
1888
1889 %1 = COPY $x4
1890 %0 = COPY $x3
1891 %2 = COPY %1.sub_32
1892 %3 = LI -3
1893 %4 = CMPWI %3, 87
1894 %6 = ISEL $zero, %3, %4.sub_gt
1895 ; CHECK: COPY killed %3
1896 %7 = ADD4 killed %6, killed %2
1897 %8 = EXTSW_32_64 killed %7
1898 $x3 = COPY %8
1899 BLR8 implicit $lr8, implicit $rm, implicit $x3
1900
1901 ...
1902 ---
1903 name: testCMPLW
1904 # CHECK-ALL: name: testCMPLW
1905 alignment: 16
1906 exposesReturnsTwice: false
1907 legalized: false
1908 regBankSelected: false
1909 selected: false
1910 tracksRegLiveness: true
1911 registers:
1912 - { id: 0, class: g8rc, preferred-register: '' }
1913 - { id: 1, class: g8rc, preferred-register: '' }
1914 - { id: 2, class: gprc, preferred-register: '' }
1915 - { id: 3, class: gprc_and_gprc_nor0, preferred-register: '' }
1916 - { id: 4, class: crrc, preferred-register: '' }
1917 - { id: 5, class: gprc_and_gprc_nor0, preferred-register: '' }
1918 - { id: 6, class: gprc, preferred-register: '' }
1919 - { id: 7, class: gprc, preferred-register: '' }
1920 - { id: 8, class: g8rc, preferred-register: '' }
1921 - { id: 9, class: g8rc, preferred-register: '' }
1922 - { id: 10, class: g8rc, preferred-register: '' }
1923 liveins:
1924 - { reg: '$x3', virtual-reg: '%0' }
1925 - { reg: '$x4', virtual-reg: '%1' }
1926 frameInfo:
1927 isFrameAddressTaken: false
1928 isReturnAddressTaken: false
1929 hasStackMap: false
1930 hasPatchPoint: false
1931 stackSize: 0
1932 offsetAdjustment: 0
1933 maxAlignment: 0
1934 adjustsStack: false
1935 hasCalls: false
1936 stackProtector: ''
1937 maxCallFrameSize: 4294967295
1938 hasOpaqueSPAdjustment: false
1939 hasVAStart: false
1940 hasMustTailInVarArgFunc: false
1941 savePoint: []
1942 restorePoint: []
1943 fixedStack:
1944 stack:
1945 constants:
1946 body: |
1947 bb.0.entry:
1948 liveins: $x3, $x4
1949
1950 %1 = COPY $x4
1951 %0 = COPY $x3
1952 %2 = LI 32767
1953 %3 = COPY %0.sub_32
1954 %4 = CMPLW %3, %2
1955 ; CHECK: CMPLWI %3, 32767
1956 ; CHECK-LATE: cmplwi 3, 32767
1957 %6 = ISEL $zero, %3, %4.sub_gt
1958 %7 = ADD4 killed %6, %2
1959 %9 = IMPLICIT_DEF
1960 %8 = INSERT_SUBREG %9, killed %7, 1
1961 %10 = RLDICL killed %8, 0, 32
1962 $x3 = COPY %10
1963 BLR8 implicit $lr8, implicit $rm, implicit $x3
1964
1965 ...
1966 ---
1967 name: testCMPLWI
1968 # CHECK-ALL: name: testCMPLWI
1969 alignment: 16
1970 exposesReturnsTwice: false
1971 legalized: false
1972 regBankSelected: false
1973 selected: false
1974 tracksRegLiveness: true
1975 registers:
1976 - { id: 0, class: g8rc, preferred-register: '' }
1977 - { id: 1, class: g8rc, preferred-register: '' }
1978 - { id: 2, class: gprc, preferred-register: '' }
1979 - { id: 3, class: gprc_and_gprc_nor0, preferred-register: '' }
1980 - { id: 4, class: crrc, preferred-register: '' }
1981 - { id: 5, class: gprc_and_gprc_nor0, preferred-register: '' }
1982 - { id: 6, class: gprc, preferred-register: '' }
1983 - { id: 7, class: gprc, preferred-register: '' }
1984 - { id: 8, class: g8rc, preferred-register: '' }
1985 - { id: 9, class: g8rc, preferred-register: '' }
1986 - { id: 10, class: g8rc, preferred-register: '' }
1987 liveins:
1988 - { reg: '$x3', virtual-reg: '%0' }
1989 - { reg: '$x4', virtual-reg: '%1' }
1990 frameInfo:
1991 isFrameAddressTaken: false
1992 isReturnAddressTaken: false
1993 hasStackMap: false
1994 hasPatchPoint: false
1995 stackSize: 0
1996 offsetAdjustment: 0
1997 maxAlignment: 0
1998 adjustsStack: false
1999 hasCalls: false
2000 stackProtector: ''
2001 maxCallFrameSize: 4294967295
2002 hasOpaqueSPAdjustment: false
2003 hasVAStart: false
2004 hasMustTailInVarArgFunc: false
2005 savePoint: []
2006 restorePoint: []
2007 fixedStack:
2008 stack:
2009 constants:
2010 body: |
2011 bb.0.entry:
2012 liveins: $x3, $x4
2013
2014 %1 = COPY $x4
2015 %0 = COPY $x3
2016 %2 = COPY %1.sub_32
2017 %3 = LI -3
2018 %4 = CMPLWI %3, 87
2019 %6 = ISEL $zero, %3, %4.sub_gt
2020 ; CHECK: ADDI killed %2, 0
2021 %7 = ADD4 killed %6, killed %2
2022 %9 = IMPLICIT_DEF
2023 %8 = INSERT_SUBREG %9, killed %7, 1
2024 %10 = RLDICL killed %8, 0, 32
2025 $x3 = COPY %10
2026 BLR8 implicit $lr8, implicit $rm, implicit $x3
2027
2028 ...
2029 ---
2030 name: testLBZUX
2031 # CHECK-ALL: name: testLBZUX
2032 alignment: 16
2033 exposesReturnsTwice: false
2034 legalized: false
2035 regBankSelected: false
2036 selected: false
2037 tracksRegLiveness: true
2038 registers:
2039 - { id: 0, class: g8rc_and_g8rc_nox0, preferred-register: '' }
2040 - { id: 1, class: g8rc, preferred-register: '' }
2041 - { id: 2, class: gprc_and_gprc_nor0, preferred-register: '' }
2042 - { id: 3, class: gprc, preferred-register: '' }
2043 - { id: 4, class: g8rc, preferred-register: '' }
2044 - { id: 5, class: g8rc, preferred-register: '' }
2045 - { id: 6, class: g8rc, preferred-register: '' }
2046 - { id: 7, class: gprc, preferred-register: '' }
2047 - { id: 8, class: gprc, preferred-register: '' }
2048 - { id: 9, class: g8rc, preferred-register: '' }
2049 - { id: 10, class: g8rc, preferred-register: '' }
2050 - { id: 11, class: g8rc, preferred-register: '' }
2051 - { id: 12, class: gprc, preferred-register: '' }
2052 - { id: 13, class: gprc, preferred-register: '' }
2053 - { id: 14, class: g8rc, preferred-register: '' }
2054 - { id: 15, class: g8rc, preferred-register: '' }
2055 - { id: 16, class: g8rc, preferred-register: '' }
2056 - { id: 17, class: g8rc_and_g8rc_nox0, preferred-register: '' }
2057 liveins:
2058 - { reg: '$x3', virtual-reg: '%0' }
2059 - { reg: '$x4', virtual-reg: '%1' }
2060 frameInfo:
2061 isFrameAddressTaken: false
2062 isReturnAddressTaken: false
2063 hasStackMap: false
2064 hasPatchPoint: false
2065 stackSize: 0
2066 offsetAdjustment: 0
2067 maxAlignment: 0
2068 adjustsStack: false
2069 hasCalls: false
2070 stackProtector: ''
2071 maxCallFrameSize: 4294967295
2072 hasOpaqueSPAdjustment: false
2073 hasVAStart: false
2074 hasMustTailInVarArgFunc: false
2075 savePoint: []
2076 restorePoint: []
2077 fixedStack:
2078 stack:
2079 constants:
2080 body: |
2081 bb.0.entry:
2082 liveins: $x3, $x4
2083
2084 %1 = COPY $x4
2085 %0 = COPY $x3
2086 %2 = COPY %1.sub_32
2087 %3 = ADDI %2, 1
2088 %5 = IMPLICIT_DEF
2089 %4 = INSERT_SUBREG %5, killed %3, 1
2090 %6 = RLDICL killed %4, 0, 32
2091 %7 = LBZX %0, killed %6 :: (load (s8) from %ir.arrayidx, !tbaa !3)
2092 %8 = ADDI %2, 2
2093 %10 = IMPLICIT_DEF
2094 %9 = INSERT_SUBREG %10, killed %8, 1
2095 %11 = LI8 -15
2096 %12,%17 = LBZUX %0, killed %11 :: (load (s8) from %ir.arrayidx3, !tbaa !3)
2097 ; CHECK: LBZU -15, killed %0
2098 ; CHECK-LATE: lbzu 5, -15(3)
2099 %13 = ADD4 killed %12, killed %7
2100 %15 = IMPLICIT_DEF
2101 %14 = INSERT_SUBREG %15, killed %13, 1
2102 %16 = RLWINM8 killed %14, 0, 24, 31
2103 $x3 = COPY %16
2104 BLR8 implicit $lr8, implicit $rm, implicit $x3
2105
2106 ...
2107 ---
2108 name: testLBZX
2109 # CHECK-ALL: name: testLBZX
2110 alignment: 16
2111 exposesReturnsTwice: false
2112 legalized: false
2113 regBankSelected: false
2114 selected: false
2115 tracksRegLiveness: true
2116 registers:
2117 - { id: 0, class: g8rc_and_g8rc_nox0, preferred-register: '' }
2118 - { id: 1, class: g8rc, preferred-register: '' }
2119 - { id: 2, class: gprc_and_gprc_nor0, preferred-register: '' }
2120 - { id: 3, class: gprc, preferred-register: '' }
2121 - { id: 4, class: g8rc, preferred-register: '' }
2122 - { id: 5, class: g8rc, preferred-register: '' }
2123 - { id: 6, class: g8rc, preferred-register: '' }
2124 - { id: 7, class: gprc, preferred-register: '' }
2125 - { id: 8, class: gprc, preferred-register: '' }
2126 - { id: 9, class: g8rc, preferred-register: '' }
2127 - { id: 10, class: g8rc, preferred-register: '' }
2128 - { id: 11, class: g8rc, preferred-register: '' }
2129 - { id: 12, class: gprc, preferred-register: '' }
2130 - { id: 13, class: gprc, preferred-register: '' }
2131 - { id: 14, class: g8rc, preferred-register: '' }
2132 - { id: 15, class: g8rc, preferred-register: '' }
2133 - { id: 16, class: g8rc, preferred-register: '' }
2134 liveins:
2135 - { reg: '$x3', virtual-reg: '%0' }
2136 - { reg: '$x4', virtual-reg: '%1' }
2137 frameInfo:
2138 isFrameAddressTaken: false
2139 isReturnAddressTaken: false
2140 hasStackMap: false
2141 hasPatchPoint: false
2142 stackSize: 0
2143 offsetAdjustment: 0
2144 maxAlignment: 0
2145 adjustsStack: false
2146 hasCalls: false
2147 stackProtector: ''
2148 maxCallFrameSize: 4294967295
2149 hasOpaqueSPAdjustment: false
2150 hasVAStart: false
2151 hasMustTailInVarArgFunc: false
2152 savePoint: []
2153 restorePoint: []
2154 fixedStack:
2155 stack:
2156 constants:
2157 body: |
2158 bb.0.entry:
2159 liveins: $x3, $x4
2160
2161 %1 = COPY $x4
2162 %0 = LI8 45
2163 %2 = COPY %1.sub_32
2164 %3 = ADDI %2, 1
2165 %5 = IMPLICIT_DEF
2166 %4 = INSERT_SUBREG %5, killed %3, 1
2167 %6 = RLDICL killed %4, 0, 32
2168 %7 = LBZX %0, killed %6 :: (load (s8) from %ir.arrayidx, !tbaa !3)
2169 ; CHECK: LBZ 45, killed %6
2170 ; CHECK-LATE: lbz 5, 45(5)
2171 %8 = ADDI %2, 2
2172 %10 = IMPLICIT_DEF
2173 %9 = INSERT_SUBREG %10, killed %8, 1
2174 %11 = RLDICL killed %9, 0, 32
2175 %12 = LBZX %0, killed %11 :: (load (s8) from %ir.arrayidx3, !tbaa !3)
2176 ; CHECK: LBZ 45, killed %11
2177 ; CHECK-LATE: lbz 3, 45(4)
2178 %13 = ADD4 killed %12, killed %7
2179 %15 = IMPLICIT_DEF
2180 %14 = INSERT_SUBREG %15, killed %13, 1
2181 %16 = RLWINM8 killed %14, 0, 24, 31
2182 $x3 = COPY %16
2183 BLR8 implicit $lr8, implicit $rm, implicit $x3
2184
2185 ...
2186 ---
2187 name: testLHZUX
2188 # CHECK-ALL: name: testLHZUX
2189 alignment: 16
2190 exposesReturnsTwice: false
2191 legalized: false
2192 regBankSelected: false
2193 selected: false
2194 tracksRegLiveness: true
2195 registers:
2196 - { id: 0, class: g8rc_and_g8rc_nox0, preferred-register: '' }
2197 - { id: 1, class: g8rc, preferred-register: '' }
2198 - { id: 2, class: gprc_and_gprc_nor0, preferred-register: '' }
2199 - { id: 3, class: gprc, preferred-register: '' }
2200 - { id: 4, class: g8rc, preferred-register: '' }
2201 - { id: 5, class: g8rc, preferred-register: '' }
2202 - { id: 6, class: g8rc, preferred-register: '' }
2203 - { id: 7, class: gprc, preferred-register: '' }
2204 - { id: 8, class: gprc, preferred-register: '' }
2205 - { id: 9, class: g8rc, preferred-register: '' }
2206 - { id: 10, class: g8rc, preferred-register: '' }
2207 - { id: 11, class: g8rc, preferred-register: '' }
2208 - { id: 12, class: gprc, preferred-register: '' }
2209 - { id: 13, class: gprc, preferred-register: '' }
2210 - { id: 14, class: g8rc, preferred-register: '' }
2211 - { id: 15, class: g8rc, preferred-register: '' }
2212 - { id: 16, class: g8rc, preferred-register: '' }
2213 - { id: 17, class: g8rc_and_g8rc_nox0, preferred-register: '' }
2214 liveins:
2215 - { reg: '$x3', virtual-reg: '%0' }
2216 - { reg: '$x4', virtual-reg: '%1' }
2217 frameInfo:
2218 isFrameAddressTaken: false
2219 isReturnAddressTaken: false
2220 hasStackMap: false
2221 hasPatchPoint: false
2222 stackSize: 0
2223 offsetAdjustment: 0
2224 maxAlignment: 0
2225 adjustsStack: false
2226 hasCalls: false
2227 stackProtector: ''
2228 maxCallFrameSize: 4294967295
2229 hasOpaqueSPAdjustment: false
2230 hasVAStart: false
2231 hasMustTailInVarArgFunc: false
2232 savePoint: []
2233 restorePoint: []
2234 fixedStack:
2235 stack:
2236 constants:
2237 body: |
2238 bb.0.entry:
2239 liveins: $x3, $x4
2240
2241 %1 = COPY $x4
2242 %0 = COPY $x3
2243 %2 = COPY %1.sub_32
2244 %3 = ADDI %2, 1
2245 %5 = IMPLICIT_DEF
2246 %4 = INSERT_SUBREG %5, killed %3, 1
2247 %6 = RLDIC killed %4, 1, 31
2248 %7 = LHZX %0, killed %6 :: (load (s16) from %ir.arrayidx, !tbaa !6)
2249 %8 = ADDI %2, 2
2250 %10 = IMPLICIT_DEF
2251 %9 = INSERT_SUBREG %10, killed %8, 1
2252 %11 = LI8 31440
2253 %12,%17 = LHZUX %0, killed %11 :: (load (s16) from %ir.arrayidx3, !tbaa !6)
2254 ; CHECK: LHZU 31440, killed %0
2255 ; CHECK-LATE: lhzu 5, 31440(3)
2256 %13 = ADD4 killed %12, killed %7
2257 %15 = IMPLICIT_DEF
2258 %14 = INSERT_SUBREG %15, killed %13, 1
2259 %16 = RLWINM8 killed %14, 0, 16, 31
2260 $x3 = COPY %16
2261 BLR8 implicit $lr8, implicit $rm, implicit $x3
2262
2263 ...
2264 ---
2265 name: testLHZX
2266 # CHECK-ALL: name: testLHZX
2267 alignment: 16
2268 exposesReturnsTwice: false
2269 legalized: false
2270 regBankSelected: false
2271 selected: false
2272 tracksRegLiveness: true
2273 registers:
2274 - { id: 0, class: g8rc_and_g8rc_nox0, preferred-register: '' }
2275 - { id: 1, class: g8rc, preferred-register: '' }
2276 - { id: 2, class: gprc_and_gprc_nor0, preferred-register: '' }
2277 - { id: 3, class: gprc, preferred-register: '' }
2278 - { id: 4, class: g8rc, preferred-register: '' }
2279 - { id: 5, class: g8rc, preferred-register: '' }
2280 - { id: 6, class: g8rc, preferred-register: '' }
2281 - { id: 7, class: gprc, preferred-register: '' }
2282 - { id: 8, class: gprc, preferred-register: '' }
2283 - { id: 9, class: g8rc, preferred-register: '' }
2284 - { id: 10, class: g8rc, preferred-register: '' }
2285 - { id: 11, class: g8rc, preferred-register: '' }
2286 - { id: 12, class: gprc, preferred-register: '' }
2287 - { id: 13, class: gprc, preferred-register: '' }
2288 - { id: 14, class: g8rc, preferred-register: '' }
2289 - { id: 15, class: g8rc, preferred-register: '' }
2290 - { id: 16, class: g8rc, preferred-register: '' }
2291 liveins:
2292 - { reg: '$x3', virtual-reg: '%0' }
2293 - { reg: '$x4', virtual-reg: '%1' }
2294 frameInfo:
2295 isFrameAddressTaken: false
2296 isReturnAddressTaken: false
2297 hasStackMap: false
2298 hasPatchPoint: false
2299 stackSize: 0
2300 offsetAdjustment: 0
2301 maxAlignment: 0
2302 adjustsStack: false
2303 hasCalls: false
2304 stackProtector: ''
2305 maxCallFrameSize: 4294967295
2306 hasOpaqueSPAdjustment: false
2307 hasVAStart: false
2308 hasMustTailInVarArgFunc: false
2309 savePoint: []
2310 restorePoint: []
2311 fixedStack:
2312 stack:
2313 constants:
2314 body: |
2315 bb.0.entry:
2316 liveins: $x3, $x4
2317
2318 %1 = COPY $x4
2319 %0 = COPY $x3
2320 %2 = COPY %1.sub_32
2321 %3 = ADDI %2, 1
2322 %5 = IMPLICIT_DEF
2323 %4 = INSERT_SUBREG %5, killed %3, 1
2324 %6 = RLDIC killed %4, 1, 31
2325 %7 = LHZX %0, killed %6 :: (load (s16) from %ir.arrayidx, !tbaa !6)
2326 %8 = ADDI %2, 2
2327 %10 = IMPLICIT_DEF
2328 %9 = INSERT_SUBREG %10, killed %8, 1
2329 %11 = LI8 882
2330 %12 = LHZX %0, killed %11 :: (load (s16) from %ir.arrayidx3, !tbaa !6)
2331 ; CHECK: LHZ 882, killed %0
2332 ; CHECK-LATE: lhz 3, 882(3)
2333 %13 = ADD4 killed %12, killed %7
2334 %15 = IMPLICIT_DEF
2335 %14 = INSERT_SUBREG %15, killed %13, 1
2336 %16 = RLWINM8 killed %14, 0, 16, 31
2337 $x3 = COPY %16
2338 BLR8 implicit $lr8, implicit $rm, implicit $x3
2339
2340 ...
2341 ---
2342 name: testLHAUX
2343 # CHECK-ALL: name: testLHAUX
2344 alignment: 16
2345 exposesReturnsTwice: false
2346 legalized: false
2347 regBankSelected: false
2348 selected: false
2349 tracksRegLiveness: true
2350 registers:
2351 - { id: 0, class: g8rc_and_g8rc_nox0, preferred-register: '' }
2352 - { id: 1, class: g8rc, preferred-register: '' }
2353 - { id: 2, class: gprc_and_gprc_nor0, preferred-register: '' }
2354 - { id: 3, class: gprc, preferred-register: '' }
2355 - { id: 4, class: g8rc, preferred-register: '' }
2356 - { id: 5, class: g8rc, preferred-register: '' }
2357 - { id: 6, class: g8rc, preferred-register: '' }
2358 - { id: 7, class: gprc, preferred-register: '' }
2359 - { id: 8, class: gprc, preferred-register: '' }
2360 - { id: 9, class: g8rc, preferred-register: '' }
2361 - { id: 10, class: g8rc, preferred-register: '' }
2362 - { id: 11, class: g8rc, preferred-register: '' }
2363 - { id: 12, class: gprc, preferred-register: '' }
2364 - { id: 13, class: gprc, preferred-register: '' }
2365 - { id: 14, class: g8rc, preferred-register: '' }
2366 - { id: 15, class: g8rc, preferred-register: '' }
2367 - { id: 16, class: g8rc, preferred-register: '' }
2368 - { id: 17, class: g8rc_and_g8rc_nox0, preferred-register: '' }
2369 liveins:
2370 - { reg: '$x3', virtual-reg: '%0' }
2371 - { reg: '$x4', virtual-reg: '%1' }
2372 frameInfo:
2373 isFrameAddressTaken: false
2374 isReturnAddressTaken: false
2375 hasStackMap: false
2376 hasPatchPoint: false
2377 stackSize: 0
2378 offsetAdjustment: 0
2379 maxAlignment: 0
2380 adjustsStack: false
2381 hasCalls: false
2382 stackProtector: ''
2383 maxCallFrameSize: 4294967295
2384 hasOpaqueSPAdjustment: false
2385 hasVAStart: false
2386 hasMustTailInVarArgFunc: false
2387 savePoint: []
2388 restorePoint: []
2389 fixedStack:
2390 stack:
2391 constants:
2392 body: |
2393 bb.0.entry:
2394 liveins: $x3, $x4
2395
2396 %1 = COPY $x4
2397 %0 = COPY $x3
2398 %2 = COPY %1.sub_32
2399 %3 = ADDI %2, 1
2400 %5 = IMPLICIT_DEF
2401 %4 = INSERT_SUBREG %5, killed %3, 1
2402 %6 = RLDIC %4, 1, 31
2403 %7 = LHZX %0, killed %6 :: (load (s16) from %ir.arrayidx, !tbaa !6)
2404 %8 = ADDI %2, 2
2405 %10 = IMPLICIT_DEF
2406 %9 = INSERT_SUBREG %10, killed %8, 1
2407 %11 = LI8 400
2408 %12,%17 = LHAUX %0, killed %11 :: (load (s16) from %ir.arrayidx3, !tbaa !6)
2409 ; CHECK: LHAU 400, killed %0
2410 ; CHECK-LATE: lhau 5, 400(3)
2411 %13 = ADD4 killed %12, killed %7
2412 %15 = IMPLICIT_DEF
2413 %14 = INSERT_SUBREG %15, killed %13, 1
2414 %16 = EXTSH8 killed %14
2415 $x3 = COPY %16
2416 BLR8 implicit $lr8, implicit $rm, implicit $x3
2417
2418 ...
2419 ---
2420 name: testLHAX
2421 # CHECK-ALL: name: testLHAX
2422 alignment: 16
2423 exposesReturnsTwice: false
2424 legalized: false
2425 regBankSelected: false
2426 selected: false
2427 tracksRegLiveness: true
2428 registers:
2429 - { id: 0, class: g8rc_and_g8rc_nox0, preferred-register: '' }
2430 - { id: 1, class: g8rc, preferred-register: '' }
2431 - { id: 2, class: gprc_and_gprc_nor0, preferred-register: '' }
2432 - { id: 3, class: gprc, preferred-register: '' }
2433 - { id: 4, class: g8rc, preferred-register: '' }
2434 - { id: 5, class: g8rc, preferred-register: '' }
2435 - { id: 6, class: g8rc, preferred-register: '' }
2436 - { id: 7, class: gprc, preferred-register: '' }
2437 - { id: 8, class: gprc, preferred-register: '' }
2438 - { id: 9, class: g8rc, preferred-register: '' }
2439 - { id: 10, class: g8rc, preferred-register: '' }
2440 - { id: 11, class: g8rc, preferred-register: '' }
2441 - { id: 12, class: gprc, preferred-register: '' }
2442 - { id: 13, class: gprc, preferred-register: '' }
2443 - { id: 14, class: g8rc, preferred-register: '' }
2444 - { id: 15, class: g8rc, preferred-register: '' }
2445 - { id: 16, class: g8rc, preferred-register: '' }
2446 liveins:
2447 - { reg: '$x3', virtual-reg: '%0' }
2448 - { reg: '$x4', virtual-reg: '%1' }
2449 frameInfo:
2450 isFrameAddressTaken: false
2451 isReturnAddressTaken: false
2452 hasStackMap: false
2453 hasPatchPoint: false
2454 stackSize: 0
2455 offsetAdjustment: 0
2456 maxAlignment: 0
2457 adjustsStack: false
2458 hasCalls: false
2459 stackProtector: ''
2460 maxCallFrameSize: 4294967295
2461 hasOpaqueSPAdjustment: false
2462 hasVAStart: false
2463 hasMustTailInVarArgFunc: false
2464 savePoint: []
2465 restorePoint: []
2466 fixedStack:
2467 stack:
2468 constants:
2469 body: |
2470 bb.0.entry:
2471 liveins: $x3, $x4
2472
2473 %1 = COPY $x4
2474 %0 = COPY $x3
2475 %2 = COPY %1.sub_32
2476 %3 = ADDI %2, 1
2477 %5 = IMPLICIT_DEF
2478 %4 = INSERT_SUBREG %5, killed %3, 1
2479 %6 = LI8 -999
2480 %7 = LHAX %0, killed %6 :: (load (s16) from %ir.arrayidx, !tbaa !6)
2481 ; CHECK: LHA -999, %0
2482 ; CHECK-LATE: lha 4, -999(3)
2483 %8 = ADDI %2, 2
2484 %10 = IMPLICIT_DEF
2485 %9 = INSERT_SUBREG %10, killed %8, 1
2486 %11 = LI8 999
2487 %12 = LHAX %0, killed %11 :: (load (s16) from %ir.arrayidx3, !tbaa !6)
2488 ; CHECK: LHA 999, killed %0
2489 ; CHECK-LATE: lha 3, 999(3)
2490 %13 = ADD4 killed %12, killed %7
2491 %15 = IMPLICIT_DEF
2492 %14 = INSERT_SUBREG %15, killed %13, 1
2493 %16 = EXTSH8 killed %14
2494 $x3 = COPY %16
2495 BLR8 implicit $lr8, implicit $rm, implicit $x3
2496
2497 ...
2498 ---
2499 name: testLWZUX
2500 # CHECK-ALL: name: testLWZUX
2501 alignment: 16
2502 exposesReturnsTwice: false
2503 legalized: false
2504 regBankSelected: false
2505 selected: false
2506 tracksRegLiveness: true
2507 registers:
2508 - { id: 0, class: g8rc_and_g8rc_nox0, preferred-register: '' }
2509 - { id: 1, class: g8rc, preferred-register: '' }
2510 - { id: 2, class: gprc_and_gprc_nor0, preferred-register: '' }
2511 - { id: 3, class: gprc, preferred-register: '' }
2512 - { id: 4, class: g8rc, preferred-register: '' }
2513 - { id: 5, class: g8rc, preferred-register: '' }
2514 - { id: 6, class: g8rc, preferred-register: '' }
2515 - { id: 7, class: gprc, preferred-register: '' }
2516 - { id: 8, class: gprc, preferred-register: '' }
2517 - { id: 9, class: g8rc, preferred-register: '' }
2518 - { id: 10, class: g8rc, preferred-register: '' }
2519 - { id: 11, class: g8rc, preferred-register: '' }
2520 - { id: 12, class: gprc, preferred-register: '' }
2521 - { id: 13, class: gprc, preferred-register: '' }
2522 - { id: 14, class: g8rc, preferred-register: '' }
2523 - { id: 15, class: g8rc, preferred-register: '' }
2524 - { id: 16, class: g8rc, preferred-register: '' }
2525 - { id: 17, class: g8rc_and_g8rc_nox0, preferred-register: '' }
2526 - { id: 18, class: g8rc_and_g8rc_nox0, preferred-register: '' }
2527 liveins:
2528 - { reg: '$x3', virtual-reg: '%0' }
2529 - { reg: '$x4', virtual-reg: '%1' }
2530 frameInfo:
2531 isFrameAddressTaken: false
2532 isReturnAddressTaken: false
2533 hasStackMap: false
2534 hasPatchPoint: false
2535 stackSize: 0
2536 offsetAdjustment: 0
2537 maxAlignment: 0
2538 adjustsStack: false
2539 hasCalls: false
2540 stackProtector: ''
2541 maxCallFrameSize: 4294967295
2542 hasOpaqueSPAdjustment: false
2543 hasVAStart: false
2544 hasMustTailInVarArgFunc: false
2545 savePoint: []
2546 restorePoint: []
2547 fixedStack:
2548 stack:
2549 constants:
2550 body: |
2551 bb.0.entry:
2552 liveins: $x3, $x4
2553
2554 %1 = COPY $x4
2555 %0 = COPY $x3
2556 %2 = COPY %1.sub_32
2557 %3 = ADDI %2, 1
2558 %5 = IMPLICIT_DEF
2559 %4 = INSERT_SUBREG %5, killed %3, 1
2560 %6 = LI8 889
2561 %7,%17 = LWZUX %0, killed %6 :: (load (s32) from %ir.arrayidx, !tbaa !8)
2562 ; CHECK: LWZU 889, %0
2563 ; CHECK-LATE: lwzu {{[0-9]+}}, 889({{[0-9]+}})
2564 %8 = ADDI %2, 2
2565 %10 = IMPLICIT_DEF
2566 %9 = INSERT_SUBREG %10, killed %8, 1
2567 %11 = LI8 -2
2568 %12,%18 = LWZUX %0, killed %11 :: (load (s32) from %ir.arrayidx3, !tbaa !8)
2569 ; CHECK: LWZU -2, killed %0
2570 ; CHECK-LATE: lwzu {{[0-9]+}}, -2({{[0-9]+}})
2571 %13 = ADD4 killed %12, killed %7
2572 %15 = IMPLICIT_DEF
2573 %14 = INSERT_SUBREG %15, killed %13, 1
2574 %16 = RLDICL killed %14, 0, 32
2575 $x3 = COPY %16
2576 BLR8 implicit $lr8, implicit $rm, implicit $x3
2577
2578 ...
2579 ---
2580 name: testLWZX
2581 # CHECK-ALL: name: testLWZX
2582 alignment: 16
2583 exposesReturnsTwice: false
2584 legalized: false
2585 regBankSelected: false
2586 selected: false
2587 tracksRegLiveness: true
2588 registers:
2589 - { id: 0, class: g8rc_and_g8rc_nox0, preferred-register: '' }
2590 - { id: 1, class: g8rc, preferred-register: '' }
2591 - { id: 2, class: gprc_and_gprc_nor0, preferred-register: '' }
2592 - { id: 3, class: gprc, preferred-register: '' }
2593 - { id: 4, class: g8rc, preferred-register: '' }
2594 - { id: 5, class: g8rc, preferred-register: '' }
2595 - { id: 6, class: g8rc, preferred-register: '' }
2596 - { id: 7, class: gprc, preferred-register: '' }
2597 - { id: 8, class: gprc, preferred-register: '' }
2598 - { id: 9, class: g8rc, preferred-register: '' }
2599 - { id: 10, class: g8rc, preferred-register: '' }
2600 - { id: 11, class: g8rc, preferred-register: '' }
2601 - { id: 12, class: gprc, preferred-register: '' }
2602 - { id: 13, class: gprc, preferred-register: '' }
2603 - { id: 14, class: g8rc, preferred-register: '' }
2604 - { id: 15, class: g8rc, preferred-register: '' }
2605 - { id: 16, class: g8rc, preferred-register: '' }
2606 liveins:
2607 - { reg: '$x3', virtual-reg: '%0' }
2608 - { reg: '$x4', virtual-reg: '%1' }
2609 frameInfo:
2610 isFrameAddressTaken: false
2611 isReturnAddressTaken: false
2612 hasStackMap: false
2613 hasPatchPoint: false
2614 stackSize: 0
2615 offsetAdjustment: 0
2616 maxAlignment: 0
2617 adjustsStack: false
2618 hasCalls: false
2619 stackProtector: ''
2620 maxCallFrameSize: 4294967295
2621 hasOpaqueSPAdjustment: false
2622 hasVAStart: false
2623 hasMustTailInVarArgFunc: false
2624 savePoint: []
2625 restorePoint: []
2626 fixedStack:
2627 stack:
2628 constants:
2629 body: |
2630 bb.0.entry:
2631 liveins: $x3, $x4
2632
2633 %1 = COPY $x4
2634 %0 = LI8 1000
2635 %2 = COPY %1.sub_32
2636 %3 = ADDI %2, 1
2637 %5 = IMPLICIT_DEF
2638 %4 = INSERT_SUBREG %5, killed %3, 1
2639 %6 = RLDIC %4, 2, 30
2640 %7 = LWZX %0, killed %6 :: (load (s32) from %ir.arrayidx, !tbaa !8)
2641 ; CHECK: LWZ 1000, killed %6
2642 ; CHECK-LATE: lwz 5, 1000(5)
2643 %8 = ADDI %2, 2
2644 %10 = IMPLICIT_DEF
2645 %9 = INSERT_SUBREG %10, killed %8, 1
2646 %11 = RLDIC %9, 2, 30
2647 %12 = LWZX %0, killed %11 :: (load (s32) from %ir.arrayidx3, !tbaa !8)
2648 ; CHECK: LWZ 1000, killed %11
2649 ; CHECK-LATE: lwz 3, 1000(4)
2650 %13 = ADD4 killed %12, killed %7
2651 %15 = IMPLICIT_DEF
2652 %14 = INSERT_SUBREG %15, killed %13, 1
2653 %16 = RLDICL killed %14, 0, 32
2654 $x3 = COPY %16
2655 BLR8 implicit $lr8, implicit $rm, implicit $x3
2656
2657 ...
2658 ---
2659 name: testLWAX
2660 # CHECK-ALL: name: testLWAX
2661 alignment: 16
2662 exposesReturnsTwice: false
2663 legalized: false
2664 regBankSelected: false
2665 selected: false
2666 tracksRegLiveness: true
2667 registers:
2668 - { id: 0, class: g8rc_and_g8rc_nox0, preferred-register: '' }
2669 - { id: 1, class: g8rc, preferred-register: '' }
2670 - { id: 2, class: gprc_and_gprc_nor0, preferred-register: '' }
2671 - { id: 3, class: gprc, preferred-register: '' }
2672 - { id: 4, class: g8rc, preferred-register: '' }
2673 - { id: 5, class: g8rc, preferred-register: '' }
2674 - { id: 6, class: g8rc, preferred-register: '' }
2675 - { id: 7, class: g8rc, preferred-register: '' }
2676 - { id: 8, class: gprc, preferred-register: '' }
2677 - { id: 9, class: g8rc, preferred-register: '' }
2678 - { id: 10, class: g8rc, preferred-register: '' }
2679 - { id: 11, class: g8rc, preferred-register: '' }
2680 - { id: 12, class: g8rc, preferred-register: '' }
2681 - { id: 13, class: g8rc, preferred-register: '' }
2682 liveins:
2683 - { reg: '$x3', virtual-reg: '%0' }
2684 - { reg: '$x4', virtual-reg: '%1' }
2685 frameInfo:
2686 isFrameAddressTaken: false
2687 isReturnAddressTaken: false
2688 hasStackMap: false
2689 hasPatchPoint: false
2690 stackSize: 0
2691 offsetAdjustment: 0
2692 maxAlignment: 0
2693 adjustsStack: false
2694 hasCalls: false
2695 stackProtector: ''
2696 maxCallFrameSize: 4294967295
2697 hasOpaqueSPAdjustment: false
2698 hasVAStart: false
2699 hasMustTailInVarArgFunc: false
2700 savePoint: []
2701 restorePoint: []
2702 fixedStack:
2703 stack:
2704 constants:
2705 body: |
2706 bb.0.entry:
2707 liveins: $x3, $x4
2708
2709 %1 = COPY $x4
2710 %0 = LI8 444
2711 %2 = COPY %1.sub_32
2712 %3 = ADDI %2, 1
2713 %5 = IMPLICIT_DEF
2714 %4 = INSERT_SUBREG %5, killed %3, 1
2715 %6 = RLDIC %4, 2, 30
2716 %7 = LWAX %0, killed %6 :: (load (s32) from %ir.arrayidx, !tbaa !8)
2717 ; CHECK: LWA 444, killed %6
2718 ; CHECK-LATE: lwa 5, 444(5)
2719 %8 = ADDI %2, 2
2720 %10 = IMPLICIT_DEF
2721 %9 = INSERT_SUBREG %10, killed %8, 1
2722 %11 = RLDIC %9, 2, 30
2723 %12 = LWAX %0, killed %11 :: (load (s32) from %ir.arrayidx3, !tbaa !8)
2724 ; CHECK: LWA 444, killed %11
2725 ; CHECK-LATE: lwa 3, 444(4)
2726 %13 = ADD8 killed %12, killed %7
2727 $x3 = COPY %13
2728 BLR8 implicit $lr8, implicit $rm, implicit $x3
2729
2730 ...
2731 ---
2732 name: testLDUX
2733 # CHECK-ALL: name: testLDUX
2734 alignment: 16
2735 exposesReturnsTwice: false
2736 legalized: false
2737 regBankSelected: false
2738 selected: false
2739 tracksRegLiveness: true
2740 registers:
2741 - { id: 0, class: g8rc_and_g8rc_nox0, preferred-register: '' }
2742 - { id: 1, class: g8rc, preferred-register: '' }
2743 - { id: 2, class: gprc_and_gprc_nor0, preferred-register: '' }
2744 - { id: 3, class: gprc, preferred-register: '' }
2745 - { id: 4, class: g8rc, preferred-register: '' }
2746 - { id: 5, class: g8rc, preferred-register: '' }
2747 - { id: 6, class: g8rc, preferred-register: '' }
2748 - { id: 7, class: g8rc, preferred-register: '' }
2749 - { id: 8, class: gprc, preferred-register: '' }
2750 - { id: 9, class: g8rc, preferred-register: '' }
2751 - { id: 10, class: g8rc, preferred-register: '' }
2752 - { id: 11, class: g8rc, preferred-register: '' }
2753 - { id: 12, class: g8rc, preferred-register: '' }
2754 - { id: 13, class: g8rc, preferred-register: '' }
2755 - { id: 14, class: g8rc_and_g8rc_nox0, preferred-register: '' }
2756 - { id: 15, class: g8rc_and_g8rc_nox0, preferred-register: '' }
2757 liveins:
2758 - { reg: '$x3', virtual-reg: '%0' }
2759 - { reg: '$x4', virtual-reg: '%1' }
2760 frameInfo:
2761 isFrameAddressTaken: false
2762 isReturnAddressTaken: false
2763 hasStackMap: false
2764 hasPatchPoint: false
2765 stackSize: 0
2766 offsetAdjustment: 0
2767 maxAlignment: 0
2768 adjustsStack: false
2769 hasCalls: false
2770 stackProtector: ''
2771 maxCallFrameSize: 4294967295
2772 hasOpaqueSPAdjustment: false
2773 hasVAStart: false
2774 hasMustTailInVarArgFunc: false
2775 savePoint: []
2776 restorePoint: []
2777 fixedStack:
2778 stack:
2779 constants:
2780 body: |
2781 bb.0.entry:
2782 liveins: $x3, $x4
2783
2784 %1 = COPY $x4
2785 %0 = COPY $x3
2786 %2 = COPY %1.sub_32
2787 %3 = ADDI %2, 1
2788 %5 = IMPLICIT_DEF
2789 %4 = INSERT_SUBREG %5, killed %3, 1
2790 %6 = LI8 100
2791 %7,%14 = LDUX %0, killed %6 :: (load (s64) from %ir.arrayidx, !tbaa !10)
2792 ; CHECK: LDU 100, %0
2793 ; CHECK-LATE: ldu {{[0-9]+}}, 100({{[0-9]+}})
2794 %8 = ADDI %2, 2
2795 %10 = IMPLICIT_DEF
2796 %9 = INSERT_SUBREG %10, killed %8, 1
2797 %11 = LI8 200
2798 %12,%15 = LDUX %0, killed %11 :: (load (s64) from %ir.arrayidx3, !tbaa !10)
2799 ; CHECK: LDU 200, killed %0
2800 ; CHECK-LATE: ldu {{[0-9]+}}, 200({{[0-9]+}})
2801 %13 = ADD8 killed %12, killed %7
2802 $x3 = COPY %13
2803 BLR8 implicit $lr8, implicit $rm, implicit $x3
2804
2805 ...
2806 ---
2807 name: testLDX
2808 # CHECK-ALL: name: testLDX
2809 alignment: 16
2810 exposesReturnsTwice: false
2811 legalized: false
2812 regBankSelected: false
2813 selected: false
2814 tracksRegLiveness: true
2815 registers:
2816 - { id: 0, class: g8rc_and_g8rc_nox0, preferred-register: '' }
2817 - { id: 1, class: g8rc, preferred-register: '' }
2818 - { id: 2, class: gprc_and_gprc_nor0, preferred-register: '' }
2819 - { id: 3, class: gprc, preferred-register: '' }
2820 - { id: 4, class: g8rc, preferred-register: '' }
2821 - { id: 5, class: g8rc, preferred-register: '' }
2822 - { id: 6, class: g8rc, preferred-register: '' }
2823 - { id: 7, class: g8rc, preferred-register: '' }
2824 - { id: 8, class: gprc, preferred-register: '' }
2825 - { id: 9, class: g8rc, preferred-register: '' }
2826 - { id: 10, class: g8rc, preferred-register: '' }
2827 - { id: 11, class: g8rc, preferred-register: '' }
2828 - { id: 12, class: g8rc, preferred-register: '' }
2829 - { id: 13, class: g8rc, preferred-register: '' }
2830 liveins:
2831 - { reg: '$x3', virtual-reg: '%0' }
2832 - { reg: '$x4', virtual-reg: '%1' }
2833 frameInfo:
2834 isFrameAddressTaken: false
2835 isReturnAddressTaken: false
2836 hasStackMap: false
2837 hasPatchPoint: false
2838 stackSize: 0
2839 offsetAdjustment: 0
2840 maxAlignment: 0
2841 adjustsStack: false
2842 hasCalls: false
2843 stackProtector: ''
2844 maxCallFrameSize: 4294967295
2845 hasOpaqueSPAdjustment: false
2846 hasVAStart: false
2847 hasMustTailInVarArgFunc: false
2848 savePoint: []
2849 restorePoint: []
2850 fixedStack:
2851 stack:
2852 constants:
2853 body: |
2854 bb.0.entry:
2855 liveins: $x3, $x4
2856
2857 %1 = COPY $x4
2858 %0 = COPY $x3
2859 %2 = COPY %1.sub_32
2860 %3 = ADDI %2, 1
2861 %5 = IMPLICIT_DEF
2862 %4 = INSERT_SUBREG %5, killed %3, 1
2863 %6 = LI8 120
2864 %7 = LDX %0, killed %6 :: (load (s64) from %ir.arrayidx, !tbaa !10)
2865 ; CHECK: LD 120, %0
2866 ; CHECK-LATE: ld 4, 120(3)
2867 %8 = ADDI %2, 2
2868 %10 = IMPLICIT_DEF
2869 %9 = INSERT_SUBREG %10, killed %8, 1
2870 %11 = LI8 280
2871 %12 = LDX %0, killed %11 :: (load (s64) from %ir.arrayidx3, !tbaa !10)
2872 ; CHECK: LD 280, killed %0
2873 ; CHECK-LATE: ld 3, 280(3)
2874 %13 = ADD8 killed %12, killed %7
2875 $x3 = COPY %13
2876 BLR8 implicit $lr8, implicit $rm, implicit $x3
2877
2878 ...
2879 ---
2880 name: testLFDUX
2881 # CHECK-ALL: name: testLFDUX
2882 alignment: 16
2883 exposesReturnsTwice: false
2884 legalized: false
2885 regBankSelected: false
2886 selected: false
2887 tracksRegLiveness: true
2888 registers:
2889 - { id: 0, class: g8rc_and_g8rc_nox0, preferred-register: '' }
2890 - { id: 1, class: g8rc, preferred-register: '' }
2891 - { id: 2, class: gprc_and_gprc_nor0, preferred-register: '' }
2892 - { id: 3, class: gprc, preferred-register: '' }
2893 - { id: 4, class: g8rc, preferred-register: '' }
2894 - { id: 5, class: g8rc, preferred-register: '' }
2895 - { id: 6, class: g8rc, preferred-register: '' }
2896 - { id: 7, class: f8rc, preferred-register: '' }
2897 - { id: 8, class: gprc, preferred-register: '' }
2898 - { id: 9, class: g8rc, preferred-register: '' }
2899 - { id: 10, class: g8rc, preferred-register: '' }
2900 - { id: 11, class: g8rc, preferred-register: '' }
2901 - { id: 12, class: f8rc, preferred-register: '' }
2902 - { id: 13, class: f8rc, preferred-register: '' }
2903 - { id: 14, class: g8rc_and_g8rc_nox0, preferred-register: '' }
2904 - { id: 15, class: g8rc_and_g8rc_nox0, preferred-register: '' }
2905 liveins:
2906 - { reg: '$x3', virtual-reg: '%0' }
2907 - { reg: '$x4', virtual-reg: '%1' }
2908 frameInfo:
2909 isFrameAddressTaken: false
2910 isReturnAddressTaken: false
2911 hasStackMap: false
2912 hasPatchPoint: false
2913 stackSize: 0
2914 offsetAdjustment: 0
2915 maxAlignment: 0
2916 adjustsStack: false
2917 hasCalls: false
2918 stackProtector: ''
2919 maxCallFrameSize: 4294967295
2920 hasOpaqueSPAdjustment: false
2921 hasVAStart: false
2922 hasMustTailInVarArgFunc: false
2923 savePoint: []
2924 restorePoint: []
2925 fixedStack:
2926 stack:
2927 constants:
2928 body: |
2929 bb.0.entry:
2930 liveins: $x3, $x4
2931
2932 %1 = COPY $x4
2933 %0 = COPY $x3
2934 %2 = COPY %1.sub_32
2935 %3 = ADDI %2, 1
2936 %5 = IMPLICIT_DEF
2937 %4 = INSERT_SUBREG %5, killed %3, 1
2938 %6 = LI8 440
2939 %7,%14 = LFDUX %0, killed %6 :: (load (s64) from %ir.arrayidx, !tbaa !12)
2940 ; CHECK: LFDU 440, %0
2941 ; CHECK-LATE: lfdu {{[0-9]+}}, 440({{[0-9]+}})
2942 %8 = ADDI %2, 2
2943 %10 = IMPLICIT_DEF
2944 %9 = INSERT_SUBREG %10, killed %8, 1
2945 %11 = LI8 16
2946 %12,%15 = LFDUX %0, killed %11 :: (load (s64) from %ir.arrayidx3, !tbaa !12)
2947 ; CHECK: LFDU 16, killed %0
2948 ; CHECK-LATE: lfdu {{[0-9]+}}, 16({{[0-9]+}})
2949 %13 = FADD killed %7, killed %12, implicit $rm
2950 $f1 = COPY %13
2951 BLR8 implicit $lr8, implicit $rm, implicit $f1
2952
2953 ...
2954 ---
2955 name: testLFDX
2956 # CHECK-ALL: name: testLFDX
2957 alignment: 16
2958 exposesReturnsTwice: false
2959 legalized: false
2960 regBankSelected: false
2961 selected: false
2962 tracksRegLiveness: true
2963 registers:
2964 - { id: 0, class: g8rc_and_g8rc_nox0, preferred-register: '' }
2965 - { id: 1, class: g8rc, preferred-register: '' }
2966 - { id: 2, class: gprc_and_gprc_nor0, preferred-register: '' }
2967 - { id: 3, class: gprc, preferred-register: '' }
2968 - { id: 4, class: g8rc, preferred-register: '' }
2969 - { id: 5, class: g8rc, preferred-register: '' }
2970 - { id: 6, class: g8rc, preferred-register: '' }
2971 - { id: 7, class: f8rc, preferred-register: '' }
2972 - { id: 8, class: gprc, preferred-register: '' }
2973 - { id: 9, class: g8rc, preferred-register: '' }
2974 - { id: 10, class: g8rc, preferred-register: '' }
2975 - { id: 11, class: g8rc, preferred-register: '' }
2976 - { id: 12, class: f8rc, preferred-register: '' }
2977 - { id: 13, class: f8rc, preferred-register: '' }
2978 liveins:
2979 - { reg: '$x3', virtual-reg: '%0' }
2980 - { reg: '$x4', virtual-reg: '%1' }
2981 frameInfo:
2982 isFrameAddressTaken: false
2983 isReturnAddressTaken: false
2984 hasStackMap: false
2985 hasPatchPoint: false
2986 stackSize: 0
2987 offsetAdjustment: 0
2988 maxAlignment: 0
2989 adjustsStack: false
2990 hasCalls: false
2991 stackProtector: ''
2992 maxCallFrameSize: 4294967295
2993 hasOpaqueSPAdjustment: false
2994 hasVAStart: false
2995 hasMustTailInVarArgFunc: false
2996 savePoint: []
2997 restorePoint: []
2998 fixedStack:
2999 stack:
3000 constants:
3001 body: |
3002 bb.0.entry:
3003 liveins: $x3, $x4
3004
3005 %1 = COPY $x4
3006 %0 = LI8 -20
3007 %2 = COPY %1.sub_32
3008 %3 = ADDI %2, 1
3009 %5 = IMPLICIT_DEF
3010 %4 = INSERT_SUBREG %5, killed %3, 1
3011 %6 = RLDIC %4, 3, 29
3012 %7 = LFDX %0, killed %6 :: (load (s64) from %ir.arrayidx, !tbaa !12)
3013 ; CHECK: LFD -20, killed %6
3014 ; CHECK-LATE: lfd {{[0-9]+}}, -20({{[0-9]+}})
3015 %8 = ADDI %2, 2
3016 %10 = IMPLICIT_DEF
3017 %9 = INSERT_SUBREG %10, killed %8, 1
3018 %11 = RLDIC %9, 3, 29
3019 %12 = LFDX %0, killed %11 :: (load (s64) from %ir.arrayidx3, !tbaa !12)
3020 ; CHECK: LFD -20, killed %11
3021 ; CHECK-LATE: lfd {{[0-9]+}}, -20({{[0-9]+}})
3022 %13 = FADD killed %7, killed %12, implicit $rm
3023 $f1 = COPY %13
3024 BLR8 implicit $lr8, implicit $rm, implicit $f1
3025
3026 ...
3027 ---
3028 name: testLFSUX
3029 # CHECK-ALL: name: testLFSUX
3030 alignment: 16
3031 exposesReturnsTwice: false
3032 legalized: false
3033 regBankSelected: false
3034 selected: false
3035 tracksRegLiveness: true
3036 registers:
3037 - { id: 0, class: g8rc_and_g8rc_nox0, preferred-register: '' }
3038 - { id: 1, class: g8rc, preferred-register: '' }
3039 - { id: 2, class: g8rc, preferred-register: '' }
3040 - { id: 3, class: f8rc, preferred-register: '' }
3041 - { id: 4, class: g8rc_and_g8rc_nox0, preferred-register: '' }
3042 - { id: 5, class: f8rc, preferred-register: '' }
3043 - { id: 6, class: g8rc, preferred-register: '' }
3044 - { id: 7, class: gprc, preferred-register: '' }
3045 - { id: 8, class: f8rc, preferred-register: '' }
3046 - { id: 9, class: f8rc, preferred-register: '' }
3047 - { id: 10, class: f8rc, preferred-register: '' }
3048 - { id: 11, class: g8rc, preferred-register: '' }
3049 - { id: 12, class: gprc, preferred-register: '' }
3050 - { id: 13, class: f8rc, preferred-register: '' }
3051 - { id: 14, class: f8rc, preferred-register: '' }
3052 - { id: 15, class: f8rc, preferred-register: '' }
3053 - { id: 16, class: g8rc, preferred-register: '' }
3054 - { id: 17, class: gprc, preferred-register: '' }
3055 - { id: 18, class: f8rc, preferred-register: '' }
3056 - { id: 19, class: f8rc, preferred-register: '' }
3057 - { id: 20, class: f8rc, preferred-register: '' }
3058 - { id: 21, class: g8rc, preferred-register: '' }
3059 - { id: 22, class: gprc, preferred-register: '' }
3060 - { id: 23, class: g8rc, preferred-register: '' }
3061 - { id: 24, class: vrrc, preferred-register: '' }
3062 liveins:
3063 - { reg: '$x3', virtual-reg: '%0' }
3064 - { reg: '$x4', virtual-reg: '%1' }
3065 frameInfo:
3066 isFrameAddressTaken: false
3067 isReturnAddressTaken: false
3068 hasStackMap: false
3069 hasPatchPoint: false
3070 stackSize: 0
3071 offsetAdjustment: 0
3072 maxAlignment: 16
3073 adjustsStack: false
3074 hasCalls: false
3075 stackProtector: ''
3076 maxCallFrameSize: 4294967295
3077 hasOpaqueSPAdjustment: false
3078 hasVAStart: false
3079 hasMustTailInVarArgFunc: false
3080 savePoint: []
3081 restorePoint: []
3082 fixedStack:
3083 stack:
3084 - { id: 0, name: '', type: default, offset: 0, size: 16, alignment: 16,
3085 stack-id: default, callee-saved-register: '', callee-saved-restored: true,
3086 local-offset: -16, debug-info-variable: '', debug-info-expression: '',
3087 debug-info-location: '' }
3088 - { id: 1, name: '', type: default, offset: 0, size: 4, alignment: 4,
3089 stack-id: default, callee-saved-register: '', callee-saved-restored: true,
3090 local-offset: -20, debug-info-variable: '', debug-info-expression: '',
3091 debug-info-location: '' }
3092 - { id: 2, name: '', type: default, offset: 0, size: 4, alignment: 4,
3093 stack-id: default, callee-saved-register: '', callee-saved-restored: true,
3094 local-offset: -24, debug-info-variable: '', debug-info-expression: '',
3095 debug-info-location: '' }
3096 - { id: 3, name: '', type: default, offset: 0, size: 4, alignment: 4,
3097 stack-id: default, callee-saved-register: '', callee-saved-restored: true,
3098 local-offset: -28, debug-info-variable: '', debug-info-expression: '',
3099 debug-info-location: '' }
3100 - { id: 4, name: '', type: default, offset: 0, size: 4, alignment: 4,
3101 stack-id: default, callee-saved-register: '', callee-saved-restored: true,
3102 local-offset: -32, debug-info-variable: '', debug-info-expression: '',
3103 debug-info-location: '' }
3104 constants:
3105 body: |
3106 bb.0.entry:
3107 liveins: $x3, $x4
3108
3109 %1 = COPY $x4
3110 %0 = COPY $x3
3111 %2 = LI8 72
3112 %3, %4 = LFSUX %0, killed %2 :: (load (s32) from %ir.arrayidx, !tbaa !14)
3113 ; CHECK: LFSU 72, killed %0
3114 ; CHECK-LATE: lfsu 0, 72(3)
3115 %5 = FCTIWUZ killed %3, implicit $rm
3116 %6 = ADDI8 %stack.4, 0
3117 STFIWX killed %5, $zero8, killed %6
3118 %7 = LWZ 0, %stack.4 :: (load (s32) from %stack.4)
3119 %8 = LFS 4, %4 :: (load (s32) from %ir.3, !tbaa !14)
3120 %10 = FCTIWUZ %8, implicit $rm
3121 %11 = ADDI8 %stack.1, 0
3122 STFIWX killed %10, $zero8, killed %11
3123 %12 = LWZ 0, %stack.1 :: (load (s32) from %stack.1)
3124 %13 = LFS 8, %4 :: (load (s32) from %ir.5, !tbaa !14)
3125 %15 = FCTIWUZ %13, implicit $rm
3126 %16 = ADDI8 %stack.2, 0
3127 STFIWX killed %15, $zero8, killed %16
3128 %17 = LWZ 0, %stack.2 :: (load (s32) from %stack.2)
3129 %18 = LFS 12, %4 :: (load (s32) from %ir.7, !tbaa !14)
3130 %20 = FCTIWUZ %18, implicit $rm
3131 %21 = ADDI8 %stack.3, 0
3132 STFIWX killed %20, $zero8, killed %21
3133 %22 = LWZ 0, %stack.3 :: (load (s32) from %stack.3)
3134 STW killed %7, 0, %stack.0 :: (store (s32) into %stack.0, align 16)
3135 STW killed %22, 12, %stack.0 :: (store (s32) into %stack.0 + 12)
3136 STW killed %17, 8, %stack.0 :: (store (s32) into %stack.0 + 8, align 8)
3137 STW killed %12, 4, %stack.0 :: (store (s32) into %stack.0 + 4)
3138 %23 = ADDI8 %stack.0, 0
3139 %24 = LVX $zero8, killed %23 :: (load (s128) from %stack.0)
3140 $v2 = COPY %24
3141 BLR8 implicit $lr8, implicit $rm, implicit $v2
3142
3143 ...
3144 ---
3145 name: testLFSX
3146 # CHECK-ALL: name: testLFSX
3147 alignment: 16
3148 exposesReturnsTwice: false
3149 legalized: false
3150 regBankSelected: false
3151 selected: false
3152 tracksRegLiveness: true
3153 registers:
3154 - { id: 0, class: g8rc_and_g8rc_nox0, preferred-register: '' }
3155 - { id: 1, class: g8rc, preferred-register: '' }
3156 - { id: 2, class: gprc_and_gprc_nor0, preferred-register: '' }
3157 - { id: 3, class: gprc, preferred-register: '' }
3158 - { id: 4, class: g8rc, preferred-register: '' }
3159 - { id: 5, class: g8rc, preferred-register: '' }
3160 - { id: 6, class: g8rc, preferred-register: '' }
3161 - { id: 7, class: f4rc, preferred-register: '' }
3162 - { id: 8, class: gprc, preferred-register: '' }
3163 - { id: 9, class: g8rc, preferred-register: '' }
3164 - { id: 10, class: g8rc, preferred-register: '' }
3165 - { id: 11, class: g8rc, preferred-register: '' }
3166 - { id: 12, class: f4rc, preferred-register: '' }
3167 - { id: 13, class: f4rc, preferred-register: '' }
3168 liveins:
3169 - { reg: '$x3', virtual-reg: '%0' }
3170 - { reg: '$x4', virtual-reg: '%1' }
3171 frameInfo:
3172 isFrameAddressTaken: false
3173 isReturnAddressTaken: false
3174 hasStackMap: false
3175 hasPatchPoint: false
3176 stackSize: 0
3177 offsetAdjustment: 0
3178 maxAlignment: 0
3179 adjustsStack: false
3180 hasCalls: false
3181 stackProtector: ''
3182 maxCallFrameSize: 4294967295
3183 hasOpaqueSPAdjustment: false
3184 hasVAStart: false
3185 hasMustTailInVarArgFunc: false
3186 savePoint: []
3187 restorePoint: []
3188 fixedStack:
3189 stack:
3190 constants:
3191 body: |
3192 bb.0.entry:
3193 liveins: $x3, $x4
3194
3195 %1 = COPY $x4
3196 %0 = COPY $x3
3197 %2 = COPY %1.sub_32
3198 %3 = ADDI %2, 1
3199 %5 = IMPLICIT_DEF
3200 %4 = INSERT_SUBREG %5, killed %3, 1
3201 %6 = LI8 88
3202 %7 = LFSX %0, killed %6 :: (load (s32) from %ir.arrayidx, !tbaa !14)
3203 ; CHECK: LFS 88, %0
3204 ; CHECK-LATE: lfs 0, 88(3)
3205 %8 = ADDI %2, 2
3206 %10 = IMPLICIT_DEF
3207 %9 = INSERT_SUBREG %10, killed %8, 1
3208 %11 = LI8 -88
3209 %12 = LFSX %0, killed %11 :: (load (s32) from %ir.arrayidx3, !tbaa !14)
3210 ; CHECK: LFS -88, killed %0
3211 ; CHECK-LATE: lfs 1, -88(3)
3212 %13 = FADDS killed %7, killed %12, implicit $rm
3213 $f1 = COPY %13
3214 BLR8 implicit $lr8, implicit $rm, implicit $f1
3215
3216 ...
3217 ---
3218 name: testLXSDX
3219 # CHECK-ALL: name: testLXSDX
3220 alignment: 16
3221 exposesReturnsTwice: false
3222 legalized: false
3223 regBankSelected: false
3224 selected: false
3225 tracksRegLiveness: true
3226 registers:
3227 - { id: 0, class: g8rc_and_g8rc_nox0, preferred-register: '' }
3228 - { id: 1, class: g8rc, preferred-register: '' }
3229 - { id: 2, class: gprc_and_gprc_nor0, preferred-register: '' }
3230 - { id: 3, class: gprc, preferred-register: '' }
3231 - { id: 4, class: g8rc, preferred-register: '' }
3232 - { id: 5, class: g8rc, preferred-register: '' }
3233 - { id: 6, class: g8rc, preferred-register: '' }
3234 - { id: 7, class: vsfrc, preferred-register: '' }
3235 - { id: 8, class: gprc, preferred-register: '' }
3236 - { id: 9, class: g8rc, preferred-register: '' }
3237 - { id: 10, class: g8rc, preferred-register: '' }
3238 - { id: 11, class: g8rc, preferred-register: '' }
3239 - { id: 12, class: vsfrc, preferred-register: '' }
3240 - { id: 13, class: vsfrc, preferred-register: '' }
3241 liveins:
3242 - { reg: '$x3', virtual-reg: '%0' }
3243 - { reg: '$x4', virtual-reg: '%1' }
3244 frameInfo:
3245 isFrameAddressTaken: false
3246 isReturnAddressTaken: false
3247 hasStackMap: false
3248 hasPatchPoint: false
3249 stackSize: 0
3250 offsetAdjustment: 0
3251 maxAlignment: 0
3252 adjustsStack: false
3253 hasCalls: false
3254 stackProtector: ''
3255 maxCallFrameSize: 4294967295
3256 hasOpaqueSPAdjustment: false
3257 hasVAStart: false
3258 hasMustTailInVarArgFunc: false
3259 savePoint: []
3260 restorePoint: []
3261 fixedStack:
3262 stack:
3263 constants:
3264 body: |
3265 bb.0.entry:
3266 liveins: $x3, $x4
3267
3268 %1 = COPY $x4
3269 %0 = COPY $x3
3270 %2 = COPY %1.sub_32
3271 %3 = ADDI %2, 1
3272 %5 = IMPLICIT_DEF
3273 %4 = INSERT_SUBREG %5, killed %3, 1
3274 %6 = LI8 100
3275 %7 = LXSDX %0, killed %6, implicit $rm :: (load (s64) from %ir.arrayidx, !tbaa !12)
3276 ; CHECK: DFLOADf64 100, %0
3277 ; CHECK-LATE: lfd 0, 100(3)
3278 %8 = ADDI %2, 2
3279 %10 = IMPLICIT_DEF
3280 %9 = INSERT_SUBREG %10, killed %8, 1
3281 %11 = LI8 -120
3282 %12 = LXSDX %0, killed %11, implicit $rm :: (load (s64) from %ir.arrayidx3, !tbaa !12)
3283 ; CHECK: DFLOADf64 -120, killed %0
3284 ; CHECK-LATE: lfd 1, -120(3)
3285 %13 = XSADDDP killed %7, killed %12, implicit $rm
3286 $f1 = COPY %13
3287 BLR8 implicit $lr8, implicit $rm, implicit $f1
3288
3289 ...
3290 ---
3291 name: testLXSSPX
3292 # CHECK-ALL: name: testLXSSPX
3293 alignment: 16
3294 exposesReturnsTwice: false
3295 legalized: false
3296 regBankSelected: false
3297 selected: false
3298 tracksRegLiveness: true
3299 registers:
3300 - { id: 0, class: g8rc_and_g8rc_nox0, preferred-register: '' }
3301 - { id: 1, class: g8rc, preferred-register: '' }
3302 - { id: 2, class: gprc_and_gprc_nor0, preferred-register: '' }
3303 - { id: 3, class: gprc, preferred-register: '' }
3304 - { id: 4, class: g8rc, preferred-register: '' }
3305 - { id: 5, class: g8rc, preferred-register: '' }
3306 - { id: 6, class: g8rc, preferred-register: '' }
3307 - { id: 7, class: vssrc, preferred-register: '' }
3308 - { id: 8, class: gprc, preferred-register: '' }
3309 - { id: 9, class: g8rc, preferred-register: '' }
3310 - { id: 10, class: g8rc, preferred-register: '' }
3311 - { id: 11, class: g8rc, preferred-register: '' }
3312 - { id: 12, class: vssrc, preferred-register: '' }
3313 - { id: 13, class: vssrc, preferred-register: '' }
3314 liveins:
3315 - { reg: '$x3', virtual-reg: '%0' }
3316 - { reg: '$x4', virtual-reg: '%1' }
3317 frameInfo:
3318 isFrameAddressTaken: false
3319 isReturnAddressTaken: false
3320 hasStackMap: false
3321 hasPatchPoint: false
3322 stackSize: 0
3323 offsetAdjustment: 0
3324 maxAlignment: 0
3325 adjustsStack: false
3326 hasCalls: false
3327 stackProtector: ''
3328 maxCallFrameSize: 4294967295
3329 hasOpaqueSPAdjustment: false
3330 hasVAStart: false
3331 hasMustTailInVarArgFunc: false
3332 savePoint: []
3333 restorePoint: []
3334 fixedStack:
3335 stack:
3336 constants:
3337 body: |
3338 bb.0.entry:
3339 liveins: $x3, $x4
3340
3341 %1 = COPY $x4
3342 %0 = COPY $x3
3343 %2 = COPY %1.sub_32
3344 %3 = ADDI %2, 1
3345 %5 = IMPLICIT_DEF
3346 %4 = INSERT_SUBREG %5, killed %3, 1
3347 %6 = LI8 96
3348 %7 = LXSSPX %0, killed %6 :: (load (s32) from %ir.arrayidx, !tbaa !14)
3349 ; CHECK: DFLOADf32 96, %0
3350 ; CHECK-LATE: lfs 0, 96(3)
3351 %8 = ADDI %2, 2
3352 %10 = IMPLICIT_DEF
3353 %9 = INSERT_SUBREG %10, killed %8, 1
3354 %11 = LI8 -92
3355 %12 = LXSSPX %0, killed %11 :: (load (s32) from %ir.arrayidx3, !tbaa !14)
3356 ; CHECK: DFLOADf32 -92, killed %0
3357 ; CHECK-LATE: lfs 1, -92(3)
3358 %13 = XSADDSP killed %7, killed %12
3359 $f1 = COPY %13
3360 BLR8 implicit $lr8, implicit $rm, implicit $f1
3361
3362 ...
3363 ---
3364 name: testLXVX
3365 # CHECK-ALL: name: testLXVX
3366 alignment: 16
3367 exposesReturnsTwice: false
3368 legalized: false
3369 regBankSelected: false
3370 selected: false
3371 tracksRegLiveness: true
3372 registers:
3373 - { id: 0, class: g8rc_and_g8rc_nox0, preferred-register: '' }
3374 - { id: 1, class: g8rc, preferred-register: '' }
3375 - { id: 2, class: gprc_and_gprc_nor0, preferred-register: '' }
3376 - { id: 3, class: gprc, preferred-register: '' }
3377 - { id: 4, class: g8rc, preferred-register: '' }
3378 - { id: 5, class: g8rc, preferred-register: '' }
3379 - { id: 6, class: g8rc, preferred-register: '' }
3380 - { id: 7, class: vrrc, preferred-register: '' }
3381 - { id: 8, class: gprc, preferred-register: '' }
3382 - { id: 9, class: g8rc, preferred-register: '' }
3383 - { id: 10, class: g8rc, preferred-register: '' }
3384 - { id: 11, class: g8rc, preferred-register: '' }
3385 - { id: 12, class: vrrc, preferred-register: '' }
3386 - { id: 13, class: vrrc, preferred-register: '' }
3387 liveins:
3388 - { reg: '$x3', virtual-reg: '%0' }
3389 - { reg: '$x4', virtual-reg: '%1' }
3390 frameInfo:
3391 isFrameAddressTaken: false
3392 isReturnAddressTaken: false
3393 hasStackMap: false
3394 hasPatchPoint: false
3395 stackSize: 0
3396 offsetAdjustment: 0
3397 maxAlignment: 0
3398 adjustsStack: false
3399 hasCalls: false
3400 stackProtector: ''
3401 maxCallFrameSize: 4294967295
3402 hasOpaqueSPAdjustment: false
3403 hasVAStart: false
3404 hasMustTailInVarArgFunc: false
3405 savePoint: []
3406 restorePoint: []
3407 fixedStack:
3408 stack:
3409 constants:
3410 body: |
3411 bb.0.entry:
3412 liveins: $x3, $x4
3413
3414 %1 = COPY $x4
3415 %0 = COPY $x3
3416 %2 = COPY %1.sub_32
3417 %3 = ADDI %2, 1
3418 %5 = IMPLICIT_DEF
3419 %4 = INSERT_SUBREG %5, killed %3, 1
3420 %6 = LI8 32
3421 %7 = LXVX %0, killed %6 :: (load (s128) from %ir.arrayidx, !tbaa !3)
3422 ; CHECK: LXV 32, %0
3423 ; CHECK-LATE: lxv 34, 32(3)
3424 %8 = ADDI %2, 2
3425 %10 = IMPLICIT_DEF
3426 %9 = INSERT_SUBREG %10, killed %8, 1
3427 %11 = LI8 -16
3428 %12 = LXVX %0, killed %11 :: (load (s128) from %ir.arrayidx3, !tbaa !3)
3429 ; CHECK: LXV -16, killed %0
3430 ; CHECK-LATE: lxv 35, -16(3)
3431 %13 = VADDUWM killed %12, killed %7
3432 $v2 = COPY %13
3433 BLR8 implicit $lr8, implicit $rm, implicit $v2
3434
3435 ...
3436 ---
3437 name: testOR
3438 # CHECK-ALL: name: testOR
3439 alignment: 16
3440 exposesReturnsTwice: false
3441 legalized: false
3442 regBankSelected: false
3443 selected: false
3444 tracksRegLiveness: true
3445 registers:
3446 - { id: 0, class: gprc, preferred-register: '' }
3447 - { id: 1, class: g8rc, preferred-register: '' }
3448 - { id: 2, class: gprc, preferred-register: '' }
3449 - { id: 3, class: gprc, preferred-register: '' }
3450 liveins:
3451 - { reg: '$x3', virtual-reg: '%0' }
3452 - { reg: '$x4', virtual-reg: '%1' }
3453 frameInfo:
3454 isFrameAddressTaken: false
3455 isReturnAddressTaken: false
3456 hasStackMap: false
3457 hasPatchPoint: false
3458 stackSize: 0
3459 offsetAdjustment: 0
3460 maxAlignment: 0
3461 adjustsStack: false
3462 hasCalls: false
3463 stackProtector: ''
3464 maxCallFrameSize: 4294967295
3465 hasOpaqueSPAdjustment: false
3466 hasVAStart: false
3467 hasMustTailInVarArgFunc: false
3468 savePoint: []
3469 restorePoint: []
3470 fixedStack:
3471 stack:
3472 constants:
3473 body: |
3474 bb.0.entry:
3475 liveins: $x3, $x4
3476
3477 %1 = COPY $x4
3478 %0 = LI 99
3479 %3 = COPY %1.sub_32
3480 %2 = OR %0, %3
3481 ; CHECK: ORI killed %3, 99
3482 ; CHECK-LATE: ori 3, 4, 99
3483 $x3 = EXTSW_32_64 %2
3484 BLR8 implicit $lr8, implicit $rm, implicit $x3
3485
3486 ...
3487 ---
3488 name: testOR8
3489 # CHECK-ALL: name: testOR8
3490 alignment: 16
3491 exposesReturnsTwice: false
3492 legalized: false
3493 regBankSelected: false
3494 selected: false
3495 tracksRegLiveness: true
3496 registers:
3497 - { id: 0, class: g8rc, preferred-register: '' }
3498 - { id: 1, class: g8rc, preferred-register: '' }
3499 - { id: 2, class: g8rc, preferred-register: '' }
3500 liveins:
3501 - { reg: '$x3', virtual-reg: '%0' }
3502 - { reg: '$x4', virtual-reg: '%1' }
3503 frameInfo:
3504 isFrameAddressTaken: false
3505 isReturnAddressTaken: false
3506 hasStackMap: false
3507 hasPatchPoint: false
3508 stackSize: 0
3509 offsetAdjustment: 0
3510 maxAlignment: 0
3511 adjustsStack: false
3512 hasCalls: false
3513 stackProtector: ''
3514 maxCallFrameSize: 4294967295
3515 hasOpaqueSPAdjustment: false
3516 hasVAStart: false
3517 hasMustTailInVarArgFunc: false
3518 savePoint: []
3519 restorePoint: []
3520 fixedStack:
3521 stack:
3522 constants:
3523 body: |
3524 bb.0.entry:
3525 liveins: $x3, $x4
3526
3527 %1 = COPY $x4
3528 %0 = LI8 777
3529 %2 = OR8 %1, %0
3530 ; CHECK: ORI8 killed %1, 777
3531 ; CHECK-LATE: ori 3, 4, 777
3532 $x3 = COPY %2
3533 BLR8 implicit $lr8, implicit $rm, implicit $x3
3534
3535 ...
3536 ---
3537 name: testORI
3538 # CHECK-ALL: name: testORI
3539 alignment: 16
3540 exposesReturnsTwice: false
3541 legalized: false
3542 regBankSelected: false
3543 selected: false
3544 tracksRegLiveness: true
3545 registers:
3546 - { id: 0, class: gprc, preferred-register: '' }
3547 - { id: 1, class: gprc, preferred-register: '' }
3548 liveins:
3549 - { reg: '$x3', virtual-reg: '%0' }
3550 frameInfo:
3551 isFrameAddressTaken: false
3552 isReturnAddressTaken: false
3553 hasStackMap: false
3554 hasPatchPoint: false
3555 stackSize: 0
3556 offsetAdjustment: 0
3557 maxAlignment: 0
3558 adjustsStack: false
3559 hasCalls: false
3560 stackProtector: ''
3561 maxCallFrameSize: 4294967295
3562 hasOpaqueSPAdjustment: false
3563 hasVAStart: false
3564 hasMustTailInVarArgFunc: false
3565 savePoint: []
3566 restorePoint: []
3567 fixedStack:
3568 stack:
3569 constants:
3570 body: |
3571 bb.0.entry:
3572 liveins: $x3
3573
3574 %0 = LI 777
3575 %1 = ORI %0, 88
3576 ; CHECK: LI8 857
3577 ; CHECK-LATE: li 3, 857
3578 $x3 = EXTSW_32_64 %1
3579 BLR8 implicit $lr8, implicit $rm, implicit $x3
3580
3581 ...
3582 ---
3583 name: testORI8
3584 # CHECK-ALL: name: testORI8
3585 alignment: 16
3586 exposesReturnsTwice: false
3587 legalized: false
3588 regBankSelected: false
3589 selected: false
3590 tracksRegLiveness: true
3591 registers:
3592 - { id: 0, class: g8rc, preferred-register: '' }
3593 - { id: 1, class: g8rc, preferred-register: '' }
3594 liveins:
3595 - { reg: '$x3', virtual-reg: '%0' }
3596 frameInfo:
3597 isFrameAddressTaken: false
3598 isReturnAddressTaken: false
3599 hasStackMap: false
3600 hasPatchPoint: false
3601 stackSize: 0
3602 offsetAdjustment: 0
3603 maxAlignment: 0
3604 adjustsStack: false
3605 hasCalls: false
3606 stackProtector: ''
3607 maxCallFrameSize: 4294967295
3608 hasOpaqueSPAdjustment: false
3609 hasVAStart: false
3610 hasMustTailInVarArgFunc: false
3611 savePoint: []
3612 restorePoint: []
3613 fixedStack:
3614 stack:
3615 constants:
3616 body: |
3617 bb.0.entry:
3618 liveins: $x3
3619
3620 %0 = LI8 8721
3621 %1 = ORI8 %0, 99
3622 ; CHECK: LI8 8819
3623 ; CHECK-LATE: li 3, 8819
3624 $x3 = COPY %1
3625 BLR8 implicit $lr8, implicit $rm, implicit $x3
3626
3627 ...
3628 ---
3629 name: testRLDCL
3630 # CHECK-ALL: name: testRLDCL
3631 alignment: 16
3632 exposesReturnsTwice: false
3633 legalized: false
3634 regBankSelected: false
3635 selected: false
3636 tracksRegLiveness: true
3637 registers:
3638 - { id: 0, class: g8rc, preferred-register: '' }
3639 - { id: 1, class: g8rc, preferred-register: '' }
3640 - { id: 2, class: gprc, preferred-register: '' }
3641 - { id: 3, class: gprc, preferred-register: '' }
3642 - { id: 4, class: g8rc, preferred-register: '' }
3643 liveins:
3644 - { reg: '$x3', virtual-reg: '%0' }
3645 - { reg: '$x4', virtual-reg: '%1' }
3646 frameInfo:
3647 isFrameAddressTaken: false
3648 isReturnAddressTaken: false
3649 hasStackMap: false
3650 hasPatchPoint: false
3651 stackSize: 0
3652 offsetAdjustment: 0
3653 maxAlignment: 0
3654 adjustsStack: false
3655 hasCalls: false
3656 stackProtector: ''
3657 maxCallFrameSize: 4294967295
3658 hasOpaqueSPAdjustment: false
3659 hasVAStart: false
3660 hasMustTailInVarArgFunc: false
3661 savePoint: []
3662 restorePoint: []
3663 fixedStack:
3664 stack:
3665 constants:
3666 body: |
3667 bb.0.entry:
3668 liveins: $x3, $x4
3669
3670 %1 = COPY $x4
3671 %0 = COPY $x3
3672 %2 = COPY %1.sub_32
3673 %3 = LI 14
3674 %4 = RLDCL %0, killed %3, 0
3675 ; CHECK: RLDICL killed %0, 14, 0
3676 ; CHECK-LATE: rotldi 3, 3, 14
3677 $x3 = COPY %4
3678 BLR8 implicit $lr8, implicit $rm, implicit $x3
3679
3680 ...
3681 ---
3682 name: testRLDCL_rec
3683 # CHECK-ALL: name: testRLDCL_rec
3684 alignment: 16
3685 exposesReturnsTwice: false
3686 legalized: false
3687 regBankSelected: false
3688 selected: false
3689 tracksRegLiveness: true
3690 registers:
3691 - { id: 0, class: g8rc_and_g8rc_nox0, preferred-register: '' }
3692 - { id: 1, class: g8rc, preferred-register: '' }
3693 - { id: 2, class: g8rc_and_g8rc_nox0, preferred-register: '' }
3694 - { id: 3, class: gprc, preferred-register: '' }
3695 - { id: 4, class: g8rc, preferred-register: '' }
3696 - { id: 5, class: crrc, preferred-register: '' }
3697 - { id: 6, class: g8rc, preferred-register: '' }
3698 liveins:
3699 - { reg: '$x3', virtual-reg: '%0' }
3700 - { reg: '$x4', virtual-reg: '%1' }
3701 frameInfo:
3702 isFrameAddressTaken: false
3703 isReturnAddressTaken: false
3704 hasStackMap: false
3705 hasPatchPoint: false
3706 stackSize: 0
3707 offsetAdjustment: 0
3708 maxAlignment: 0
3709 adjustsStack: false
3710 hasCalls: false
3711 stackProtector: ''
3712 maxCallFrameSize: 4294967295
3713 hasOpaqueSPAdjustment: false
3714 hasVAStart: false
3715 hasMustTailInVarArgFunc: false
3716 savePoint: []
3717 restorePoint: []
3718 fixedStack:
3719 stack:
3720 constants:
3721 body: |
3722 bb.0.entry:
3723 liveins: $x3, $x4
3724
3725 %1 = COPY $x4
3726 %0 = COPY $x3
3727 %2 = RLDICL %1, 0, 58
3728 %3 = LI 37
3729 %4 = RLDCL_rec %0, killed %3, 0, implicit-def $cr0
3730 ; CHECK: RLDICL_rec %0, 37, 0, implicit-def $cr0
3731 ; CHECK-LATE: rotldi. 5, 3, 37
3732 %5 = COPY killed $cr0
3733 %6 = ISEL8 %2, %0, %5.sub_eq
3734 $x3 = COPY %6
3735 BLR8 implicit $lr8, implicit $rm, implicit $x3
3736
3737 ...
3738 ---
3739 name: testRLDCR
3740 # CHECK-ALL: name: testRLDCR
3741 alignment: 16
3742 exposesReturnsTwice: false
3743 legalized: false
3744 regBankSelected: false
3745 selected: false
3746 tracksRegLiveness: true
3747 registers:
3748 - { id: 0, class: g8rc, preferred-register: '' }
3749 - { id: 1, class: g8rc, preferred-register: '' }
3750 - { id: 2, class: gprc, preferred-register: '' }
3751 - { id: 3, class: gprc, preferred-register: '' }
3752 - { id: 4, class: g8rc, preferred-register: '' }
3753 liveins:
3754 - { reg: '$x3', virtual-reg: '%0' }
3755 - { reg: '$x4', virtual-reg: '%1' }
3756 frameInfo:
3757 isFrameAddressTaken: false
3758 isReturnAddressTaken: false
3759 hasStackMap: false
3760 hasPatchPoint: false
3761 stackSize: 0
3762 offsetAdjustment: 0
3763 maxAlignment: 0
3764 adjustsStack: false
3765 hasCalls: false
3766 stackProtector: ''
3767 maxCallFrameSize: 4294967295
3768 hasOpaqueSPAdjustment: false
3769 hasVAStart: false
3770 hasMustTailInVarArgFunc: false
3771 savePoint: []
3772 restorePoint: []
3773 fixedStack:
3774 stack:
3775 constants:
3776 body: |
3777 bb.0.entry:
3778 liveins: $x3, $x4
3779
3780 %1 = COPY $x4
3781 %0 = COPY $x3
3782 %2 = COPY %1.sub_32
3783 %3 = LI 0
3784 %4 = RLDCR %0, killed %3, 0
3785 ; CHECK: RLDICR killed %0, 0, 0
3786 ; CHECK-LATE: rldicr 3, 3, 0, 0
3787 $x3 = COPY %4
3788 BLR8 implicit $lr8, implicit $rm, implicit $x3
3789
3790 ...
3791 ---
3792 name: testRLDCR_rec
3793 # CHECK-ALL: name: testRLDCR_rec
3794 alignment: 16
3795 exposesReturnsTwice: false
3796 legalized: false
3797 regBankSelected: false
3798 selected: false
3799 tracksRegLiveness: true
3800 registers:
3801 - { id: 0, class: g8rc_and_g8rc_nox0, preferred-register: '' }
3802 - { id: 1, class: g8rc, preferred-register: '' }
3803 - { id: 2, class: g8rc_and_g8rc_nox0, preferred-register: '' }
3804 - { id: 3, class: gprc, preferred-register: '' }
3805 - { id: 4, class: g8rc, preferred-register: '' }
3806 - { id: 5, class: crrc, preferred-register: '' }
3807 - { id: 6, class: g8rc, preferred-register: '' }
3808 liveins:
3809 - { reg: '$x3', virtual-reg: '%0' }
3810 - { reg: '$x4', virtual-reg: '%1' }
3811 frameInfo:
3812 isFrameAddressTaken: false
3813 isReturnAddressTaken: false
3814 hasStackMap: false
3815 hasPatchPoint: false
3816 stackSize: 0
3817 offsetAdjustment: 0
3818 maxAlignment: 0
3819 adjustsStack: false
3820 hasCalls: false
3821 stackProtector: ''
3822 maxCallFrameSize: 4294967295
3823 hasOpaqueSPAdjustment: false
3824 hasVAStart: false
3825 hasMustTailInVarArgFunc: false
3826 savePoint: []
3827 restorePoint: []
3828 fixedStack:
3829 stack:
3830 constants:
3831 body: |
3832 bb.0.entry:
3833 liveins: $x3, $x4
3834
3835 %1 = COPY $x4
3836 %0 = COPY $x3
3837 %2 = RLDICL %1, 0, 58
3838 %3 = LI 18
3839 %4 = RLDCR_rec %0, killed %3, 0, implicit-def $cr0
3840 ; CHECK: RLDICR_rec %0, 18, 0, implicit-def $cr0
3841 ; CHECK-LATE: rldicr. 5, 3, 18, 0
3842 %5 = COPY killed $cr0
3843 %6 = ISEL8 %2, %0, %5.sub_eq
3844 $x3 = COPY %6
3845 BLR8 implicit $lr8, implicit $rm, implicit $x3
3846
3847 ...
3848 ---
3849 name: testRLDICL
3850 # CHECK-ALL: name: testRLDICL
3851 alignment: 16
3852 exposesReturnsTwice: false
3853 legalized: false
3854 regBankSelected: false
3855 selected: false
3856 tracksRegLiveness: true
3857 registers:
3858 - { id: 0, class: g8rc, preferred-register: '' }
3859 - { id: 1, class: g8rc, preferred-register: '' }
3860 liveins:
3861 - { reg: '$x3', virtual-reg: '%0' }
3862 frameInfo:
3863 isFrameAddressTaken: false
3864 isReturnAddressTaken: false
3865 hasStackMap: false
3866 hasPatchPoint: false
3867 stackSize: 0
3868 offsetAdjustment: 0
3869 maxAlignment: 0
3870 adjustsStack: false
3871 hasCalls: false
3872 stackProtector: ''
3873 maxCallFrameSize: 4294967295
3874 hasOpaqueSPAdjustment: false
3875 hasVAStart: false
3876 hasMustTailInVarArgFunc: false
3877 savePoint: []
3878 restorePoint: []
3879 fixedStack:
3880 stack:
3881 constants:
3882 body: |
3883 bb.0.entry:
3884 liveins: $x3
3885
3886 %0 = LI8 -1
3887 %1 = RLDICL %0, 53, 49
3888 ; CHECK: LI8 32767
3889 ; CHECK-LATE: li 3, 32767
3890 $x3 = COPY %1
3891 BLR8 implicit $lr8, implicit $rm, implicit $x3
3892
3893 ...
3894 ---
3895 name: testRLDICL_MB0
3896 # CHECK-ALL: name: testRLDICL_MB0
3897 alignment: 16
3898 exposesReturnsTwice: false
3899 legalized: false
3900 regBankSelected: false
3901 selected: false
3902 tracksRegLiveness: true
3903 registers:
3904 - { id: 0, class: g8rc, preferred-register: '' }
3905 - { id: 1, class: g8rc, preferred-register: '' }
3906 liveins:
3907 - { reg: '$x3', virtual-reg: '%0' }
3908 frameInfo:
3909 isFrameAddressTaken: false
3910 isReturnAddressTaken: false
3911 hasStackMap: false
3912 hasPatchPoint: false
3913 stackSize: 0
3914 offsetAdjustment: 0
3915 maxAlignment: 0
3916 adjustsStack: false
3917 hasCalls: false
3918 stackProtector: ''
3919 maxCallFrameSize: 4294967295
3920 hasOpaqueSPAdjustment: false
3921 hasVAStart: false
3922 hasMustTailInVarArgFunc: false
3923 savePoint: []
3924 restorePoint: []
3925 fixedStack:
3926 stack:
3927 constants:
3928 body: |
3929 bb.0.entry:
3930 liveins: $x3
3931
3932 %0 = LI8 32
3933 %1 = RLDICL %0, 60, 0
3934 ; CHECK: LI8 2
3935 ; CHECK-LATE: li 3, 2
3936 $x3 = COPY %1
3937 BLR8 implicit $lr8, implicit $rm, implicit $x3
3938
3939 ...
3940 ---
3941 name: testRLDICL_rec
3942 # CHECK-ALL: name: testRLDICL_rec
3943 alignment: 16
3944 exposesReturnsTwice: false
3945 legalized: false
3946 regBankSelected: false
3947 selected: false
3948 tracksRegLiveness: true
3949 registers:
3950 - { id: 0, class: g8rc, preferred-register: '' }
3951 - { id: 1, class: g8rc_and_g8rc_nox0, preferred-register: '' }
3952 - { id: 2, class: g8rc_and_g8rc_nox0, preferred-register: '' }
3953 - { id: 3, class: crrc, preferred-register: '' }
3954 - { id: 4, class: g8rc, preferred-register: '' }
3955 liveins:
3956 - { reg: '$x3', virtual-reg: '%0' }
3957 - { reg: '$x4', virtual-reg: '%1' }
3958 frameInfo:
3959 isFrameAddressTaken: false
3960 isReturnAddressTaken: false
3961 hasStackMap: false
3962 hasPatchPoint: false
3963 stackSize: 0
3964 offsetAdjustment: 0
3965 maxAlignment: 0
3966 adjustsStack: false
3967 hasCalls: false
3968 stackProtector: ''
3969 maxCallFrameSize: 4294967295
3970 hasOpaqueSPAdjustment: false
3971 hasVAStart: false
3972 hasMustTailInVarArgFunc: false
3973 savePoint: []
3974 restorePoint: []
3975 fixedStack:
3976 stack:
3977 constants:
3978 body: |
3979 bb.0.entry:
3980 liveins: $x3, $x4
3981
3982 %1 = COPY $x4
3983 %0 = LI8 -1
3984 %2 = RLDICL_rec %0, 53, 48, implicit-def $cr0
3985 ; CHECK: ANDI8_rec killed %0, 65535
3986 ; CHECK-LATE: li 3, -1
3987 ; CHECK-LATE: andi. 3, 3, 65535
3988 %3 = COPY killed $cr0
3989 %4 = ISEL8 %1, %2, %3.sub_eq
3990 $x3 = COPY %4
3991 BLR8 implicit $lr8, implicit $rm, implicit $x3
3992
3993 ...
3994 ---
3995 name: testRLDICL_rec2
3996 # CHECK-ALL: name: testRLDICL_rec2
3997 alignment: 16
3998 exposesReturnsTwice: false
3999 legalized: false
4000 regBankSelected: false
4001 selected: false
4002 tracksRegLiveness: true
4003 registers:
4004 - { id: 0, class: g8rc, preferred-register: '' }
4005 - { id: 1, class: g8rc_and_g8rc_nox0, preferred-register: '' }
4006 - { id: 2, class: g8rc_and_g8rc_nox0, preferred-register: '' }
4007 - { id: 3, class: crrc, preferred-register: '' }
4008 - { id: 4, class: g8rc, preferred-register: '' }
4009 liveins:
4010 - { reg: '$x3', virtual-reg: '%0' }
4011 - { reg: '$x4', virtual-reg: '%1' }
4012 frameInfo:
4013 isFrameAddressTaken: false
4014 isReturnAddressTaken: false
4015 hasStackMap: false
4016 hasPatchPoint: false
4017 stackSize: 0
4018 offsetAdjustment: 0
4019 maxAlignment: 0
4020 adjustsStack: false
4021 hasCalls: false
4022 stackProtector: ''
4023 maxCallFrameSize: 4294967295
4024 hasOpaqueSPAdjustment: false
4025 hasVAStart: false
4026 hasMustTailInVarArgFunc: false
4027 savePoint: []
4028 restorePoint: []
4029 fixedStack:
4030 stack:
4031 constants:
4032 body: |
4033 bb.0.entry:
4034 liveins: $x3, $x4
4035
4036 %1 = COPY $x4
4037 %0 = LI8 200
4038 %2 = RLDICL_rec %0, 61, 3, implicit-def $cr0
4039 ; CHECK: LI8 25
4040 ; CHECK: ANDI8_rec killed %0, 25
4041 ; CHECK-LATE-NOT: andi.
4042 %3 = COPY killed $cr0
4043 %4 = ISEL8 %1, %2, %3.sub_eq
4044 $x3 = COPY %4
4045 BLR8 implicit $lr8, implicit $rm, implicit $x3
4046
4047 ...
4048 ---
4049 name: testRLDICL_rec3
4050 # CHECK-ALL: name: testRLDICL_rec3
4051 alignment: 16
4052 exposesReturnsTwice: false
4053 legalized: false
4054 regBankSelected: false
4055 selected: false
4056 tracksRegLiveness: true
4057 registers:
4058 - { id: 0, class: g8rc, preferred-register: '' }
4059 - { id: 1, class: g8rc_and_g8rc_nox0, preferred-register: '' }
4060 - { id: 2, class: g8rc_and_g8rc_nox0, preferred-register: '' }
4061 - { id: 3, class: crrc, preferred-register: '' }
4062 - { id: 4, class: g8rc, preferred-register: '' }
4063 liveins:
4064 - { reg: '$x3', virtual-reg: '%0' }
4065 - { reg: '$x4', virtual-reg: '%1' }
4066 frameInfo:
4067 isFrameAddressTaken: false
4068 isReturnAddressTaken: false
4069 hasStackMap: false
4070 hasPatchPoint: false
4071 stackSize: 0
4072 offsetAdjustment: 0
4073 maxAlignment: 0
4074 adjustsStack: false
4075 hasCalls: false
4076 stackProtector: ''
4077 maxCallFrameSize: 4294967295
4078 hasOpaqueSPAdjustment: false
4079 hasVAStart: false
4080 hasMustTailInVarArgFunc: false
4081 savePoint: []
4082 restorePoint: []
4083 fixedStack:
4084 stack:
4085 constants:
4086 body: |
4087 bb.0.entry:
4088 liveins: $x3, $x4
4089
4090 %1 = COPY $x4
4091 %0 = LI8 2
4092 %2 = RLDICL_rec %0, 32, 32, implicit-def $cr0
4093 ; CHECK: ANDI8_rec killed %0, 0
4094 ; CHECK-LATE: li 3, 2
4095 ; CHECK-LATE: andi. 3, 3, 0
4096 %3 = COPY killed $cr0
4097 %4 = ISEL8 %1, %2, %3.sub_eq
4098 $x3 = COPY %4
4099 BLR8 implicit $lr8, implicit $rm, implicit $x3
4100
4101 ...
4102 ---
4103 name: testRLWINM
4104 # CHECK-ALL: name: testRLWINM
4105 alignment: 16
4106 exposesReturnsTwice: false
4107 legalized: false
4108 regBankSelected: false
4109 selected: false
4110 tracksRegLiveness: true
4111 registers:
4112 - { id: 0, class: g8rc, preferred-register: '' }
4113 - { id: 1, class: gprc, preferred-register: '' }
4114 - { id: 2, class: gprc, preferred-register: '' }
4115 - { id: 3, class: g8rc, preferred-register: '' }
4116 - { id: 4, class: gprc, preferred-register: '' }
4117 liveins:
4118 - { reg: '$x3', virtual-reg: '%0' }
4119 frameInfo:
4120 isFrameAddressTaken: false
4121 isReturnAddressTaken: false
4122 hasStackMap: false
4123 hasPatchPoint: false
4124 stackSize: 0
4125 offsetAdjustment: 0
4126 maxAlignment: 0
4127 adjustsStack: false
4128 hasCalls: false
4129 stackProtector: ''
4130 maxCallFrameSize: 4294967295
4131 hasOpaqueSPAdjustment: false
4132 hasVAStart: false
4133 hasMustTailInVarArgFunc: false
4134 savePoint: []
4135 restorePoint: []
4136 fixedStack:
4137 stack:
4138 constants:
4139 body: |
4140 bb.0.entry:
4141 liveins: $x3
4142
4143 %0 = COPY $x3
4144 %1 = COPY %0.sub_32
4145 %3 = IMPLICIT_DEF
4146 %2 = LI 17
4147 %4 = RLWINM killed %2, 4, 20, 27
4148 ; CHECK: LI8 272
4149 ; CHECK-LATE: li 3, 272
4150 $x3 = EXTSW_32_64 %4
4151 BLR8 implicit $lr8, implicit $rm, implicit $x3
4152
4153 ...
4154 ---
4155 name: testRLWINMFullReg
4156 # CHECK-ALL: name: testRLWINMFullReg
4157 alignment: 16
4158 exposesReturnsTwice: false
4159 legalized: false
4160 regBankSelected: false
4161 selected: false
4162 tracksRegLiveness: true
4163 registers:
4164 - { id: 0, class: g8rc, preferred-register: '' }
4165 - { id: 1, class: gprc, preferred-register: '' }
4166 - { id: 2, class: gprc, preferred-register: '' }
4167 - { id: 3, class: g8rc, preferred-register: '' }
4168 - { id: 4, class: gprc, preferred-register: '' }
4169 liveins:
4170 - { reg: '$x3', virtual-reg: '%0' }
4171 frameInfo:
4172 isFrameAddressTaken: false
4173 isReturnAddressTaken: false
4174 hasStackMap: false
4175 hasPatchPoint: false
4176 stackSize: 0
4177 offsetAdjustment: 0
4178 maxAlignment: 0
4179 adjustsStack: false
4180 hasCalls: false
4181 stackProtector: ''
4182 maxCallFrameSize: 4294967295
4183 hasOpaqueSPAdjustment: false
4184 hasVAStart: false
4185 hasMustTailInVarArgFunc: false
4186 savePoint: []
4187 restorePoint: []
4188 fixedStack:
4189 stack:
4190 constants:
4191 body: |
4192 bb.0.entry:
4193 liveins: $x3
4194
4195 %0 = COPY $x3
4196 %1 = COPY %0.sub_32
4197 %3 = IMPLICIT_DEF
4198 %2 = LI 2
4199 %4 = RLWINM killed %2, 31, 0, 31
4200 ; CHECK: LI 1
4201 ; CHECK-LATE: li 3, 1
4202 $x3 = EXTSW_32_64 %4
4203 BLR8 implicit $lr8, implicit $rm, implicit $x3
4204
4205 ...
4206 ---
4207 name: testRLWINMFullRegOutOfRange
4208 # CHECK-ALL: name: testRLWINMFullRegOutOfRange
4209 alignment: 16
4210 exposesReturnsTwice: false
4211 legalized: false
4212 regBankSelected: false
4213 selected: false
4214 tracksRegLiveness: true
4215 registers:
4216 - { id: 0, class: g8rc, preferred-register: '' }
4217 - { id: 1, class: gprc, preferred-register: '' }
4218 - { id: 2, class: gprc, preferred-register: '' }
4219 - { id: 3, class: g8rc, preferred-register: '' }
4220 - { id: 4, class: gprc, preferred-register: '' }
4221 liveins:
4222 - { reg: '$x3', virtual-reg: '%0' }
4223 frameInfo:
4224 isFrameAddressTaken: false
4225 isReturnAddressTaken: false
4226 hasStackMap: false
4227 hasPatchPoint: false
4228 stackSize: 0
4229 offsetAdjustment: 0
4230 maxAlignment: 0
4231 adjustsStack: false
4232 hasCalls: false
4233 stackProtector: ''
4234 maxCallFrameSize: 4294967295
4235 hasOpaqueSPAdjustment: false
4236 hasVAStart: false
4237 hasMustTailInVarArgFunc: false
4238 savePoint: []
4239 restorePoint: []
4240 fixedStack:
4241 stack:
4242 constants:
4243 body: |
4244 bb.0.entry:
4245 liveins: $x3
4246
4247 %0 = COPY $x3
4248 %1 = COPY %0.sub_32
4249 %3 = IMPLICIT_DEF
4250 %2 = LI 1
4251 %4 = RLWINM killed %2, 31, 0, 31
4252 ; CHECK: RLWINM killed %2, 31, 0, 31
4253 ; CHECK-LATE: rotlwi 3, 3, 31
4254 $x3 = EXTSW_32_64 %4
4255 BLR8 implicit $lr8, implicit $rm, implicit $x3
4256
4257 ...
4258 ---
4259 name: testRLWINM8
4260 # CHECK-ALL: name: testRLWINM8
4261 alignment: 16
4262 exposesReturnsTwice: false
4263 legalized: false
4264 regBankSelected: false
4265 selected: false
4266 tracksRegLiveness: true
4267 registers:
4268 - { id: 0, class: g8rc, preferred-register: '' }
4269 - { id: 1, class: g8rc, preferred-register: '' }
4270 liveins:
4271 - { reg: '$x3', virtual-reg: '%0' }
4272 frameInfo:
4273 isFrameAddressTaken: false
4274 isReturnAddressTaken: false
4275 hasStackMap: false
4276 hasPatchPoint: false
4277 stackSize: 0
4278 offsetAdjustment: 0
4279 maxAlignment: 0
4280 adjustsStack: false
4281 hasCalls: false
4282 stackProtector: ''
4283 maxCallFrameSize: 4294967295
4284 hasOpaqueSPAdjustment: false
4285 hasVAStart: false
4286 hasMustTailInVarArgFunc: false
4287 savePoint: []
4288 restorePoint: []
4289 fixedStack:
4290 stack:
4291 constants:
4292 body: |
4293 bb.0.entry:
4294 liveins: $x3
4295
4296 %0 = LI8 234
4297 %1 = RLWINM8 %0, 4, 20, 27
4298 ; CHECK: LI8 3744
4299 ; CHECK-LATE: li 3, 3744
4300 $x3 = COPY %1
4301 BLR8 implicit $lr8, implicit $rm, implicit $x3
4302
4303 ...
4304 ---
4305 name: testRLWINM_rec
4306 # CHECK-ALL: name: testRLWINM_rec
4307 alignment: 16
4308 exposesReturnsTwice: false
4309 legalized: false
4310 regBankSelected: false
4311 selected: false
4312 tracksRegLiveness: true
4313 registers:
4314 - { id: 0, class: g8rc, preferred-register: '' }
4315 - { id: 1, class: g8rc, preferred-register: '' }
4316 - { id: 2, class: gprc_and_gprc_nor0, preferred-register: '' }
4317 - { id: 3, class: gprc_and_gprc_nor0, preferred-register: '' }
4318 - { id: 4, class: gprc, preferred-register: '' }
4319 - { id: 5, class: crrc, preferred-register: '' }
4320 - { id: 6, class: gprc, preferred-register: '' }
4321 - { id: 7, class: g8rc, preferred-register: '' }
4322 - { id: 8, class: g8rc, preferred-register: '' }
4323 - { id: 9, class: g8rc, preferred-register: '' }
4324 liveins:
4325 - { reg: '$x3', virtual-reg: '%0' }
4326 - { reg: '$x4', virtual-reg: '%1' }
4327 frameInfo:
4328 isFrameAddressTaken: false
4329 isReturnAddressTaken: false
4330 hasStackMap: false
4331 hasPatchPoint: false
4332 stackSize: 0
4333 offsetAdjustment: 0
4334 maxAlignment: 0
4335 adjustsStack: false
4336 hasCalls: false
4337 stackProtector: ''
4338 maxCallFrameSize: 4294967295
4339 hasOpaqueSPAdjustment: false
4340 hasVAStart: false
4341 hasMustTailInVarArgFunc: false
4342 savePoint: []
4343 restorePoint: []
4344 fixedStack:
4345 stack:
4346 constants:
4347 body: |
4348 bb.0.entry:
4349 liveins: $x3, $x4
4350
4351 %1 = COPY $x4
4352 %0 = COPY $x3
4353 %2 = COPY %1.sub_32
4354 %3 = LI -22
4355 %4 = RLWINM_rec %3, 0, 24, 31, implicit-def $cr0
4356 ; CHECK: LI -22
4357 ; CHECK: ANDI_rec %3, 65514
4358 ; CHECK-LATE: li 3, -22
4359 ; CHECK-LATE: andi. 5, 3, 234
4360 %5 = COPY killed $cr0
4361 %6 = ISEL %2, %3, %5.sub_eq
4362 %8 = IMPLICIT_DEF
4363 %7 = INSERT_SUBREG %8, killed %6, 1
4364 %9 = RLDICL killed %7, 0, 32
4365 $x3 = COPY %9
4366 BLR8 implicit $lr8, implicit $rm, implicit $x3
4367
4368 ...
4369 ---
4370 name: testRLWINM_rec2
4371 # CHECK-ALL: name: testRLWINM_rec2
4372 alignment: 16
4373 exposesReturnsTwice: false
4374 legalized: false
4375 regBankSelected: false
4376 selected: false
4377 tracksRegLiveness: true
4378 registers:
4379 - { id: 0, class: g8rc, preferred-register: '' }
4380 - { id: 1, class: g8rc, preferred-register: '' }
4381 - { id: 2, class: gprc_and_gprc_nor0, preferred-register: '' }
4382 - { id: 3, class: gprc_and_gprc_nor0, preferred-register: '' }
4383 - { id: 4, class: gprc, preferred-register: '' }
4384 - { id: 5, class: crrc, preferred-register: '' }
4385 - { id: 6, class: gprc, preferred-register: '' }
4386 - { id: 7, class: g8rc, preferred-register: '' }
4387 - { id: 8, class: g8rc, preferred-register: '' }
4388 - { id: 9, class: g8rc, preferred-register: '' }
4389 liveins:
4390 - { reg: '$x3', virtual-reg: '%0' }
4391 - { reg: '$x4', virtual-reg: '%1' }
4392 frameInfo:
4393 isFrameAddressTaken: false
4394 isReturnAddressTaken: false
4395 hasStackMap: false
4396 hasPatchPoint: false
4397 stackSize: 0
4398 offsetAdjustment: 0
4399 maxAlignment: 0
4400 adjustsStack: false
4401 hasCalls: false
4402 stackProtector: ''
4403 maxCallFrameSize: 4294967295
4404 hasOpaqueSPAdjustment: false
4405 hasVAStart: false
4406 hasMustTailInVarArgFunc: false
4407 savePoint: []
4408 restorePoint: []
4409 fixedStack:
4410 stack:
4411 constants:
4412 body: |
4413 bb.0.entry:
4414 liveins: $x3, $x4
4415
4416 %1 = COPY $x4
4417 %0 = COPY $x3
4418 %2 = COPY %1.sub_32
4419 %3 = LI -22
4420 %4 = RLWINM_rec %3, 5, 24, 31, implicit-def $cr0
4421 ; CHECK: LI -22
4422 ; CHECK-NOT: ANDI8_rec %3, 65514
4423 ; CHECK-LATE-NOT: andi.
4424 %5 = COPY killed $cr0
4425 %6 = ISEL %2, %3, %5.sub_eq
4426 %8 = IMPLICIT_DEF
4427 %7 = INSERT_SUBREG %8, killed %6, 1
4428 %9 = RLDICL killed %7, 0, 32
4429 $x3 = COPY %9
4430 BLR8 implicit $lr8, implicit $rm, implicit $x3
4431
4432 ...
4433 ---
4434 name: testRLWINM8_rec
4435 # CHECK-ALL: name: testRLWINM8_rec
4436 alignment: 16
4437 exposesReturnsTwice: false
4438 legalized: false
4439 regBankSelected: false
4440 selected: false
4441 tracksRegLiveness: true
4442 registers:
4443 - { id: 0, class: g8rc, preferred-register: '' }
4444 - { id: 1, class: g8rc_and_g8rc_nox0, preferred-register: '' }
4445 - { id: 2, class: g8rc, preferred-register: '' }
4446 - { id: 3, class: g8rc, preferred-register: '' }
4447 - { id: 4, class: g8rc, preferred-register: '' }
4448 - { id: 5, class: g8rc, preferred-register: '' }
4449 - { id: 6, class: g8rc_and_g8rc_nox0, preferred-register: '' }
4450 - { id: 7, class: crrc, preferred-register: '' }
4451 - { id: 8, class: g8rc, preferred-register: '' }
4452 liveins:
4453 - { reg: '$x3', virtual-reg: '%0' }
4454 - { reg: '$x4', virtual-reg: '%1' }
4455 frameInfo:
4456 isFrameAddressTaken: false
4457 isReturnAddressTaken: false
4458 hasStackMap: false
4459 hasPatchPoint: false
4460 stackSize: 0
4461 offsetAdjustment: 0
4462 maxAlignment: 0
4463 adjustsStack: false
4464 hasCalls: false
4465 stackProtector: ''
4466 maxCallFrameSize: 4294967295
4467 hasOpaqueSPAdjustment: false
4468 hasVAStart: false
4469 hasMustTailInVarArgFunc: false
4470 savePoint: []
4471 restorePoint: []
4472 fixedStack:
4473 stack:
4474 constants:
4475 body: |
4476 bb.0.entry:
4477 liveins: $x3, $x4
4478
4479 %1 = COPY $x4
4480 %0 = COPY $x3
4481 %2 = LI8 -18
4482 %3 = RLWINM8_rec %2, 4, 20, 27, implicit-def $cr0
4483 ; CHECK: ANDI8_rec killed %2, 3808
4484 ; CHECK-LATE: li 3, -18
4485 ; CHECK-LATE: andi. 3, 3, 3808
4486 %7 = COPY killed $cr0
4487 %6 = RLDICL killed %3, 0, 32
4488 %8 = ISEL8 %1, %6, %7.sub_eq
4489 $x3 = COPY %8
4490 BLR8 implicit $lr8, implicit $rm, implicit $x3
4491
4492 ...
4493 ---
4494 name: testSLD
4495 # CHECK-ALL: name: testSLD
4496 alignment: 16
4497 exposesReturnsTwice: false
4498 legalized: false
4499 regBankSelected: false
4500 selected: false
4501 tracksRegLiveness: true
4502 registers:
4503 - { id: 0, class: g8rc, preferred-register: '' }
4504 - { id: 1, class: g8rc, preferred-register: '' }
4505 - { id: 2, class: gprc, preferred-register: '' }
4506 - { id: 3, class: g8rc, preferred-register: '' }
4507 liveins:
4508 - { reg: '$x3', virtual-reg: '%0' }
4509 - { reg: '$x4', virtual-reg: '%1' }
4510 frameInfo:
4511 isFrameAddressTaken: false
4512 isReturnAddressTaken: false
4513 hasStackMap: false
4514 hasPatchPoint: false
4515 stackSize: 0
4516 offsetAdjustment: 0
4517 maxAlignment: 0
4518 adjustsStack: false
4519 hasCalls: false
4520 stackProtector: ''
4521 maxCallFrameSize: 4294967295
4522 hasOpaqueSPAdjustment: false
4523 hasVAStart: false
4524 hasMustTailInVarArgFunc: false
4525 savePoint: []
4526 restorePoint: []
4527 fixedStack:
4528 stack:
4529 constants:
4530 body: |
4531 bb.0.entry:
4532 liveins: $x3, $x4
4533
4534 %1 = COPY $x4
4535 %0 = COPY $x3
4536 %2 = LI 13
4537 %3 = SLD %0, killed %2
4538 ; CHECK: RLDICR killed %0, 13, 50
4539 ; CHECK-LATE: sldi 3, 3, 13
4540 $x3 = COPY %3
4541 BLR8 implicit $lr8, implicit $rm, implicit $x3
4542
4543 ...
4544 ---
4545 name: testSLD_rec
4546 # CHECK-ALL: name: testSLD_rec
4547 alignment: 16
4548 exposesReturnsTwice: false
4549 legalized: false
4550 regBankSelected: false
4551 selected: false
4552 tracksRegLiveness: true
4553 registers:
4554 - { id: 0, class: g8rc_and_g8rc_nox0, preferred-register: '' }
4555 - { id: 1, class: g8rc_and_g8rc_nox0, preferred-register: '' }
4556 - { id: 2, class: gprc, preferred-register: '' }
4557 - { id: 3, class: g8rc, preferred-register: '' }
4558 - { id: 4, class: crrc, preferred-register: '' }
4559 - { id: 5, class: g8rc, preferred-register: '' }
4560 liveins:
4561 - { reg: '$x3', virtual-reg: '%0' }
4562 - { reg: '$x4', virtual-reg: '%1' }
4563 frameInfo:
4564 isFrameAddressTaken: false
4565 isReturnAddressTaken: false
4566 hasStackMap: false
4567 hasPatchPoint: false
4568 stackSize: 0
4569 offsetAdjustment: 0
4570 maxAlignment: 0
4571 adjustsStack: false
4572 hasCalls: false
4573 stackProtector: ''
4574 maxCallFrameSize: 4294967295
4575 hasOpaqueSPAdjustment: false
4576 hasVAStart: false
4577 hasMustTailInVarArgFunc: false
4578 savePoint: []
4579 restorePoint: []
4580 fixedStack:
4581 stack:
4582 constants:
4583 body: |
4584 bb.0.entry:
4585 liveins: $x3, $x4
4586
4587 %1 = COPY $x4
4588 %0 = COPY $x3
4589 %2 = LI 17
4590 %3 = SLD_rec %0, killed %2, implicit-def $cr0
4591 ; CHECK: RLDICR_rec %0, 17, 46, implicit-def $cr0
4592 ; CHECK-LATE: rldicr. 5, 3, 17, 46
4593 %4 = COPY killed $cr0
4594 %5 = ISEL8 %1, %0, %4.sub_eq
4595 $x3 = COPY %5
4596 BLR8 implicit $lr8, implicit $rm, implicit $x3
4597
4598 ...
4599 ---
4600 name: testSRD
4601 # CHECK-ALL: name: testSRD
4602 alignment: 16
4603 exposesReturnsTwice: false
4604 legalized: false
4605 regBankSelected: false
4606 selected: false
4607 tracksRegLiveness: true
4608 registers:
4609 - { id: 0, class: g8rc, preferred-register: '' }
4610 - { id: 1, class: g8rc, preferred-register: '' }
4611 - { id: 2, class: gprc, preferred-register: '' }
4612 - { id: 3, class: g8rc, preferred-register: '' }
4613 liveins:
4614 - { reg: '$x3', virtual-reg: '%0' }
4615 - { reg: '$x4', virtual-reg: '%1' }
4616 frameInfo:
4617 isFrameAddressTaken: false
4618 isReturnAddressTaken: false
4619 hasStackMap: false
4620 hasPatchPoint: false
4621 stackSize: 0
4622 offsetAdjustment: 0
4623 maxAlignment: 0
4624 adjustsStack: false
4625 hasCalls: false
4626 stackProtector: ''
4627 maxCallFrameSize: 4294967295
4628 hasOpaqueSPAdjustment: false
4629 hasVAStart: false
4630 hasMustTailInVarArgFunc: false
4631 savePoint: []
4632 restorePoint: []
4633 fixedStack:
4634 stack:
4635 constants:
4636 body: |
4637 bb.0.entry:
4638 liveins: $x3, $x4
4639
4640 %1 = COPY $x4
4641 %0 = COPY $x3
4642 %2 = LI 4
4643 %3 = SRD %0, killed %2
4644 ; CHECK: RLDICL killed %0, 60, 4
4645 ; CHECK-LATE: rldicl 3, 3, 60, 4
4646 $x3 = COPY %3
4647 BLR8 implicit $lr8, implicit $rm, implicit $x3
4648
4649 ...
4650 ---
4651 name: testSRD_rec
4652 # CHECK-ALL: name: testSRD_rec
4653 alignment: 16
4654 exposesReturnsTwice: false
4655 legalized: false
4656 regBankSelected: false
4657 selected: false
4658 tracksRegLiveness: true
4659 registers:
4660 - { id: 0, class: g8rc_and_g8rc_nox0, preferred-register: '' }
4661 - { id: 1, class: g8rc_and_g8rc_nox0, preferred-register: '' }
4662 - { id: 2, class: gprc, preferred-register: '' }
4663 - { id: 3, class: g8rc, preferred-register: '' }
4664 - { id: 4, class: crrc, preferred-register: '' }
4665 - { id: 5, class: g8rc, preferred-register: '' }
4666 liveins:
4667 - { reg: '$x3', virtual-reg: '%0' }
4668 - { reg: '$x4', virtual-reg: '%1' }
4669 frameInfo:
4670 isFrameAddressTaken: false
4671 isReturnAddressTaken: false
4672 hasStackMap: false
4673 hasPatchPoint: false
4674 stackSize: 0
4675 offsetAdjustment: 0
4676 maxAlignment: 0
4677 adjustsStack: false
4678 hasCalls: false
4679 stackProtector: ''
4680 maxCallFrameSize: 4294967295
4681 hasOpaqueSPAdjustment: false
4682 hasVAStart: false
4683 hasMustTailInVarArgFunc: false
4684 savePoint: []
4685 restorePoint: []
4686 fixedStack:
4687 stack:
4688 constants:
4689 body: |
4690 bb.0.entry:
4691 liveins: $x3, $x4
4692
4693 %1 = COPY $x4
4694 %0 = COPY $x3
4695 %2 = LI 17
4696 %3 = SRD_rec %0, killed %2, implicit-def $cr0
4697 ; CHECK: RLDICL_rec %0, 47, 17, implicit-def $cr0
4698 ; CHECK-LATE: rldicl. 5, 3, 47, 17
4699 %4 = COPY killed $cr0
4700 %5 = ISEL8 %1, %0, %4.sub_eq
4701 $x3 = COPY %5
4702 BLR8 implicit $lr8, implicit $rm, implicit $x3
4703
4704 ...
4705 ---
4706 name: testSLW
4707 # CHECK-ALL: name: testSLW
4708 alignment: 16
4709 exposesReturnsTwice: false
4710 legalized: false
4711 regBankSelected: false
4712 selected: false
4713 tracksRegLiveness: true
4714 registers:
4715 - { id: 0, class: g8rc, preferred-register: '' }
4716 - { id: 1, class: g8rc, preferred-register: '' }
4717 - { id: 2, class: gprc, preferred-register: '' }
4718 - { id: 3, class: g8rc, preferred-register: '' }
4719 - { id: 4, class: g8rc, preferred-register: '' }
4720 - { id: 5, class: gprc, preferred-register: '' }
4721 - { id: 6, class: g8rc, preferred-register: '' }
4722 - { id: 7, class: g8rc, preferred-register: '' }
4723 - { id: 8, class: gprc, preferred-register: '' }
4724 liveins:
4725 - { reg: '$x3', virtual-reg: '%0' }
4726 - { reg: '$x4', virtual-reg: '%1' }
4727 frameInfo:
4728 isFrameAddressTaken: false
4729 isReturnAddressTaken: false
4730 hasStackMap: false
4731 hasPatchPoint: false
4732 stackSize: 0
4733 offsetAdjustment: 0
4734 maxAlignment: 0
4735 adjustsStack: false
4736 hasCalls: false
4737 stackProtector: ''
4738 maxCallFrameSize: 4294967295
4739 hasOpaqueSPAdjustment: false
4740 hasVAStart: false
4741 hasMustTailInVarArgFunc: false
4742 savePoint: []
4743 restorePoint: []
4744 fixedStack:
4745 stack:
4746 constants:
4747 body: |
4748 bb.0.entry:
4749 liveins: $x3, $x4
4750
4751 %1 = COPY $x4
4752 %0 = COPY $x3
4753 %2 = COPY %1.sub_32
4754 %5 = LI 21
4755 %8 = SLW killed %2, killed %5
4756 ; CHECK: RLWINM killed %2, 21, 0, 10
4757 ; CHECK-LATE: slwi 3, 4, 21
4758 $x3 = EXTSW_32_64 %8
4759 BLR8 implicit $lr8, implicit $rm, implicit $x3
4760
4761 ...
4762 ---
4763 name: testSLW_rec
4764 # CHECK-ALL: name: testSLW_rec
4765 alignment: 16
4766 exposesReturnsTwice: false
4767 legalized: false
4768 regBankSelected: false
4769 selected: false
4770 tracksRegLiveness: true
4771 registers:
4772 - { id: 0, class: g8rc, preferred-register: '' }
4773 - { id: 1, class: g8rc, preferred-register: '' }
4774 - { id: 2, class: gprc_and_gprc_nor0, preferred-register: '' }
4775 - { id: 3, class: gprc_and_gprc_nor0, preferred-register: '' }
4776 - { id: 4, class: gprc, preferred-register: '' }
4777 - { id: 5, class: crrc, preferred-register: '' }
4778 - { id: 6, class: gprc, preferred-register: '' }
4779 - { id: 7, class: g8rc, preferred-register: '' }
4780 - { id: 8, class: g8rc, preferred-register: '' }
4781 - { id: 9, class: g8rc, preferred-register: '' }
4782 liveins:
4783 - { reg: '$x3', virtual-reg: '%0' }
4784 - { reg: '$x4', virtual-reg: '%1' }
4785 frameInfo:
4786 isFrameAddressTaken: false
4787 isReturnAddressTaken: false
4788 hasStackMap: false
4789 hasPatchPoint: false
4790 stackSize: 0
4791 offsetAdjustment: 0
4792 maxAlignment: 0
4793 adjustsStack: false
4794 hasCalls: false
4795 stackProtector: ''
4796 maxCallFrameSize: 4294967295
4797 hasOpaqueSPAdjustment: false
4798 hasVAStart: false
4799 hasMustTailInVarArgFunc: false
4800 savePoint: []
4801 restorePoint: []
4802 fixedStack:
4803 stack:
4804 constants:
4805 body: |
4806 bb.0.entry:
4807 liveins: $x3, $x4
4808
4809 %1 = COPY $x4
4810 %0 = COPY $x3
4811 %2 = LI 11
4812 %3 = COPY %0.sub_32
4813 %4 = SLW_rec %3, %2, implicit-def $cr0
4814 ; CHECK: RLWINM_rec %3, 11, 0, 20, implicit-def $cr0
4815 ; CHECK-LATE: rlwinm. 5, 3, 11, 0, 20
4816 %5 = COPY killed $cr0
4817 %6 = ISEL %2, %3, %5.sub_eq
4818 %8 = IMPLICIT_DEF
4819 %7 = INSERT_SUBREG %8, killed %6, 1
4820 %9 = RLDICL killed %7, 0, 32
4821 $x3 = COPY %9
4822 BLR8 implicit $lr8, implicit $rm, implicit $x3
4823
4824 ...
4825 ---
4826 name: testSRW
4827 # CHECK-ALL: name: testSRW
4828 alignment: 16
4829 exposesReturnsTwice: false
4830 legalized: false
4831 regBankSelected: false
4832 selected: false
4833 tracksRegLiveness: true
4834 registers:
4835 - { id: 0, class: g8rc, preferred-register: '' }
4836 - { id: 1, class: g8rc, preferred-register: '' }
4837 - { id: 2, class: gprc, preferred-register: '' }
4838 - { id: 3, class: g8rc, preferred-register: '' }
4839 - { id: 4, class: g8rc, preferred-register: '' }
4840 - { id: 5, class: gprc, preferred-register: '' }
4841 - { id: 6, class: g8rc, preferred-register: '' }
4842 - { id: 7, class: g8rc, preferred-register: '' }
4843 - { id: 8, class: gprc, preferred-register: '' }
4844 liveins:
4845 - { reg: '$x3', virtual-reg: '%0' }
4846 - { reg: '$x4', virtual-reg: '%1' }
4847 frameInfo:
4848 isFrameAddressTaken: false
4849 isReturnAddressTaken: false
4850 hasStackMap: false
4851 hasPatchPoint: false
4852 stackSize: 0
4853 offsetAdjustment: 0
4854 maxAlignment: 0
4855 adjustsStack: false
4856 hasCalls: false
4857 stackProtector: ''
4858 maxCallFrameSize: 4294967295
4859 hasOpaqueSPAdjustment: false
4860 hasVAStart: false
4861 hasMustTailInVarArgFunc: false
4862 savePoint: []
4863 restorePoint: []
4864 fixedStack:
4865 stack:
4866 constants:
4867 body: |
4868 bb.0.entry:
4869 liveins: $x3, $x4
4870
4871 %1 = COPY $x4
4872 %0 = COPY $x3
4873 %2 = LI 8
4874 %5 = COPY %0.sub_32
4875 %8 = SRW killed %5, killed %2
4876 ; CHECK: RLWINM killed %5, 24, 8, 31
4877 ; CHECK-LATE: srwi 3, 3, 8
4878 $x3 = EXTSW_32_64 %8
4879 BLR8 implicit $lr8, implicit $rm, implicit $x3
4880
4881 ...
4882 ---
4883 name: testSRW_rec
4884 # CHECK-ALL: name: testSRW_rec
4885 alignment: 16
4886 exposesReturnsTwice: false
4887 legalized: false
4888 regBankSelected: false
4889 selected: false
4890 tracksRegLiveness: true
4891 registers:
4892 - { id: 0, class: g8rc, preferred-register: '' }
4893 - { id: 1, class: g8rc, preferred-register: '' }
4894 - { id: 2, class: gprc_and_gprc_nor0, preferred-register: '' }
4895 - { id: 3, class: gprc_and_gprc_nor0, preferred-register: '' }
4896 - { id: 4, class: gprc, preferred-register: '' }
4897 - { id: 5, class: crrc, preferred-register: '' }
4898 - { id: 6, class: gprc, preferred-register: '' }
4899 - { id: 7, class: g8rc, preferred-register: '' }
4900 - { id: 8, class: g8rc, preferred-register: '' }
4901 - { id: 9, class: g8rc, preferred-register: '' }
4902 liveins:
4903 - { reg: '$x3', virtual-reg: '%0' }
4904 - { reg: '$x4', virtual-reg: '%1' }
4905 frameInfo:
4906 isFrameAddressTaken: false
4907 isReturnAddressTaken: false
4908 hasStackMap: false
4909 hasPatchPoint: false
4910 stackSize: 0
4911 offsetAdjustment: 0
4912 maxAlignment: 0
4913 adjustsStack: false
4914 hasCalls: false
4915 stackProtector: ''
4916 maxCallFrameSize: 4294967295
4917 hasOpaqueSPAdjustment: false
4918 hasVAStart: false
4919 hasMustTailInVarArgFunc: false
4920 savePoint: []
4921 restorePoint: []
4922 fixedStack:
4923 stack:
4924 constants:
4925 body: |
4926 bb.0.entry:
4927 liveins: $x3, $x4
4928
4929 %1 = COPY $x4
4930 %0 = COPY $x3
4931 %2 = LI 7
4932 %3 = COPY %0.sub_32
4933 %4 = SRW_rec %3, %2, implicit-def $cr0
4934 ; CHECK: RLWINM_rec %3, 25, 7, 31
4935 ; CHECK-LATE: rlwinm. 5, 3, 25, 7, 31
4936 %5 = COPY killed $cr0
4937 %6 = ISEL %2, %3, %5.sub_eq
4938 %8 = IMPLICIT_DEF
4939 %7 = INSERT_SUBREG %8, killed %6, 1
4940 %9 = RLDICL killed %7, 0, 32
4941 $x3 = COPY %9
4942 BLR8 implicit $lr8, implicit $rm, implicit $x3
4943
4944 ...
4945 ---
4946 name: testSRAW
4947 # CHECK-ALL: name: testSRAW
4948 alignment: 16
4949 exposesReturnsTwice: false
4950 legalized: false
4951 regBankSelected: false
4952 selected: false
4953 tracksRegLiveness: true
4954 registers:
4955 - { id: 0, class: g8rc, preferred-register: '' }
4956 - { id: 1, class: g8rc, preferred-register: '' }
4957 - { id: 2, class: gprc, preferred-register: '' }
4958 - { id: 3, class: gprc, preferred-register: '' }
4959 - { id: 4, class: gprc, preferred-register: '' }
4960 - { id: 5, class: g8rc, preferred-register: '' }
4961 liveins:
4962 - { reg: '$x3', virtual-reg: '%0' }
4963 - { reg: '$x4', virtual-reg: '%1' }
4964 frameInfo:
4965 isFrameAddressTaken: false
4966 isReturnAddressTaken: false
4967 hasStackMap: false
4968 hasPatchPoint: false
4969 stackSize: 0
4970 offsetAdjustment: 0
4971 maxAlignment: 0
4972 adjustsStack: false
4973 hasCalls: false
4974 stackProtector: ''
4975 maxCallFrameSize: 4294967295
4976 hasOpaqueSPAdjustment: false
4977 hasVAStart: false
4978 hasMustTailInVarArgFunc: false
4979 savePoint: []
4980 restorePoint: []
4981 fixedStack:
4982 stack:
4983 constants:
4984 body: |
4985 bb.0.entry:
4986 liveins: $x3, $x4
4987
4988 %1 = COPY $x4
4989 %0 = COPY $x3
4990 %2 = LI 15
4991 %3 = COPY %0.sub_32
4992 %4 = SRAW killed %3, killed %2, implicit-def dead $carry
4993 ; CHECK: %6:g8rc = IMPLICIT_DEF
4994 ; CHECK-NEXT: %7:g8rc = INSERT_SUBREG %6, killed %3, %subreg.sub_32
4995 ; CHECK-NEXT: %8:g8rc = SRAWI8 killed %7, 15, implicit-def $carry, implicit-def dead $carry
4996 ; CHECK-NEXT: %4:gprc = COPY killed %8.sub_32
4997 ; CHECK-LATE: srawi 3, 3, 15
4998 %5 = EXTSW_32_64 killed %4
4999 $x3 = COPY %5
5000 BLR8 implicit $lr8, implicit $rm, implicit $x3
5001
5002 ...
5003 ---
5004 name: testSRAW_rec
5005 # CHECK-ALL: name: testSRAW_rec
5006 alignment: 16
5007 exposesReturnsTwice: false
5008 legalized: false
5009 regBankSelected: false
5010 selected: false
5011 tracksRegLiveness: true
5012 registers:
5013 - { id: 0, class: g8rc, preferred-register: '' }
5014 - { id: 1, class: g8rc, preferred-register: '' }
5015 - { id: 2, class: gprc_and_gprc_nor0, preferred-register: '' }
5016 - { id: 3, class: gprc, preferred-register: '' }
5017 - { id: 4, class: gprc_and_gprc_nor0, preferred-register: '' }
5018 - { id: 5, class: crrc, preferred-register: '' }
5019 - { id: 6, class: gprc, preferred-register: '' }
5020 - { id: 7, class: g8rc, preferred-register: '' }
5021 liveins:
5022 - { reg: '$x3', virtual-reg: '%0' }
5023 - { reg: '$x4', virtual-reg: '%1' }
5024 frameInfo:
5025 isFrameAddressTaken: false
5026 isReturnAddressTaken: false
5027 hasStackMap: false
5028 hasPatchPoint: false
5029 stackSize: 0
5030 offsetAdjustment: 0
5031 maxAlignment: 0
5032 adjustsStack: false
5033 hasCalls: false
5034 stackProtector: ''
5035 maxCallFrameSize: 4294967295
5036 hasOpaqueSPAdjustment: false
5037 hasVAStart: false
5038 hasMustTailInVarArgFunc: false
5039 savePoint: []
5040 restorePoint: []
5041 fixedStack:
5042 stack:
5043 constants:
5044 body: |
5045 bb.0.entry:
5046 liveins: $x3, $x4
5047
5048 %1 = COPY $x4
5049 %0 = COPY $x3
5050 %2 = LI 8
5051 %3 = COPY %0.sub_32
5052 %4 = SRAW_rec killed %3, %2, implicit-def dead $carry, implicit-def $cr0
5053 ; CHECK: %11:g8rc = SRAWI8_rec killed %10, 8, implicit-def $carry, implicit-def $cr0, implicit-def dead $carry, implicit-def $cr0
5054 ; CHECK-LATE: srawi. 3, 3, 8
5055 %5 = COPY killed $cr0
5056 %6 = ISEL %2, %4, %5.sub_eq
5057 %7 = EXTSW_32_64 killed %6
5058 $x3 = COPY %7
5059 BLR8 implicit $lr8, implicit $rm, implicit $x3
5060
5061 ...
5062 ---
5063 name: testSRAD
5064 # CHECK-ALL: name: testSRAD
5065 alignment: 16
5066 exposesReturnsTwice: false
5067 legalized: false
5068 regBankSelected: false
5069 selected: false
5070 tracksRegLiveness: true
5071 registers:
5072 - { id: 0, class: g8rc, preferred-register: '' }
5073 - { id: 1, class: g8rc, preferred-register: '' }
5074 - { id: 2, class: gprc, preferred-register: '' }
5075 - { id: 3, class: g8rc, preferred-register: '' }
5076 liveins:
5077 - { reg: '$x3', virtual-reg: '%0' }
5078 - { reg: '$x4', virtual-reg: '%1' }
5079 frameInfo:
5080 isFrameAddressTaken: false
5081 isReturnAddressTaken: false
5082 hasStackMap: false
5083 hasPatchPoint: false
5084 stackSize: 0
5085 offsetAdjustment: 0
5086 maxAlignment: 0
5087 adjustsStack: false
5088 hasCalls: false
5089 stackProtector: ''
5090 maxCallFrameSize: 4294967295
5091 hasOpaqueSPAdjustment: false
5092 hasVAStart: false
5093 hasMustTailInVarArgFunc: false
5094 savePoint: []
5095 restorePoint: []
5096 fixedStack:
5097 stack:
5098 constants:
5099 body: |
5100 bb.0.entry:
5101 liveins: $x3, $x4
5102
5103 %1 = COPY $x4
5104 %0 = COPY $x3
5105 %2 = LI 44
5106 %3 = SRAD %0, killed %2, implicit-def dead $carry
5107 ; CHECK: SRADI killed %0, 44, implicit-def dead $carry
5108 ; CHECK-LATE: sradi 3, 3, 44
5109 $x3 = COPY %3
5110 BLR8 implicit $lr8, implicit $rm, implicit $x3
5111
5112 ...
5113 ---
5114 name: testSRAD_rec
5115 # CHECK-ALL: name: testSRAD_rec
5116 alignment: 16
5117 exposesReturnsTwice: false
5118 legalized: false
5119 regBankSelected: false
5120 selected: false
5121 tracksRegLiveness: true
5122 registers:
5123 - { id: 0, class: g8rc, preferred-register: '' }
5124 - { id: 1, class: g8rc_and_g8rc_nox0, preferred-register: '' }
5125 - { id: 2, class: gprc, preferred-register: '' }
5126 - { id: 3, class: g8rc_and_g8rc_nox0, preferred-register: '' }
5127 - { id: 4, class: crrc, preferred-register: '' }
5128 - { id: 5, class: g8rc, preferred-register: '' }
5129 liveins:
5130 - { reg: '$x3', virtual-reg: '%0' }
5131 - { reg: '$x4', virtual-reg: '%1' }
5132 frameInfo:
5133 isFrameAddressTaken: false
5134 isReturnAddressTaken: false
5135 hasStackMap: false
5136 hasPatchPoint: false
5137 stackSize: 0
5138 offsetAdjustment: 0
5139 maxAlignment: 0
5140 adjustsStack: false
5141 hasCalls: false
5142 stackProtector: ''
5143 maxCallFrameSize: 4294967295
5144 hasOpaqueSPAdjustment: false
5145 hasVAStart: false
5146 hasMustTailInVarArgFunc: false
5147 savePoint: []
5148 restorePoint: []
5149 fixedStack:
5150 stack:
5151 constants:
5152 body: |
5153 bb.0.entry:
5154 liveins: $x3, $x4
5155
5156 %1 = COPY $x4
5157 %0 = COPY $x3
5158 %2 = LI 61
5159 %3 = SRAD_rec %0, killed %2, implicit-def dead $carry, implicit-def $cr0
5160 ; CHECK: SRADI_rec killed %0, 61, implicit-def dead $carry, implicit-def $cr0
5161 ; CHECK-LATE: sradi. 3, 3, 61
5162 %4 = COPY killed $cr0
5163 %5 = ISEL8 %1, %3, %4.sub_eq
5164 $x3 = COPY %5
5165 BLR8 implicit $lr8, implicit $rm, implicit $x3
5166
5167 ...
5168 ---
5169 name: testSTBUX
5170 # CHECK-ALL: name: testSTBUX
5171 alignment: 16
5172 exposesReturnsTwice: false
5173 legalized: false
5174 regBankSelected: false
5175 selected: false
5176 tracksRegLiveness: true
5177 registers:
5178 - { id: 0, class: g8rc_and_g8rc_nox0, preferred-register: '' }
5179 - { id: 1, class: g8rc, preferred-register: '' }
5180 - { id: 2, class: g8rc, preferred-register: '' }
5181 - { id: 3, class: gprc, preferred-register: '' }
5182 - { id: 4, class: gprc_and_gprc_nor0, preferred-register: '' }
5183 - { id: 5, class: gprc, preferred-register: '' }
5184 - { id: 6, class: g8rc, preferred-register: '' }
5185 - { id: 7, class: g8rc, preferred-register: '' }
5186 - { id: 8, class: g8rc, preferred-register: '' }
5187 - { id: 9, class: gprc, preferred-register: '' }
5188 - { id: 10, class: g8rc, preferred-register: '' }
5189 - { id: 11, class: g8rc, preferred-register: '' }
5190 - { id: 12, class: g8rc, preferred-register: '' }
5191 - { id: 13, class: g8rc_and_g8rc_nox0, preferred-register: '' }
5192 - { id: 14, class: g8rc_and_g8rc_nox0, preferred-register: '' }
5193 liveins:
5194 - { reg: '$x3', virtual-reg: '%0' }
5195 - { reg: '$x4', virtual-reg: '%1' }
5196 - { reg: '$x5', virtual-reg: '%2' }
5197 frameInfo:
5198 isFrameAddressTaken: false
5199 isReturnAddressTaken: false
5200 hasStackMap: false
5201 hasPatchPoint: false
5202 stackSize: 0
5203 offsetAdjustment: 0
5204 maxAlignment: 0
5205 adjustsStack: false
5206 hasCalls: false
5207 stackProtector: ''
5208 maxCallFrameSize: 4294967295
5209 hasOpaqueSPAdjustment: false
5210 hasVAStart: false
5211 hasMustTailInVarArgFunc: false
5212 savePoint: []
5213 restorePoint: []
5214 fixedStack:
5215 stack:
5216 constants:
5217 body: |
5218 bb.0.entry:
5219 liveins: $x3, $x4, $x5
5220
5221 %2 = COPY $x5
5222 %1 = COPY $x4
5223 %0 = COPY $x3
5224 %3 = COPY %1.sub_32
5225 %4 = COPY %2.sub_32
5226 %5 = ADDI %4, 1
5227 %7 = IMPLICIT_DEF
5228 %6 = INSERT_SUBREG %7, killed %5, 1
5229 %8 = LI8 966
5230 %13 = STBUX %3, %0, killed %8 :: (store (s8) into %ir.arrayidx, !tbaa !3)
5231 ; CHECK: STBU %3, 966, %0
5232 ; CHECK-LATE: {{[0-9]+}}, 966({{[0-9]+}})
5233 %9 = ADDI %4, 2
5234 %11 = IMPLICIT_DEF
5235 %10 = INSERT_SUBREG %11, killed %9, 1
5236 %12 = LI8 777
5237 %14 = STBUX %3, %0, killed %12 :: (store (s8) into %ir.arrayidx3, !tbaa !3)
5238 ; CHECK: STBU killed %3, 777, killed %0
5239 ; CHECK-LATE: {{[0-9]+}}, 777({{[0-9]+}})
5240 BLR8 implicit $lr8, implicit $rm
5241
5242 ...
5243 ---
5244 name: testSTBX
5245 # CHECK-ALL: name: testSTBX
5246 alignment: 16
5247 exposesReturnsTwice: false
5248 legalized: false
5249 regBankSelected: false
5250 selected: false
5251 tracksRegLiveness: true
5252 registers:
5253 - { id: 0, class: g8rc_and_g8rc_nox0, preferred-register: '' }
5254 - { id: 1, class: g8rc, preferred-register: '' }
5255 - { id: 2, class: g8rc, preferred-register: '' }
5256 - { id: 3, class: gprc, preferred-register: '' }
5257 - { id: 4, class: gprc_and_gprc_nor0, preferred-register: '' }
5258 - { id: 5, class: gprc, preferred-register: '' }
5259 - { id: 6, class: g8rc, preferred-register: '' }
5260 - { id: 7, class: g8rc, preferred-register: '' }
5261 - { id: 8, class: g8rc, preferred-register: '' }
5262 - { id: 9, class: gprc, preferred-register: '' }
5263 - { id: 10, class: g8rc, preferred-register: '' }
5264 - { id: 11, class: g8rc, preferred-register: '' }
5265 - { id: 12, class: g8rc, preferred-register: '' }
5266 liveins:
5267 - { reg: '$x3', virtual-reg: '%0' }
5268 - { reg: '$x4', virtual-reg: '%1' }
5269 - { reg: '$x5', virtual-reg: '%2' }
5270 frameInfo:
5271 isFrameAddressTaken: false
5272 isReturnAddressTaken: false
5273 hasStackMap: false
5274 hasPatchPoint: false
5275 stackSize: 0
5276 offsetAdjustment: 0
5277 maxAlignment: 0
5278 adjustsStack: false
5279 hasCalls: false
5280 stackProtector: ''
5281 maxCallFrameSize: 4294967295
5282 hasOpaqueSPAdjustment: false
5283 hasVAStart: false
5284 hasMustTailInVarArgFunc: false
5285 savePoint: []
5286 restorePoint: []
5287 fixedStack:
5288 stack:
5289 constants:
5290 body: |
5291 bb.0.entry:
5292 liveins: $x3, $x4, $x5
5293
5294 %2 = COPY $x5
5295 %1 = COPY $x4
5296 %0 = LI8 975
5297 %3 = COPY %1.sub_32
5298 %4 = COPY %2.sub_32
5299 %5 = ADDI %4, 1
5300 %7 = IMPLICIT_DEF
5301 %6 = INSERT_SUBREG %7, killed %5, 1
5302 %8 = RLDICL killed %6, 0, 32
5303 STBX %3, %0, killed %8 :: (store (s8) into %ir.arrayidx, !tbaa !3)
5304 ; CHECK: STB %3, 975, killed %8
5305 ; CHECK-LATE: stb 4, 975(6)
5306 %9 = ADDI %4, 2
5307 %11 = IMPLICIT_DEF
5308 %10 = INSERT_SUBREG %11, killed %9, 1
5309 %12 = RLDICL killed %10, 0, 32
5310 STBX %3, %0, killed %12 :: (store (s8) into %ir.arrayidx3, !tbaa !3)
5311 ; CHECK: STB killed %3, 975, killed %12
5312 ; CHECK-LATE: stb 4, 975(5)
5313 BLR8 implicit $lr8, implicit $rm
5314
5315 ...
5316 ---
5317 name: testSTHUX
5318 # CHECK-ALL: name: testSTHUX
5319 alignment: 16
5320 exposesReturnsTwice: false
5321 legalized: false
5322 regBankSelected: false
5323 selected: false
5324 tracksRegLiveness: true
5325 registers:
5326 - { id: 0, class: g8rc_and_g8rc_nox0, preferred-register: '' }
5327 - { id: 1, class: g8rc, preferred-register: '' }
5328 - { id: 2, class: g8rc, preferred-register: '' }
5329 - { id: 3, class: gprc, preferred-register: '' }
5330 - { id: 4, class: gprc_and_gprc_nor0, preferred-register: '' }
5331 - { id: 5, class: gprc, preferred-register: '' }
5332 - { id: 6, class: g8rc, preferred-register: '' }
5333 - { id: 7, class: g8rc, preferred-register: '' }
5334 - { id: 8, class: g8rc, preferred-register: '' }
5335 - { id: 9, class: gprc, preferred-register: '' }
5336 - { id: 10, class: g8rc, preferred-register: '' }
5337 - { id: 11, class: g8rc, preferred-register: '' }
5338 - { id: 12, class: g8rc, preferred-register: '' }
5339 - { id: 13, class: g8rc_and_g8rc_nox0, preferred-register: '' }
5340 - { id: 14, class: g8rc_and_g8rc_nox0, preferred-register: '' }
5341 liveins:
5342 - { reg: '$x3', virtual-reg: '%0' }
5343 - { reg: '$x4', virtual-reg: '%1' }
5344 - { reg: '$x5', virtual-reg: '%2' }
5345 frameInfo:
5346 isFrameAddressTaken: false
5347 isReturnAddressTaken: false
5348 hasStackMap: false
5349 hasPatchPoint: false
5350 stackSize: 0
5351 offsetAdjustment: 0
5352 maxAlignment: 0
5353 adjustsStack: false
5354 hasCalls: false
5355 stackProtector: ''
5356 maxCallFrameSize: 4294967295
5357 hasOpaqueSPAdjustment: false
5358 hasVAStart: false
5359 hasMustTailInVarArgFunc: false
5360 savePoint: []
5361 restorePoint: []
5362 fixedStack:
5363 stack:
5364 constants:
5365 body: |
5366 bb.0.entry:
5367 liveins: $x3, $x4, $x5
5368
5369 %2 = COPY $x5
5370 %1 = COPY $x4
5371 %0 = COPY $x3
5372 %3 = COPY %1.sub_32
5373 %4 = COPY %2.sub_32
5374 %5 = ADDI %4, 1
5375 %7 = IMPLICIT_DEF
5376 %6 = INSERT_SUBREG %7, killed %5, 1
5377 %8 = LI8 32000
5378 %13 = STHUX %3, %0, killed %8 :: (store (s16) into %ir.arrayidx, !tbaa !6)
5379 ; CHECK: STHU %3, 32000, %0
5380 ; CHECK-LATE: sthu {{[0-9]+}}, 32000({{[0-9]+}})
5381 %9 = ADDI %4, 2
5382 %11 = IMPLICIT_DEF
5383 %10 = INSERT_SUBREG %11, killed %9, 1
5384 %12 = LI8 -761
5385 %14 = STHUX %3, %0, killed %12 :: (store (s16) into %ir.arrayidx3, !tbaa !6)
5386 ; CHECK: STHU killed %3, -761, killed %0
5387 ; CHECK-LATE: sthu {{[0-9]+}}, -761({{[0-9]+}})
5388 BLR8 implicit $lr8, implicit $rm
5389
5390 ...
5391 ---
5392 name: testSTHX
5393 # CHECK-ALL: name: testSTHX
5394 alignment: 16
5395 exposesReturnsTwice: false
5396 legalized: false
5397 regBankSelected: false
5398 selected: false
5399 tracksRegLiveness: true
5400 registers:
5401 - { id: 0, class: g8rc_and_g8rc_nox0, preferred-register: '' }
5402 - { id: 1, class: g8rc, preferred-register: '' }
5403 - { id: 2, class: g8rc, preferred-register: '' }
5404 - { id: 3, class: gprc, preferred-register: '' }
5405 - { id: 4, class: gprc_and_gprc_nor0, preferred-register: '' }
5406 - { id: 5, class: gprc, preferred-register: '' }
5407 - { id: 6, class: g8rc, preferred-register: '' }
5408 - { id: 7, class: g8rc, preferred-register: '' }
5409 - { id: 8, class: g8rc, preferred-register: '' }
5410 - { id: 9, class: gprc, preferred-register: '' }
5411 - { id: 10, class: g8rc, preferred-register: '' }
5412 - { id: 11, class: g8rc, preferred-register: '' }
5413 - { id: 12, class: g8rc, preferred-register: '' }
5414 liveins:
5415 - { reg: '$x3', virtual-reg: '%0' }
5416 - { reg: '$x4', virtual-reg: '%1' }
5417 - { reg: '$x5', virtual-reg: '%2' }
5418 frameInfo:
5419 isFrameAddressTaken: false
5420 isReturnAddressTaken: false
5421 hasStackMap: false
5422 hasPatchPoint: false
5423 stackSize: 0
5424 offsetAdjustment: 0
5425 maxAlignment: 0
5426 adjustsStack: false
5427 hasCalls: false
5428 stackProtector: ''
5429 maxCallFrameSize: 4294967295
5430 hasOpaqueSPAdjustment: false
5431 hasVAStart: false
5432 hasMustTailInVarArgFunc: false
5433 savePoint: []
5434 restorePoint: []
5435 fixedStack:
5436 stack:
5437 constants:
5438 body: |
5439 bb.0.entry:
5440 liveins: $x3, $x4, $x5
5441
5442 %2 = COPY $x5
5443 %1 = COPY $x4
5444 %0 = COPY $x3
5445 %3 = COPY %1.sub_32
5446 %4 = COPY %2.sub_32
5447 %5 = ADDI %4, 1
5448 %7 = IMPLICIT_DEF
5449 %6 = INSERT_SUBREG %7, killed %5, 1
5450 %8 = LI8 900
5451 STHX %3, %0, killed %8 :: (store (s8) into %ir.arrayidx, !tbaa !3)
5452 ; CHECK: STH %3, 900, %0
5453 ; CHECK-LATE: sth {{[0-9]+}}, 900({{[0-9]+}})
5454 %9 = ADDI %4, 2
5455 %11 = IMPLICIT_DEF
5456 %10 = INSERT_SUBREG %11, killed %9, 1
5457 %12 = LI8 -900
5458 STHX %3, %0, killed %12 :: (store (s8) into %ir.arrayidx3, !tbaa !3)
5459 ; CHECK: STH killed %3, -900, killed %0
5460 ; CHECK-LATE: sth {{[0-9]+}}, -900({{[0-9]+}})
5461 BLR8 implicit $lr8, implicit $rm
5462
5463 ...
5464 ---
5465 name: testSTWUX
5466 # CHECK-ALL: name: testSTWUX
5467 alignment: 16
5468 exposesReturnsTwice: false
5469 legalized: false
5470 regBankSelected: false
5471 selected: false
5472 tracksRegLiveness: true
5473 registers:
5474 - { id: 0, class: g8rc_and_g8rc_nox0, preferred-register: '' }
5475 - { id: 1, class: g8rc, preferred-register: '' }
5476 - { id: 2, class: g8rc, preferred-register: '' }
5477 - { id: 3, class: gprc, preferred-register: '' }
5478 - { id: 4, class: gprc_and_gprc_nor0, preferred-register: '' }
5479 - { id: 5, class: gprc, preferred-register: '' }
5480 - { id: 6, class: g8rc, preferred-register: '' }
5481 - { id: 7, class: g8rc, preferred-register: '' }
5482 - { id: 8, class: g8rc, preferred-register: '' }
5483 - { id: 9, class: gprc, preferred-register: '' }
5484 - { id: 10, class: g8rc, preferred-register: '' }
5485 - { id: 11, class: g8rc, preferred-register: '' }
5486 - { id: 12, class: g8rc, preferred-register: '' }
5487 - { id: 13, class: g8rc_and_g8rc_nox0, preferred-register: '' }
5488 - { id: 14, class: g8rc_and_g8rc_nox0, preferred-register: '' }
5489 liveins:
5490 - { reg: '$x3', virtual-reg: '%0' }
5491 - { reg: '$x4', virtual-reg: '%1' }
5492 - { reg: '$x5', virtual-reg: '%2' }
5493 frameInfo:
5494 isFrameAddressTaken: false
5495 isReturnAddressTaken: false
5496 hasStackMap: false
5497 hasPatchPoint: false
5498 stackSize: 0
5499 offsetAdjustment: 0
5500 maxAlignment: 0
5501 adjustsStack: false
5502 hasCalls: false
5503 stackProtector: ''
5504 maxCallFrameSize: 4294967295
5505 hasOpaqueSPAdjustment: false
5506 hasVAStart: false
5507 hasMustTailInVarArgFunc: false
5508 savePoint: []
5509 restorePoint: []
5510 fixedStack:
5511 stack:
5512 constants:
5513 body: |
5514 bb.0.entry:
5515 liveins: $x3, $x4, $x5
5516
5517 %2 = COPY $x5
5518 %1 = COPY $x4
5519 %0 = COPY $x3
5520 %3 = COPY %1.sub_32
5521 %4 = COPY %2.sub_32
5522 %5 = ADDI %4, 1
5523 %7 = IMPLICIT_DEF
5524 %6 = INSERT_SUBREG %7, killed %5, 1
5525 %8 = LI8 111
5526 %13 = STWUX %3, %0, killed %8 :: (store (s32) into %ir.arrayidx, !tbaa !8)
5527 ; CHECK: STWU %3, 111, %0
5528 ; CHECK-LATE: stwu {{[0-9]+}}, 111({{[0-9]+}})
5529 %9 = ADDI %4, 2
5530 %11 = IMPLICIT_DEF
5531 %10 = INSERT_SUBREG %11, killed %9, 1
5532 %12 = LI8 0
5533 %14 = STWUX %3, %0, killed %12 :: (store (s32) into %ir.arrayidx3, !tbaa !8)
5534 ; CHECK: STWU killed %3, 0, killed %0
5535 ; CHECK-LATE: stwu {{[0-9]+}}, 0({{[0-9]+}})
5536 BLR8 implicit $lr8, implicit $rm
5537
5538 ...
5539 ---
5540 name: testSTWX
5541 # CHECK-ALL: name: testSTWX
5542 alignment: 16
5543 exposesReturnsTwice: false
5544 legalized: false
5545 regBankSelected: false
5546 selected: false
5547 tracksRegLiveness: true
5548 registers:
5549 - { id: 0, class: g8rc_and_g8rc_nox0, preferred-register: '' }
5550 - { id: 1, class: g8rc, preferred-register: '' }
5551 - { id: 2, class: g8rc, preferred-register: '' }
5552 - { id: 3, class: gprc, preferred-register: '' }
5553 - { id: 4, class: gprc_and_gprc_nor0, preferred-register: '' }
5554 - { id: 5, class: gprc, preferred-register: '' }
5555 - { id: 6, class: g8rc, preferred-register: '' }
5556 - { id: 7, class: g8rc, preferred-register: '' }
5557 - { id: 8, class: g8rc, preferred-register: '' }
5558 - { id: 9, class: gprc, preferred-register: '' }
5559 - { id: 10, class: g8rc, preferred-register: '' }
5560 - { id: 11, class: g8rc, preferred-register: '' }
5561 - { id: 12, class: g8rc, preferred-register: '' }
5562 liveins:
5563 - { reg: '$x3', virtual-reg: '%0' }
5564 - { reg: '$x4', virtual-reg: '%1' }
5565 - { reg: '$x5', virtual-reg: '%2' }
5566 frameInfo:
5567 isFrameAddressTaken: false
5568 isReturnAddressTaken: false
5569 hasStackMap: false
5570 hasPatchPoint: false
5571 stackSize: 0
5572 offsetAdjustment: 0
5573 maxAlignment: 0
5574 adjustsStack: false
5575 hasCalls: false
5576 stackProtector: ''
5577 maxCallFrameSize: 4294967295
5578 hasOpaqueSPAdjustment: false
5579 hasVAStart: false
5580 hasMustTailInVarArgFunc: false
5581 savePoint: []
5582 restorePoint: []
5583 fixedStack:
5584 stack:
5585 constants:
5586 body: |
5587 bb.0.entry:
5588 liveins: $x3, $x4, $x5
5589
5590 %2 = COPY $x5
5591 %1 = COPY $x4
5592 %0 = COPY $x3
5593 %3 = COPY %1.sub_32
5594 %4 = COPY %2.sub_32
5595 %5 = ADDI %4, 1
5596 %7 = IMPLICIT_DEF
5597 %6 = INSERT_SUBREG %7, killed %5, 1
5598 %8 = LI8 2
5599 STWX %3, %0, killed %8 :: (store (s32) into %ir.arrayidx, !tbaa !8)
5600 ; CHECK: STW %3, 2, %0
5601 ; CHECK-LATE: stw 4, 2(3)
5602 %9 = ADDI %4, 2
5603 %11 = IMPLICIT_DEF
5604 %10 = INSERT_SUBREG %11, killed %9, 1
5605 %12 = LI8 99
5606 STWX %3, %0, killed %12 :: (store (s32) into %ir.arrayidx3, !tbaa !8)
5607 ; CHECK: STW killed %3, 99, killed %0
5608 ; CHECK-LATE: stw 4, 99(3)
5609 BLR8 implicit $lr8, implicit $rm
5610
5611 ...
5612 ---
5613 name: testSTDUX
5614 # CHECK-ALL: name: testSTDUX
5615 alignment: 16
5616 exposesReturnsTwice: false
5617 legalized: false
5618 regBankSelected: false
5619 selected: false
5620 tracksRegLiveness: true
5621 registers:
5622 - { id: 0, class: g8rc_and_g8rc_nox0, preferred-register: '' }
5623 - { id: 1, class: g8rc, preferred-register: '' }
5624 - { id: 2, class: g8rc, preferred-register: '' }
5625 - { id: 3, class: gprc_and_gprc_nor0, preferred-register: '' }
5626 - { id: 4, class: gprc, preferred-register: '' }
5627 - { id: 5, class: g8rc, preferred-register: '' }
5628 - { id: 6, class: g8rc, preferred-register: '' }
5629 - { id: 7, class: g8rc, preferred-register: '' }
5630 - { id: 8, class: gprc, preferred-register: '' }
5631 - { id: 9, class: g8rc, preferred-register: '' }
5632 - { id: 10, class: g8rc, preferred-register: '' }
5633 - { id: 11, class: g8rc, preferred-register: '' }
5634 - { id: 12, class: g8rc_and_g8rc_nox0, preferred-register: '' }
5635 - { id: 13, class: g8rc_and_g8rc_nox0, preferred-register: '' }
5636 liveins:
5637 - { reg: '$x3', virtual-reg: '%0' }
5638 - { reg: '$x4', virtual-reg: '%1' }
5639 - { reg: '$x5', virtual-reg: '%2' }
5640 frameInfo:
5641 isFrameAddressTaken: false
5642 isReturnAddressTaken: false
5643 hasStackMap: false
5644 hasPatchPoint: false
5645 stackSize: 0
5646 offsetAdjustment: 0
5647 maxAlignment: 0
5648 adjustsStack: false
5649 hasCalls: false
5650 stackProtector: ''
5651 maxCallFrameSize: 4294967295
5652 hasOpaqueSPAdjustment: false
5653 hasVAStart: false
5654 hasMustTailInVarArgFunc: false
5655 savePoint: []
5656 restorePoint: []
5657 fixedStack:
5658 stack:
5659 constants:
5660 body: |
5661 bb.0.entry:
5662 liveins: $x3, $x4, $x5
5663
5664 %2 = COPY $x5
5665 %1 = COPY $x4
5666 %0 = COPY $x3
5667 %3 = COPY %2.sub_32
5668 %4 = ADDI %3, 1
5669 %6 = IMPLICIT_DEF
5670 %5 = INSERT_SUBREG %6, killed %4, 1
5671 %7 = LI8 444
5672 %12 = STDUX %1, %0, killed %7 :: (store (s64) into %ir.arrayidx, !tbaa !10)
5673 ; CHECK: STDU %1, 444, %0
5674 ; CHECK-LATE: stdu {{[0-9]+}}, 444({{[0-9]+}})
5675 %8 = ADDI %3, 2
5676 %10 = IMPLICIT_DEF
5677 %9 = INSERT_SUBREG %10, killed %8, 1
5678 %11 = LI8 -8
5679 %13 = STDUX %1, %0, killed %11 :: (store (s64) into %ir.arrayidx3, !tbaa !10)
5680 ; CHECK: STDU killed %1, -8, killed %0
5681 ; CHECK-LATE: stdu {{[0-9]+}}, -8({{[0-9]+}})
5682 BLR8 implicit $lr8, implicit $rm
5683
5684 ...
5685 ---
5686 name: testSTDX
5687 # CHECK-ALL: name: testSTDX
5688 alignment: 16
5689 exposesReturnsTwice: false
5690 legalized: false
5691 regBankSelected: false
5692 selected: false
5693 tracksRegLiveness: true
5694 registers:
5695 - { id: 0, class: g8rc_and_g8rc_nox0, preferred-register: '' }
5696 - { id: 1, class: g8rc, preferred-register: '' }
5697 - { id: 2, class: g8rc, preferred-register: '' }
5698 - { id: 3, class: gprc_and_gprc_nor0, preferred-register: '' }
5699 - { id: 4, class: gprc, preferred-register: '' }
5700 - { id: 5, class: g8rc, preferred-register: '' }
5701 - { id: 6, class: g8rc, preferred-register: '' }
5702 - { id: 7, class: g8rc, preferred-register: '' }
5703 - { id: 8, class: gprc, preferred-register: '' }
5704 - { id: 9, class: g8rc, preferred-register: '' }
5705 - { id: 10, class: g8rc, preferred-register: '' }
5706 - { id: 11, class: g8rc, preferred-register: '' }
5707 liveins:
5708 - { reg: '$x3', virtual-reg: '%0' }
5709 - { reg: '$x4', virtual-reg: '%1' }
5710 - { reg: '$x5', virtual-reg: '%2' }
5711 frameInfo:
5712 isFrameAddressTaken: false
5713 isReturnAddressTaken: false
5714 hasStackMap: false
5715 hasPatchPoint: false
5716 stackSize: 0
5717 offsetAdjustment: 0
5718 maxAlignment: 0
5719 adjustsStack: false
5720 hasCalls: false
5721 stackProtector: ''
5722 maxCallFrameSize: 4294967295
5723 hasOpaqueSPAdjustment: false
5724 hasVAStart: false
5725 hasMustTailInVarArgFunc: false
5726 savePoint: []
5727 restorePoint: []
5728 fixedStack:
5729 stack:
5730 constants:
5731 body: |
5732 bb.0.entry:
5733 liveins: $x3, $x4, $x5
5734
5735 %2 = COPY $x5
5736 %1 = COPY $x4
5737 %0 = LI8 1000
5738 %3 = COPY %2.sub_32
5739 %4 = ADDI %3, 1
5740 %6 = IMPLICIT_DEF
5741 %5 = INSERT_SUBREG %6, killed %4, 1
5742 %7 = LI8 900
5743 STDX %1, %0, killed %7 :: (store (s64) into %ir.arrayidx, !tbaa !10)
5744 ; CHECK: STD %1, 1000, killed %7
5745 ; CHECK-LATE: {{[0-9]+}}, 1000({{[0-9]+}})
5746 %8 = ADDI %3, 2
5747 %10 = IMPLICIT_DEF
5748 %9 = INSERT_SUBREG %10, killed %8, 1
5749 %11 = LI8 -900
5750 STDX %1, %0, killed %11 :: (store (s64) into %ir.arrayidx3, !tbaa !10)
5751 ; CHECK: STD killed %1, 1000, killed %11
5752 ; CHECK-LATE: {{[0-9]+}}, 1000({{[0-9]+}})
5753 BLR8 implicit $lr8, implicit $rm
5754
5755 ...
5756 ---
5757 name: testSTFSX
5758 # CHECK-ALL: name: testSTFSX
5759 alignment: 16
5760 exposesReturnsTwice: false
5761 legalized: false
5762 regBankSelected: false
5763 selected: false
5764 tracksRegLiveness: true
5765 registers:
5766 - { id: 0, class: g8rc_and_g8rc_nox0, preferred-register: '' }
5767 - { id: 1, class: f4rc, preferred-register: '' }
5768 - { id: 2, class: g8rc, preferred-register: '' }
5769 - { id: 3, class: gprc_and_gprc_nor0, preferred-register: '' }
5770 - { id: 4, class: gprc, preferred-register: '' }
5771 - { id: 5, class: g8rc, preferred-register: '' }
5772 - { id: 6, class: g8rc, preferred-register: '' }
5773 - { id: 7, class: g8rc, preferred-register: '' }
5774 - { id: 8, class: gprc, preferred-register: '' }
5775 - { id: 9, class: g8rc, preferred-register: '' }
5776 - { id: 10, class: g8rc, preferred-register: '' }
5777 - { id: 11, class: g8rc, preferred-register: '' }
5778 liveins:
5779 - { reg: '$x3', virtual-reg: '%0' }
5780 - { reg: '$f1', virtual-reg: '%1' }
5781 - { reg: '$x5', virtual-reg: '%2' }
5782 frameInfo:
5783 isFrameAddressTaken: false
5784 isReturnAddressTaken: false
5785 hasStackMap: false
5786 hasPatchPoint: false
5787 stackSize: 0
5788 offsetAdjustment: 0
5789 maxAlignment: 0
5790 adjustsStack: false
5791 hasCalls: false
5792 stackProtector: ''
5793 maxCallFrameSize: 4294967295
5794 hasOpaqueSPAdjustment: false
5795 hasVAStart: false
5796 hasMustTailInVarArgFunc: false
5797 savePoint: []
5798 restorePoint: []
5799 fixedStack:
5800 stack:
5801 constants:
5802 body: |
5803 bb.0.entry:
5804 liveins: $x3, $f1, $x5
5805
5806 %2 = COPY $x5
5807 %1 = COPY $f1
5808 %0 = COPY $x3
5809 %3 = COPY %2.sub_32
5810 %4 = ADDI %3, 1
5811 %6 = IMPLICIT_DEF
5812 %5 = INSERT_SUBREG %6, killed %4, 1
5813 %7 = LI8 400
5814 STFSX %1, %0, killed %7 :: (store (s32) into %ir.arrayidx, !tbaa !14)
5815 ; CHECK: STFS %1, 400, %0
5816 ; CHECK-LATE: stfs 1, 400(3)
5817 %8 = ADDI %3, 2
5818 %10 = IMPLICIT_DEF
5819 %9 = INSERT_SUBREG %10, killed %8, 1
5820 %11 = LI8 -401
5821 STFSX %1, %0, killed %11 :: (store (s32) into %ir.arrayidx3, !tbaa !14)
5822 ; CHECK: STFS killed %1, -401, killed %0
5823 ; CHECK-LATE: stfs 1, -401(3)
5824 BLR8 implicit $lr8, implicit $rm
5825
5826 ...
5827 ---
5828 name: testSTFSUX
5829 # CHECK-ALL: name: testSTFSUX
5830 alignment: 16
5831 exposesReturnsTwice: false
5832 legalized: false
5833 regBankSelected: false
5834 selected: false
5835 tracksRegLiveness: true
5836 registers:
5837 - { id: 0, class: g8rc_and_g8rc_nox0, preferred-register: '' }
5838 - { id: 1, class: f4rc, preferred-register: '' }
5839 - { id: 2, class: g8rc, preferred-register: '' }
5840 - { id: 3, class: gprc_and_gprc_nor0, preferred-register: '' }
5841 - { id: 4, class: gprc, preferred-register: '' }
5842 - { id: 5, class: g8rc, preferred-register: '' }
5843 - { id: 6, class: g8rc, preferred-register: '' }
5844 - { id: 7, class: g8rc, preferred-register: '' }
5845 - { id: 8, class: gprc, preferred-register: '' }
5846 - { id: 9, class: g8rc, preferred-register: '' }
5847 - { id: 10, class: g8rc, preferred-register: '' }
5848 - { id: 11, class: g8rc, preferred-register: '' }
5849 - { id: 12, class: g8rc_and_g8rc_nox0, preferred-register: '' }
5850 - { id: 13, class: g8rc_and_g8rc_nox0, preferred-register: '' }
5851 liveins:
5852 - { reg: '$x3', virtual-reg: '%0' }
5853 - { reg: '$f1', virtual-reg: '%1' }
5854 - { reg: '$x5', virtual-reg: '%2' }
5855 frameInfo:
5856 isFrameAddressTaken: false
5857 isReturnAddressTaken: false
5858 hasStackMap: false
5859 hasPatchPoint: false
5860 stackSize: 0
5861 offsetAdjustment: 0
5862 maxAlignment: 0
5863 adjustsStack: false
5864 hasCalls: false
5865 stackProtector: ''
5866 maxCallFrameSize: 4294967295
5867 hasOpaqueSPAdjustment: false
5868 hasVAStart: false
5869 hasMustTailInVarArgFunc: false
5870 savePoint: []
5871 restorePoint: []
5872 fixedStack:
5873 stack:
5874 constants:
5875 body: |
5876 bb.0.entry:
5877 liveins: $x3, $f1, $x5
5878
5879 %2 = COPY $x5
5880 %1 = COPY $f1
5881 %0 = COPY $x3
5882 %3 = COPY %2.sub_32
5883 %4 = ADDI %3, 1
5884 %6 = IMPLICIT_DEF
5885 %5 = INSERT_SUBREG %6, killed %4, 1
5886 %7 = LI8 111
5887 %12 = STFSUX %1, %0, killed %7 :: (store (s32) into %ir.arrayidx, !tbaa !14)
5888 ; CHECK: STFSU %1, 111, %0
5889 ; CHECK-LATE: stfsu {{[0-9]+}}, 111({{[0-9]+}})
5890 %8 = ADDI %3, 2
5891 %10 = IMPLICIT_DEF
5892 %9 = INSERT_SUBREG %10, killed %8, 1
5893 %11 = LI8 987
5894 %13 = STFSUX %1, %0, killed %11 :: (store (s32) into %ir.arrayidx3, !tbaa !14)
5895 ; CHECK: STFSU killed %1, 987, killed %0
5896 ; CHECK-LATE: stfsu {{[0-9]+}}, 987({{[0-9]+}})
5897 BLR8 implicit $lr8, implicit $rm
5898
5899 ...
5900 ---
5901 name: testSTFDX
5902 # CHECK-ALL: name: testSTFDX
5903 alignment: 16
5904 exposesReturnsTwice: false
5905 legalized: false
5906 regBankSelected: false
5907 selected: false
5908 tracksRegLiveness: true
5909 registers:
5910 - { id: 0, class: g8rc_and_g8rc_nox0, preferred-register: '' }
5911 - { id: 1, class: f8rc, preferred-register: '' }
5912 - { id: 2, class: g8rc, preferred-register: '' }
5913 - { id: 3, class: gprc_and_gprc_nor0, preferred-register: '' }
5914 - { id: 4, class: gprc, preferred-register: '' }
5915 - { id: 5, class: g8rc, preferred-register: '' }
5916 - { id: 6, class: g8rc, preferred-register: '' }
5917 - { id: 7, class: g8rc, preferred-register: '' }
5918 - { id: 8, class: gprc, preferred-register: '' }
5919 - { id: 9, class: g8rc, preferred-register: '' }
5920 - { id: 10, class: g8rc, preferred-register: '' }
5921 - { id: 11, class: g8rc, preferred-register: '' }
5922 liveins:
5923 - { reg: '$x3', virtual-reg: '%0' }
5924 - { reg: '$f1', virtual-reg: '%1' }
5925 - { reg: '$x5', virtual-reg: '%2' }
5926 frameInfo:
5927 isFrameAddressTaken: false
5928 isReturnAddressTaken: false
5929 hasStackMap: false
5930 hasPatchPoint: false
5931 stackSize: 0
5932 offsetAdjustment: 0
5933 maxAlignment: 0
5934 adjustsStack: false
5935 hasCalls: false
5936 stackProtector: ''
5937 maxCallFrameSize: 4294967295
5938 hasOpaqueSPAdjustment: false
5939 hasVAStart: false
5940 hasMustTailInVarArgFunc: false
5941 savePoint: []
5942 restorePoint: []
5943 fixedStack:
5944 stack:
5945 constants:
5946 body: |
5947 bb.0.entry:
5948 liveins: $x3, $f1, $x5
5949
5950 %2 = COPY $x5
5951 %1 = COPY $f1
5952 %0 = COPY $x3
5953 %3 = COPY %2.sub_32
5954 %4 = ADDI %3, 1
5955 %6 = IMPLICIT_DEF
5956 %5 = INSERT_SUBREG %6, killed %4, 1
5957 %7 = LI8 876
5958 STFDX %1, %0, killed %7 :: (store (s64) into %ir.arrayidx, !tbaa !12)
5959 ; CHECK: STFD %1, 876, %0
5960 ; CHECK-LATE: stfd 1, 876(3)
5961 %8 = ADDI %3, 2
5962 %10 = IMPLICIT_DEF
5963 %9 = INSERT_SUBREG %10, killed %8, 1
5964 %11 = LI8 -873
5965 STFDX %1, %0, killed %11 :: (store (s64) into %ir.arrayidx3, !tbaa !12)
5966 ; CHECK: STFD killed %1, -873, killed %0
5967 ; CHECK-LATE: stfd 1, -873(3)
5968 BLR8 implicit $lr8, implicit $rm
5969
5970 ...
5971 ---
5972 name: testSTFDUX
5973 # CHECK-ALL: name: testSTFDUX
5974 alignment: 16
5975 exposesReturnsTwice: false
5976 legalized: false
5977 regBankSelected: false
5978 selected: false
5979 tracksRegLiveness: true
5980 registers:
5981 - { id: 0, class: g8rc_and_g8rc_nox0, preferred-register: '' }
5982 - { id: 1, class: f8rc, preferred-register: '' }
5983 - { id: 2, class: g8rc, preferred-register: '' }
5984 - { id: 3, class: gprc_and_gprc_nor0, preferred-register: '' }
5985 - { id: 4, class: gprc, preferred-register: '' }
5986 - { id: 5, class: g8rc, preferred-register: '' }
5987 - { id: 6, class: g8rc, preferred-register: '' }
5988 - { id: 7, class: g8rc, preferred-register: '' }
5989 - { id: 8, class: gprc, preferred-register: '' }
5990 - { id: 9, class: g8rc, preferred-register: '' }
5991 - { id: 10, class: g8rc, preferred-register: '' }
5992 - { id: 11, class: g8rc, preferred-register: '' }
5993 - { id: 12, class: g8rc_and_g8rc_nox0, preferred-register: '' }
5994 - { id: 13, class: g8rc_and_g8rc_nox0, preferred-register: '' }
5995 liveins:
5996 - { reg: '$x3', virtual-reg: '%0' }
5997 - { reg: '$f1', virtual-reg: '%1' }
5998 - { reg: '$x5', virtual-reg: '%2' }
5999 frameInfo:
6000 isFrameAddressTaken: false
6001 isReturnAddressTaken: false
6002 hasStackMap: false
6003 hasPatchPoint: false
6004 stackSize: 0
6005 offsetAdjustment: 0
6006 maxAlignment: 0
6007 adjustsStack: false
6008 hasCalls: false
6009 stackProtector: ''
6010 maxCallFrameSize: 4294967295
6011 hasOpaqueSPAdjustment: false
6012 hasVAStart: false
6013 hasMustTailInVarArgFunc: false
6014 savePoint: []
6015 restorePoint: []
6016 fixedStack:
6017 stack:
6018 constants:
6019 body: |
6020 bb.0.entry:
6021 liveins: $x3, $f1, $x5
6022
6023 %2 = COPY $x5
6024 %1 = COPY $f1
6025 %0 = COPY $x3
6026 %3 = COPY %2.sub_32
6027 %4 = ADDI %3, 1
6028 %6 = IMPLICIT_DEF
6029 %5 = INSERT_SUBREG %6, killed %4, 1
6030 %7 = LI8 -9038
6031 %12 = STFDUX %1, %0, killed %7 :: (store (s64) into %ir.arrayidx, !tbaa !12)
6032 ; CHECK: STFDU %1, -9038, %0
6033 ; CHECK-LATE: stfdu {{[0-9]+}}, -9038({{[0-9]+}})
6034 %8 = ADDI %3, 2
6035 %10 = IMPLICIT_DEF
6036 %9 = INSERT_SUBREG %10, killed %8, 1
6037 %11 = LI8 6477
6038 %13 = STFDUX %1, %0, killed %11 :: (store (s64) into %ir.arrayidx3, !tbaa !12)
6039 ; CHECK: STFDU killed %1, 6477, killed %0
6040 ; CHECK-LATE: stfdu {{[0-9]+}}, 6477({{[0-9]+}})
6041 BLR8 implicit $lr8, implicit $rm
6042
6043 ...
6044 ---
6045 name: testSTXSSPX
6046 # CHECK-ALL: name: testSTXSSPX
6047 alignment: 16
6048 exposesReturnsTwice: false
6049 legalized: false
6050 regBankSelected: false
6051 selected: false
6052 tracksRegLiveness: true
6053 registers:
6054 - { id: 0, class: g8rc_and_g8rc_nox0, preferred-register: '' }
6055 - { id: 1, class: vssrc, preferred-register: '' }
6056 - { id: 2, class: g8rc, preferred-register: '' }
6057 - { id: 3, class: g8rc, preferred-register: '' }
6058 liveins:
6059 - { reg: '$x3', virtual-reg: '%0' }
6060 - { reg: '$f1', virtual-reg: '%1' }
6061 - { reg: '$x5', virtual-reg: '%2' }
6062 frameInfo:
6063 isFrameAddressTaken: false
6064 isReturnAddressTaken: false
6065 hasStackMap: false
6066 hasPatchPoint: false
6067 stackSize: 0
6068 offsetAdjustment: 0
6069 maxAlignment: 0
6070 adjustsStack: false
6071 hasCalls: false
6072 stackProtector: ''
6073 maxCallFrameSize: 4294967295
6074 hasOpaqueSPAdjustment: false
6075 hasVAStart: false
6076 hasMustTailInVarArgFunc: false
6077 savePoint: []
6078 restorePoint: []
6079 fixedStack:
6080 stack:
6081 constants:
6082 body: |
6083 bb.0.entry:
6084 liveins: $x3, $f1, $x5
6085
6086 %2 = COPY $x5
6087 %1 = COPY $f1
6088 %0 = COPY $x3
6089 %3 = LI8 444
6090 STXSSPX %1, %0, killed %3 :: (store (s32) into %ir.arrayidx, !tbaa !14)
6091 ; CHECK: DFSTOREf32 killed %1, 444, killed %0
6092 ; CHECK-LATE: stfs 1, 444(3)
6093 BLR8 implicit $lr8, implicit $rm
6094
6095 ...
6096 ---
6097 name: testSTXSDX
6098 # CHECK-ALL: name: testSTXSDX
6099 alignment: 16
6100 exposesReturnsTwice: false
6101 legalized: false
6102 regBankSelected: false
6103 selected: false
6104 tracksRegLiveness: true
6105 registers:
6106 - { id: 0, class: g8rc_and_g8rc_nox0, preferred-register: '' }
6107 - { id: 1, class: vsfrc, preferred-register: '' }
6108 - { id: 2, class: g8rc, preferred-register: '' }
6109 - { id: 3, class: g8rc, preferred-register: '' }
6110 liveins:
6111 - { reg: '$x3', virtual-reg: '%0' }
6112 - { reg: '$f1', virtual-reg: '%1' }
6113 - { reg: '$x5', virtual-reg: '%2' }
6114 frameInfo:
6115 isFrameAddressTaken: false
6116 isReturnAddressTaken: false
6117 hasStackMap: false
6118 hasPatchPoint: false
6119 stackSize: 0
6120 offsetAdjustment: 0
6121 maxAlignment: 0
6122 adjustsStack: false
6123 hasCalls: false
6124 stackProtector: ''
6125 maxCallFrameSize: 4294967295
6126 hasOpaqueSPAdjustment: false
6127 hasVAStart: false
6128 hasMustTailInVarArgFunc: false
6129 savePoint: []
6130 restorePoint: []
6131 fixedStack:
6132 stack:
6133 constants:
6134 body: |
6135 bb.0.entry:
6136 liveins: $x3, $f1, $x5
6137
6138 %2 = COPY $x5
6139 %1 = COPY $f1
6140 %0 = COPY $x3
6141 %3 = LI8 4
6142 STXSDX %1, %0, killed %3, implicit $rm :: (store (s64) into %ir.arrayidx, !tbaa !12)
6143 ; CHECK: DFSTOREf64 killed %1, 4, killed %0
6144 ; CHECK-LATE: stfd 1, 4(3)
6145 BLR8 implicit $lr8, implicit $rm
6146
6147 ...
6148 ---
6149 name: testSTXVX
6150 # CHECK-ALL: name: testSTXVX
6151 alignment: 16
6152 exposesReturnsTwice: false
6153 legalized: false
6154 regBankSelected: false
6155 selected: false
6156 tracksRegLiveness: true
6157 registers:
6158 - { id: 0, class: g8rc_and_g8rc_nox0, preferred-register: '' }
6159 - { id: 1, class: vrrc, preferred-register: '' }
6160 - { id: 2, class: g8rc, preferred-register: '' }
6161 - { id: 3, class: g8rc, preferred-register: '' }
6162 liveins:
6163 - { reg: '$x3', virtual-reg: '%0' }
6164 - { reg: '$v2', virtual-reg: '%1' }
6165 - { reg: '$x7', virtual-reg: '%2' }
6166 frameInfo:
6167 isFrameAddressTaken: false
6168 isReturnAddressTaken: false
6169 hasStackMap: false
6170 hasPatchPoint: false
6171 stackSize: 0
6172 offsetAdjustment: 0
6173 maxAlignment: 0
6174 adjustsStack: false
6175 hasCalls: false
6176 stackProtector: ''
6177 maxCallFrameSize: 4294967295
6178 hasOpaqueSPAdjustment: false
6179 hasVAStart: false
6180 hasMustTailInVarArgFunc: false
6181 savePoint: []
6182 restorePoint: []
6183 fixedStack:
6184 stack:
6185 constants:
6186 body: |
6187 bb.0.entry:
6188 liveins: $x3, $v2, $x7
6189
6190 %2 = COPY $x7
6191 %1 = COPY $v2
6192 %0 = LI8 16
6193 %3 = RLDICR %2, 4, 59
6194 STXVX %1, %0, killed %3 :: (store (s128) into %ir.arrayidx, !tbaa !3)
6195 ; CHECK: STXV killed %1, 16, killed %3
6196 ; CHECK-LATE: stxv 34, 16(4)
6197 BLR8 implicit $lr8, implicit $rm
6198
6199 ...
6200 ---
6201 name: testSUBFC
6202 # CHECK-ALL: name: testSUBFC
6203 alignment: 16
6204 exposesReturnsTwice: false
6205 legalized: false
6206 regBankSelected: false
6207 selected: false
6208 tracksRegLiveness: true
6209 registers:
6210 - { id: 0, class: gprc, preferred-register: '' }
6211 - { id: 1, class: g8rc, preferred-register: '' }
6212 - { id: 2, class: g8rc, preferred-register: '' }
6213 - { id: 3, class: g8rc, preferred-register: '' }
6214 - { id: 4, class: gprc, preferred-register: '' }
6215 - { id: 5, class: gprc, preferred-register: '' }
6216 - { id: 6, class: gprc, preferred-register: '' }
6217 - { id: 7, class: gprc, preferred-register: '' }
6218 - { id: 8, class: gprc, preferred-register: '' }
6219 liveins:
6220 - { reg: '$x3', virtual-reg: '%0' }
6221 - { reg: '$x4', virtual-reg: '%1' }
6222 - { reg: '$x5', virtual-reg: '%2' }
6223 - { reg: '$x6', virtual-reg: '%3' }
6224 frameInfo:
6225 isFrameAddressTaken: false
6226 isReturnAddressTaken: false
6227 hasStackMap: false
6228 hasPatchPoint: false
6229 stackSize: 0
6230 offsetAdjustment: 0
6231 maxAlignment: 0
6232 adjustsStack: false
6233 hasCalls: false
6234 stackProtector: ''
6235 maxCallFrameSize: 4294967295
6236 hasOpaqueSPAdjustment: false
6237 hasVAStart: false
6238 hasMustTailInVarArgFunc: false
6239 savePoint: []
6240 restorePoint: []
6241 fixedStack:
6242 stack:
6243 constants:
6244 body: |
6245 bb.0.entry:
6246 liveins: $x3, $x4, $x5, $x6
6247
6248 %3 = COPY $x6
6249 %2 = COPY $x5
6250 %1 = COPY $x4
6251 %6 = COPY %3.sub_32
6252 %7 = COPY %2.sub_32
6253 %8 = COPY %1.sub_32
6254 %0 = LI 55
6255 %4 = SUBFC %7, %0, implicit-def $carry
6256 ; CHECK: SUBFIC killed %7, 55
6257 ; CHECK-LATE: subfic 3, 5, 55
6258 %5 = SUBFE %6, %8, implicit-def dead $carry, implicit $carry
6259 $x3 = EXTSW_32_64 %4
6260 $x4 = EXTSW_32_64 %5
6261 BLR8 implicit $lr8, implicit $rm, implicit $x3, implicit $x4
6262
6263 ...
6264 ---
6265 name: testSUBFC8
6266 # CHECK-ALL: name: testSUBFC8
6267 alignment: 16
6268 exposesReturnsTwice: false
6269 legalized: false
6270 regBankSelected: false
6271 selected: false
6272 tracksRegLiveness: true
6273 registers:
6274 - { id: 0, class: g8rc, preferred-register: '' }
6275 - { id: 1, class: g8rc, preferred-register: '' }
6276 - { id: 2, class: g8rc, preferred-register: '' }
6277 - { id: 3, class: g8rc, preferred-register: '' }
6278 - { id: 4, class: g8rc, preferred-register: '' }
6279 - { id: 5, class: g8rc, preferred-register: '' }
6280 liveins:
6281 - { reg: '$x3', virtual-reg: '%0' }
6282 - { reg: '$x4', virtual-reg: '%1' }
6283 - { reg: '$x5', virtual-reg: '%2' }
6284 - { reg: '$x6', virtual-reg: '%3' }
6285 frameInfo:
6286 isFrameAddressTaken: false
6287 isReturnAddressTaken: false
6288 hasStackMap: false
6289 hasPatchPoint: false
6290 stackSize: 0
6291 offsetAdjustment: 0
6292 maxAlignment: 0
6293 adjustsStack: false
6294 hasCalls: false
6295 stackProtector: ''
6296 maxCallFrameSize: 4294967295
6297 hasOpaqueSPAdjustment: false
6298 hasVAStart: false
6299 hasMustTailInVarArgFunc: false
6300 savePoint: []
6301 restorePoint: []
6302 fixedStack:
6303 stack:
6304 constants:
6305 body: |
6306 bb.0.entry:
6307 liveins: $x3, $x4, $x5, $x6
6308
6309 %3 = COPY $x6
6310 %2 = COPY $x5
6311 %1 = COPY $x4
6312 %0 = LI8 7635
6313 %4 = SUBFC8 %2, %0, implicit-def $carry
6314 ; CHECK: SUBFIC8 killed %2, 7635
6315 ; CHECK-LATE: subfic 3, 5, 7635
6316 %5 = SUBFE8 %3, %1, implicit-def dead $carry, implicit $carry
6317 $x3 = COPY %4
6318 $x4 = COPY %5
6319 BLR8 implicit $lr8, implicit $rm, implicit $x3, implicit $x4
6320
6321 ...
6322 ---
6323 name: testXOR
6324 # CHECK-ALL: name: testXOR
6325 alignment: 16
6326 exposesReturnsTwice: false
6327 legalized: false
6328 regBankSelected: false
6329 selected: false
6330 tracksRegLiveness: true
6331 registers:
6332 - { id: 0, class: g8rc, preferred-register: '' }
6333 - { id: 1, class: gprc, preferred-register: '' }
6334 - { id: 2, class: gprc, preferred-register: '' }
6335 - { id: 3, class: gprc, preferred-register: '' }
6336 liveins:
6337 - { reg: '$x3', virtual-reg: '%0' }
6338 - { reg: '$x4', virtual-reg: '%1' }
6339 frameInfo:
6340 isFrameAddressTaken: false
6341 isReturnAddressTaken: false
6342 hasStackMap: false
6343 hasPatchPoint: false
6344 stackSize: 0
6345 offsetAdjustment: 0
6346 maxAlignment: 0
6347 adjustsStack: false
6348 hasCalls: false
6349 stackProtector: ''
6350 maxCallFrameSize: 4294967295
6351 hasOpaqueSPAdjustment: false
6352 hasVAStart: false
6353 hasMustTailInVarArgFunc: false
6354 savePoint: []
6355 restorePoint: []
6356 fixedStack:
6357 stack:
6358 constants:
6359 body: |
6360 bb.0.entry:
6361 liveins: $x3, $x4
6362
6363 %1 = LI 10101
6364 %0 = COPY $x3
6365 %3 = COPY %0.sub_32
6366 %2 = XOR %1, %3
6367 ; CHECK: XORI killed %3, 10101
6368 ; CHECK-LATE: 3, 3, 10101
6369 $x3 = EXTSW_32_64 %2
6370 BLR8 implicit $lr8, implicit $rm, implicit $x3
6371
6372 ...
6373 ---
6374 name: testXOR8
6375 # CHECK-ALL: name: testXOR8
6376 alignment: 16
6377 exposesReturnsTwice: false
6378 legalized: false
6379 regBankSelected: false
6380 selected: false
6381 tracksRegLiveness: true
6382 registers:
6383 - { id: 0, class: g8rc, preferred-register: '' }
6384 - { id: 1, class: g8rc, preferred-register: '' }
6385 - { id: 2, class: g8rc, preferred-register: '' }
6386 liveins:
6387 - { reg: '$x3', virtual-reg: '%0' }
6388 - { reg: '$x4', virtual-reg: '%1' }
6389 frameInfo:
6390 isFrameAddressTaken: false
6391 isReturnAddressTaken: false
6392 hasStackMap: false
6393 hasPatchPoint: false
6394 stackSize: 0
6395 offsetAdjustment: 0
6396 maxAlignment: 0
6397 adjustsStack: false
6398 hasCalls: false
6399 stackProtector: ''
6400 maxCallFrameSize: 4294967295
6401 hasOpaqueSPAdjustment: false
6402 hasVAStart: false
6403 hasMustTailInVarArgFunc: false
6404 savePoint: []
6405 restorePoint: []
6406 fixedStack:
6407 stack:
6408 constants:
6409 body: |
6410 bb.0.entry:
6411 liveins: $x3, $x4
6412
6413 %1 = COPY $x4
6414 %0 = LI8 5535
6415 %2 = XOR8 %1, %0
6416 ; CHECK: XORI8 killed %1, 5535
6417 ; CHECK-LATE: xori 3, 4, 5535
6418 $x3 = COPY %2
6419 BLR8 implicit $lr8, implicit $rm, implicit $x3
6420
6421 ...
6422 ---
6423 name: testXORI
6424 # CHECK-ALL: name: testXORI
6425 alignment: 16
6426 exposesReturnsTwice: false
6427 legalized: false
6428 regBankSelected: false
6429 selected: false
6430 tracksRegLiveness: true
6431 registers:
6432 - { id: 0, class: gprc, preferred-register: '' }
6433 - { id: 1, class: gprc, preferred-register: '' }
6434 liveins:
6435 - { reg: '$x3', virtual-reg: '%0' }
6436 frameInfo:
6437 isFrameAddressTaken: false
6438 isReturnAddressTaken: false
6439 hasStackMap: false
6440 hasPatchPoint: false
6441 stackSize: 0
6442 offsetAdjustment: 0
6443 maxAlignment: 0
6444 adjustsStack: false
6445 hasCalls: false
6446 stackProtector: ''
6447 maxCallFrameSize: 4294967295
6448 hasOpaqueSPAdjustment: false
6449 hasVAStart: false
6450 hasMustTailInVarArgFunc: false
6451 savePoint: []
6452 restorePoint: []
6453 fixedStack:
6454 stack:
6455 constants:
6456 body: |
6457 bb.0.entry:
6458 liveins: $x3
6459
6460 %0 = LI 871
6461 %1 = XORI %0, 17
6462 ; CHECK: LI8 886
6463 ; CHECK-LATE: li 3, 886
6464 $x3 = EXTSW_32_64 %1
6465 BLR8 implicit $lr8, implicit $rm, implicit $x3
6466
6467 ...
6468 ---
6469 name: testXOR8I
6470 # CHECK-ALL: name: testXOR8I
6471 alignment: 16
6472 exposesReturnsTwice: false
6473 legalized: false
6474 regBankSelected: false
6475 selected: false
6476 tracksRegLiveness: true
6477 registers:
6478 - { id: 0, class: g8rc, preferred-register: '' }
6479 - { id: 1, class: g8rc, preferred-register: '' }
6480 liveins:
6481 - { reg: '$x3', virtual-reg: '%0' }
6482 frameInfo:
6483 isFrameAddressTaken: false
6484 isReturnAddressTaken: false
6485 hasStackMap: false
6486 hasPatchPoint: false
6487 stackSize: 0
6488 offsetAdjustment: 0
6489 maxAlignment: 0
6490 adjustsStack: false
6491 hasCalls: false
6492 stackProtector: ''
6493 maxCallFrameSize: 4294967295
6494 hasOpaqueSPAdjustment: false
6495 hasVAStart: false
6496 hasMustTailInVarArgFunc: false
6497 savePoint: []
6498 restorePoint: []
6499 fixedStack:
6500 stack:
6501 constants:
6502 body: |
6503 bb.0.entry:
6504 liveins: $x3
6505
6506 %0 = LI8 453
6507 %1 = XORI8 %0, 17
6508 ; CHECK: LI8 468
6509 ; CHECK-LATE: li 3, 468
6510 $x3 = COPY %1
6511 BLR8 implicit $lr8, implicit $rm, implicit $x3
6512
6513 ...