1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu -O2 \
3 ; RUN: -ppc-asm-full-reg-names -mcpu=pwr10 < %s | FileCheck %s \
4 ; RUN: --check-prefixes=CHECK,CHECK-LE
5 ; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu -O2 \
6 ; RUN: -ppc-asm-full-reg-names -mcpu=pwr10 < %s | FileCheck %s \
7 ; RUN: --check-prefixes=CHECK,CHECK-BE
9 ; This file does not contain many test cases involving comparisons and logical
10 ; comparisons (cmplwi, cmpldi). This is because alternative code is generated
11 ; when there is a compare (logical or not), followed by a sign or zero extend.
12 ; This codegen will be re-evaluated at a later time on whether or not it should
15 @globalVal = common dso_local local_unnamed_addr global i8 0, align 1
16 @globalVal2 = common dso_local local_unnamed_addr global i32 0, align 4
17 @globalVal3 = common dso_local local_unnamed_addr global i64 0, align 8
18 @globalVal4 = common dso_local local_unnamed_addr global i16 0, align 2
20 define dso_local signext i32 @setbc1(i8 %a) {
21 ; CHECK-LABEL: setbc1:
22 ; CHECK: # %bb.0: # %entry
23 ; CHECK-NEXT: extsb r3, r3
24 ; CHECK-NEXT: cmpwi r3, 1
25 ; CHECK-NEXT: setbc r3, lt
28 %cmp = icmp slt i8 %a, 1
29 %conv = zext i1 %cmp to i32
33 define dso_local signext i32 @setbc2(i32 %a) {
34 ; CHECK-LABEL: setbc2:
35 ; CHECK: # %bb.0: # %entry
36 ; CHECK-NEXT: cmpwi r3, 1
37 ; CHECK-NEXT: setbc r3, lt
40 %cmp = icmp slt i32 %a, 1
41 %conv = zext i1 %cmp to i32
45 define dso_local signext i32 @setbc3(i64 %a) {
46 ; CHECK-LABEL: setbc3:
47 ; CHECK: # %bb.0: # %entry
48 ; CHECK-NEXT: cmpdi r3, 1
49 ; CHECK-NEXT: setbc r3, lt
52 %cmp = icmp slt i64 %a, 1
53 %conv = zext i1 %cmp to i32
57 define dso_local signext i32 @setbc4(i16 %a) {
58 ; CHECK-LABEL: setbc4:
59 ; CHECK: # %bb.0: # %entry
60 ; CHECK-NEXT: extsh r3, r3
61 ; CHECK-NEXT: cmpwi r3, 1
62 ; CHECK-NEXT: setbc r3, lt
65 %cmp = icmp slt i16 %a, 1
66 %conv = zext i1 %cmp to i32
70 define signext i64 @setbc5(i8 %a) {
71 ; CHECK-LABEL: setbc5:
72 ; CHECK: # %bb.0: # %entry
73 ; CHECK-NEXT: extsb r3, r3
74 ; CHECK-NEXT: cmpwi r3, 1
75 ; CHECK-NEXT: setbc r3, lt
78 %cmp = icmp slt i8 %a, 1
79 %conv = zext i1 %cmp to i64
83 define signext i64 @setbc6(i32 %a) {
84 ; CHECK-LABEL: setbc6:
85 ; CHECK: # %bb.0: # %entry
86 ; CHECK-NEXT: cmpwi r3, 1
87 ; CHECK-NEXT: setbc r3, lt
90 %cmp = icmp slt i32 %a, 1
91 %conv = zext i1 %cmp to i64
95 define signext i64 @setbc7(i64 %a) {
96 ; CHECK-LABEL: setbc7:
97 ; CHECK: # %bb.0: # %entry
98 ; CHECK-NEXT: cmpdi r3, 1
99 ; CHECK-NEXT: setbc r3, lt
102 %cmp = icmp slt i64 %a, 1
103 %conv = zext i1 %cmp to i64
107 define signext i64 @setbc8(i16 %a) {
108 ; CHECK-LABEL: setbc8:
109 ; CHECK: # %bb.0: # %entry
110 ; CHECK-NEXT: extsh r3, r3
111 ; CHECK-NEXT: cmpwi r3, 1
112 ; CHECK-NEXT: setbc r3, lt
115 %cmp = icmp slt i16 %a, 1
116 %conv = zext i1 %cmp to i64
120 define dso_local void @setbc9(i8 %a) {
121 ; CHECK-LE-LABEL: setbc9:
122 ; CHECK-LE: # %bb.0: # %entry
123 ; CHECK-LE-NEXT: extsb r3, r3
124 ; CHECK-LE-NEXT: cmpwi r3, 1
125 ; CHECK-LE-NEXT: setbc r3, lt
126 ; CHECK-LE-NEXT: pstb r3, globalVal@PCREL(0), 1
129 ; CHECK-BE-LABEL: setbc9:
130 ; CHECK-BE: # %bb.0: # %entry
131 ; CHECK-BE-NEXT: extsb r3, r3
132 ; CHECK-BE-NEXT: addis r4, r2, globalVal@toc@ha
133 ; CHECK-BE-NEXT: cmpwi r3, 1
134 ; CHECK-BE-NEXT: setbc r3, lt
135 ; CHECK-BE-NEXT: stb r3, globalVal@toc@l(r4)
138 %cmp = icmp slt i8 %a, 1
139 %conv1 = zext i1 %cmp to i8
140 store i8 %conv1, ptr @globalVal, align 1
144 define dso_local void @setbc10(i32 %a) {
145 ; CHECK-LE-LABEL: setbc10:
146 ; CHECK-LE: # %bb.0: # %entry
147 ; CHECK-LE-NEXT: cmpwi r3, 1
148 ; CHECK-LE-NEXT: setbc r3, lt
149 ; CHECK-LE-NEXT: pstw r3, globalVal2@PCREL(0), 1
152 ; CHECK-BE-LABEL: setbc10:
153 ; CHECK-BE: # %bb.0: # %entry
154 ; CHECK-BE-NEXT: cmpwi r3, 1
155 ; CHECK-BE-NEXT: addis r4, r2, globalVal2@toc@ha
156 ; CHECK-BE-NEXT: setbc r3, lt
157 ; CHECK-BE-NEXT: stw r3, globalVal2@toc@l(r4)
160 %cmp = icmp slt i32 %a, 1
161 %conv1 = zext i1 %cmp to i32
162 store i32 %conv1, ptr @globalVal2, align 4
166 define dso_local void @setbc11(i64 %a) {
167 ; CHECK-LE-LABEL: setbc11:
168 ; CHECK-LE: # %bb.0: # %entry
169 ; CHECK-LE-NEXT: cmpdi r3, 1
170 ; CHECK-LE-NEXT: setbc r3, lt
171 ; CHECK-LE-NEXT: pstd r3, globalVal3@PCREL(0), 1
174 ; CHECK-BE-LABEL: setbc11:
175 ; CHECK-BE: # %bb.0: # %entry
176 ; CHECK-BE-NEXT: cmpdi r3, 1
177 ; CHECK-BE-NEXT: addis r4, r2, globalVal3@toc@ha
178 ; CHECK-BE-NEXT: setbc r3, lt
179 ; CHECK-BE-NEXT: std r3, globalVal3@toc@l(r4)
182 %cmp = icmp slt i64 %a, 1
183 %conv1 = zext i1 %cmp to i64
184 store i64 %conv1, ptr @globalVal3, align 8
188 define dso_local void @setbc12(i16 %a) {
189 ; CHECK-LE-LABEL: setbc12:
190 ; CHECK-LE: # %bb.0: # %entry
191 ; CHECK-LE-NEXT: extsh r3, r3
192 ; CHECK-LE-NEXT: cmpwi r3, 1
193 ; CHECK-LE-NEXT: setbc r3, lt
194 ; CHECK-LE-NEXT: psth r3, globalVal4@PCREL(0), 1
197 ; CHECK-BE-LABEL: setbc12:
198 ; CHECK-BE: # %bb.0: # %entry
199 ; CHECK-BE-NEXT: extsh r3, r3
200 ; CHECK-BE-NEXT: addis r4, r2, globalVal4@toc@ha
201 ; CHECK-BE-NEXT: cmpwi r3, 1
202 ; CHECK-BE-NEXT: setbc r3, lt
203 ; CHECK-BE-NEXT: sth r3, globalVal4@toc@l(r4)
206 %cmp = icmp slt i16 %a, 1
207 %conv1 = zext i1 %cmp to i16
208 store i16 %conv1, ptr @globalVal4, align 2
212 define dso_local signext i32 @setbc13(i8 %a) {
213 ; CHECK-LABEL: setbc13:
214 ; CHECK: # %bb.0: # %entry
215 ; CHECK-NEXT: extsb r3, r3
216 ; CHECK-NEXT: cmpwi r3, 1
217 ; CHECK-NEXT: setbc r3, gt
220 %cmp = icmp sgt i8 %a, 1
221 %conv = zext i1 %cmp to i32
225 define dso_local signext i32 @setbc14(i32 %a) {
226 ; CHECK-LABEL: setbc14:
227 ; CHECK: # %bb.0: # %entry
228 ; CHECK-NEXT: cmpwi r3, 1
229 ; CHECK-NEXT: setbc r3, gt
232 %cmp = icmp sgt i32 %a, 1
233 %conv = zext i1 %cmp to i32
237 define dso_local signext i32 @setbc15(i64 %a) {
238 ; CHECK-LABEL: setbc15:
239 ; CHECK: # %bb.0: # %entry
240 ; CHECK-NEXT: cmpdi r3, 1
241 ; CHECK-NEXT: setbc r3, gt
244 %cmp = icmp sgt i64 %a, 1
245 %conv = zext i1 %cmp to i32
249 define dso_local signext i32 @setbc16(i16 %a) {
250 ; CHECK-LABEL: setbc16:
251 ; CHECK: # %bb.0: # %entry
252 ; CHECK-NEXT: extsh r3, r3
253 ; CHECK-NEXT: cmpwi r3, 1
254 ; CHECK-NEXT: setbc r3, gt
257 %cmp = icmp sgt i16 %a, 1
258 %conv = zext i1 %cmp to i32
262 define signext i64 @setbc17(i8 %a) {
263 ; CHECK-LABEL: setbc17:
264 ; CHECK: # %bb.0: # %entry
265 ; CHECK-NEXT: extsb r3, r3
266 ; CHECK-NEXT: cmpwi r3, 1
267 ; CHECK-NEXT: setbc r3, gt
270 %cmp = icmp sgt i8 %a, 1
271 %conv = zext i1 %cmp to i64
275 define signext i64 @setbc18(i32 %a) {
276 ; CHECK-LABEL: setbc18:
277 ; CHECK: # %bb.0: # %entry
278 ; CHECK-NEXT: cmpwi r3, 1
279 ; CHECK-NEXT: setbc r3, gt
282 %cmp = icmp sgt i32 %a, 1
283 %conv = zext i1 %cmp to i64
287 define signext i64 @setbc19(i64 %a) {
288 ; CHECK-LABEL: setbc19:
289 ; CHECK: # %bb.0: # %entry
290 ; CHECK-NEXT: cmpdi r3, 1
291 ; CHECK-NEXT: setbc r3, gt
294 %cmp = icmp sgt i64 %a, 1
295 %conv = zext i1 %cmp to i64
299 define signext i64 @setbc20(i16 %a) {
300 ; CHECK-LABEL: setbc20:
301 ; CHECK: # %bb.0: # %entry
302 ; CHECK-NEXT: extsh r3, r3
303 ; CHECK-NEXT: cmpwi r3, 1
304 ; CHECK-NEXT: setbc r3, gt
307 %cmp = icmp sgt i16 %a, 1
308 %conv = zext i1 %cmp to i64
312 define dso_local void @setbc21(i8 %a) {
313 ; CHECK-LE-LABEL: setbc21:
314 ; CHECK-LE: # %bb.0: # %entry
315 ; CHECK-LE-NEXT: extsb r3, r3
316 ; CHECK-LE-NEXT: cmpwi r3, 1
317 ; CHECK-LE-NEXT: setbc r3, gt
318 ; CHECK-LE-NEXT: pstb r3, globalVal@PCREL(0), 1
321 ; CHECK-BE-LABEL: setbc21:
322 ; CHECK-BE: # %bb.0: # %entry
323 ; CHECK-BE-NEXT: extsb r3, r3
324 ; CHECK-BE-NEXT: addis r4, r2, globalVal@toc@ha
325 ; CHECK-BE-NEXT: cmpwi r3, 1
326 ; CHECK-BE-NEXT: setbc r3, gt
327 ; CHECK-BE-NEXT: stb r3, globalVal@toc@l(r4)
330 %cmp = icmp sgt i8 %a, 1
331 %conv1 = zext i1 %cmp to i8
332 store i8 %conv1, ptr @globalVal, align 1
336 define dso_local void @setbc22(i32 %a) {
337 ; CHECK-LE-LABEL: setbc22:
338 ; CHECK-LE: # %bb.0: # %entry
339 ; CHECK-LE-NEXT: cmpwi r3, 1
340 ; CHECK-LE-NEXT: setbc r3, gt
341 ; CHECK-LE-NEXT: pstw r3, globalVal2@PCREL(0), 1
344 ; CHECK-BE-LABEL: setbc22:
345 ; CHECK-BE: # %bb.0: # %entry
346 ; CHECK-BE-NEXT: cmpwi r3, 1
347 ; CHECK-BE-NEXT: addis r4, r2, globalVal2@toc@ha
348 ; CHECK-BE-NEXT: setbc r3, gt
349 ; CHECK-BE-NEXT: stw r3, globalVal2@toc@l(r4)
352 %cmp = icmp sgt i32 %a, 1
353 %conv1 = zext i1 %cmp to i32
354 store i32 %conv1, ptr @globalVal2, align 4
358 define dso_local void @setbc23(i64 %a) {
359 ; CHECK-LE-LABEL: setbc23:
360 ; CHECK-LE: # %bb.0: # %entry
361 ; CHECK-LE-NEXT: cmpdi r3, 1
362 ; CHECK-LE-NEXT: setbc r3, gt
363 ; CHECK-LE-NEXT: pstd r3, globalVal3@PCREL(0), 1
366 ; CHECK-BE-LABEL: setbc23:
367 ; CHECK-BE: # %bb.0: # %entry
368 ; CHECK-BE-NEXT: cmpdi r3, 1
369 ; CHECK-BE-NEXT: addis r4, r2, globalVal3@toc@ha
370 ; CHECK-BE-NEXT: setbc r3, gt
371 ; CHECK-BE-NEXT: std r3, globalVal3@toc@l(r4)
374 %cmp = icmp sgt i64 %a, 1
375 %conv1 = zext i1 %cmp to i64
376 store i64 %conv1, ptr @globalVal3, align 8
380 define dso_local void @setbc24(i16 %a) {
381 ; CHECK-LE-LABEL: setbc24:
382 ; CHECK-LE: # %bb.0: # %entry
383 ; CHECK-LE-NEXT: extsh r3, r3
384 ; CHECK-LE-NEXT: cmpwi r3, 1
385 ; CHECK-LE-NEXT: setbc r3, gt
386 ; CHECK-LE-NEXT: psth r3, globalVal4@PCREL(0), 1
389 ; CHECK-BE-LABEL: setbc24:
390 ; CHECK-BE: # %bb.0: # %entry
391 ; CHECK-BE-NEXT: extsh r3, r3
392 ; CHECK-BE-NEXT: addis r4, r2, globalVal4@toc@ha
393 ; CHECK-BE-NEXT: cmpwi r3, 1
394 ; CHECK-BE-NEXT: setbc r3, gt
395 ; CHECK-BE-NEXT: sth r3, globalVal4@toc@l(r4)
398 %cmp = icmp sgt i16 %a, 1
399 %conv1 = zext i1 %cmp to i16
400 store i16 %conv1, ptr @globalVal4, align 2
404 define dso_local signext i32 @setbc25(i8 %a) {
405 ; CHECK-LABEL: setbc25:
406 ; CHECK: # %bb.0: # %entry
407 ; CHECK-NEXT: clrlwi r3, r3, 24
408 ; CHECK-NEXT: cmpwi r3, 1
409 ; CHECK-NEXT: setbc r3, eq
412 %cmp = icmp eq i8 %a, 1
413 %conv = zext i1 %cmp to i32
417 define dso_local signext i32 @setbc26(i32 %a) {
418 ; CHECK-LABEL: setbc26:
419 ; CHECK: # %bb.0: # %entry
420 ; CHECK-NEXT: cmpwi r3, 1
421 ; CHECK-NEXT: setbc r3, eq
424 %cmp = icmp eq i32 %a, 1
425 %conv = zext i1 %cmp to i32
429 define dso_local signext i32 @setbc27(i64 %a) {
430 ; CHECK-LABEL: setbc27:
431 ; CHECK: # %bb.0: # %entry
432 ; CHECK-NEXT: cmpdi r3, 1
433 ; CHECK-NEXT: setbc r3, eq
436 %cmp = icmp eq i64 %a, 1
437 %conv = zext i1 %cmp to i32
441 define dso_local signext i32 @setbc28(i16 %a) {
442 ; CHECK-LABEL: setbc28:
443 ; CHECK: # %bb.0: # %entry
444 ; CHECK-NEXT: clrlwi r3, r3, 16
445 ; CHECK-NEXT: cmpwi r3, 1
446 ; CHECK-NEXT: setbc r3, eq
449 %cmp = icmp eq i16 %a, 1
450 %conv = zext i1 %cmp to i32
454 define signext i64 @setbc29(i8 %a) {
455 ; CHECK-LABEL: setbc29:
456 ; CHECK: # %bb.0: # %entry
457 ; CHECK-NEXT: clrlwi r3, r3, 24
458 ; CHECK-NEXT: cmpwi r3, 1
459 ; CHECK-NEXT: setbc r3, eq
462 %cmp = icmp eq i8 %a, 1
463 %conv = zext i1 %cmp to i64
467 define signext i64 @setbc30(i32 %a) {
468 ; CHECK-LABEL: setbc30:
469 ; CHECK: # %bb.0: # %entry
470 ; CHECK-NEXT: cmpwi r3, 1
471 ; CHECK-NEXT: setbc r3, eq
474 %cmp = icmp eq i32 %a, 1
475 %conv = zext i1 %cmp to i64
479 define signext i64 @setbc31(i64 %a) {
480 ; CHECK-LABEL: setbc31:
481 ; CHECK: # %bb.0: # %entry
482 ; CHECK-NEXT: cmpdi r3, 1
483 ; CHECK-NEXT: setbc r3, eq
486 %cmp = icmp eq i64 %a, 1
487 %conv = zext i1 %cmp to i64
491 define signext i64 @setbc32(i16 %a) {
492 ; CHECK-LABEL: setbc32:
493 ; CHECK: # %bb.0: # %entry
494 ; CHECK-NEXT: clrlwi r3, r3, 16
495 ; CHECK-NEXT: cmpwi r3, 1
496 ; CHECK-NEXT: setbc r3, eq
499 %cmp = icmp eq i16 %a, 1
500 %conv = zext i1 %cmp to i64
504 define dso_local void @setbc33(i8 %a) {
505 ; CHECK-LE-LABEL: setbc33:
506 ; CHECK-LE: # %bb.0: # %entry
507 ; CHECK-LE-NEXT: clrlwi r3, r3, 24
508 ; CHECK-LE-NEXT: cmpwi r3, 1
509 ; CHECK-LE-NEXT: setbc r3, eq
510 ; CHECK-LE-NEXT: pstb r3, globalVal@PCREL(0), 1
513 ; CHECK-BE-LABEL: setbc33:
514 ; CHECK-BE: # %bb.0: # %entry
515 ; CHECK-BE-NEXT: clrlwi r3, r3, 24
516 ; CHECK-BE-NEXT: addis r4, r2, globalVal@toc@ha
517 ; CHECK-BE-NEXT: cmpwi r3, 1
518 ; CHECK-BE-NEXT: setbc r3, eq
519 ; CHECK-BE-NEXT: stb r3, globalVal@toc@l(r4)
522 %cmp = icmp eq i8 %a, 1
523 %conv1 = zext i1 %cmp to i8
524 store i8 %conv1, ptr @globalVal, align 1
528 define dso_local void @setbc34(i32 %a) {
529 ; CHECK-LE-LABEL: setbc34:
530 ; CHECK-LE: # %bb.0: # %entry
531 ; CHECK-LE-NEXT: cmpwi r3, 1
532 ; CHECK-LE-NEXT: setbc r3, eq
533 ; CHECK-LE-NEXT: pstw r3, globalVal2@PCREL(0), 1
536 ; CHECK-BE-LABEL: setbc34:
537 ; CHECK-BE: # %bb.0: # %entry
538 ; CHECK-BE-NEXT: cmpwi r3, 1
539 ; CHECK-BE-NEXT: addis r4, r2, globalVal2@toc@ha
540 ; CHECK-BE-NEXT: setbc r3, eq
541 ; CHECK-BE-NEXT: stw r3, globalVal2@toc@l(r4)
544 %cmp = icmp eq i32 %a, 1
545 %conv1 = zext i1 %cmp to i32
546 store i32 %conv1, ptr @globalVal2, align 4
550 define dso_local void @setbc35(i64 %a) {
551 ; CHECK-LE-LABEL: setbc35:
552 ; CHECK-LE: # %bb.0: # %entry
553 ; CHECK-LE-NEXT: cmpdi r3, 1
554 ; CHECK-LE-NEXT: setbc r3, eq
555 ; CHECK-LE-NEXT: pstd r3, globalVal3@PCREL(0), 1
558 ; CHECK-BE-LABEL: setbc35:
559 ; CHECK-BE: # %bb.0: # %entry
560 ; CHECK-BE-NEXT: cmpdi r3, 1
561 ; CHECK-BE-NEXT: addis r4, r2, globalVal3@toc@ha
562 ; CHECK-BE-NEXT: setbc r3, eq
563 ; CHECK-BE-NEXT: std r3, globalVal3@toc@l(r4)
566 %cmp = icmp eq i64 %a, 1
567 %conv1 = zext i1 %cmp to i64
568 store i64 %conv1, ptr @globalVal3, align 8
572 define dso_local void @setbc36(i16 %a) {
573 ; CHECK-LE-LABEL: setbc36:
574 ; CHECK-LE: # %bb.0: # %entry
575 ; CHECK-LE-NEXT: clrlwi r3, r3, 16
576 ; CHECK-LE-NEXT: cmpwi r3, 1
577 ; CHECK-LE-NEXT: setbc r3, eq
578 ; CHECK-LE-NEXT: psth r3, globalVal4@PCREL(0), 1
581 ; CHECK-BE-LABEL: setbc36:
582 ; CHECK-BE: # %bb.0: # %entry
583 ; CHECK-BE-NEXT: clrlwi r3, r3, 16
584 ; CHECK-BE-NEXT: addis r4, r2, globalVal4@toc@ha
585 ; CHECK-BE-NEXT: cmpwi r3, 1
586 ; CHECK-BE-NEXT: setbc r3, eq
587 ; CHECK-BE-NEXT: sth r3, globalVal4@toc@l(r4)
590 %cmp = icmp eq i16 %a, 1
591 %conv1 = zext i1 %cmp to i16
592 store i16 %conv1, ptr @globalVal4, align 2
596 define dso_local signext i32 @setbc37(i64 %a) {
597 ; CHECK-LABEL: setbc37:
598 ; CHECK: # %bb.0: # %entry
599 ; CHECK-NEXT: cmpldi r3, 1
600 ; CHECK-NEXT: setbc r3, gt
603 %cmp = icmp ugt i64 %a, 1
604 %conv = zext i1 %cmp to i32
608 define signext i64 @setbc38(i64 %a) {
609 ; CHECK-LABEL: setbc38:
610 ; CHECK: # %bb.0: # %entry
611 ; CHECK-NEXT: cmpldi r3, 1
612 ; CHECK-NEXT: setbc r3, gt
615 %cmp = icmp ugt i64 %a, 1
616 %conv = zext i1 %cmp to i64
620 define dso_local void @setbc39(i64 %a) {
621 ; CHECK-LE-LABEL: setbc39:
622 ; CHECK-LE: # %bb.0: # %entry
623 ; CHECK-LE-NEXT: cmpldi r3, 1
624 ; CHECK-LE-NEXT: setbc r3, gt
625 ; CHECK-LE-NEXT: pstd r3, globalVal3@PCREL(0), 1
628 ; CHECK-BE-LABEL: setbc39:
629 ; CHECK-BE: # %bb.0: # %entry
630 ; CHECK-BE-NEXT: cmpldi r3, 1
631 ; CHECK-BE-NEXT: addis r4, r2, globalVal3@toc@ha
632 ; CHECK-BE-NEXT: setbc r3, gt
633 ; CHECK-BE-NEXT: std r3, globalVal3@toc@l(r4)
636 %cmp = icmp ugt i64 %a, 1
637 %conv1 = zext i1 %cmp to i64
638 store i64 %conv1, ptr @globalVal3, align 8