Reapply r155682, making constant folding more consistent, with a fix to work
[oota-llvm.git] / test / CodeGen / ARM / ifcvt4.ll
index b3a5ea0884ce30a8a07c3452a7584860effe0958..d247f14d91cef790e999f4a1ac207d8bdf483608 100644 (file)
@@ -1,8 +1,10 @@
-; RUN: llvm-as < %s | llc -march=arm -enable-arm-if-conversion
-; RUN: llvm-as < %s | llc -march=arm -enable-arm-if-conversion | grep subgt | count 1
-; RUN: llvm-as < %s | llc -march=arm -enable-arm-if-conversion | grep suble | count 1
-; FIXME: Check for # of unconditional branch after adding branch folding post ifcvt.
+; RUN: llc < %s -march=arm | FileCheck %s
 
+; Do not if-convert when branches go to the different loops.
+; CHECK: t:
+; CHECK-NOT: subgt
+; CHECK-NOT: suble
+; Don't use
 define i32 @t(i32 %a, i32 %b) {
 entry:
        %tmp1434 = icmp eq i32 %a, %b           ; <i1> [#uses=1]