1 # RUN: llc -run-pass block-placement -march=amdgcn -verify-machineinstrs -o - %s | FileCheck %s
4 define amdgpu_kernel void @invert_br_undef_vcc(float %cond, i32 addrspace(1)* %out) #0 {
6 br i1 undef, label %if, label %else, !structurizecfg.uniform !0, !amdgpu.uniform !0
9 store volatile i32 100, i32 addrspace(1)* undef
10 br label %done, !structurizecfg.uniform !0
13 store volatile i32 9, i32 addrspace(1)* undef
14 br label %done, !structurizecfg.uniform !0
16 done: ; preds = %if, %else
17 %value = phi i32 [ 0, %if ], [ 1, %else ]
18 store i32 %value, i32 addrspace(1)* %out
22 attributes #0 = { nounwind }
28 # CHECK-LABEL: name: invert_br_undef_vcc
29 # CHECK: S_CBRANCH_VCCZ %bb.1, implicit undef $vcc
31 name: invert_br_undef_vcc
33 exposesReturnsTwice: false
35 regBankSelected: false
37 tracksRegLiveness: true
39 - { reg: '$sgpr0_sgpr1' }
41 isFrameAddressTaken: false
42 isReturnAddressTaken: false
51 hasOpaqueSPAdjustment: false
53 hasMustTailInVarArgFunc: false
58 $sgpr0_sgpr1 = S_LOAD_DWORDX2_IMM killed $sgpr0_sgpr1, 11, 0, 0 :: (non-temporal dereferenceable invariant load 8 from `i64 addrspace(4)* undef`)
59 $sgpr7 = S_MOV_B32 61440
61 S_CBRANCH_VCCNZ %bb.2, implicit undef $vcc
64 liveins: $sgpr6, $sgpr7, $sgpr0_sgpr1_sgpr2_sgpr3:0x00000003
66 $vgpr0 = V_MOV_B32_e32 100, implicit $exec
67 BUFFER_STORE_DWORD_OFFSET killed $vgpr0, killed $sgpr4_sgpr5_sgpr6_sgpr7, 0, 0, 0, 0, 0, 0, 0, implicit $exec :: (volatile store 4 into `i32 addrspace(1)* undef`)
68 $vgpr0 = V_MOV_B32_e32 1, implicit $exec
72 liveins: $sgpr6, $sgpr7, $sgpr0_sgpr1_sgpr2_sgpr3:0x00000003
74 $vgpr0 = V_MOV_B32_e32 9, implicit $exec
75 BUFFER_STORE_DWORD_OFFSET killed $vgpr0, killed $sgpr4_sgpr5_sgpr6_sgpr7, 0, 0, 0, 0, 0, 0, 0, implicit $exec :: (volatile store 4 into `i32 addrspace(1)* undef`)
76 $vgpr0 = V_MOV_B32_e32 0, implicit $exec
79 liveins: $vgpr0, $sgpr0_sgpr1_sgpr2_sgpr3:0x00000003
81 $sgpr3 = S_MOV_B32 61440
83 BUFFER_STORE_DWORD_OFFSET killed $vgpr0, killed $sgpr0_sgpr1_sgpr2_sgpr3, 0, 0, 0, 0, 0, 0, 0, implicit $exec :: (store 4 into %ir.out)