1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -march=amdgcn -mcpu=polaris10 -run-pass si-pre-emit-peephole -amdgpu-skip-threshold=1 -verify-machineinstrs %s -o - | FileCheck %s
8 ; CHECK-LABEL: name: skip_execz_flat
10 ; CHECK: successors: %bb.1(0x40000000), %bb.2(0x40000000)
11 ; CHECK: S_CBRANCH_EXECZ %bb.2, implicit $exec
13 ; CHECK: successors: %bb.2(0x80000000)
14 ; CHECK: $vgpr0 = V_MOV_B32_e32 0, implicit $exec
15 ; CHECK: FLAT_STORE_DWORD undef $vgpr1_vgpr2, $vgpr0, 0, 0, implicit $exec, implicit $flat_scr
19 successors: %bb.1, %bb.2
20 S_CBRANCH_EXECZ %bb.2, implicit $exec
24 $vgpr0 = V_MOV_B32_e32 0, implicit $exec
25 FLAT_STORE_DWORD undef $vgpr1_vgpr2, $vgpr0, 0, 0, implicit $exec, implicit $flat_scr
33 name: skip_execz_mubuf
35 ; CHECK-LABEL: name: skip_execz_mubuf
37 ; CHECK: successors: %bb.1(0x40000000), %bb.2(0x40000000)
38 ; CHECK: S_CBRANCH_EXECZ %bb.2, implicit $exec
40 ; CHECK: successors: %bb.2(0x80000000)
41 ; CHECK: $vgpr0 = V_MOV_B32_e32 0, implicit $exec
42 ; CHECK: BUFFER_STORE_DWORD_OFFSET $vgpr0, undef $sgpr0_sgpr1_sgpr2_sgpr3, undef $sgpr4, 0, 0, 0, 0, implicit $exec
46 successors: %bb.1, %bb.2
47 S_CBRANCH_EXECZ %bb.2, implicit $exec
51 $vgpr0 = V_MOV_B32_e32 0, implicit $exec
52 BUFFER_STORE_DWORD_OFFSET $vgpr0, undef $sgpr0_sgpr1_sgpr2_sgpr3, undef $sgpr4, 0, 0, 0, 0, implicit $exec
62 ; CHECK-LABEL: name: skip_execz_ds
64 ; CHECK: successors: %bb.1(0x40000000), %bb.2(0x40000000)
65 ; CHECK: S_CBRANCH_EXECZ %bb.2, implicit $exec
67 ; CHECK: successors: %bb.2(0x80000000)
68 ; CHECK: $vgpr0 = V_MOV_B32_e32 0, implicit $exec
69 ; CHECK: DS_WRITE_B32 $vgpr0, $vgpr0, 0, 0, implicit $m0, implicit $exec
73 successors: %bb.1, %bb.2
74 S_CBRANCH_EXECZ %bb.2, implicit $exec
78 $vgpr0 = V_MOV_B32_e32 0, implicit $exec
79 DS_WRITE_B32 $vgpr0, $vgpr0, 0, 0, implicit $m0, implicit $exec