summaryrefslogtreecommitdiff
path: root/test/Transforms/InstCombine/icmp.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-02-09 17:06:41 +0000
committerChris Lattner <sabre@nondot.org>2011-02-09 17:06:41 +0000
commit6bfd77e3158b10861c76529492eae24a573390a8 (patch)
tree77de98d51609cc4c1514d8a9a854d4bb4c5b4c23 /test/Transforms/InstCombine/icmp.ll
parentaeaf3d484b4d4c35e8794378c4b6cfbbde718dd1 (diff)
downloadllvm-6bfd77e3158b10861c76529492eae24a573390a8.tar.gz
llvm-6bfd77e3158b10861c76529492eae24a573390a8.tar.bz2
llvm-6bfd77e3158b10861c76529492eae24a573390a8.tar.xz
merge two tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125195 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/InstCombine/icmp.ll')
-rw-r--r--test/Transforms/InstCombine/icmp.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/icmp.ll b/test/Transforms/InstCombine/icmp.ll
index 8a0b8ff93b..baff2cadde 100644
--- a/test/Transforms/InstCombine/icmp.ll
+++ b/test/Transforms/InstCombine/icmp.ll
@@ -209,3 +209,12 @@ define i1 @test22(i8 %x, i8 %y) {
%B = icmp ult i8 %A, 4
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
+}