diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-09-27 18:43:40 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-09-27 18:43:40 +0000 |
commit | 4c2c865a51b961a1cf89ab10fac644b60c343202 (patch) | |
tree | 7c3732880565d08ba139b74ae93e0e0cb73e8b65 /test | |
parent | fd9493d74e5429eab44638cd9badbad9090cd713 (diff) | |
download | external_llvm-4c2c865a51b961a1cf89ab10fac644b60c343202.zip external_llvm-4c2c865a51b961a1cf89ab10fac644b60c343202.tar.gz external_llvm-4c2c865a51b961a1cf89ab10fac644b60c343202.tar.bz2 |
Don't depend on basic block numbering.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114857 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/ARM/code-placement.ll | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/test/CodeGen/ARM/code-placement.ll b/test/CodeGen/ARM/code-placement.ll index bcf29ed..036598f 100644 --- a/test/CodeGen/ARM/code-placement.ll +++ b/test/CodeGen/ARM/code-placement.ll @@ -34,14 +34,14 @@ bb2: define i32 @t2(i32 %passes, i32* nocapture %src, i32 %size) nounwind readonly { entry: ; CHECK: t2: -; CHECK: beq LBB1_5 +; CHECK: beq LBB1_[[RET:.]] %0 = icmp eq i32 %passes, 0 ; <i1> [#uses=1] br i1 %0, label %bb5, label %bb.nph15 -; CHECK: LBB1_2 +; CHECK: LBB1_[[PREHDR:.]]: @ %bb2.preheader bb1: ; preds = %bb2.preheader, %bb1 -; CHECK: LBB1_3: -; CHECK: bne LBB1_3 +; CHECK: LBB1_[[BB1:.]]: @ %bb1 +; CHECK: bne LBB1_[[BB1]] %indvar = phi i32 [ %indvar.next, %bb1 ], [ 0, %bb2.preheader ] ; <i32> [#uses=2] %sum.08 = phi i32 [ %2, %bb1 ], [ %sum.110, %bb2.preheader ] ; <i32> [#uses=1] %tmp17 = sub i32 %i.07, %indvar ; <i32> [#uses=1] @@ -53,10 +53,9 @@ bb1: ; preds = %bb2.preheader, %bb1 br i1 %exitcond, label %bb3, label %bb1 bb3: ; preds = %bb1, %bb2.preheader -; CHECK: LBB1_4 -; CHECK: bne LBB1_2 +; CHECK: LBB1_[[BB3:.]]: @ %bb3 +; CHECK: bne LBB1_[[PREHDR]] ; CHECK-NOT: b LBB1_ -; CHECK: ldmia sp! %sum.0.lcssa = phi i32 [ %sum.110, %bb2.preheader ], [ %2, %bb1 ] ; <i32> [#uses=2] %3 = add i32 %pass.011, 1 ; <i32> [#uses=2] %exitcond18 = icmp eq i32 %3, %passes ; <i1> [#uses=1] @@ -72,6 +71,8 @@ bb2.preheader: ; preds = %bb3, %bb.nph15 %sum.110 = phi i32 [ 0, %bb.nph15 ], [ %sum.0.lcssa, %bb3 ] ; <i32> [#uses=2] br i1 %4, label %bb1, label %bb3 +; CHECK: LBB1_[[RET]]: @ %bb5 +; CHECK: ldmia sp! bb5: ; preds = %bb3, %entry %sum.1.lcssa = phi i32 [ 0, %entry ], [ %sum.0.lcssa, %bb3 ] ; <i32> [#uses=1] ret i32 %sum.1.lcssa |