[llvm-commits] [llvm] r118441 - /llvm/trunk/test/Transforms/InstCombine/select.ll
Duncan Sands
baldrick at free.fr
Mon Nov 8 12:56:28 PST 2010
Author: baldrick
Date: Mon Nov 8 14:56:28 2010
New Revision: 118441
URL: http://llvm.org/viewvc/llvm-project?rev=118441&view=rev
Log:
Add an additional test for icmp of select folding.
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=118441&r1=118440&r2=118441&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/select.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/select.ll Mon Nov 8 14:56:28 2010
@@ -488,3 +488,14 @@
; CHECK: @test39
; CHECK: ret i1 true
}
+
+define i1 @test40(i1 %cond) {
+ %a = alloca i32
+ %b = alloca i32
+ %c = alloca i32
+ %s = select i1 %cond, i32* %a, i32* %b
+ %r = icmp eq i32* %s, %c
+ ret i1 %r
+; CHECK: @test40
+; CHECK: ret i1 false
+}
More information about the llvm-commits
mailing list