summaryrefslogtreecommitdiff
path: root/test/CodeGen/ARM/sub-cmp-peephole.ll
diff options
context:
space:
mode:
authorManman Ren <mren@apple.com>2012-05-10 18:49:43 +0000
committerManman Ren <mren@apple.com>2012-05-10 18:49:43 +0000
commitfe65d98dadbedf2650266ac71c1c093c3b97da1f (patch)
tree1f7ee3f36ed9a16840ef1f2831449a5c6fa6684d /test/CodeGen/ARM/sub-cmp-peephole.ll
parent148f392195dec8772ab4c5ac0d0c3b85fba0e5f8 (diff)
downloadllvm-fe65d98dadbedf2650266ac71c1c093c3b97da1f.tar.gz
llvm-fe65d98dadbedf2650266ac71c1c093c3b97da1f.tar.bz2
llvm-fe65d98dadbedf2650266ac71c1c093c3b97da1f.tar.xz
Revert: 156550 "ARM: peephole optimization to remove cmp instruction"
This commit broke an external linux bot and gave a compile-time warning. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156556 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/ARM/sub-cmp-peephole.ll')
-rw-r--r--test/CodeGen/ARM/sub-cmp-peephole.ll34
1 files changed, 0 insertions, 34 deletions
diff --git a/test/CodeGen/ARM/sub-cmp-peephole.ll b/test/CodeGen/ARM/sub-cmp-peephole.ll
deleted file mode 100644
index b3a9dc5124..0000000000
--- a/test/CodeGen/ARM/sub-cmp-peephole.ll
+++ /dev/null
@@ -1,34 +0,0 @@
-; RUN: llc < %s -march=arm | FileCheck %s
-
-define i32 @f(i32 %a, i32 %b) nounwind ssp {
-entry:
-; CHECK: _f:
-; CHECK: subs
-; CHECK-NOT: cmp
- %cmp = icmp sgt i32 %a, %b
- %sub = sub nsw i32 %a, %b
- %sub. = select i1 %cmp, i32 %sub, i32 0
- ret i32 %sub.
-}
-
-define i32 @g(i32 %a, i32 %b) nounwind ssp {
-entry:
-; CHECK: _g:
-; CHECK: subs
-; CHECK-NOT: cmp
- %cmp = icmp slt i32 %a, %b
- %sub = sub nsw i32 %b, %a
- %sub. = select i1 %cmp, i32 %sub, i32 0
- ret i32 %sub.
-}
-
-define i32 @h(i32 %a, i32 %b) nounwind ssp {
-entry:
-; CHECK: _h:
-; CHECK: subs
-; CHECK-NOT: cmp
- %cmp = icmp sgt i32 %a, 3
- %sub = sub nsw i32 %a, 3
- %sub. = select i1 %cmp, i32 %sub, i32 %b
- ret i32 %sub.
-}