diff options
author | Jim Grosbach <grosbach@apple.com> | 2011-07-19 20:10:31 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2011-07-19 20:10:31 +0000 |
commit | 5f16057d1e4b711d492091bc555693a03d4a1b6e (patch) | |
tree | 036113f3c2ba0b00e6376b4b915aaae955737d6e /test/MC/ARM/diagnostics.s | |
parent | 558b66d3cd536cfba11e295816a15ea6476fcd16 (diff) | |
download | llvm-5f16057d1e4b711d492091bc555693a03d4a1b6e.tar.gz llvm-5f16057d1e4b711d492091bc555693a03d4a1b6e.tar.bz2 llvm-5f16057d1e4b711d492091bc555693a03d4a1b6e.tar.xz |
ARM assembly parsing for MOV (register).
Correct the handling of the 's' suffix when parsing ARM mode. It's only a
truly separate opcode in Thumb. Add test cases to make sure we handle
the s and condition suffices correctly, including diagnostics.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135513 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/ARM/diagnostics.s')
-rw-r--r-- | test/MC/ARM/diagnostics.s | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/MC/ARM/diagnostics.s b/test/MC/ARM/diagnostics.s index 1ae41ebb6c..08c982e182 100644 --- a/test/MC/ARM/diagnostics.s +++ b/test/MC/ARM/diagnostics.s @@ -93,3 +93,9 @@ @ Out of range immediate for MOV movw r9, 0x10000 @ CHECK-ERRORS: error: invalid operand for instruction + + @ Invalid 's' bit usage for MOVW + movs r6, #0xffff + movwseq r9, #0xffff +@ CHECK-ERRORS: error: invalid operand for instruction +@ CHECK-ERRORS: error: instruction 'movw' can not set flags, but 's' suffix specified |