aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/Thumb
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2011-10-10 18:27:30 +0000
committerBill Wendling <isanbard@gmail.com>2011-10-10 18:27:30 +0000
commiteba564ceace5861a321c230acf5df32e55ed9be5 (patch)
treeecdd801fd0ceb781da108e87096f5fdb834c83ff /test/CodeGen/Thumb
parent042aadd8ee1e532e7ef7b6c3d42bcc94e7a6f156 (diff)
Revert r141365. It was causing MultiSource/Benchmarks/MiBench/consumer-lame to
hang, and possibly SPEC/CINT2006/464_h264ref. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141560 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Thumb')
-rw-r--r--test/CodeGen/Thumb/iabs.ll11
1 files changed, 3 insertions, 8 deletions
diff --git a/test/CodeGen/Thumb/iabs.ll b/test/CodeGen/Thumb/iabs.ll
index d03b5b2e3b..d7cdcd8149 100644
--- a/test/CodeGen/Thumb/iabs.ll
+++ b/test/CodeGen/Thumb/iabs.ll
@@ -3,9 +3,9 @@
;; Integer absolute value, should produce something as good as:
;; Thumb:
-;; movs r0, r0
-;; bpl
-;; rsb r0, r0, #0 (with opitmization, bpl + rsb is if-converted into rsbmi)
+;; asr r2, r0, #31
+;; add r0, r0, r2
+;; eor r0, r2
;; bx lr
define i32 @test(i32 %a) {
@@ -13,10 +13,5 @@ define i32 @test(i32 %a) {
%b = icmp sgt i32 %a, -1
%abs = select i1 %b, i32 %a, i32 %tmp1neg
ret i32 %abs
-; CHECK: movs r0, r0
-; CHECK: bpl
-; CHECK: rsb r0, r0, #0
-; CHECK: bx lr
}
-