[llvm-commits] [llvm] r91815 - /llvm/trunk/test/Transforms/InstCombine/select.ll
Chris Lattner
sabre at nondot.org
Sun Dec 20 22:06:10 PST 2009
Author: lattner
Date: Mon Dec 21 00:06:10 2009
New Revision: 91815
URL: http://llvm.org/viewvc/llvm-project?rev=91815&view=rev
Log:
really convert this to filecheck.
Modified:
llvm/trunk/test/Transforms/InstCombine/select.ll
Modified: llvm/trunk/test/Transforms/InstCombine/select.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/select.ll?rev=91815&r1=91814&r2=91815&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/select.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/select.ll Mon Dec 21 00:06:10 2009
@@ -1,7 +1,7 @@
; This test makes sure that these instructions are properly eliminated.
; PR1822
-; RUN: opt < %s -instcombine -S | not grep select
+; RUN: opt < %s -instcombine -S | FileCheck %s
define i32 @test1(i32 %A, i32 %B) {
%C = select i1 false, i32 %A, i32 %B
@@ -97,7 +97,7 @@
; CHECK: @test11
; CHECK: icmp ne i32 %a, 0
; CHECK: %R = zext i1
-; CHECK: ret i1 %R
+; CHECK: ret i32 %R
}
define i32 @test12(i1 %cond, i32 %a) {
@@ -284,7 +284,7 @@
%tmp = icmp slt i32 %x, 0
%retval = select i1 %tmp, i16 -1, i16 0
ret i16 %retval
-; CHECK: @test21
+; CHECK: @test22
; CHECK-NEXT: ashr i32 %x, 31
; CHECK-NEXT: trunc i32
; CHECK-NEXT: ret i16
@@ -377,9 +377,9 @@
next:
%b = select i1 %a, i32 %A, i32 %c
ret i32 %b
-; CHECK: @test25
+; CHECK: @test29
; CHECK: %a = phi i32 [ %A, %jump ], [ %B, %entry ]
-; CHECK-NEXT: ret i32 %a
+; CHECK: ret i32 %a
}
More information about the llvm-commits
mailing list