1 # RUN: llc -o - %s -mtriple=amdgcn -mcpu=fiji -run-pass=si-late-branch-lowering -verify-machineinstrs | FileCheck -check-prefix=GCN %s
3 # GCN-LABEL: readlane_exec0
5 # GCN: S_CBRANCH_EXECZ %bb.2
12 successors: %bb.1, %bb.2
13 liveins: $vgpr1_vgpr2:0x00000001, $vgpr2_vgpr3:0x00000003
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 S_CBRANCH_EXECZ %bb.2, implicit $exec
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
27 $vgpr0 = V_XOR_B32_e32 killed $sgpr10, killed $vgpr0, implicit $exec
31 $exec = S_OR_B64 $exec, killed $sgpr0_sgpr1, implicit-def $scc