[llvm] r222876 - Use FileCheck instead of grep. Change by Sonam.

Suyog Sarda suyog.sarda at samsung.com
Thu Nov 27 02:57:25 PST 2014


Author: suyog
Date: Thu Nov 27 04:57:24 2014
New Revision: 222876

URL: http://llvm.org/viewvc/llvm-project?rev=222876&view=rev
Log:
Use FileCheck instead of grep. Change by Sonam.

Differential Revision: http://reviews.llvm.org/D6432


Modified:
    llvm/trunk/test/Transforms/InstCombine/not-fcmp.ll
    llvm/trunk/test/Transforms/InstCombine/not.ll

Modified: llvm/trunk/test/Transforms/InstCombine/not-fcmp.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/not-fcmp.ll?rev=222876&r1=222875&r2=222876&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/not-fcmp.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/not-fcmp.ll Thu Nov 27 04:57:24 2014
@@ -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           ; <i1> [#uses=1]
         %toBoolnot5 = xor i1 %tmp3, true                ; <i1> [#uses=1]
         ret i1 %toBoolnot5
+; CHECK-LABEL: @f(
+; CHECK-NEXT: entry:
+; CHECK-NEXT: %toBoolnot5 = fcmp uge float %X, %Y
+; CHECK-NEXT: ret i1 %toBoolnot5
 }
-

Modified: llvm/trunk/test/Transforms/InstCombine/not.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/not.ll?rev=222876&r1=222875&r2=222876&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/not.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/not.ll Thu Nov 27 04:57:24 2014
@@ -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             ; <i32> [#uses=1]
@@ -51,4 +52,3 @@ entry:
 	%retval67 = zext i1 %tmp3 to i8		; <i8> [#uses=1]
 	ret i8 %retval67
 }
-





More information about the llvm-commits mailing list