1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2# RUN: llc -march=amdgcn -mcpu=polaris10 -run-pass si-insert-skips -amdgpu-skip-threshold-legacy=1 -verify-machineinstrs  %s -o - | FileCheck %s
3
4---
5
6name: skip_execz_flat
7body: |
8  ; CHECK-LABEL: name: skip_execz_flat
9  ; CHECK: bb.0:
10  ; CHECK:   successors: %bb.1(0x40000000), %bb.2(0x40000000)
11  ; CHECK:   SI_MASK_BRANCH %bb.2, implicit $exec
12  ; CHECK:   S_CBRANCH_EXECZ %bb.2, implicit $exec
13  ; CHECK: bb.1:
14  ; CHECK:   successors: %bb.2(0x80000000)
15  ; CHECK:   $vgpr0 = V_MOV_B32_e32 0, implicit $exec
16  ; CHECK:   FLAT_STORE_DWORD undef $vgpr1_vgpr2, $vgpr0, 0, 0, 0, 0, implicit $exec, implicit $flat_scr
17  ; CHECK: bb.2:
18  ; CHECK:   S_ENDPGM 0
19  bb.0:
20    successors: %bb.1, %bb.2
21    SI_MASK_BRANCH %bb.2, implicit $exec
22
23  bb.1:
24    successors: %bb.2
25    $vgpr0 = V_MOV_B32_e32 0, implicit $exec
26    FLAT_STORE_DWORD undef $vgpr1_vgpr2, $vgpr0, 0, 0, 0, 0, implicit $exec, implicit $flat_scr
27
28  bb.2:
29    S_ENDPGM 0
30...
31
32---
33
34name: skip_execz_mubuf
35body: |
36  ; CHECK-LABEL: name: skip_execz_mubuf
37  ; CHECK: bb.0:
38  ; CHECK:   successors: %bb.1(0x40000000), %bb.2(0x40000000)
39  ; CHECK:   SI_MASK_BRANCH %bb.2, implicit $exec
40  ; CHECK:   S_CBRANCH_EXECZ %bb.2, implicit $exec
41  ; CHECK: bb.1:
42  ; CHECK:   successors: %bb.2(0x80000000)
43  ; CHECK:   $vgpr0 = V_MOV_B32_e32 0, implicit $exec
44  ; CHECK:   BUFFER_STORE_DWORD_OFFSET $vgpr0, undef $sgpr0_sgpr1_sgpr2_sgpr3, undef $sgpr4, 0, 0, 0, 0, 0, 0, implicit $exec
45  ; CHECK: bb.2:
46  ; CHECK:   S_ENDPGM 0
47  bb.0:
48    successors: %bb.1, %bb.2
49    SI_MASK_BRANCH %bb.2, implicit $exec
50
51  bb.1:
52    successors: %bb.2
53    $vgpr0 = V_MOV_B32_e32 0, implicit $exec
54    BUFFER_STORE_DWORD_OFFSET $vgpr0, undef $sgpr0_sgpr1_sgpr2_sgpr3, undef $sgpr4, 0, 0, 0, 0, 0, 0, implicit $exec
55
56  bb.2:
57    S_ENDPGM 0
58...
59