merge two tests.
authorChris Lattner <sabre@nondot.org>
Wed, 9 Feb 2011 17:06:41 +0000 (17:06 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 9 Feb 2011 17:06:41 +0000 (17:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125195 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/InstCombine/div-cmp-overflow.ll [deleted file]
test/Transforms/InstCombine/icmp.ll

diff --git a/test/Transforms/InstCombine/div-cmp-overflow.ll b/test/Transforms/InstCombine/div-cmp-overflow.ll
deleted file mode 100644 (file)
index 6f63adc..0000000
+++ /dev/null
@@ -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
-}
index 8a0b8ff93b562f107cd8fddccb708c07865eb6fa..baff2cadded0bcad86b33f1c503fae2ced8a6029 100644 (file)
@@ -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
+}