diff options
Diffstat (limited to 'llvm/test/CodeGen/PowerPC/branch-opt.ll')
-rw-r--r-- | llvm/test/CodeGen/PowerPC/branch-opt.ll | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/llvm/test/CodeGen/PowerPC/branch-opt.ll b/llvm/test/CodeGen/PowerPC/branch-opt.ll index e714972b17e..b3c0dba8b85 100644 --- a/llvm/test/CodeGen/PowerPC/branch-opt.ll +++ b/llvm/test/CodeGen/PowerPC/branch-opt.ll @@ -1,21 +1,9 @@ -; RUN: llc -verify-machineinstrs < %s -march=ppc32 | FileCheck %s +; RUN: llc -verify-machineinstrs < %s -march=ppc32 | \ +; RUN: grep "b LBB.*" | count 4 target datalayout = "E-p:32:32" target triple = "powerpc-apple-darwin8.7.0" -;CHECK-LABEL: foo: -; There are 4 inner loops (%bb, %bb12, %bb25, %bb38) that all exit to %cond_next48 -; The last (whichever it is) should have a fallthrough exit, and the other three -; need an unconditional branch. No other block should have an unconditional -; branch to cond_next48 -; One of the blocks ends up with a loop exit block that gets a tail-duplicated copy -; of %cond_next48, so there should only be two unconditional branches. - -;CHECK: b LBB0_13 -;CHECK: b LBB0_13 -;CHECK-NOT: b LBB0_13 -;CHECK: LBB0_13: ; %cond_next48 - define void @foo(i32 %W, i32 %X, i32 %Y, i32 %Z) { entry: %tmp1 = and i32 %W, 1 ; <i32> [#uses=1] |