merge two tests.

llvm-svn: 125195
This commit is contained in:
Chris Lattner 2011-02-09 17:06:41 +00:00
parent b940091388
commit 206b065afb
2 changed files with 9 additions and 8 deletions

View File

@ -1,8 +0,0 @@
; RUN: opt < %s -instcombine -S | not grep sdiv
; PR2740
define i1 @func_75(i32 %i2) nounwind {
%i3 = sdiv i32 %i2, -1328634635
%i4 = icmp eq i32 %i3, -1
ret i1 %i4
}

View File

@ -209,3 +209,12 @@ define i1 @test22(i8 %x, i8 %y) {
%B = icmp ult i8 %A, 4 %B = icmp ult i8 %A, 4
ret i1 %B ret i1 %B
} }
; PR2740
; CHECK: @test23
; CHECK: icmp sgt i32 %x, 1328634634
define i1 @test23(i32 %x) nounwind {
%i3 = sdiv i32 %x, -1328634635
%i4 = icmp eq i32 %i3, -1
ret i1 %i4
}