[llvm-commits] [llvm] r135471 - /llvm/trunk/test/Transforms/InstSimplify/compare.ll
Nick Lewycky
nicholas at mxc.ca
Tue Jul 19 01:22:57 PDT 2011
Author: nicholas
Date: Tue Jul 19 03:22:57 2011
New Revision: 135471
URL: http://llvm.org/viewvc/llvm-project?rev=135471&view=rev
Log:
Remove bogus test: for all possible inputs of %X, the 'sub nsw' is guaranteed
to perform a signed wrap. Don't rely on any particular handling of that case.
Modified:
llvm/trunk/test/Transforms/InstSimplify/compare.ll
Modified: llvm/trunk/test/Transforms/InstSimplify/compare.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstSimplify/compare.ll?rev=135471&r1=135470&r2=135471&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstSimplify/compare.ll (original)
+++ llvm/trunk/test/Transforms/InstSimplify/compare.ll Tue Jul 19 03:22:57 2011
@@ -283,17 +283,6 @@
ret i1 %E
}
-; CHECK: @srem4
-; CHECK-NEXT: ret i1 false
-define i1 @srem4(i16 %X, i32 %Y) {
- %A = zext i16 %X to i32
- %B = or i32 2147483648, %A
- %C = sub nsw i32 %A, %B
- %D = srem i32 %C, %Y
- %E = icmp slt i32 %D, 0
- ret i1 %E
-}
-
define i1 @udiv1(i32 %X) {
; CHECK: @udiv1
%A = udiv i32 %X, 1000000
More information about the llvm-commits
mailing list