Add an additional test for icmp of select folding.

llvm-svn: 118441
This commit is contained in:
Duncan Sands 2010-11-08 20:56:28 +00:00
parent 9f78edd2a7
commit 3ced912bf8

View File

@ -488,3 +488,14 @@ define i1 @test39(i1 %cond, double %x) {
; 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
}