diff options
author | Jim Grosbach <grosbach@apple.com> | 2011-07-19 19:13:28 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2011-07-19 19:13:28 +0000 |
commit | ffa3225e26cc1977d20f0d9649fcd6f38a3c4815 (patch) | |
tree | 7b83654a0b53c5d927f8cac24d17cfb4882b79bf /test/MC/ARM/diagnostics.s | |
parent | 0ec2aa21d0286339961a5c331ca289751ab1396c (diff) | |
download | llvm-ffa3225e26cc1977d20f0d9649fcd6f38a3c4815.tar.gz llvm-ffa3225e26cc1977d20f0d9649fcd6f38a3c4815.tar.bz2 llvm-ffa3225e26cc1977d20f0d9649fcd6f38a3c4815.tar.xz |
ARM assembly parsing for MOV (immediate).
Add range checking for the immediate operand and handle the "mov" mnemonic
choosing between encodings based on the value of the immediate. Add tests
for fixups, encoding choice and values, and diagnostic for out of range values.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135500 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/ARM/diagnostics.s')
-rw-r--r-- | test/MC/ARM/diagnostics.s | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/MC/ARM/diagnostics.s b/test/MC/ARM/diagnostics.s index 4537a0ff6d..1ae41ebb6c 100644 --- a/test/MC/ARM/diagnostics.s +++ b/test/MC/ARM/diagnostics.s @@ -88,3 +88,8 @@ @ CHECK-ERRORS: error: invalid operand for instruction @ CHECK-ERRORS: error: invalid operand for instruction @ CHECK-ERRORS: error: invalid operand for instruction + + + @ Out of range immediate for MOV + movw r9, 0x10000 +@ CHECK-ERRORS: error: invalid operand for instruction |