summaryrefslogtreecommitdiff
path: root/test/CodeGen/Thumb2
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2012-07-02 17:22:47 +0000
committerBob Wilson <bob.wilson@apple.com>2012-07-02 17:22:47 +0000
commitac03af4ea9f6a33164dbb5a0bc59ccc738939a4c (patch)
tree07062d9cf18c665251f858b3eca55e9ec5ea2d5e /test/CodeGen/Thumb2
parent4ccb89c71fdc3d33681e292f42e49d8527cb9d7f (diff)
downloadllvm-ac03af4ea9f6a33164dbb5a0bc59ccc738939a4c.tar.gz
llvm-ac03af4ea9f6a33164dbb5a0bc59ccc738939a4c.tar.bz2
llvm-ac03af4ea9f6a33164dbb5a0bc59ccc738939a4c.tar.xz
Do not attempt to use ROR for Thumb1.
Patch by Matt Fischer! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159538 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Thumb2')
-rw-r--r--test/CodeGen/Thumb2/thumb2-ror.ll6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/CodeGen/Thumb2/thumb2-ror.ll b/test/CodeGen/Thumb2/thumb2-ror.ll
index 590c333b3d..5ad92cd729 100644
--- a/test/CodeGen/Thumb2/thumb2-ror.ll
+++ b/test/CodeGen/Thumb2/thumb2-ror.ll
@@ -1,5 +1,5 @@
; RUN: llc < %s -march=thumb -mattr=+thumb2 | FileCheck %s
-
+; RUN: llc < %s -march=thumb | FileCheck %s -check-prefix=THUMB1
; CHECK: f1:
; CHECK: ror.w r0, r0, #22
@@ -13,6 +13,8 @@ define i32 @f1(i32 %a) {
; CHECK: f2:
; CHECK-NOT: and
; CHECK: ror
+; THUMB1: f2
+; THUMB1: and
define i32 @f2(i32 %v, i32 %nbits) {
entry:
%and = and i32 %nbits, 31
@@ -21,4 +23,4 @@ entry:
%shl = shl i32 %v, %sub
%or = or i32 %shl, %shr
ret i32 %or
-} \ No newline at end of file
+}