From eba564ceace5861a321c230acf5df32e55ed9be5 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Mon, 10 Oct 2011 18:27:30 +0000 Subject: 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 --- test/CodeGen/Thumb/iabs.ll | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'test/CodeGen/Thumb') 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 } - -- cgit v1.2.3-18-g5258