summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2011-09-14 19:15:15 +0000
committerJim Grosbach <grosbach@apple.com>2011-09-14 19:15:15 +0000
commit95be01a56905d15f42ca47b793c1af8a5638c89e (patch)
tree0bba7cdc21f5d0b9d8962d63752c61a324cdaa0f /test
parentc2d3164ab467bdfa8508b93177e69b99626cd8e2 (diff)
downloadllvm-95be01a56905d15f42ca47b793c1af8a5638c89e.tar.gz
llvm-95be01a56905d15f42ca47b793c1af8a5638c89e.tar.bz2
llvm-95be01a56905d15f42ca47b793c1af8a5638c89e.tar.xz
Thumb2 assembly parsing and encoding for MOVT.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139715 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/MC/ARM/basic-thumb2-instructions.s13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/MC/ARM/basic-thumb2-instructions.s b/test/MC/ARM/basic-thumb2-instructions.s
index adedabd864..f9d7f11e36 100644
--- a/test/MC/ARM/basic-thumb2-instructions.s
+++ b/test/MC/ARM/basic-thumb2-instructions.s
@@ -1029,6 +1029,19 @@ _func:
@ CHECK: movne.w r1, #12 @ encoding: [0x4f,0xf0,0x0c,0x01]
+@------------------------------------------------------------------------------
+@ MOVT
+@------------------------------------------------------------------------------
+ movt r3, #7
+ movt r6, #0xffff
+ it eq
+ movteq r4, #0xff0
+
+@ CHECK: movt r3, #7 @ encoding: [0xc0,0xf2,0x07,0x03]
+@ CHECK: movt r6, #65535 @ encoding: [0xcf,0xf6,0xff,0x76]
+@ CHECK: it eq @ encoding: [0x08,0xbf]
+@ CHECK: movteq r4, #4080 @ encoding: [0xc0,0xf6,0xf0,0x74]
+
@------------------------------------------------------------------------------
@ IT