blob: 3e2d1ccdc55ac63d9488b4da2e4b9205874e740e [file] [log] [blame]
Alexander Timofeev46513962017-10-03 18:55:36 +00001# 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
Puyan Lotfi43e94b12018-01-31 22:04:26 +000013 liveins: $vgpr1_vgpr2:0x00000001, $vgpr2_vgpr3:0x00000003
Alexander Timofeev46513962017-10-03 18:55:36 +000014
Puyan Lotfi43e94b12018-01-31 22:04:26 +000015 $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
Alexander Timofeev46513962017-10-03 18:55:36 +000019 S_BRANCH %bb.1
20
21 bb.1:
22
Puyan Lotfi43e94b12018-01-31 22:04:26 +000023 $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
Alexander Timofeev46513962017-10-03 18:55:36 +000026 S_WAITCNT 127
Puyan Lotfi43e94b12018-01-31 22:04:26 +000027 $vgpr0 = V_XOR_B32_e32 killed $sgpr10, killed $vgpr0, implicit $exec
Alexander Timofeev46513962017-10-03 18:55:36 +000028
29 bb.2:
30
Puyan Lotfi43e94b12018-01-31 22:04:26 +000031 $exec = S_OR_B64 $exec, killed $sgpr0_sgpr1, implicit-def $scc
Alexander Timofeev46513962017-10-03 18:55:36 +000032...