summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/InstSimplify/compare.ll
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2011-10-27 15:47:25 +0000
committerBob Wilson <bob.wilson@apple.com>2011-10-27 15:47:25 +0000
commit1455ce27e48db113215bf11ed19c30e7e5b19f95 (patch)
tree08f93ca1cdbe820dbcb30dba3a6a093cc0a23148 /llvm/test/Transforms/InstSimplify/compare.ll
parent9d415787abfbb58911d3d258ccf8e6a2ead8d296 (diff)
downloadbcm5719-llvm-1455ce27e48db113215bf11ed19c30e7e5b19f95.tar.gz
bcm5719-llvm-1455ce27e48db113215bf11ed19c30e7e5b19f95.zip
Revert Duncan's r143028 expression folding which appears to be the culprit
behind a compile failure on 483.xalancbmk. llvm-svn: 143102
Diffstat (limited to 'llvm/test/Transforms/InstSimplify/compare.ll')
-rw-r--r--llvm/test/Transforms/InstSimplify/compare.ll31
1 files changed, 0 insertions, 31 deletions
diff --git a/llvm/test/Transforms/InstSimplify/compare.ll b/llvm/test/Transforms/InstSimplify/compare.ll
index 3ece1189025..2cbd641a742 100644
--- a/llvm/test/Transforms/InstSimplify/compare.ll
+++ b/llvm/test/Transforms/InstSimplify/compare.ll
@@ -323,34 +323,3 @@ define i1 @and1(i32 %X) {
ret i1 %B
; CHECK: ret i1 false
}
-
-define i1 @mul1(i32 %X) {
-; CHECK: @mul1
-; Square of a non-zero number is non-zero if there is no overflow.
- %Y = or i32 %X, 1
- %M = mul nuw i32 %Y, %Y
- %C = icmp eq i32 %M, 0
- ret i1 %C
-; CHECK: ret i1 false
-}
-
-define i1 @mul2(i32 %X) {
-; CHECK: @mul2
-; Square of a non-zero number is positive if there is no signed overflow.
- %Y = or i32 %X, 1
- %M = mul nsw i32 %Y, %Y
- %C = icmp sgt i32 %M, 0
- ret i1 %C
-; CHECK: ret i1 true
-}
-
-define i1 @mul3(i32 %X, i32 %Y) {
-; CHECK: @mul3
-; Product of non-negative numbers is non-negative if there is no signed overflow.
- %XX = mul nsw i32 %X, %X
- %YY = mul nsw i32 %Y, %Y
- %M = mul nsw i32 %XX, %YY
- %C = icmp sge i32 %M, 0
- ret i1 %C
-; CHECK: ret i1 true
-}
OpenPOWER on IntegriCloud