summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms
diff options
context:
space:
mode:
authorMax Kazantsev <max.kazantsev@azul.com>2018-04-24 04:42:37 +0000
committerMax Kazantsev <max.kazantsev@azul.com>2018-04-24 04:42:37 +0000
commit7790d6cbffca5f5c9285365381363f6069dcb91a (patch)
tree10f8df31f7337e8d0d6b9e1805ea680c436b63aa /llvm/test/Transforms
parent30dee7874d56d368f3d39523ef46c865d9b320b0 (diff)
downloadbcm5719-llvm-7790d6cbffca5f5c9285365381363f6069dcb91a.tar.gz
bcm5719-llvm-7790d6cbffca5f5c9285365381363f6069dcb91a.zip
[NFC] Use FileCheck in test
llvm-svn: 330684
Diffstat (limited to 'llvm/test/Transforms')
-rw-r--r--llvm/test/Transforms/LoopUnswitch/2008-11-03-Invariant.ll6
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/test/Transforms/LoopUnswitch/2008-11-03-Invariant.ll b/llvm/test/Transforms/LoopUnswitch/2008-11-03-Invariant.ll
index 90c0944e38d..6790cf6a00d 100644
--- a/llvm/test/Transforms/LoopUnswitch/2008-11-03-Invariant.ll
+++ b/llvm/test/Transforms/LoopUnswitch/2008-11-03-Invariant.ll
@@ -1,7 +1,11 @@
; REQUIRES: asserts
-; RUN: opt < %s -loop-unswitch -stats -disable-output 2>&1 | grep "1 loop-unswitch - Number of branches unswitched" | count 1
+; RUN: opt < %s -loop-unswitch -stats -disable-output 2>&1 | FileCheck %s
; PR 3170
+
define i32 @a(i32 %x, i32 %y) nounwind {
+; CHECK: 1 loop-unswitch - Number of branches unswitched
+; CHECK-NOT: Number of branches unswitched
+
entry:
%0 = icmp ult i32 0, %y ; <i1> [#uses=1]
br i1 %0, label %bb.nph, label %bb4
OpenPOWER on IntegriCloud