1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=amdgcn -mcpu=polaris10 -run-pass si-pre-emit-peephole -verify-machineinstrs %s -o - | FileCheck %s
8 ; CHECK-LABEL: name: skip_execz_flat
10 ; CHECK-NEXT: successors: %bb.1(0x7fffffff)
13 ; CHECK-NEXT: successors: %bb.2(0x80000000)
15 ; CHECK-NEXT: $vgpr0 = V_MOV_B32_e32 0, implicit $exec
16 ; CHECK-NEXT: FLAT_STORE_DWORD undef $vgpr1_vgpr2, $vgpr0, 0, 0, implicit $exec, implicit $flat_scr
19 ; CHECK-NEXT: S_ENDPGM 0
21 successors: %bb.1(0x70000000), %bb.2(0x00000001)
22 S_CBRANCH_EXECZ %bb.2, implicit $exec
26 $vgpr0 = V_MOV_B32_e32 0, implicit $exec
27 FLAT_STORE_DWORD undef $vgpr1_vgpr2, $vgpr0, 0, 0, implicit $exec, implicit $flat_scr
35 name: skip_execz_mubuf
37 ; CHECK-LABEL: name: skip_execz_mubuf
39 ; CHECK-NEXT: successors: %bb.1(0x7fffffff)
42 ; CHECK-NEXT: successors: %bb.2(0x80000000)
44 ; CHECK-NEXT: $vgpr0 = V_MOV_B32_e32 0, implicit $exec
45 ; CHECK-NEXT: BUFFER_STORE_DWORD_OFFSET $vgpr0, undef $sgpr0_sgpr1_sgpr2_sgpr3, undef $sgpr4, 0, 0, 0, implicit $exec
48 ; CHECK-NEXT: S_ENDPGM 0
50 successors: %bb.1(0x70000000), %bb.2(0x00000001)
51 S_CBRANCH_EXECZ %bb.2, implicit $exec
55 $vgpr0 = V_MOV_B32_e32 0, implicit $exec
56 BUFFER_STORE_DWORD_OFFSET $vgpr0, undef $sgpr0_sgpr1_sgpr2_sgpr3, undef $sgpr4, 0, 0, 0, implicit $exec
66 ; CHECK-LABEL: name: skip_execz_ds
68 ; CHECK-NEXT: successors: %bb.1(0x7fffffff)
71 ; CHECK-NEXT: successors: %bb.2(0x80000000)
73 ; CHECK-NEXT: $vgpr0 = V_MOV_B32_e32 0, implicit $exec
74 ; CHECK-NEXT: DS_WRITE_B32 $vgpr0, $vgpr0, 0, 0, implicit $m0, implicit $exec
77 ; CHECK-NEXT: S_ENDPGM 0
79 successors: %bb.1(0x70000000), %bb.2(0x00000001)
80 S_CBRANCH_EXECZ %bb.2, implicit $exec
84 $vgpr0 = V_MOV_B32_e32 0, implicit $exec
85 DS_WRITE_B32 $vgpr0, $vgpr0, 0, 0, implicit $m0, implicit $exec