Index: test/Transforms/InstCombine/not-fcmp.ll =================================================================== --- test/Transforms/InstCombine/not-fcmp.ll +++ 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 @@ %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 } - Index: test/Transforms/InstCombine/not.ll =================================================================== --- test/Transforms/InstCombine/not.ll +++ 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]