aboutsummaryrefslogtreecommitdiffstats
path: root/test/MC
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2012-03-30 16:31:31 +0000
committerJim Grosbach <grosbach@apple.com>2012-03-30 16:31:31 +0000
commitc0164f86080bc9d7a41fd5eabd0d6556396f5b38 (patch)
tree31f1be052ec45637f1f5e190fbd7b12f0a0a17dc /test/MC
parent7c7121edb9d3560cdc0b57f20212176c0697ec51 (diff)
downloadexternal_llvm-c0164f86080bc9d7a41fd5eabd0d6556396f5b38.zip
external_llvm-c0164f86080bc9d7a41fd5eabd0d6556396f5b38.tar.gz
external_llvm-c0164f86080bc9d7a41fd5eabd0d6556396f5b38.tar.bz2
ARM assembly parsing needs to be paranoid about negative immediates.
Make sure to treat immediates as unsigned when doing relative comparisons. rdar://11153621 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153753 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC')
-rw-r--r--test/MC/ARM/basic-thumb2-instructions.s5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/MC/ARM/basic-thumb2-instructions.s b/test/MC/ARM/basic-thumb2-instructions.s
index ce97ca6..0cbaae4 100644
--- a/test/MC/ARM/basic-thumb2-instructions.s
+++ b/test/MC/ARM/basic-thumb2-instructions.s
@@ -1130,6 +1130,8 @@ _func:
moveq r1, #12
movne.w r1, #12
mov.w r6, #450
+ it lo
+ movlo r1, #-1
@ alias for mvn
mov r3, #-3
@@ -1149,7 +1151,8 @@ _func:
@ CHECK: moveq r1, #12 @ encoding: [0x0c,0x21]
@ CHECK: movne.w r1, #12 @ encoding: [0x4f,0xf0,0x0c,0x01]
@ CHECK: mov.w r6, #450 @ encoding: [0x4f,0xf4,0xe1,0x76]
-
+@ CHECK: it lo @ encoding: [0x38,0xbf]
+@ CHECK: movlo.w r1, #-1 @ encoding: [0x4f,0xf0,0xff,0x31]
@ CHECK: mvn r3, #2 @ encoding: [0x6f,0xf0,0x02,0x03]
@------------------------------------------------------------------------------