[llvm-commits] [llvm] r125195 - in /llvm/trunk/test/Transforms/InstCombine: div-cmp-overflow.ll icmp.ll

Chris Lattner sabre at nondot.org
Wed Feb 9 09:06:41 PST 2011


Author: lattner
Date: Wed Feb  9 11:06:41 2011
New Revision: 125195

URL: http://llvm.org/viewvc/llvm-project?rev=125195&view=rev
Log:
merge two tests.

Removed:
    llvm/trunk/test/Transforms/InstCombine/div-cmp-overflow.ll
Modified:
    llvm/trunk/test/Transforms/InstCombine/icmp.ll

Removed: llvm/trunk/test/Transforms/InstCombine/div-cmp-overflow.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/div-cmp-overflow.ll?rev=125194&view=auto
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/div-cmp-overflow.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/div-cmp-overflow.ll (removed)
@@ -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
-}

Modified: llvm/trunk/test/Transforms/InstCombine/icmp.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/icmp.ll?rev=125195&r1=125194&r2=125195&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/icmp.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/icmp.ll Wed Feb  9 11:06:41 2011
@@ -209,3 +209,12 @@
   %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
+}





More information about the llvm-commits mailing list