From: Suyog Sarda Date: Thu, 27 Nov 2014 10:57:24 +0000 (+0000) Subject: Use FileCheck instead of grep. Change by Sonam. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=8fc5d5c0dae87c0c40e34c0d7a3cdb6dd0e111dd;p=oota-llvm.git Use FileCheck instead of grep. Change by Sonam. Differential Revision: http://reviews.llvm.org/D6432 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222876 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Transforms/InstCombine/not-fcmp.ll b/test/Transforms/InstCombine/not-fcmp.ll index ad01a6bdf1b..9718e0b905f 100644 --- a/test/Transforms/InstCombine/not-fcmp.ll +++ b/test/Transforms/InstCombine/not-fcmp.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -instcombine -S | grep "fcmp uge" +; RUN: opt < %s -instcombine -S | FileCheck %s ; PR1570 define i1 @f(float %X, float %Y) { @@ -6,5 +6,8 @@ entry: %tmp3 = fcmp olt float %X, %Y ; [#uses=1] %toBoolnot5 = xor i1 %tmp3, true ; [#uses=1] ret i1 %toBoolnot5 +; CHECK-LABEL: @f( +; CHECK-NEXT: entry: +; CHECK-NEXT: %toBoolnot5 = fcmp uge float %X, %Y +; CHECK-NEXT: ret i1 %toBoolnot5 } - diff --git a/test/Transforms/InstCombine/not.ll b/test/Transforms/InstCombine/not.ll index 4a8825b15c4..4012ce1ea4b 100644 --- a/test/Transforms/InstCombine/not.ll +++ b/test/Transforms/InstCombine/not.ll @@ -1,7 +1,8 @@ ; This test makes sure that these instructions are properly eliminated. ; -; RUN: opt < %s -instcombine -S | not grep xor +; RUN: opt < %s -instcombine -S | FileCheck %s +; CHECK-NOT: xor define i32 @test1(i32 %A) { %B = xor i32 %A, -1 ; [#uses=1] @@ -51,4 +52,3 @@ entry: %retval67 = zext i1 %tmp3 to i8 ; [#uses=1] ret i8 %retval67 } -