Lines Matching refs:FAST

2 …s=regbankselect -regbankselect-fast -verify-machineinstrs -o - %s | FileCheck -check-prefix=FAST %s
11 ; FAST-LABEL: name: phi_s32_ss_sbranch
12 ; FAST: bb.0:
13 ; FAST: successors: %bb.1(0x40000000), %bb.2(0x40000000)
14 ; FAST: liveins: $sgpr0, $sgpr1, $sgpr2
15 ; FAST: [[COPY:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
16 ; FAST: [[COPY1:%[0-9]+]]:sgpr(s32) = COPY $sgpr1
17 ; FAST: [[COPY2:%[0-9]+]]:sgpr(s32) = COPY $sgpr2
18 ; FAST: [[C:%[0-9]+]]:sgpr(s32) = G_CONSTANT i32 0
19 ; FAST: [[ICMP:%[0-9]+]]:sgpr(s32) = G_ICMP intpred(eq), [[COPY2]](s32), [[C]]
20 ; FAST: [[TRUNC:%[0-9]+]]:sgpr(s1) = G_TRUNC [[ICMP]](s32)
21 ; FAST: [[ZEXT:%[0-9]+]]:sgpr(s32) = G_ZEXT [[TRUNC]](s1)
22 ; FAST: G_BRCOND [[ZEXT]](s32), %bb.1
23 ; FAST: G_BR %bb.2
24 ; FAST: bb.1:
25 ; FAST: successors: %bb.2(0x80000000)
26 ; FAST: [[COPY3:%[0-9]+]]:sgpr(s32) = COPY [[COPY1]](s32)
27 ; FAST: G_BR %bb.2
28 ; FAST: bb.2:
29 ; FAST: [[PHI:%[0-9]+]]:sgpr(s32) = G_PHI [[COPY]](s32), %bb.0, [[COPY3]](s32), %bb.1
30 ; FAST: $sgpr0 = COPY [[PHI]](s32)
31 ; FAST: S_SETPC_B64 undef $sgpr30_sgpr31
84 ; FAST-LABEL: name: phi_s32_sv_sbranch
85 ; FAST: bb.0:
86 ; FAST: successors: %bb.1(0x40000000), %bb.2(0x40000000)
87 ; FAST: liveins: $sgpr0, $vgpr0, $sgpr1
88 ; FAST: [[COPY:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
89 ; FAST: [[COPY1:%[0-9]+]]:vgpr(s32) = COPY $vgpr0
90 ; FAST: [[COPY2:%[0-9]+]]:sgpr(s32) = COPY $sgpr1
91 ; FAST: [[C:%[0-9]+]]:sgpr(s32) = G_CONSTANT i32 0
92 ; FAST: [[ICMP:%[0-9]+]]:sgpr(s32) = G_ICMP intpred(eq), [[COPY2]](s32), [[C]]
93 ; FAST: [[TRUNC:%[0-9]+]]:sgpr(s1) = G_TRUNC [[ICMP]](s32)
94 ; FAST: [[ZEXT:%[0-9]+]]:sgpr(s32) = G_ZEXT [[TRUNC]](s1)
95 ; FAST: G_BRCOND [[ZEXT]](s32), %bb.1
96 ; FAST: G_BR %bb.2
97 ; FAST: bb.1:
98 ; FAST: successors: %bb.2(0x80000000)
99 ; FAST: [[COPY3:%[0-9]+]]:vgpr(s32) = COPY [[COPY1]](s32)
100 ; FAST: G_BR %bb.2
101 ; FAST: bb.2:
102 ; FAST: [[PHI:%[0-9]+]]:vgpr(s32) = G_PHI [[COPY]](s32), %bb.0, [[COPY3]](s32), %bb.1
103 ; FAST: $vgpr0 = COPY [[PHI]](s32)
104 ; FAST: S_SETPC_B64 undef $sgpr30_sgpr31
157 ; FAST-LABEL: name: phi_s32_vs_sbranch
158 ; FAST: bb.0:
159 ; FAST: successors: %bb.1(0x40000000), %bb.2(0x40000000)
160 ; FAST: liveins: $vgpr0, $sgpr0, $sgpr1
161 ; FAST: [[COPY:%[0-9]+]]:vgpr(s32) = COPY $vgpr0
162 ; FAST: [[COPY1:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
163 ; FAST: [[COPY2:%[0-9]+]]:sgpr(s32) = COPY $sgpr1
164 ; FAST: [[C:%[0-9]+]]:sgpr(s32) = G_CONSTANT i32 0
165 ; FAST: [[ICMP:%[0-9]+]]:sgpr(s32) = G_ICMP intpred(eq), [[COPY2]](s32), [[C]]
166 ; FAST: [[TRUNC:%[0-9]+]]:sgpr(s1) = G_TRUNC [[ICMP]](s32)
167 ; FAST: [[ZEXT:%[0-9]+]]:sgpr(s32) = G_ZEXT [[TRUNC]](s1)
168 ; FAST: G_BRCOND [[ZEXT]](s32), %bb.1
169 ; FAST: G_BR %bb.2
170 ; FAST: bb.1:
171 ; FAST: successors: %bb.2(0x80000000)
172 ; FAST: [[COPY3:%[0-9]+]]:sgpr(s32) = COPY [[COPY1]](s32)
173 ; FAST: G_BR %bb.2
174 ; FAST: bb.2:
175 ; FAST: [[PHI:%[0-9]+]]:vgpr(s32) = G_PHI [[COPY]](s32), %bb.0, [[COPY3]](s32), %bb.1
176 ; FAST: $vgpr0 = COPY [[PHI]](s32)
177 ; FAST: S_SETPC_B64 undef $sgpr30_sgpr31
230 ; FAST-LABEL: name: phi_s32_vv_sbranch
231 ; FAST: bb.0:
232 ; FAST: successors: %bb.1(0x40000000), %bb.2(0x40000000)
233 ; FAST: liveins: $vgpr0, $vgpr1, $sgpr0
234 ; FAST: [[COPY:%[0-9]+]]:vgpr(s32) = COPY $vgpr0
235 ; FAST: [[COPY1:%[0-9]+]]:vgpr(s32) = COPY $vgpr1
236 ; FAST: [[COPY2:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
237 ; FAST: [[C:%[0-9]+]]:sgpr(s32) = G_CONSTANT i32 0
238 ; FAST: [[ICMP:%[0-9]+]]:sgpr(s32) = G_ICMP intpred(eq), [[COPY2]](s32), [[C]]
239 ; FAST: [[TRUNC:%[0-9]+]]:sgpr(s1) = G_TRUNC [[ICMP]](s32)
240 ; FAST: [[ZEXT:%[0-9]+]]:sgpr(s32) = G_ZEXT [[TRUNC]](s1)
241 ; FAST: G_BRCOND [[ZEXT]](s32), %bb.1
242 ; FAST: G_BR %bb.2
243 ; FAST: bb.1:
244 ; FAST: successors: %bb.2(0x80000000)
245 ; FAST: [[COPY3:%[0-9]+]]:vgpr(s32) = COPY [[COPY1]](s32)
246 ; FAST: G_BR %bb.2
247 ; FAST: bb.2:
248 ; FAST: [[PHI:%[0-9]+]]:vgpr(s32) = G_PHI [[COPY]](s32), %bb.0, [[COPY3]](s32), %bb.1
249 ; FAST: $vgpr0 = COPY [[PHI]](s32)
250 ; FAST: S_SETPC_B64 undef $sgpr30_sgpr31
302 ; FAST-LABEL: name: phi_s32_ss_vcc_sbranch
303 ; FAST: bb.0:
304 ; FAST: successors: %bb.1(0x40000000), %bb.2(0x40000000)
305 ; FAST: liveins: $sgpr0, $sgpr1, $vgpr0
306 ; FAST: [[COPY:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
307 ; FAST: [[COPY1:%[0-9]+]]:sgpr(s32) = COPY $sgpr1
308 ; FAST: [[COPY2:%[0-9]+]]:vgpr(s32) = COPY $vgpr0
309 ; FAST: [[C:%[0-9]+]]:sgpr(s32) = G_CONSTANT i32 0
310 ; FAST: [[COPY3:%[0-9]+]]:vgpr(s32) = COPY [[C]](s32)
311 ; FAST: [[ICMP:%[0-9]+]]:vcc(s1) = G_ICMP intpred(eq), [[COPY2]](s32), [[COPY3]]
312 ; FAST: G_BRCOND [[ICMP]](s1), %bb.1
313 ; FAST: G_BR %bb.2
314 ; FAST: bb.1:
315 ; FAST: successors: %bb.2(0x80000000)
316 ; FAST: [[COPY4:%[0-9]+]]:sgpr(s32) = COPY [[COPY1]](s32)
317 ; FAST: G_BR %bb.2
318 ; FAST: bb.2:
319 ; FAST: [[PHI:%[0-9]+]]:sgpr(s32) = G_PHI [[COPY]](s32), %bb.0, [[COPY4]](s32), %bb.1
320 ; FAST: $sgpr0 = COPY [[PHI]](s32)
321 ; FAST: S_SETPC_B64 undef $sgpr30_sgpr31
373 ; FAST-LABEL: name: phi_s32_sv_vcc_sbranch
374 ; FAST: bb.0:
375 ; FAST: successors: %bb.1(0x40000000), %bb.2(0x40000000)
376 ; FAST: liveins: $sgpr0, $vgpr0, $vgpr1
377 ; FAST: [[COPY:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
378 ; FAST: [[COPY1:%[0-9]+]]:vgpr(s32) = COPY $vgpr0
379 ; FAST: [[COPY2:%[0-9]+]]:vgpr(s32) = COPY $vgpr1
380 ; FAST: [[C:%[0-9]+]]:sgpr(s32) = G_CONSTANT i32 0
381 ; FAST: [[COPY3:%[0-9]+]]:vgpr(s32) = COPY [[C]](s32)
382 ; FAST: [[ICMP:%[0-9]+]]:vcc(s1) = G_ICMP intpred(eq), [[COPY2]](s32), [[COPY3]]
383 ; FAST: G_BRCOND [[ICMP]](s1), %bb.1
384 ; FAST: G_BR %bb.2
385 ; FAST: bb.1:
386 ; FAST: successors: %bb.2(0x80000000)
387 ; FAST: [[COPY4:%[0-9]+]]:vgpr(s32) = COPY [[COPY1]](s32)
388 ; FAST: G_BR %bb.2
389 ; FAST: bb.2:
390 ; FAST: [[PHI:%[0-9]+]]:vgpr(s32) = G_PHI [[COPY]](s32), %bb.0, [[COPY4]](s32), %bb.1
391 ; FAST: $vgpr0 = COPY [[PHI]](s32)
392 ; FAST: S_SETPC_B64 undef $sgpr30_sgpr31
444 ; FAST-LABEL: name: phi_s32_vs_vcc_sbranch
445 ; FAST: bb.0:
446 ; FAST: successors: %bb.1(0x40000000), %bb.2(0x40000000)
447 ; FAST: liveins: $vgpr0, $sgpr0, $vgpr1
448 ; FAST: [[COPY:%[0-9]+]]:vgpr(s32) = COPY $vgpr0
449 ; FAST: [[COPY1:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
450 ; FAST: [[COPY2:%[0-9]+]]:vgpr(s32) = COPY $vgpr1
451 ; FAST: [[C:%[0-9]+]]:sgpr(s32) = G_CONSTANT i32 0
452 ; FAST: [[COPY3:%[0-9]+]]:vgpr(s32) = COPY [[C]](s32)
453 ; FAST: [[ICMP:%[0-9]+]]:vcc(s1) = G_ICMP intpred(eq), [[COPY2]](s32), [[COPY3]]
454 ; FAST: G_BRCOND [[ICMP]](s1), %bb.1
455 ; FAST: G_BR %bb.2
456 ; FAST: bb.1:
457 ; FAST: successors: %bb.2(0x80000000)
458 ; FAST: [[COPY4:%[0-9]+]]:sgpr(s32) = COPY [[COPY1]](s32)
459 ; FAST: G_BR %bb.2
460 ; FAST: bb.2:
461 ; FAST: [[PHI:%[0-9]+]]:vgpr(s32) = G_PHI [[COPY]](s32), %bb.0, [[COPY4]](s32), %bb.1
462 ; FAST: $vgpr0 = COPY [[PHI]](s32)
463 ; FAST: S_SETPC_B64 undef $sgpr30_sgpr31
515 ; FAST-LABEL: name: phi_s32_vv_vcc_sbranch
516 ; FAST: bb.0:
517 ; FAST: successors: %bb.1(0x40000000), %bb.2(0x40000000)
518 ; FAST: liveins: $vgpr0, $vgpr1, $vgpr2
519 ; FAST: [[COPY:%[0-9]+]]:vgpr(s32) = COPY $vgpr0
520 ; FAST: [[COPY1:%[0-9]+]]:vgpr(s32) = COPY $vgpr1
521 ; FAST: [[COPY2:%[0-9]+]]:vgpr(s32) = COPY $vgpr2
522 ; FAST: [[C:%[0-9]+]]:sgpr(s32) = G_CONSTANT i32 0
523 ; FAST: [[COPY3:%[0-9]+]]:vgpr(s32) = COPY [[C]](s32)
524 ; FAST: [[ICMP:%[0-9]+]]:vcc(s1) = G_ICMP intpred(eq), [[COPY2]](s32), [[COPY3]]
525 ; FAST: G_BRCOND [[ICMP]](s1), %bb.1
526 ; FAST: G_BR %bb.2
527 ; FAST: bb.1:
528 ; FAST: successors: %bb.2(0x80000000)
529 ; FAST: [[COPY4:%[0-9]+]]:vgpr(s32) = COPY [[COPY1]](s32)
530 ; FAST: G_BR %bb.2
531 ; FAST: bb.2:
532 ; FAST: [[PHI:%[0-9]+]]:vgpr(s32) = G_PHI [[COPY]](s32), %bb.0, [[COPY4]](s32), %bb.1
533 ; FAST: $vgpr0 = COPY [[PHI]](s32)
534 ; FAST: S_SETPC_B64 undef $sgpr30_sgpr31
586 ; FAST-LABEL: name: phi_s1_scc_scc_sbranch
587 ; FAST: bb.0:
588 ; FAST: successors: %bb.1(0x40000000), %bb.2(0x40000000)
589 ; FAST: liveins: $sgpr0, $sgpr1, $sgpr2
590 ; FAST: [[COPY:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
591 ; FAST: [[COPY1:%[0-9]+]]:sgpr(s32) = COPY $sgpr1
592 ; FAST: [[COPY2:%[0-9]+]]:sgpr(s32) = COPY $sgpr2
593 ; FAST: [[C:%[0-9]+]]:sgpr(s32) = G_CONSTANT i32 0
594 ; FAST: [[ICMP:%[0-9]+]]:sgpr(s32) = G_ICMP intpred(eq), [[COPY]](s32), [[C]]
595 ; FAST: [[TRUNC:%[0-9]+]]:sgpr(s1) = G_TRUNC [[ICMP]](s32)
596 ; FAST: [[ICMP1:%[0-9]+]]:sgpr(s32) = G_ICMP intpred(eq), [[COPY2]](s32), [[C]]
597 ; FAST: [[TRUNC1:%[0-9]+]]:sgpr(s1) = G_TRUNC [[ICMP1]](s32)
598 ; FAST: [[ZEXT:%[0-9]+]]:sgpr(s32) = G_ZEXT [[TRUNC1]](s1)
599 ; FAST: [[ANYEXT:%[0-9]+]]:sgpr(s32) = G_ANYEXT [[TRUNC]](s1)
600 ; FAST: G_BRCOND [[ZEXT]](s32), %bb.1
601 ; FAST: G_BR %bb.2
602 ; FAST: bb.1:
603 ; FAST: successors: %bb.2(0x80000000)
604 ; FAST: [[ICMP2:%[0-9]+]]:sgpr(s32) = G_ICMP intpred(eq), [[COPY1]](s32), [[C]]
605 ; FAST: [[TRUNC2:%[0-9]+]]:sgpr(s1) = G_TRUNC [[ICMP2]](s32)
606 ; FAST: [[ANYEXT1:%[0-9]+]]:sgpr(s32) = G_ANYEXT [[TRUNC2]](s1)
607 ; FAST: G_BR %bb.2
608 ; FAST: bb.2:
609 ; FAST: [[PHI:%[0-9]+]]:sgpr(s32) = G_PHI [[ANYEXT]](s32), %bb.0, [[ANYEXT1]](s32), %bb.1
610 ; FAST: [[TRUNC3:%[0-9]+]]:sgpr(s1) = G_TRUNC [[PHI]](s32)
611 ; FAST: [[ZEXT1:%[0-9]+]]:sgpr(s32) = G_ZEXT [[TRUNC3]](s1)
612 ; FAST: [[SELECT:%[0-9]+]]:sgpr(s32) = G_SELECT [[ZEXT1]](s32), [[C]], [[COPY]]
613 ; FAST: S_SETPC_B64 undef $sgpr30_sgpr31, implicit [[SELECT]](s32)
674 ; FAST-LABEL: name: phi_s1_scc_scc_scc_sbranch
675 ; FAST: bb.0:
676 ; FAST: successors: %bb.1(0x40000000), %bb.3(0x40000000)
677 ; FAST: liveins: $sgpr0, $sgpr1, $sgpr2, $sgpr3
678 ; FAST: [[COPY:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
679 ; FAST: [[COPY1:%[0-9]+]]:sgpr(s32) = COPY $sgpr1
680 ; FAST: [[COPY2:%[0-9]+]]:sgpr(s32) = COPY $sgpr2
681 ; FAST: [[COPY3:%[0-9]+]]:sgpr(s32) = COPY $sgpr3
682 ; FAST: [[C:%[0-9]+]]:sgpr(s32) = G_CONSTANT i32 0
683 ; FAST: [[ICMP:%[0-9]+]]:sgpr(s32) = G_ICMP intpred(eq), [[COPY]](s32), [[COPY3]]
684 ; FAST: [[TRUNC:%[0-9]+]]:sgpr(s1) = G_TRUNC [[ICMP]](s32)
685 ; FAST: [[ICMP1:%[0-9]+]]:sgpr(s32) = G_ICMP intpred(eq), [[COPY2]](s32), [[COPY3]]
686 ; FAST: [[TRUNC1:%[0-9]+]]:sgpr(s1) = G_TRUNC [[ICMP1]](s32)
687 ; FAST: [[ZEXT:%[0-9]+]]:sgpr(s32) = G_ZEXT [[TRUNC1]](s1)
688 ; FAST: [[ANYEXT:%[0-9]+]]:sgpr(s32) = G_ANYEXT [[TRUNC]](s1)
689 ; FAST: G_BRCOND [[ZEXT]](s32), %bb.3
690 ; FAST: G_BR %bb.1
691 ; FAST: bb.1:
692 ; FAST: successors: %bb.2(0x40000000), %bb.3(0x40000000)
693 ; FAST: [[C1:%[0-9]+]]:sgpr(s32) = G_CONSTANT i32 99
694 ; FAST: [[C2:%[0-9]+]]:sgpr(s32) = G_CONSTANT i32 888
695 ; FAST: [[ICMP2:%[0-9]+]]:sgpr(s32) = G_ICMP intpred(eq), [[COPY1]](s32), [[C1]]
696 ; FAST: [[TRUNC2:%[0-9]+]]:sgpr(s1) = G_TRUNC [[ICMP2]](s32)
697 ; FAST: [[ICMP3:%[0-9]+]]:sgpr(s32) = G_ICMP intpred(eq), [[COPY1]](s32), [[C2]]
698 ; FAST: [[TRUNC3:%[0-9]+]]:sgpr(s1) = G_TRUNC [[ICMP3]](s32)
699 ; FAST: [[ZEXT1:%[0-9]+]]:sgpr(s32) = G_ZEXT [[TRUNC3]](s1)
700 ; FAST: [[ANYEXT1:%[0-9]+]]:sgpr(s32) = G_ANYEXT [[TRUNC2]](s1)
701 ; FAST: G_BRCOND [[ZEXT1]](s32), %bb.3
702 ; FAST: G_BR %bb.2
703 ; FAST: bb.2:
704 ; FAST: successors: %bb.3(0x80000000)
705 ; FAST: [[C3:%[0-9]+]]:sgpr(s32) = G_CONSTANT i32 123
706 ; FAST: [[ICMP4:%[0-9]+]]:sgpr(s32) = G_ICMP intpred(eq), [[COPY2]](s32), [[C3]]
707 ; FAST: [[TRUNC4:%[0-9]+]]:sgpr(s1) = G_TRUNC [[ICMP4]](s32)
708 ; FAST: [[ANYEXT2:%[0-9]+]]:sgpr(s32) = G_ANYEXT [[TRUNC4]](s1)
709 ; FAST: G_BR %bb.3
710 ; FAST: bb.3:
711 …; FAST: [[PHI:%[0-9]+]]:sgpr(s32) = G_PHI [[ANYEXT]](s32), %bb.0, [[ANYEXT1]](s32), %bb.1, [[ANY…
712 ; FAST: [[TRUNC5:%[0-9]+]]:sgpr(s1) = G_TRUNC [[PHI]](s32)
713 ; FAST: [[ZEXT2:%[0-9]+]]:sgpr(s32) = G_ZEXT [[TRUNC5]](s1)
714 ; FAST: [[SELECT:%[0-9]+]]:sgpr(s32) = G_SELECT [[ZEXT2]](s32), [[COPY]], [[COPY1]]
715 ; FAST: S_SETPC_B64 undef $sgpr30_sgpr31, implicit [[SELECT]](s32)
802 ; FAST-LABEL: name: phi_s1_scc_vcc_sbranch
803 ; FAST: bb.0:
804 ; FAST: successors: %bb.1(0x40000000), %bb.2(0x40000000)
805 ; FAST: liveins: $sgpr0, $sgpr1, $vgpr0
806 ; FAST: [[COPY:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
807 ; FAST: [[COPY1:%[0-9]+]]:vgpr(s32) = COPY $vgpr0
808 ; FAST: [[COPY2:%[0-9]+]]:sgpr(s32) = COPY $sgpr1
809 ; FAST: [[C:%[0-9]+]]:sgpr(s32) = G_CONSTANT i32 0
810 ; FAST: [[ICMP:%[0-9]+]]:sgpr(s32) = G_ICMP intpred(eq), [[COPY]](s32), [[C]]
811 ; FAST: [[TRUNC:%[0-9]+]]:sgpr(s1) = G_TRUNC [[ICMP]](s32)
812 ; FAST: [[ICMP1:%[0-9]+]]:sgpr(s32) = G_ICMP intpred(eq), [[COPY2]](s32), [[C]]
813 ; FAST: [[TRUNC1:%[0-9]+]]:sgpr(s1) = G_TRUNC [[ICMP1]](s32)
814 ; FAST: [[ZEXT:%[0-9]+]]:sgpr(s32) = G_ZEXT [[TRUNC1]](s1)
815 ; FAST: [[COPY3:%[0-9]+]]:vcc(s1) = COPY [[TRUNC]](s1)
816 ; FAST: G_BRCOND [[ZEXT]](s32), %bb.1
817 ; FAST: G_BR %bb.2
818 ; FAST: bb.1:
819 ; FAST: successors: %bb.2(0x80000000)
820 ; FAST: [[COPY4:%[0-9]+]]:vgpr(s32) = COPY [[C]](s32)
821 ; FAST: [[ICMP2:%[0-9]+]]:vcc(s1) = G_ICMP intpred(eq), [[COPY1]](s32), [[COPY4]]
822 ; FAST: G_BR %bb.2
823 ; FAST: bb.2:
824 ; FAST: [[PHI:%[0-9]+]]:vcc(s1) = G_PHI [[COPY3]](s1), %bb.0, [[ICMP2]](s1), %bb.1
825 ; FAST: [[COPY5:%[0-9]+]]:vgpr(s32) = COPY [[C]](s32)
826 ; FAST: [[COPY6:%[0-9]+]]:vgpr(s32) = COPY [[COPY]](s32)
827 ; FAST: [[SELECT:%[0-9]+]]:vgpr(s32) = G_SELECT [[PHI]](s1), [[COPY5]], [[COPY6]]
828 ; FAST: S_SETPC_B64 undef $sgpr30_sgpr31, implicit [[SELECT]](s32)
888 ; FAST-LABEL: name: phi_s1_vcc_scc_sbranch
889 ; FAST: bb.0:
890 ; FAST: successors: %bb.1(0x40000000), %bb.2(0x40000000)
891 ; FAST: liveins: $vgpr0, $sgpr0, $sgpr1
892 ; FAST: [[COPY:%[0-9]+]]:vgpr(s32) = COPY $vgpr0
893 ; FAST: [[COPY1:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
894 ; FAST: [[COPY2:%[0-9]+]]:sgpr(s32) = COPY $sgpr1
895 ; FAST: [[C:%[0-9]+]]:sgpr(s32) = G_CONSTANT i32 0
896 ; FAST: [[COPY3:%[0-9]+]]:vgpr(s32) = COPY [[C]](s32)
897 ; FAST: [[ICMP:%[0-9]+]]:vcc(s1) = G_ICMP intpred(eq), [[COPY]](s32), [[COPY3]]
898 ; FAST: [[ICMP1:%[0-9]+]]:sgpr(s32) = G_ICMP intpred(eq), [[COPY2]](s32), [[C]]
899 ; FAST: [[TRUNC:%[0-9]+]]:sgpr(s1) = G_TRUNC [[ICMP1]](s32)
900 ; FAST: [[ZEXT:%[0-9]+]]:sgpr(s32) = G_ZEXT [[TRUNC]](s1)
901 ; FAST: G_BRCOND [[ZEXT]](s32), %bb.1
902 ; FAST: G_BR %bb.2
903 ; FAST: bb.1:
904 ; FAST: successors: %bb.2(0x80000000)
905 ; FAST: [[ICMP2:%[0-9]+]]:sgpr(s32) = G_ICMP intpred(eq), [[COPY1]](s32), [[C]]
906 ; FAST: [[TRUNC1:%[0-9]+]]:sgpr(s1) = G_TRUNC [[ICMP2]](s32)
907 ; FAST: [[COPY4:%[0-9]+]]:vcc(s1) = COPY [[TRUNC1]](s1)
908 ; FAST: G_BR %bb.2
909 ; FAST: bb.2:
910 ; FAST: [[PHI:%[0-9]+]]:vcc(s1) = G_PHI [[ICMP]](s1), %bb.0, [[COPY4]](s1), %bb.1
911 ; FAST: [[COPY5:%[0-9]+]]:vgpr(s32) = COPY [[C]](s32)
912 ; FAST: [[COPY6:%[0-9]+]]:vgpr(s32) = COPY [[COPY1]](s32)
913 ; FAST: [[SELECT:%[0-9]+]]:vgpr(s32) = G_SELECT [[PHI]](s1), [[COPY5]], [[COPY6]]
914 ; FAST: S_SETPC_B64 undef $sgpr30_sgpr31, implicit [[SELECT]](s32)
974 ; FAST-LABEL: name: phi_s1_vcc_vcc_sbranch
975 ; FAST: bb.0:
976 ; FAST: successors: %bb.1(0x40000000), %bb.2(0x40000000)
977 ; FAST: liveins: $vgpr0, $vgpr1, $sgpr0
978 ; FAST: [[COPY:%[0-9]+]]:vgpr(s32) = COPY $vgpr0
979 ; FAST: [[COPY1:%[0-9]+]]:vgpr(s32) = COPY $vgpr1
980 ; FAST: [[COPY2:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
981 ; FAST: [[C:%[0-9]+]]:sgpr(s32) = G_CONSTANT i32 0
982 ; FAST: [[COPY3:%[0-9]+]]:vgpr(s32) = COPY [[C]](s32)
983 ; FAST: [[ICMP:%[0-9]+]]:vcc(s1) = G_ICMP intpred(eq), [[COPY]](s32), [[COPY3]]
984 ; FAST: [[ICMP1:%[0-9]+]]:sgpr(s32) = G_ICMP intpred(eq), [[COPY2]](s32), [[C]]
985 ; FAST: [[TRUNC:%[0-9]+]]:sgpr(s1) = G_TRUNC [[ICMP1]](s32)
986 ; FAST: [[ZEXT:%[0-9]+]]:sgpr(s32) = G_ZEXT [[TRUNC]](s1)
987 ; FAST: G_BRCOND [[ZEXT]](s32), %bb.1
988 ; FAST: G_BR %bb.2
989 ; FAST: bb.1:
990 ; FAST: successors: %bb.2(0x80000000)
991 ; FAST: [[COPY4:%[0-9]+]]:vgpr(s32) = COPY [[C]](s32)
992 ; FAST: [[ICMP2:%[0-9]+]]:vcc(s1) = G_ICMP intpred(eq), [[COPY1]](s32), [[COPY4]]
993 ; FAST: G_BR %bb.2
994 ; FAST: bb.2:
995 ; FAST: [[PHI:%[0-9]+]]:vcc(s1) = G_PHI [[ICMP]](s1), %bb.0, [[ICMP2]](s1), %bb.1
996 ; FAST: [[COPY5:%[0-9]+]]:vgpr(s32) = COPY [[C]](s32)
997 ; FAST: [[SELECT:%[0-9]+]]:vgpr(s32) = G_SELECT [[PHI]](s1), [[COPY5]], [[COPY]]
998 ; FAST: S_SETPC_B64 undef $sgpr30_sgpr31, implicit [[SELECT]](s32)
1056 ; FAST-LABEL: name: phi_s1_s_scc_sbranch
1057 ; FAST: bb.0:
1058 ; FAST: successors: %bb.1(0x40000000), %bb.2(0x40000000)
1059 ; FAST: liveins: $sgpr0, $sgpr1, $sgpr2
1060 ; FAST: [[COPY:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
1061 ; FAST: [[COPY1:%[0-9]+]]:sgpr(s32) = COPY $sgpr1
1062 ; FAST: [[COPY2:%[0-9]+]]:sgpr(s32) = COPY $sgpr2
1063 ; FAST: [[C:%[0-9]+]]:sgpr(s32) = G_CONSTANT i32 0
1064 ; FAST: [[TRUNC:%[0-9]+]]:sgpr(s1) = G_TRUNC [[COPY]](s32)
1065 ; FAST: [[ICMP:%[0-9]+]]:sgpr(s32) = G_ICMP intpred(eq), [[COPY2]](s32), [[C]]
1066 ; FAST: [[TRUNC1:%[0-9]+]]:sgpr(s1) = G_TRUNC [[ICMP]](s32)
1067 ; FAST: [[ZEXT:%[0-9]+]]:sgpr(s32) = G_ZEXT [[TRUNC1]](s1)
1068 ; FAST: [[ANYEXT:%[0-9]+]]:sgpr(s32) = G_ANYEXT [[TRUNC]](s1)
1069 ; FAST: G_BRCOND [[ZEXT]](s32), %bb.1
1070 ; FAST: G_BR %bb.2
1071 ; FAST: bb.1:
1072 ; FAST: successors: %bb.2(0x80000000)
1073 ; FAST: [[ICMP1:%[0-9]+]]:sgpr(s32) = G_ICMP intpred(eq), [[COPY1]](s32), [[C]]
1074 ; FAST: [[TRUNC2:%[0-9]+]]:sgpr(s1) = G_TRUNC [[ICMP1]](s32)
1075 ; FAST: [[ANYEXT1:%[0-9]+]]:sgpr(s32) = G_ANYEXT [[TRUNC2]](s1)
1076 ; FAST: G_BR %bb.2
1077 ; FAST: bb.2:
1078 ; FAST: [[PHI:%[0-9]+]]:sgpr(s32) = G_PHI [[ANYEXT]](s32), %bb.0, [[ANYEXT1]](s32), %bb.1
1079 ; FAST: [[TRUNC3:%[0-9]+]]:sgpr(s1) = G_TRUNC [[PHI]](s32)
1080 ; FAST: [[ZEXT1:%[0-9]+]]:sgpr(s32) = G_ZEXT [[TRUNC3]](s1)
1081 ; FAST: [[SELECT:%[0-9]+]]:sgpr(s32) = G_SELECT [[ZEXT1]](s32), [[C]], [[COPY]]
1082 ; FAST: S_SETPC_B64 undef $sgpr30_sgpr31, implicit [[SELECT]](s32)
1142 ; FAST-LABEL: name: phi_s1_scc_s_sbranch
1143 ; FAST: bb.0:
1144 ; FAST: successors: %bb.1(0x40000000), %bb.2(0x40000000)
1145 ; FAST: liveins: $sgpr0, $sgpr1, $sgpr2
1146 ; FAST: [[COPY:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
1147 ; FAST: [[COPY1:%[0-9]+]]:sgpr(s32) = COPY $sgpr1
1148 ; FAST: [[COPY2:%[0-9]+]]:sgpr(s32) = COPY $sgpr2
1149 ; FAST: [[C:%[0-9]+]]:sgpr(s32) = G_CONSTANT i32 0
1150 ; FAST: [[ICMP:%[0-9]+]]:sgpr(s32) = G_ICMP intpred(eq), [[COPY]](s32), [[C]]
1151 ; FAST: [[TRUNC:%[0-9]+]]:sgpr(s1) = G_TRUNC [[ICMP]](s32)
1152 ; FAST: [[ICMP1:%[0-9]+]]:sgpr(s32) = G_ICMP intpred(eq), [[COPY2]](s32), [[C]]
1153 ; FAST: [[TRUNC1:%[0-9]+]]:sgpr(s1) = G_TRUNC [[ICMP1]](s32)
1154 ; FAST: [[ZEXT:%[0-9]+]]:sgpr(s32) = G_ZEXT [[TRUNC1]](s1)
1155 ; FAST: [[ANYEXT:%[0-9]+]]:sgpr(s32) = G_ANYEXT [[TRUNC]](s1)
1156 ; FAST: G_BRCOND [[ZEXT]](s32), %bb.1
1157 ; FAST: G_BR %bb.2
1158 ; FAST: bb.1:
1159 ; FAST: successors: %bb.2(0x80000000)
1160 ; FAST: [[TRUNC2:%[0-9]+]]:sgpr(s1) = G_TRUNC [[COPY1]](s32)
1161 ; FAST: [[ANYEXT1:%[0-9]+]]:sgpr(s32) = G_ANYEXT [[TRUNC2]](s1)
1162 ; FAST: G_BR %bb.2
1163 ; FAST: bb.2:
1164 ; FAST: [[PHI:%[0-9]+]]:sgpr(s32) = G_PHI [[ANYEXT]](s32), %bb.0, [[ANYEXT1]](s32), %bb.1
1165 ; FAST: [[TRUNC3:%[0-9]+]]:sgpr(s1) = G_TRUNC [[PHI]](s32)
1166 ; FAST: [[ZEXT1:%[0-9]+]]:sgpr(s32) = G_ZEXT [[TRUNC3]](s1)
1167 ; FAST: [[SELECT:%[0-9]+]]:sgpr(s32) = G_SELECT [[ZEXT1]](s32), [[C]], [[COPY]]
1168 ; FAST: S_SETPC_B64 undef $sgpr30_sgpr31, implicit [[SELECT]](s32)
1228 ; FAST-LABEL: name: phi_s1_scc_v_sbranch
1229 ; FAST: bb.0:
1230 ; FAST: successors: %bb.1(0x40000000), %bb.2(0x40000000)
1231 ; FAST: liveins: $vgpr0, $sgpr0, $sgpr1, $sgpr2
1232 ; FAST: [[COPY:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
1233 ; FAST: [[COPY1:%[0-9]+]]:vgpr(s32) = COPY $vgpr0
1234 ; FAST: [[COPY2:%[0-9]+]]:sgpr(s32) = COPY $sgpr2
1235 ; FAST: [[C:%[0-9]+]]:sgpr(s32) = G_CONSTANT i32 0
1236 ; FAST: [[ICMP:%[0-9]+]]:sgpr(s32) = G_ICMP intpred(eq), [[COPY]](s32), [[C]]
1237 ; FAST: [[TRUNC:%[0-9]+]]:sgpr(s1) = G_TRUNC [[ICMP]](s32)
1238 ; FAST: [[ICMP1:%[0-9]+]]:sgpr(s32) = G_ICMP intpred(eq), [[COPY2]](s32), [[C]]
1239 ; FAST: [[TRUNC1:%[0-9]+]]:sgpr(s1) = G_TRUNC [[ICMP1]](s32)
1240 ; FAST: [[ZEXT:%[0-9]+]]:sgpr(s32) = G_ZEXT [[TRUNC1]](s1)
1241 ; FAST: [[ANYEXT:%[0-9]+]]:vgpr(s32) = G_ANYEXT [[TRUNC]](s1)
1242 ; FAST: G_BRCOND [[ZEXT]](s32), %bb.1
1243 ; FAST: G_BR %bb.2
1244 ; FAST: bb.1:
1245 ; FAST: successors: %bb.2(0x80000000)
1246 ; FAST: [[TRUNC2:%[0-9]+]]:vgpr(s1) = G_TRUNC [[COPY1]](s32)
1247 ; FAST: [[ANYEXT1:%[0-9]+]]:vgpr(s32) = G_ANYEXT [[TRUNC2]](s1)
1248 ; FAST: G_BR %bb.2
1249 ; FAST: bb.2:
1250 ; FAST: [[PHI:%[0-9]+]]:vgpr(s32) = G_PHI [[ANYEXT]](s32), %bb.0, [[ANYEXT1]](s32), %bb.1
1251 ; FAST: [[TRUNC3:%[0-9]+]]:vgpr(s1) = G_TRUNC [[PHI]](s32)
1252 ; FAST: [[COPY3:%[0-9]+]]:vcc(s1) = COPY [[TRUNC3]](s1)
1253 ; FAST: [[COPY4:%[0-9]+]]:vgpr(s32) = COPY [[C]](s32)
1254 ; FAST: [[COPY5:%[0-9]+]]:vgpr(s32) = COPY [[COPY]](s32)
1255 ; FAST: [[SELECT:%[0-9]+]]:vgpr(s32) = G_SELECT [[COPY3]](s1), [[COPY4]], [[COPY5]]
1256 ; FAST: S_SETPC_B64 undef $sgpr30_sgpr31, implicit [[SELECT]](s32)
1318 ; FAST-LABEL: name: phi_s1_v_scc_sbranch
1319 ; FAST: bb.0:
1320 ; FAST: successors: %bb.1(0x40000000), %bb.2(0x40000000)
1321 ; FAST: liveins: $vgpr0, $sgpr0, $sgpr1
1322 ; FAST: [[COPY:%[0-9]+]]:vgpr(s32) = COPY $vgpr0
1323 ; FAST: [[COPY1:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
1324 ; FAST: [[COPY2:%[0-9]+]]:sgpr(s32) = COPY $sgpr1
1325 ; FAST: [[C:%[0-9]+]]:sgpr(s32) = G_CONSTANT i32 0
1326 ; FAST: [[TRUNC:%[0-9]+]]:vgpr(s1) = G_TRUNC [[COPY]](s32)
1327 ; FAST: [[ICMP:%[0-9]+]]:sgpr(s32) = G_ICMP intpred(eq), [[COPY2]](s32), [[C]]
1328 ; FAST: [[TRUNC1:%[0-9]+]]:sgpr(s1) = G_TRUNC [[ICMP]](s32)
1329 ; FAST: [[ZEXT:%[0-9]+]]:sgpr(s32) = G_ZEXT [[TRUNC1]](s1)
1330 ; FAST: [[ANYEXT:%[0-9]+]]:vgpr(s32) = G_ANYEXT [[TRUNC]](s1)
1331 ; FAST: G_BRCOND [[ZEXT]](s32), %bb.1
1332 ; FAST: G_BR %bb.2
1333 ; FAST: bb.1:
1334 ; FAST: successors: %bb.2(0x80000000)
1335 ; FAST: [[ICMP1:%[0-9]+]]:sgpr(s32) = G_ICMP intpred(eq), [[COPY1]](s32), [[C]]
1336 ; FAST: [[TRUNC2:%[0-9]+]]:sgpr(s1) = G_TRUNC [[ICMP1]](s32)
1337 ; FAST: [[ANYEXT1:%[0-9]+]]:vgpr(s32) = G_ANYEXT [[TRUNC2]](s1)
1338 ; FAST: G_BR %bb.2
1339 ; FAST: bb.2:
1340 ; FAST: [[PHI:%[0-9]+]]:vgpr(s32) = G_PHI [[ANYEXT]](s32), %bb.0, [[ANYEXT1]](s32), %bb.1
1341 ; FAST: [[TRUNC3:%[0-9]+]]:vgpr(s1) = G_TRUNC [[PHI]](s32)
1342 ; FAST: [[COPY3:%[0-9]+]]:vcc(s1) = COPY [[TRUNC3]](s1)
1343 ; FAST: [[COPY4:%[0-9]+]]:vgpr(s32) = COPY [[C]](s32)
1344 ; FAST: [[SELECT:%[0-9]+]]:vgpr(s32) = G_SELECT [[COPY3]](s1), [[COPY4]], [[COPY]]
1345 ; FAST: S_SETPC_B64 undef $sgpr30_sgpr31, implicit [[SELECT]](s32)
1406 ; FAST-LABEL: name: phi_s1_vcc_s_sbranch
1407 ; FAST: bb.0:
1408 ; FAST: successors: %bb.1(0x40000000), %bb.2(0x40000000)
1409 ; FAST: liveins: $vgpr0, $sgpr0, $sgpr1
1410 ; FAST: [[COPY:%[0-9]+]]:vgpr(s32) = COPY $vgpr0
1411 ; FAST: [[COPY1:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
1412 ; FAST: [[COPY2:%[0-9]+]]:sgpr(s32) = COPY $sgpr1
1413 ; FAST: [[C:%[0-9]+]]:sgpr(s32) = G_CONSTANT i32 0
1414 ; FAST: [[COPY3:%[0-9]+]]:vgpr(s32) = COPY [[C]](s32)
1415 ; FAST: [[ICMP:%[0-9]+]]:vcc(s1) = G_ICMP intpred(eq), [[COPY]](s32), [[COPY3]]
1416 ; FAST: [[ICMP1:%[0-9]+]]:sgpr(s32) = G_ICMP intpred(eq), [[COPY2]](s32), [[C]]
1417 ; FAST: [[TRUNC:%[0-9]+]]:sgpr(s1) = G_TRUNC [[ICMP1]](s32)
1418 ; FAST: [[ZEXT:%[0-9]+]]:sgpr(s32) = G_ZEXT [[TRUNC]](s1)
1419 ; FAST: G_BRCOND [[ZEXT]](s32), %bb.1
1420 ; FAST: G_BR %bb.2
1421 ; FAST: bb.1:
1422 ; FAST: successors: %bb.2(0x80000000)
1423 ; FAST: [[TRUNC1:%[0-9]+]]:sgpr(s1) = G_TRUNC [[COPY1]](s32)
1424 ; FAST: [[COPY4:%[0-9]+]]:vcc(s1) = COPY [[TRUNC1]](s1)
1425 ; FAST: G_BR %bb.2
1426 ; FAST: bb.2:
1427 ; FAST: [[PHI:%[0-9]+]]:vcc(s1) = G_PHI [[ICMP]](s1), %bb.0, [[COPY4]](s1), %bb.1
1428 ; FAST: [[COPY5:%[0-9]+]]:vgpr(s32) = COPY [[C]](s32)
1429 ; FAST: [[SELECT:%[0-9]+]]:vgpr(s32) = G_SELECT [[PHI]](s1), [[COPY5]], [[COPY]]
1430 ; FAST: S_SETPC_B64 undef $sgpr30_sgpr31, implicit [[SELECT]](s32)
1488 ; FAST-LABEL: name: phi_s1_s_vcc_sbranch
1489 ; FAST: bb.0:
1490 ; FAST: successors: %bb.1(0x40000000), %bb.2(0x40000000)
1491 ; FAST: liveins: $vgpr0, $sgpr0, $sgpr1
1492 ; FAST: [[COPY:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
1493 ; FAST: [[COPY1:%[0-9]+]]:vgpr(s32) = COPY $vgpr0
1494 ; FAST: [[COPY2:%[0-9]+]]:sgpr(s32) = COPY $sgpr1
1495 ; FAST: [[C:%[0-9]+]]:sgpr(s32) = G_CONSTANT i32 0
1496 ; FAST: [[TRUNC:%[0-9]+]]:sgpr(s1) = G_TRUNC [[COPY]](s32)
1497 ; FAST: [[ICMP:%[0-9]+]]:sgpr(s32) = G_ICMP intpred(eq), [[COPY2]](s32), [[C]]
1498 ; FAST: [[TRUNC1:%[0-9]+]]:sgpr(s1) = G_TRUNC [[ICMP]](s32)
1499 ; FAST: [[ZEXT:%[0-9]+]]:sgpr(s32) = G_ZEXT [[TRUNC1]](s1)
1500 ; FAST: [[COPY3:%[0-9]+]]:vcc(s1) = COPY [[TRUNC]](s1)
1501 ; FAST: G_BRCOND [[ZEXT]](s32), %bb.1
1502 ; FAST: G_BR %bb.2
1503 ; FAST: bb.1:
1504 ; FAST: successors: %bb.2(0x80000000)
1505 ; FAST: [[COPY4:%[0-9]+]]:vgpr(s32) = COPY [[C]](s32)
1506 ; FAST: [[ICMP1:%[0-9]+]]:vcc(s1) = G_ICMP intpred(eq), [[COPY1]](s32), [[COPY4]]
1507 ; FAST: G_BR %bb.2
1508 ; FAST: bb.2:
1509 ; FAST: [[PHI:%[0-9]+]]:vcc(s1) = G_PHI [[COPY3]](s1), %bb.0, [[ICMP1]](s1), %bb.1
1510 ; FAST: [[COPY5:%[0-9]+]]:vgpr(s32) = COPY [[C]](s32)
1511 ; FAST: [[COPY6:%[0-9]+]]:vgpr(s32) = COPY [[COPY]](s32)
1512 ; FAST: [[SELECT:%[0-9]+]]:vgpr(s32) = G_SELECT [[PHI]](s1), [[COPY5]], [[COPY6]]
1513 ; FAST: S_SETPC_B64 undef $sgpr30_sgpr31, implicit [[SELECT]](s32)
1572 ; FAST-LABEL: name: phi_s1_vcc_v_sbranch
1573 ; FAST: bb.0:
1574 ; FAST: successors: %bb.1(0x40000000), %bb.2(0x40000000)
1575 ; FAST: liveins: $vgpr0, $vgpr1, $sgpr0
1576 ; FAST: [[COPY:%[0-9]+]]:vgpr(s32) = COPY $vgpr0
1577 ; FAST: [[COPY1:%[0-9]+]]:vgpr(s32) = COPY $vgpr1
1578 ; FAST: [[COPY2:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
1579 ; FAST: [[C:%[0-9]+]]:sgpr(s32) = G_CONSTANT i32 0
1580 ; FAST: [[COPY3:%[0-9]+]]:vgpr(s32) = COPY [[C]](s32)
1581 ; FAST: [[ICMP:%[0-9]+]]:vcc(s1) = G_ICMP intpred(eq), [[COPY]](s32), [[COPY3]]
1582 ; FAST: [[ICMP1:%[0-9]+]]:sgpr(s32) = G_ICMP intpred(eq), [[COPY2]](s32), [[C]]
1583 ; FAST: [[TRUNC:%[0-9]+]]:sgpr(s1) = G_TRUNC [[ICMP1]](s32)
1584 ; FAST: [[ZEXT:%[0-9]+]]:sgpr(s32) = G_ZEXT [[TRUNC]](s1)
1585 ; FAST: [[C1:%[0-9]+]]:vgpr(s32) = G_CONSTANT i32 1
1586 ; FAST: [[C2:%[0-9]+]]:vgpr(s32) = G_CONSTANT i32 0
1587 ; FAST: [[SELECT:%[0-9]+]]:vgpr(s32) = G_SELECT [[ICMP]](s1), [[C1]], [[C2]]
1588 ; FAST: G_BRCOND [[ZEXT]](s32), %bb.1
1589 ; FAST: G_BR %bb.2
1590 ; FAST: bb.1:
1591 ; FAST: successors: %bb.2(0x80000000)
1592 ; FAST: [[TRUNC1:%[0-9]+]]:vgpr(s1) = G_TRUNC [[COPY1]](s32)
1593 ; FAST: [[ANYEXT:%[0-9]+]]:vgpr(s32) = G_ANYEXT [[TRUNC1]](s1)
1594 ; FAST: G_BR %bb.2
1595 ; FAST: bb.2:
1596 ; FAST: [[PHI:%[0-9]+]]:vgpr(s32) = G_PHI [[SELECT]](s32), %bb.0, [[ANYEXT]](s32), %bb.1
1597 ; FAST: [[TRUNC2:%[0-9]+]]:vgpr(s1) = G_TRUNC [[PHI]](s32)
1598 ; FAST: [[COPY4:%[0-9]+]]:vcc(s1) = COPY [[TRUNC2]](s1)
1599 ; FAST: [[COPY5:%[0-9]+]]:vgpr(s32) = COPY [[C]](s32)
1600 ; FAST: [[SELECT1:%[0-9]+]]:vgpr(s32) = G_SELECT [[COPY4]](s1), [[COPY5]], [[COPY]]
1601 ; FAST: S_SETPC_B64 undef $sgpr30_sgpr31, implicit [[SELECT1]](s32)
1664 ; FAST-LABEL: name: phi_s1_v_vcc_sbranch
1665 ; FAST: bb.0:
1666 ; FAST: successors: %bb.1(0x40000000), %bb.2(0x40000000)
1667 ; FAST: liveins: $vgpr0, $vgpr1, $sgpr0
1668 ; FAST: [[COPY:%[0-9]+]]:vgpr(s32) = COPY $vgpr0
1669 ; FAST: [[COPY1:%[0-9]+]]:vgpr(s32) = COPY $vgpr1
1670 ; FAST: [[COPY2:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
1671 ; FAST: [[C:%[0-9]+]]:sgpr(s32) = G_CONSTANT i32 0
1672 ; FAST: [[TRUNC:%[0-9]+]]:vgpr(s1) = G_TRUNC [[COPY]](s32)
1673 ; FAST: [[ICMP:%[0-9]+]]:sgpr(s32) = G_ICMP intpred(eq), [[COPY2]](s32), [[C]]
1674 ; FAST: [[TRUNC1:%[0-9]+]]:sgpr(s1) = G_TRUNC [[ICMP]](s32)
1675 ; FAST: [[ZEXT:%[0-9]+]]:sgpr(s32) = G_ZEXT [[TRUNC1]](s1)
1676 ; FAST: [[ANYEXT:%[0-9]+]]:vgpr(s32) = G_ANYEXT [[TRUNC]](s1)
1677 ; FAST: G_BRCOND [[ZEXT]](s32), %bb.1
1678 ; FAST: G_BR %bb.2
1679 ; FAST: bb.1:
1680 ; FAST: successors: %bb.2(0x80000000)
1681 ; FAST: [[COPY3:%[0-9]+]]:vgpr(s32) = COPY [[C]](s32)
1682 ; FAST: [[ICMP1:%[0-9]+]]:vcc(s1) = G_ICMP intpred(eq), [[COPY1]](s32), [[COPY3]]
1683 ; FAST: [[C1:%[0-9]+]]:vgpr(s32) = G_CONSTANT i32 1
1684 ; FAST: [[C2:%[0-9]+]]:vgpr(s32) = G_CONSTANT i32 0
1685 ; FAST: [[SELECT:%[0-9]+]]:vgpr(s32) = G_SELECT [[ICMP1]](s1), [[C1]], [[C2]]
1686 ; FAST: G_BR %bb.2
1687 ; FAST: bb.2:
1688 ; FAST: [[PHI:%[0-9]+]]:vgpr(s32) = G_PHI [[ANYEXT]](s32), %bb.0, [[SELECT]](s32), %bb.1
1689 ; FAST: [[TRUNC2:%[0-9]+]]:vgpr(s1) = G_TRUNC [[PHI]](s32)
1690 ; FAST: [[COPY4:%[0-9]+]]:vcc(s1) = COPY [[TRUNC2]](s1)
1691 ; FAST: [[COPY5:%[0-9]+]]:vgpr(s32) = COPY [[C]](s32)
1692 ; FAST: [[SELECT1:%[0-9]+]]:vgpr(s32) = G_SELECT [[COPY4]](s1), [[COPY5]], [[COPY]]
1693 ; FAST: S_SETPC_B64 undef $sgpr30_sgpr31, implicit [[SELECT1]](s32)
1756 ; FAST-LABEL: name: phi_s1_v_s_sbranch
1757 ; FAST: bb.0:
1758 ; FAST: successors: %bb.1(0x40000000), %bb.2(0x40000000)
1759 ; FAST: liveins: $vgpr0, $sgpr0, $sgpr1
1760 ; FAST: [[COPY:%[0-9]+]]:vgpr(s32) = COPY $vgpr0
1761 ; FAST: [[COPY1:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
1762 ; FAST: [[COPY2:%[0-9]+]]:sgpr(s32) = COPY $sgpr1
1763 ; FAST: [[C:%[0-9]+]]:sgpr(s32) = G_CONSTANT i32 0
1764 ; FAST: [[TRUNC:%[0-9]+]]:vgpr(s1) = G_TRUNC [[COPY]](s32)
1765 ; FAST: [[ICMP:%[0-9]+]]:sgpr(s32) = G_ICMP intpred(eq), [[COPY2]](s32), [[C]]
1766 ; FAST: [[TRUNC1:%[0-9]+]]:sgpr(s1) = G_TRUNC [[ICMP]](s32)
1767 ; FAST: [[ZEXT:%[0-9]+]]:sgpr(s32) = G_ZEXT [[TRUNC1]](s1)
1768 ; FAST: [[ANYEXT:%[0-9]+]]:vgpr(s32) = G_ANYEXT [[TRUNC]](s1)
1769 ; FAST: G_BRCOND [[ZEXT]](s32), %bb.1
1770 ; FAST: G_BR %bb.2
1771 ; FAST: bb.1:
1772 ; FAST: successors: %bb.2(0x80000000)
1773 ; FAST: [[TRUNC2:%[0-9]+]]:sgpr(s1) = G_TRUNC [[COPY1]](s32)
1774 ; FAST: [[ANYEXT1:%[0-9]+]]:vgpr(s32) = G_ANYEXT [[TRUNC2]](s1)
1775 ; FAST: G_BR %bb.2
1776 ; FAST: bb.2:
1777 ; FAST: [[PHI:%[0-9]+]]:vgpr(s32) = G_PHI [[ANYEXT]](s32), %bb.0, [[ANYEXT1]](s32), %bb.1
1778 ; FAST: [[TRUNC3:%[0-9]+]]:vgpr(s1) = G_TRUNC [[PHI]](s32)
1779 ; FAST: [[COPY3:%[0-9]+]]:vcc(s1) = COPY [[TRUNC3]](s1)
1780 ; FAST: [[COPY4:%[0-9]+]]:vgpr(s32) = COPY [[C]](s32)
1781 ; FAST: [[SELECT:%[0-9]+]]:vgpr(s32) = G_SELECT [[COPY3]](s1), [[COPY4]], [[COPY]]
1782 ; FAST: S_SETPC_B64 undef $sgpr30_sgpr31, implicit [[SELECT]](s32)
1842 ; FAST-LABEL: name: phi_s1_s_v_sbranch
1843 ; FAST: bb.0:
1844 ; FAST: successors: %bb.1(0x40000000), %bb.2(0x40000000)
1845 ; FAST: liveins: $vgpr0, $sgpr0, $sgpr1
1846 ; FAST: [[COPY:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
1847 ; FAST: [[COPY1:%[0-9]+]]:vgpr(s32) = COPY $vgpr0
1848 ; FAST: [[COPY2:%[0-9]+]]:sgpr(s32) = COPY $sgpr1
1849 ; FAST: [[C:%[0-9]+]]:sgpr(s32) = G_CONSTANT i32 0
1850 ; FAST: [[TRUNC:%[0-9]+]]:sgpr(s1) = G_TRUNC [[COPY]](s32)
1851 ; FAST: [[ICMP:%[0-9]+]]:sgpr(s32) = G_ICMP intpred(eq), [[COPY2]](s32), [[C]]
1852 ; FAST: [[TRUNC1:%[0-9]+]]:sgpr(s1) = G_TRUNC [[ICMP]](s32)
1853 ; FAST: [[ZEXT:%[0-9]+]]:sgpr(s32) = G_ZEXT [[TRUNC1]](s1)
1854 ; FAST: [[ANYEXT:%[0-9]+]]:vgpr(s32) = G_ANYEXT [[TRUNC]](s1)
1855 ; FAST: G_BRCOND [[ZEXT]](s32), %bb.1
1856 ; FAST: G_BR %bb.2
1857 ; FAST: bb.1:
1858 ; FAST: successors: %bb.2(0x80000000)
1859 ; FAST: [[TRUNC2:%[0-9]+]]:vgpr(s1) = G_TRUNC [[COPY1]](s32)
1860 ; FAST: [[ANYEXT1:%[0-9]+]]:vgpr(s32) = G_ANYEXT [[TRUNC2]](s1)
1861 ; FAST: G_BR %bb.2
1862 ; FAST: bb.2:
1863 ; FAST: [[PHI:%[0-9]+]]:vgpr(s32) = G_PHI [[ANYEXT]](s32), %bb.0, [[ANYEXT1]](s32), %bb.1
1864 ; FAST: [[TRUNC3:%[0-9]+]]:vgpr(s1) = G_TRUNC [[PHI]](s32)
1865 ; FAST: [[COPY3:%[0-9]+]]:vcc(s1) = COPY [[TRUNC3]](s1)
1866 ; FAST: [[COPY4:%[0-9]+]]:vgpr(s32) = COPY [[C]](s32)
1867 ; FAST: [[COPY5:%[0-9]+]]:vgpr(s32) = COPY [[COPY]](s32)
1868 ; FAST: [[SELECT:%[0-9]+]]:vgpr(s32) = G_SELECT [[COPY3]](s1), [[COPY4]], [[COPY5]]
1869 ; FAST: S_SETPC_B64 undef $sgpr30_sgpr31, implicit [[SELECT]](s32)
1930 ; FAST-LABEL: name: phi_s1_v_v_sbranch
1931 ; FAST: bb.0:
1932 ; FAST: successors: %bb.1(0x40000000), %bb.2(0x40000000)
1933 ; FAST: liveins: $vgpr0, $vgpr1, $sgpr0
1934 ; FAST: [[COPY:%[0-9]+]]:vgpr(s32) = COPY $vgpr0
1935 ; FAST: [[COPY1:%[0-9]+]]:vgpr(s32) = COPY $vgpr1
1936 ; FAST: [[COPY2:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
1937 ; FAST: [[C:%[0-9]+]]:sgpr(s32) = G_CONSTANT i32 0
1938 ; FAST: [[TRUNC:%[0-9]+]]:vgpr(s1) = G_TRUNC [[COPY]](s32)
1939 ; FAST: [[ICMP:%[0-9]+]]:sgpr(s32) = G_ICMP intpred(eq), [[COPY2]](s32), [[C]]
1940 ; FAST: [[TRUNC1:%[0-9]+]]:sgpr(s1) = G_TRUNC [[ICMP]](s32)
1941 ; FAST: [[ZEXT:%[0-9]+]]:sgpr(s32) = G_ZEXT [[TRUNC1]](s1)
1942 ; FAST: [[ANYEXT:%[0-9]+]]:vgpr(s32) = G_ANYEXT [[TRUNC]](s1)
1943 ; FAST: G_BRCOND [[ZEXT]](s32), %bb.1
1944 ; FAST: G_BR %bb.2
1945 ; FAST: bb.1:
1946 ; FAST: successors: %bb.2(0x80000000)
1947 ; FAST: [[TRUNC2:%[0-9]+]]:vgpr(s1) = G_TRUNC [[COPY1]](s32)
1948 ; FAST: [[ANYEXT1:%[0-9]+]]:vgpr(s32) = G_ANYEXT [[TRUNC2]](s1)
1949 ; FAST: G_BR %bb.2
1950 ; FAST: bb.2:
1951 ; FAST: [[PHI:%[0-9]+]]:vgpr(s32) = G_PHI [[ANYEXT]](s32), %bb.0, [[ANYEXT1]](s32), %bb.1
1952 ; FAST: [[TRUNC3:%[0-9]+]]:vgpr(s1) = G_TRUNC [[PHI]](s32)
1953 ; FAST: [[COPY3:%[0-9]+]]:vcc(s1) = COPY [[TRUNC3]](s1)
1954 ; FAST: [[COPY4:%[0-9]+]]:vgpr(s32) = COPY [[C]](s32)
1955 ; FAST: [[SELECT:%[0-9]+]]:vgpr(s32) = G_SELECT [[COPY3]](s1), [[COPY4]], [[COPY]]
1956 ; FAST: S_SETPC_B64 undef $sgpr30_sgpr31, implicit [[SELECT]](s32)
2016 ; FAST-LABEL: name: phi_s1_s_s_sbranch
2017 ; FAST: bb.0:
2018 ; FAST: successors: %bb.1(0x40000000), %bb.2(0x40000000)
2019 ; FAST: liveins: $sgpr0, $sgpr1, $sgpr2
2020 ; FAST: [[COPY:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
2021 ; FAST: [[COPY1:%[0-9]+]]:sgpr(s32) = COPY $sgpr1
2022 ; FAST: [[COPY2:%[0-9]+]]:sgpr(s32) = COPY $sgpr2
2023 ; FAST: [[C:%[0-9]+]]:sgpr(s32) = G_CONSTANT i32 0
2024 ; FAST: [[TRUNC:%[0-9]+]]:sgpr(s1) = G_TRUNC [[COPY]](s32)
2025 ; FAST: [[ICMP:%[0-9]+]]:sgpr(s32) = G_ICMP intpred(eq), [[COPY2]](s32), [[C]]
2026 ; FAST: [[TRUNC1:%[0-9]+]]:sgpr(s1) = G_TRUNC [[ICMP]](s32)
2027 ; FAST: [[ZEXT:%[0-9]+]]:sgpr(s32) = G_ZEXT [[TRUNC1]](s1)
2028 ; FAST: [[ANYEXT:%[0-9]+]]:sgpr(s32) = G_ANYEXT [[TRUNC]](s1)
2029 ; FAST: G_BRCOND [[ZEXT]](s32), %bb.1
2030 ; FAST: G_BR %bb.2
2031 ; FAST: bb.1:
2032 ; FAST: successors: %bb.2(0x80000000)
2033 ; FAST: [[TRUNC2:%[0-9]+]]:sgpr(s1) = G_TRUNC [[COPY1]](s32)
2034 ; FAST: [[ANYEXT1:%[0-9]+]]:sgpr(s32) = G_ANYEXT [[TRUNC2]](s1)
2035 ; FAST: G_BR %bb.2
2036 ; FAST: bb.2:
2037 ; FAST: [[PHI:%[0-9]+]]:sgpr(s32) = G_PHI [[ANYEXT]](s32), %bb.0, [[ANYEXT1]](s32), %bb.1
2038 ; FAST: [[TRUNC3:%[0-9]+]]:sgpr(s1) = G_TRUNC [[PHI]](s32)
2039 ; FAST: [[ZEXT1:%[0-9]+]]:sgpr(s32) = G_ZEXT [[TRUNC3]](s1)
2040 ; FAST: [[SELECT:%[0-9]+]]:sgpr(s32) = G_SELECT [[ZEXT1]](s32), [[C]], [[COPY]]
2041 ; FAST: S_SETPC_B64 undef $sgpr30_sgpr31, implicit [[SELECT]](s32)
2101 ; FAST-LABEL: name: phi_s32_s_loop_v_sbranch
2102 ; FAST: bb.0:
2103 ; FAST: successors: %bb.1(0x80000000)
2104 ; FAST: liveins: $sgpr0, $sgpr1, $vgpr0
2105 ; FAST: [[COPY:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
2106 ; FAST: [[COPY1:%[0-9]+]]:sgpr(s32) = COPY $sgpr1
2107 ; FAST: [[COPY2:%[0-9]+]]:vgpr(s32) = COPY $vgpr0
2108 ; FAST: [[C:%[0-9]+]]:sgpr(s32) = G_CONSTANT i32 0
2109 ; FAST: G_BR %bb.1
2110 ; FAST: bb.1:
2111 ; FAST: successors: %bb.1(0x40000000), %bb.2(0x40000000)
2112 ; FAST: [[PHI:%[0-9]+]]:vgpr(s32) = G_PHI [[COPY]](s32), %bb.0, %5(s32), %bb.1
2113 ; FAST: [[COPY3:%[0-9]+]]:vgpr(s32) = COPY [[COPY2]](s32)
2114 ; FAST: [[ICMP:%[0-9]+]]:sgpr(s32) = G_ICMP intpred(eq), [[COPY1]](s32), [[C]]
2115 ; FAST: [[TRUNC:%[0-9]+]]:sgpr(s1) = G_TRUNC [[ICMP]](s32)
2116 ; FAST: [[ZEXT:%[0-9]+]]:sgpr(s32) = G_ZEXT [[TRUNC]](s1)
2117 ; FAST: G_BRCOND [[ZEXT]](s32), %bb.1
2118 ; FAST: G_BR %bb.2
2119 ; FAST: bb.2:
2120 ; FAST: S_SETPC_B64 undef $sgpr30_sgpr31, implicit [[PHI]](s32)
2172 ; FAST-LABEL: name: phi_s32_s_loop_s_sbranch
2173 ; FAST: bb.0:
2174 ; FAST: successors: %bb.1(0x80000000)
2175 ; FAST: liveins: $sgpr0, $sgpr1, $sgpr2
2176 ; FAST: [[COPY:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
2177 ; FAST: [[COPY1:%[0-9]+]]:sgpr(s32) = COPY $sgpr1
2178 ; FAST: [[COPY2:%[0-9]+]]:sgpr(s32) = COPY $sgpr2
2179 ; FAST: [[C:%[0-9]+]]:sgpr(s32) = G_CONSTANT i32 0
2180 ; FAST: G_BR %bb.1
2181 ; FAST: bb.1:
2182 ; FAST: successors: %bb.1(0x40000000), %bb.2(0x40000000)
2183 ; FAST: [[PHI:%[0-9]+]]:vgpr(s32) = G_PHI [[COPY]](s32), %bb.0, %5(s32), %bb.1
2184 ; FAST: [[COPY3:%[0-9]+]]:sgpr(s32) = COPY [[COPY2]](s32)
2185 ; FAST: [[ICMP:%[0-9]+]]:sgpr(s32) = G_ICMP intpred(eq), [[COPY1]](s32), [[C]]
2186 ; FAST: [[TRUNC:%[0-9]+]]:sgpr(s1) = G_TRUNC [[ICMP]](s32)
2187 ; FAST: [[ZEXT:%[0-9]+]]:sgpr(s32) = G_ZEXT [[TRUNC]](s1)
2188 ; FAST: G_BRCOND [[ZEXT]](s32), %bb.1
2189 ; FAST: G_BR %bb.2
2190 ; FAST: bb.2:
2191 ; FAST: S_SETPC_B64 undef $sgpr30_sgpr31, implicit [[PHI]](s32)
2242 ; FAST-LABEL: name: phi_s32_ss_sbranch_cycle
2243 ; FAST: bb.0:
2244 ; FAST: successors: %bb.1(0x40000000), %bb.2(0x40000000)
2245 ; FAST: liveins: $sgpr0, $sgpr1, $sgpr2
2246 ; FAST: [[COPY:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
2247 ; FAST: [[COPY1:%[0-9]+]]:sgpr(s32) = COPY $sgpr1
2248 ; FAST: [[COPY2:%[0-9]+]]:sgpr(s32) = COPY $sgpr2
2249 ; FAST: [[C:%[0-9]+]]:sgpr(s32) = G_CONSTANT i32 0
2250 ; FAST: [[ICMP:%[0-9]+]]:sgpr(s32) = G_ICMP intpred(eq), [[COPY2]](s32), [[C]]
2251 ; FAST: [[TRUNC:%[0-9]+]]:sgpr(s1) = G_TRUNC [[ICMP]](s32)
2252 ; FAST: [[ZEXT:%[0-9]+]]:sgpr(s32) = G_ZEXT [[TRUNC]](s1)
2253 ; FAST: G_BRCOND [[ZEXT]](s32), %bb.1
2254 ; FAST: G_BR %bb.2
2255 ; FAST: bb.1:
2256 ; FAST: successors: %bb.2(0x80000000)
2257 ; FAST: [[PHI:%[0-9]+]]:vgpr(s32) = G_PHI [[COPY]](s32), %bb.0, %6(s32), %bb.2
2258 ; FAST: G_BR %bb.2
2259 ; FAST: bb.2:
2260 ; FAST: successors: %bb.1(0x80000000)
2261 ; FAST: [[PHI1:%[0-9]+]]:vgpr(s32) = G_PHI [[COPY]](s32), %bb.0, [[PHI]](s32), %bb.1
2262 ; FAST: G_BR %bb.1
2313 ; FAST-LABEL: name: phi_s32_vs_sbranch_cycle
2314 ; FAST: bb.0:
2315 ; FAST: successors: %bb.1(0x40000000), %bb.2(0x40000000)
2316 ; FAST: liveins: $vgpr0, $sgpr1, $sgpr2
2317 ; FAST: [[COPY:%[0-9]+]]:vgpr(s32) = COPY $vgpr0
2318 ; FAST: [[COPY1:%[0-9]+]]:sgpr(s32) = COPY $sgpr1
2319 ; FAST: [[COPY2:%[0-9]+]]:sgpr(s32) = COPY $sgpr2
2320 ; FAST: [[C:%[0-9]+]]:sgpr(s32) = G_CONSTANT i32 0
2321 ; FAST: [[ICMP:%[0-9]+]]:sgpr(s32) = G_ICMP intpred(eq), [[COPY2]](s32), [[C]]
2322 ; FAST: [[TRUNC:%[0-9]+]]:sgpr(s1) = G_TRUNC [[ICMP]](s32)
2323 ; FAST: [[ZEXT:%[0-9]+]]:sgpr(s32) = G_ZEXT [[TRUNC]](s1)
2324 ; FAST: G_BRCOND [[ZEXT]](s32), %bb.1
2325 ; FAST: G_BR %bb.2
2326 ; FAST: bb.1:
2327 ; FAST: successors: %bb.2(0x80000000)
2328 ; FAST: [[PHI:%[0-9]+]]:vgpr(s32) = G_PHI [[COPY]](s32), %bb.0, %6(s32), %bb.2
2329 ; FAST: G_BR %bb.2
2330 ; FAST: bb.2:
2331 ; FAST: successors: %bb.1(0x80000000)
2332 ; FAST: [[PHI1:%[0-9]+]]:vgpr(s32) = G_PHI [[COPY]](s32), %bb.0, [[PHI]](s32), %bb.1
2333 ; FAST: G_BR %bb.1
2384 ; FAST-LABEL: name: phi_s32_aa_sbranch
2385 ; FAST: bb.0:
2386 ; FAST: successors: %bb.1(0x40000000), %bb.2(0x40000000)
2387 ; FAST: liveins: $agpr0, $agpr1, $sgpr2
2388 ; FAST: [[COPY:%[0-9]+]]:agpr(s32) = COPY $agpr0
2389 ; FAST: [[COPY1:%[0-9]+]]:agpr(s32) = COPY $agpr1
2390 ; FAST: [[COPY2:%[0-9]+]]:sgpr(s32) = COPY $sgpr2
2391 ; FAST: [[C:%[0-9]+]]:sgpr(s32) = G_CONSTANT i32 0
2392 ; FAST: [[ICMP:%[0-9]+]]:sgpr(s32) = G_ICMP intpred(eq), [[COPY2]](s32), [[C]]
2393 ; FAST: [[TRUNC:%[0-9]+]]:sgpr(s1) = G_TRUNC [[ICMP]](s32)
2394 ; FAST: [[ZEXT:%[0-9]+]]:sgpr(s32) = G_ZEXT [[TRUNC]](s1)
2395 ; FAST: G_BRCOND [[ZEXT]](s32), %bb.1
2396 ; FAST: G_BR %bb.2
2397 ; FAST: bb.1:
2398 ; FAST: successors: %bb.2(0x80000000)
2399 ; FAST: [[COPY3:%[0-9]+]]:agpr(s32) = COPY [[COPY1]](s32)
2400 ; FAST: G_BR %bb.2
2401 ; FAST: bb.2:
2402 ; FAST: [[PHI:%[0-9]+]]:agpr(s32) = G_PHI [[COPY]](s32), %bb.0, [[COPY3]](s32), %bb.1
2403 ; FAST: $agpr0 = COPY [[PHI]](s32)
2404 ; FAST: S_SETPC_B64 undef $sgpr30_sgpr31
2457 ; FAST-LABEL: name: phi_s32_av_sbranch
2458 ; FAST: bb.0:
2459 ; FAST: successors: %bb.1(0x40000000), %bb.2(0x40000000)
2460 ; FAST: liveins: $agpr0, $vgpr0, $sgpr2
2461 ; FAST: [[COPY:%[0-9]+]]:agpr(s32) = COPY $agpr0
2462 ; FAST: [[COPY1:%[0-9]+]]:vgpr(s32) = COPY $vgpr0
2463 ; FAST: [[COPY2:%[0-9]+]]:sgpr(s32) = COPY $sgpr2
2464 ; FAST: [[C:%[0-9]+]]:sgpr(s32) = G_CONSTANT i32 0
2465 ; FAST: [[ICMP:%[0-9]+]]:sgpr(s32) = G_ICMP intpred(eq), [[COPY2]](s32), [[C]]
2466 ; FAST: [[TRUNC:%[0-9]+]]:sgpr(s1) = G_TRUNC [[ICMP]](s32)
2467 ; FAST: [[ZEXT:%[0-9]+]]:sgpr(s32) = G_ZEXT [[TRUNC]](s1)
2468 ; FAST: G_BRCOND [[ZEXT]](s32), %bb.1
2469 ; FAST: G_BR %bb.2
2470 ; FAST: bb.1:
2471 ; FAST: successors: %bb.2(0x80000000)
2472 ; FAST: [[COPY3:%[0-9]+]]:vgpr(s32) = COPY [[COPY1]](s32)
2473 ; FAST: G_BR %bb.2
2474 ; FAST: bb.2:
2475 ; FAST: [[PHI:%[0-9]+]]:vgpr(s32) = G_PHI [[COPY]](s32), %bb.0, [[COPY3]](s32), %bb.1
2476 ; FAST: $agpr0 = COPY [[PHI]](s32)
2477 ; FAST: S_SETPC_B64 undef $sgpr30_sgpr31
2529 ; FAST-LABEL: name: phi_s32_va_sbranch
2530 ; FAST: bb.0:
2531 ; FAST: successors: %bb.1(0x40000000), %bb.2(0x40000000)
2532 ; FAST: liveins: $agpr0, $vgpr0, $sgpr2
2533 ; FAST: [[COPY:%[0-9]+]]:vgpr(s32) = COPY $vgpr0
2534 ; FAST: [[COPY1:%[0-9]+]]:agpr(s32) = COPY $agpr0
2535 ; FAST: [[COPY2:%[0-9]+]]:sgpr(s32) = COPY $sgpr2
2536 ; FAST: [[C:%[0-9]+]]:sgpr(s32) = G_CONSTANT i32 0
2537 ; FAST: [[ICMP:%[0-9]+]]:sgpr(s32) = G_ICMP intpred(eq), [[COPY2]](s32), [[C]]
2538 ; FAST: [[TRUNC:%[0-9]+]]:sgpr(s1) = G_TRUNC [[ICMP]](s32)
2539 ; FAST: [[ZEXT:%[0-9]+]]:sgpr(s32) = G_ZEXT [[TRUNC]](s1)
2540 ; FAST: G_BRCOND [[ZEXT]](s32), %bb.1
2541 ; FAST: G_BR %bb.2
2542 ; FAST: bb.1:
2543 ; FAST: successors: %bb.2(0x80000000)
2544 ; FAST: [[COPY3:%[0-9]+]]:agpr(s32) = COPY [[COPY1]](s32)
2545 ; FAST: G_BR %bb.2
2546 ; FAST: bb.2:
2547 ; FAST: [[PHI:%[0-9]+]]:vgpr(s32) = G_PHI [[COPY]](s32), %bb.0, [[COPY3]](s32), %bb.1
2548 ; FAST: $agpr0 = COPY [[PHI]](s32)
2549 ; FAST: S_SETPC_B64 undef $sgpr30_sgpr31
2602 ; FAST-LABEL: name: phi_s32_as_sbranch
2603 ; FAST: bb.0:
2604 ; FAST: successors: %bb.1(0x40000000), %bb.2(0x40000000)
2605 ; FAST: liveins: $agpr0, $sgpr0, $sgpr2
2606 ; FAST: [[COPY:%[0-9]+]]:agpr(s32) = COPY $agpr0
2607 ; FAST: [[COPY1:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
2608 ; FAST: [[COPY2:%[0-9]+]]:sgpr(s32) = COPY $sgpr2
2609 ; FAST: [[C:%[0-9]+]]:sgpr(s32) = G_CONSTANT i32 0
2610 ; FAST: [[ICMP:%[0-9]+]]:sgpr(s32) = G_ICMP intpred(eq), [[COPY2]](s32), [[C]]
2611 ; FAST: [[TRUNC:%[0-9]+]]:sgpr(s1) = G_TRUNC [[ICMP]](s32)
2612 ; FAST: [[ZEXT:%[0-9]+]]:sgpr(s32) = G_ZEXT [[TRUNC]](s1)
2613 ; FAST: G_BRCOND [[ZEXT]](s32), %bb.1
2614 ; FAST: G_BR %bb.2
2615 ; FAST: bb.1:
2616 ; FAST: successors: %bb.2(0x80000000)
2617 ; FAST: [[COPY3:%[0-9]+]]:sgpr(s32) = COPY [[COPY1]](s32)
2618 ; FAST: G_BR %bb.2
2619 ; FAST: bb.2:
2620 ; FAST: [[PHI:%[0-9]+]]:vgpr(s32) = G_PHI [[COPY]](s32), %bb.0, [[COPY3]](s32), %bb.1
2621 ; FAST: $agpr0 = COPY [[PHI]](s32)
2622 ; FAST: S_SETPC_B64 undef $sgpr30_sgpr31
2675 ; FAST-LABEL: name: phi_s32_sa_sbranch
2676 ; FAST: bb.0:
2677 ; FAST: successors: %bb.1(0x40000000), %bb.2(0x40000000)
2678 ; FAST: liveins: $agpr0, $sgpr0, $sgpr2
2679 ; FAST: [[COPY:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
2680 ; FAST: [[COPY1:%[0-9]+]]:agpr(s32) = COPY $agpr0
2681 ; FAST: [[COPY2:%[0-9]+]]:sgpr(s32) = COPY $sgpr2
2682 ; FAST: [[C:%[0-9]+]]:sgpr(s32) = G_CONSTANT i32 0
2683 ; FAST: [[ICMP:%[0-9]+]]:sgpr(s32) = G_ICMP intpred(eq), [[COPY2]](s32), [[C]]
2684 ; FAST: [[TRUNC:%[0-9]+]]:sgpr(s1) = G_TRUNC [[ICMP]](s32)
2685 ; FAST: [[ZEXT:%[0-9]+]]:sgpr(s32) = G_ZEXT [[TRUNC]](s1)
2686 ; FAST: G_BRCOND [[ZEXT]](s32), %bb.1
2687 ; FAST: G_BR %bb.2
2688 ; FAST: bb.1:
2689 ; FAST: successors: %bb.2(0x80000000)
2690 ; FAST: [[COPY3:%[0-9]+]]:agpr(s32) = COPY [[COPY1]](s32)
2691 ; FAST: G_BR %bb.2
2692 ; FAST: bb.2:
2693 ; FAST: [[PHI:%[0-9]+]]:vgpr(s32) = G_PHI [[COPY]](s32), %bb.0, [[COPY3]](s32), %bb.1
2694 ; FAST: $agpr0 = COPY [[PHI]](s32)
2695 ; FAST: S_SETPC_B64 undef $sgpr30_sgpr31