summaryrefslogtreecommitdiff
path: root/test/MC
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2011-10-28 22:36:30 +0000
committerJim Grosbach <grosbach@apple.com>2011-10-28 22:36:30 +0000
commit89a633708542de5847e807f98f86edfefc9fc019 (patch)
treefe302d4a900bb7bd0106a7571975841f27455d0f /test/MC
parent48c1f84b104fd32109d809a56f5ebbf461c0910c (diff)
downloadllvm-89a633708542de5847e807f98f86edfefc9fc019.tar.gz
llvm-89a633708542de5847e807f98f86edfefc9fc019.tar.bz2
llvm-89a633708542de5847e807f98f86edfefc9fc019.tar.xz
Add Thumb2 alias for "mov Rd, #imm" to "mvn Rd, #~imm".
When '~imm' is encodable as a t2_so_imm but plain 'imm' is not. For example, mov r2, #-3 becomes mvn r2, #2 rdar://10349224 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143235 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC')
-rw-r--r--test/MC/ARM/basic-thumb2-instructions.s7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/MC/ARM/basic-thumb2-instructions.s b/test/MC/ARM/basic-thumb2-instructions.s
index 0a183e9f5a..b9205a357c 100644
--- a/test/MC/ARM/basic-thumb2-instructions.s
+++ b/test/MC/ARM/basic-thumb2-instructions.s
@@ -1118,6 +1118,10 @@ _func:
movne.w r1, #12
mov.w r6, #450
+ @ alias for mvn
+ mov r3, #-3
+
+
@ CHECK: movs r1, #21 @ encoding: [0x15,0x21]
@ CHECK: movs.w r1, #21 @ encoding: [0x5f,0xf0,0x15,0x01]
@ CHECK: movs.w r8, #21 @ encoding: [0x5f,0xf0,0x15,0x08]
@@ -1133,6 +1137,9 @@ _func:
@ CHECK: movne.w r1, #12 @ encoding: [0x4f,0xf0,0x0c,0x01]
@ CHECK: mov.w r6, #450 @ encoding: [0x4f,0xf4,0xe1,0x76]
+@ CHECK: mvn r3, #2 @ encoding: [0x6f,0xf0,0x02,0x03]
+
+
@------------------------------------------------------------------------------
@ MOVT