Testcase for an instcombine miscompilation reduced by Anton.

llvm-svn: 33590
This commit is contained in:
Chris Lattner 2007-01-27 23:07:12 +00:00
parent f422607990
commit d50698107e
1 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,8 @@
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep "ugt.*, 1"
define i1 @test(i32 %tmp1030) {
%tmp1037 = icmp ne i32 %tmp1030, 40 ; <i1> [#uses=1]
%tmp1039 = icmp ne i32 %tmp1030, 41 ; <i1> [#uses=1]
%tmp1042 = and i1 %tmp1037, %tmp1039 ; <i1> [#uses=1]
ret i1 %tmp1042
}