From f5d4310169cbf2fee867669e4e6f65e5ae49ae4b Mon Sep 17 00:00:00 2001 From: Daniel Berlin Date: Tue, 28 Feb 2017 23:35:24 +0000 Subject: [PATCH] Update AMDGPU test branch-relaxation.ll for changes after post-dom fixes git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@296539 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/AMDGPU/branch-relaxation.ll | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/test/CodeGen/AMDGPU/branch-relaxation.ll b/test/CodeGen/AMDGPU/branch-relaxation.ll index 18bbc3e5f07..7ae2e996095 100644 --- a/test/CodeGen/AMDGPU/branch-relaxation.ll +++ b/test/CodeGen/AMDGPU/branch-relaxation.ll @@ -430,17 +430,8 @@ endif: ; GCN-NEXT: s_and_saveexec_b64 [[MASK:s\[[0-9]+:[0-9]+\]]], vcc ; GCN-NEXT: s_xor_b64 [[MASK]], exec, [[MASK]] ; GCN-NEXT: ; mask branch [[RET:BB[0-9]+_[0-9]+]] -; GCN-NEXT: s_cbranch_execz [[BRANCH_SKIP:BB[0-9]+_[0-9]+]] -; GCN-NEXT: s_branch [[LOOP_BODY:BB[0-9]+_[0-9]+]] -; GCN-NEXT: [[BRANCH_SKIP]]: ; %entry -; GCN-NEXT: s_getpc_b64 vcc -; GCN-NEXT: s_add_u32 vcc_lo, vcc_lo, [[RET]]-([[BRANCH_SKIP]]+4) -; GCN-NEXT: s_addc_u32 vcc_hi, vcc_hi, 0 -; GCN-NEXT: s_setpc_b64 vcc - -; GCN-NEXT: [[LOOP_BODY]]: ; %loop_body -; GCN: s_mov_b64 vcc, -1{{$}} +; GCN-NEXT: [[LOOP_BODY:BB[0-9]+_[0-9]+]]: ; %loop_body ; GCN: ;;#ASMSTART ; GCN: v_nop_e64 ; GCN: v_nop_e64 @@ -449,7 +440,6 @@ endif: ; GCN: v_nop_e64 ; GCN: v_nop_e64 ; GCN: ;;#ASMEND -; GCN-NEXT: s_cbranch_vccz [[RET]] ; GCN-NEXT: [[LONGBB:BB[0-9]+_[0-9]+]]: ; %loop_body ; GCN-NEXT: ; in Loop: Header=[[LOOP_BODY]] Depth=1 @@ -458,8 +448,11 @@ endif: ; GCN-NEXT: s_subb_u32 vcc_hi, vcc_hi, 0 ; GCN-NEXT: s_setpc_b64 vcc -; GCN-NEXT: [[RET]]: ; %Flow +; GCN-NEXT: [[RET]]: ; GCN-NEXT: s_or_b64 exec, exec, [[MASK]] +; GCN-NEXT: s_mov_b32 s3, 0xf000 +; GCN-NEXT: s_mov_b32 s2, -1 +; GCN-NExt: v_mov_b32_e32 v0, 7 ; GCN: buffer_store_dword ; GCN-NEXT: s_endpgm define void @analyze_mask_branch() #0 { @@ -467,7 +460,6 @@ entry: %reg = call float asm sideeffect "v_mov_b32_e64 $0, 0", "=v"() %cmp0 = fcmp ogt float %reg, 0.000000e+00 br i1 %cmp0, label %loop, label %ret - loop: %phi = phi float [ 0.000000e+00, %loop_body ], [ 1.000000e+00, %entry ] call void asm sideeffect -- 2.50.1