This should have been part of r224676.
[oota-llvm.git] / test / Transforms / InstCombine / not.ll
index c58ce11b438f621d04d43a26dd45fb80cb9b9325..4012ce1ea4ba348c232a5511c71fa8c129626285 100644 (file)
@@ -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]
@@ -43,7 +44,7 @@ define i32 @test5(i32 %A, i32 %B) {
 }
 
 ; PR2298
-define i8 @test6(i32 %a, i32 %b) zeroext nounwind  {
+define zeroext i8 @test6(i32 %a, i32 %b)  nounwind  {
 entry:
        %tmp1not = xor i32 %a, -1               ; <i32> [#uses=1]
        %tmp2not = xor i32 %b, -1               ; <i32> [#uses=1]
@@ -51,4 +52,3 @@ entry:
        %retval67 = zext i1 %tmp3 to i8         ; <i8> [#uses=1]
        ret i8 %retval67
 }
-