2 # RUN: llc -mtriple=amdgcn--- -verify-machineinstrs -debug-only=regalloc -run-pass=greedy -o /dev/null %s 2>&1 | FileCheck %s
5 # Check that physreg candidate is not used since cannot be spilled in a block,
6 # e.g. before exec mask preamble
7 # CHECK: , cannot spill all interferences.
10 tracksRegLiveness: true
12 scratchRSrcReg: $sgpr0_sgpr1_sgpr2_sgpr3
13 scratchWaveOffsetReg: $sgpr4
14 stackPtrOffsetReg: $sgpr32
16 - { id: 0, class: sreg_64 }
17 - { id: 1100, class: sreg_128 }
18 - { id: 1101, class: sreg_128 }
19 - { id: 1102, class: sreg_128 }
20 - { id: 1103, class: sreg_128 }
21 - { id: 1104, class: sreg_128 }
22 - { id: 1105, class: sreg_128 }
23 - { id: 1106, class: sreg_128 }
24 - { id: 1107, class: sreg_128 }
25 - { id: 1108, class: sreg_128 }
26 - { id: 1109, class: sreg_128 }
27 - { id: 1110, class: sreg_128 }
28 - { id: 1111, class: sreg_128 }
29 - { id: 1112, class: sreg_128 }
30 - { id: 1113, class: sreg_128 }
31 - { id: 1114, class: sreg_128 }
32 - { id: 1115, class: sreg_128 }
33 - { id: 1116, class: sreg_128 }
34 - { id: 1117, class: sreg_128 }
35 - { id: 1118, class: sreg_128 }
36 - { id: 1119, class: sreg_128 }
37 - { id: 1120, class: sreg_128 }
38 - { id: 1121, class: sreg_128 }
42 liveins: $sgpr96_sgpr97, $sgpr98_sgpr99, $sgpr100_sgpr101, $sgpr102_sgpr103
43 %0:sreg_64 = COPY $sgpr102_sgpr103
44 %1100 = COPY $sgpr100_sgpr101_sgpr102_sgpr103
69 liveins: $sgpr96_sgpr97, $sgpr98_sgpr99, $sgpr102_sgpr103
70 %0 = S_OR_SAVEEXEC_B64 $sgpr96_sgpr97, implicit-def $exec, implicit-def $scc, implicit $exec
71 $exec = S_XOR_B64_term $exec, %0, implicit-def $scc
72 SI_MASK_BRANCH %bb.100, implicit $exec
76 liveins: $sgpr98_sgpr99, $sgpr102_sgpr103
77 %0:sreg_64 = S_OR_SAVEEXEC_B64 $sgpr98_sgpr99, implicit-def $exec, implicit-def $scc, implicit $exec
78 $exec = S_XOR_B64_term $exec, %0, implicit-def $scc
79 SI_MASK_BRANCH %bb.100, implicit $exec
83 liveins: $sgpr102_sgpr103
84 %0:sreg_64 = S_OR_SAVEEXEC_B64 $sgpr102_sgpr103, implicit-def $exec, implicit-def $scc, implicit $exec
85 $exec = S_XOR_B64_term $exec, %0, implicit-def $scc
89 S_CMP_EQ_U64 %1100.sub0_sub1, %1101.sub2_sub3, implicit-def $scc
90 S_CMP_EQ_U64 %1102.sub0_sub1, %1103.sub2_sub3, implicit-def $scc
91 S_CMP_EQ_U64 %1104.sub0_sub1, %1105.sub2_sub3, implicit-def $scc
92 S_CMP_EQ_U64 %1106.sub0_sub1, %1107.sub2_sub3, implicit-def $scc
93 S_CMP_EQ_U64 %1108.sub0_sub1, %1109.sub2_sub3, implicit-def $scc
94 S_CMP_EQ_U64 %1110.sub0_sub1, %1111.sub2_sub3, implicit-def $scc
95 S_CMP_EQ_U64 %1112.sub0_sub1, %1113.sub2_sub3, implicit-def $scc
96 S_CMP_EQ_U64 %1114.sub0_sub1, %1115.sub2_sub3, implicit-def $scc
97 S_CMP_EQ_U64 %1116.sub0_sub1, %1117.sub2_sub3, implicit-def $scc
98 S_CMP_EQ_U64 %1118.sub0_sub1, %1119.sub2_sub3, implicit-def $scc
99 S_CMP_EQ_U64 %1120.sub0_sub1, %1121.sub2_sub3, implicit-def $scc
101 $vgpr0 = V_MOV_B32_e32 0, implicit $exec
102 S_SETPC_B64_return undef $sgpr30_sgpr31, implicit %0, implicit $vgpr0