@@ -103,55 +103,47 @@ define void @main(i1 %arg) #0 {
103103; CHECK-NEXT: s_mov_b64 vcc, vcc
104104; CHECK-NEXT: s_cbranch_vccnz .LBB0_2
105105; CHECK-NEXT: .LBB0_3: ; %Flow14
106- ; CHECK-NEXT: s_andn2_saveexec_b64 s[6:7 ], s[6:7]
106+ ; CHECK-NEXT: s_andn2_saveexec_b64 s[20:21 ], s[6:7]
107107; CHECK-NEXT: s_cbranch_execz .LBB0_10
108108; CHECK-NEXT: ; %bb.4: ; %bb32
109109; CHECK-NEXT: s_and_saveexec_b64 s[16:17], s[4:5]
110- ; CHECK-NEXT: s_xor_b64 s[4:5 ], exec, s[16:17]
110+ ; CHECK-NEXT: s_xor_b64 s[22:23 ], exec, s[16:17]
111111; CHECK-NEXT: s_cbranch_execz .LBB0_6
112112; CHECK-NEXT: ; %bb.5: ; %bb43
113- ; CHECK-NEXT: s_mov_b32 s16, 0
114- ; CHECK-NEXT: s_mov_b32 s17, s16
115- ; CHECK-NEXT: v_mov_b32_e32 v2, s16
116- ; CHECK-NEXT: v_mov_b32_e32 v3, s17
117- ; CHECK-NEXT: s_mov_b32 s18, s16
118- ; CHECK-NEXT: s_mov_b32 s19, s16
119- ; CHECK-NEXT: image_sample_lz v1, v[2:3], s[8:15], s[16:19] dmask:0x1
120113; CHECK-NEXT: s_waitcnt lgkmcnt(0)
121- ; CHECK-NEXT: s_mov_b64 s[8:9], s[36:37]
122- ; CHECK-NEXT: s_mov_b64 s[10:11], s[38:39]
123- ; CHECK-NEXT: s_mov_b64 s[12:13], s[40:41]
124- ; CHECK-NEXT: s_mov_b64 s[14:15], s[42:43]
125- ; CHECK-NEXT: v_readlane_b32 s36, v6, 0
126- ; CHECK-NEXT: v_readlane_b32 s44, v6, 8
127- ; CHECK-NEXT: v_readlane_b32 s45, v6, 9
128- ; CHECK-NEXT: v_readlane_b32 s46, v6, 10
129- ; CHECK-NEXT: v_readlane_b32 s47, v6, 11
130- ; CHECK-NEXT: v_readlane_b32 s48, v6, 12
131- ; CHECK-NEXT: v_readlane_b32 s49, v6, 13
132- ; CHECK-NEXT: v_readlane_b32 s50, v6, 14
133- ; CHECK-NEXT: v_readlane_b32 s51, v6, 15
134- ; CHECK-NEXT: v_readlane_b32 s37, v6, 1
135- ; CHECK-NEXT: v_readlane_b32 s38, v6, 2
136- ; CHECK-NEXT: v_readlane_b32 s39, v6, 3
137- ; CHECK-NEXT: v_readlane_b32 s40, v6, 4
138- ; CHECK-NEXT: v_readlane_b32 s41, v6, 5
139- ; CHECK-NEXT: image_sample_lz v0, v[2:3], s[44:51], s[24:27] dmask:0x1
140- ; CHECK-NEXT: v_readlane_b32 s42, v6, 6
141- ; CHECK-NEXT: v_readlane_b32 s43, v6, 7
114+ ; CHECK-NEXT: s_mov_b32 s44, 0
115+ ; CHECK-NEXT: s_mov_b32 s45, s44
116+ ; CHECK-NEXT: v_mov_b32_e32 v2, s44
117+ ; CHECK-NEXT: v_mov_b32_e32 v3, s45
118+ ; CHECK-NEXT: s_mov_b32 s46, s44
119+ ; CHECK-NEXT: s_mov_b32 s47, s44
120+ ; CHECK-NEXT: image_sample_lz v1, v[2:3], s[8:15], s[44:47] dmask:0x1
121+ ; CHECK-NEXT: v_readlane_b32 s4, v6, 0
122+ ; CHECK-NEXT: v_readlane_b32 s12, v6, 8
123+ ; CHECK-NEXT: v_readlane_b32 s13, v6, 9
124+ ; CHECK-NEXT: v_readlane_b32 s14, v6, 10
125+ ; CHECK-NEXT: v_readlane_b32 s15, v6, 11
126+ ; CHECK-NEXT: v_readlane_b32 s16, v6, 12
127+ ; CHECK-NEXT: v_readlane_b32 s17, v6, 13
128+ ; CHECK-NEXT: v_readlane_b32 s18, v6, 14
129+ ; CHECK-NEXT: v_readlane_b32 s19, v6, 15
130+ ; CHECK-NEXT: v_readlane_b32 s5, v6, 1
131+ ; CHECK-NEXT: v_readlane_b32 s6, v6, 2
132+ ; CHECK-NEXT: v_readlane_b32 s7, v6, 3
133+ ; CHECK-NEXT: v_readlane_b32 s8, v6, 4
134+ ; CHECK-NEXT: v_readlane_b32 s9, v6, 5
135+ ; CHECK-NEXT: image_sample_lz v0, v[2:3], s[12:19], s[24:27] dmask:0x1
142136; CHECK-NEXT: v_mov_b32_e32 v2, 0
143- ; CHECK-NEXT: s_mov_b64 s[42:43], s[14:15]
144137; CHECK-NEXT: v_mov_b32_e32 v3, v2
145- ; CHECK-NEXT: s_mov_b64 s[40:41], s[12:13]
146- ; CHECK-NEXT: s_mov_b64 s[38:39], s[10:11]
147- ; CHECK-NEXT: s_mov_b64 s[36:37], s[8:9]
138+ ; CHECK-NEXT: v_readlane_b32 s10, v6, 6
139+ ; CHECK-NEXT: v_readlane_b32 s11, v6, 7
148140; CHECK-NEXT: s_waitcnt vmcnt(1)
149- ; CHECK-NEXT: buffer_store_dwordx3 v[1:3], off, s[16:19 ], 0
141+ ; CHECK-NEXT: buffer_store_dwordx3 v[1:3], off, s[44:47 ], 0
150142; CHECK-NEXT: s_waitcnt vmcnt(1)
151- ; CHECK-NEXT: buffer_store_dwordx4 v[0:3], off, s[16:19 ], 0
143+ ; CHECK-NEXT: buffer_store_dwordx4 v[0:3], off, s[44:47 ], 0
152144; CHECK-NEXT: ; implicit-def: $vgpr0
153145; CHECK-NEXT: .LBB0_6: ; %Flow12
154- ; CHECK-NEXT: s_andn2_saveexec_b64 s[4:5], s[4:5 ]
146+ ; CHECK-NEXT: s_andn2_saveexec_b64 s[4:5], s[22:23 ]
155147; CHECK-NEXT: s_cbranch_execz .LBB0_9
156148; CHECK-NEXT: ; %bb.7: ; %bb33.preheader
157149; CHECK-NEXT: s_mov_b32 s8, 0
@@ -179,7 +171,7 @@ define void @main(i1 %arg) #0 {
179171; CHECK-NEXT: .LBB0_9: ; %Flow13
180172; CHECK-NEXT: s_or_b64 exec, exec, s[4:5]
181173; CHECK-NEXT: .LBB0_10: ; %UnifiedReturnBlock
182- ; CHECK-NEXT: s_or_b64 exec, exec, s[6:7 ]
174+ ; CHECK-NEXT: s_or_b64 exec, exec, s[20:21 ]
183175; CHECK-NEXT: v_readlane_b32 s71, v5, 21
184176; CHECK-NEXT: v_readlane_b32 s70, v5, 20
185177; CHECK-NEXT: v_readlane_b32 s69, v5, 19
0 commit comments