1# RUN: llc -o - %s -march=amdgcn -mcpu=fiji  -run-pass=si-insert-skips -verify-machineinstrs | FileCheck -check-prefix=GCN %s
2
3# GCN-LABEL: readlane_exec0
4# GCN: bb.0
5# GCN: S_CBRANCH_EXECZ %bb.2
6
7---
8name: readlane_exec0
9
10body:       |
11  bb.0:
12    successors: %bb.1, %bb.2
13    liveins: $vgpr1_vgpr2:0x00000001, $vgpr2_vgpr3:0x00000003
14
15    $vgpr4 = V_AND_B32_e32 1, $vgpr1, implicit $exec
16    V_CMP_EQ_U32_e32 1, killed $vgpr4, implicit-def $vcc, implicit $exec
17    $sgpr0_sgpr1 = S_AND_SAVEEXEC_B64 killed $vcc, implicit-def $exec, implicit-def $scc, implicit $exec
18    SI_MASK_BRANCH %bb.2, implicit $exec
19    S_BRANCH %bb.1
20
21  bb.1:
22
23   $sgpr10 = V_READFIRSTLANE_B32 $vgpr2, implicit $exec
24   $sgpr11 = V_READFIRSTLANE_B32 $vgpr3, implicit $exec
25   $sgpr10 = S_LOAD_DWORD_IMM killed $sgpr10_sgpr11, 0, 0, 0
26   S_WAITCNT 127
27   $vgpr0 = V_XOR_B32_e32 killed $sgpr10, killed $vgpr0, implicit $exec
28
29  bb.2:
30
31    $exec = S_OR_B64 $exec, killed $sgpr0_sgpr1, implicit-def $scc
32...
33