summaryrefslogtreecommitdiff
path: root/test/MC
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2011-12-13 22:45:11 +0000
committerJim Grosbach <grosbach@apple.com>2011-12-13 22:45:11 +0000
commit863d2af9477e331955a9bee8be1969ce658b59b5 (patch)
tree5e198c5fed1acfb0b9f6fe922e2efcd1ff9c5c06 /test/MC
parent27debd60a152d39e421c57bce511f16d8439a670 (diff)
downloadllvm-863d2af9477e331955a9bee8be1969ce658b59b5.tar.gz
llvm-863d2af9477e331955a9bee8be1969ce658b59b5.tar.bz2
llvm-863d2af9477e331955a9bee8be1969ce658b59b5.tar.xz
Thumb2 assembler aliases for "mov(shifted register)"
rdar://10549767 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146520 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC')
-rw-r--r--test/MC/ARM/basic-thumb2-instructions.s12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/MC/ARM/basic-thumb2-instructions.s b/test/MC/ARM/basic-thumb2-instructions.s
index 9577ea6b05..028e17bdc9 100644
--- a/test/MC/ARM/basic-thumb2-instructions.s
+++ b/test/MC/ARM/basic-thumb2-instructions.s
@@ -1147,6 +1147,18 @@ _func:
@ CHECK: mvn r3, #2 @ encoding: [0x6f,0xf0,0x02,0x03]
+@------------------------------------------------------------------------------
+@ MOV(shifted register)
+@------------------------------------------------------------------------------
+ mov r6, r2, lsl #16
+ mov r6, r2, lsr #16
+ movs r6, r2, asr #32
+ movs r6, r2, ror #5
+
+@ CHECK: lsl.w r6, r2, #16 @ encoding: [0x4f,0xea,0x02,0x46]
+@ CHECK: lsr.w r6, r2, #16 @ encoding: [0x4f,0xea,0x12,0x46]
+@ CHECK: asrs r6, r2, #32 @ encoding: [0x16,0x10]
+@ CHECK: rors.w r6, r2, #5 @ encoding: [0x5f,0xea,0x72,0x16]
@------------------------------------------------------------------------------