1# RUN: llc -mtriple=amdgcn-amd-amdhsa -run-pass si-insert-skips -amdgpu-skip-threshold-legacy=2 %s -o - | FileCheck %s
2
3---
4
5# CHECK-LABEL: name: no_count_mask_branch_pseudo
6# CHECK: $vgpr1 = V_MOV_B32_e32 7, implicit $exec
7# CHECK-NEXT: SI_MASK_BRANCH
8# CHECK-NOT: S_CBRANCH_EXECZ
9name: no_count_mask_branch_pseudo
10body: |
11  bb.0:
12    successors: %bb.1
13
14    $vgpr1 = V_MOV_B32_e32 7, implicit $exec
15    SI_MASK_BRANCH %bb.2, implicit $exec
16
17  bb.1:
18    successors: %bb.2
19    $vgpr0 = V_MOV_B32_e32 0, implicit $exec
20    SI_MASK_BRANCH %bb.3, implicit $exec
21
22  bb.2:
23    $vgpr0 = V_MOV_B32_e32 1, implicit $exec
24
25  bb.3:
26    S_ENDPGM 0
27...
28
29---
30
31# CHECK-LABEL: name: no_count_dbg_value
32# CHECK: $vgpr1 = V_MOV_B32_e32 7, implicit $exec
33# CHECK-NEXT: SI_MASK_BRANCH
34# CHECK-NOT: S_CBRANCH_EXECZ
35name: no_count_dbg_value
36body: |
37  bb.0:
38    successors: %bb.1
39
40    $vgpr1 = V_MOV_B32_e32 7, implicit $exec
41    SI_MASK_BRANCH %bb.2, implicit $exec
42
43  bb.1:
44    successors: %bb.2
45    $vgpr0 = V_MOV_B32_e32 0, implicit $exec
46    DBG_VALUE
47
48  bb.2:
49    $vgpr0 = V_MOV_B32_e32 1, implicit $exec
50
51  bb.3:
52    S_ENDPGM 0
53...
54
55