aboutsummaryrefslogtreecommitdiffstats
path: root/test/MC/ARM
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2011-07-14 22:04:21 +0000
committerJim Grosbach <grosbach@apple.com>2011-07-14 22:04:21 +0000
commit33c16a27370939de39679245c3dff72383c210bd (patch)
tree39d41946bb2e5e9fffa0ef5f8720a465a41b079d /test/MC/ARM
parent13123d94630494d5b1ac87472eb45de681549166 (diff)
downloadexternal_llvm-33c16a27370939de39679245c3dff72383c210bd.zip
external_llvm-33c16a27370939de39679245c3dff72383c210bd.tar.gz
external_llvm-33c16a27370939de39679245c3dff72383c210bd.tar.bz2
ARM diagnostic when 's' suffix on mnemonic that can't set flags.
For example, "mlss r0, r1, r2, r3". The MLS instruction does not have a flag-setting variant. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135203 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/ARM')
-rw-r--r--test/MC/ARM/diagnostics.s6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/MC/ARM/diagnostics.s b/test/MC/ARM/diagnostics.s
index 7a9d85e..4537a0f 100644
--- a/test/MC/ARM/diagnostics.s
+++ b/test/MC/ARM/diagnostics.s
@@ -3,6 +3,12 @@
@ Check for various assembly diagnostic messages on invalid input.
+@ 's' bit on an instruction that can't accept it.
+ mlss r1, r2, r3, r4
+@ CHECK-ERRORS: error: instruction 'mls' can not set flags,
+@ CHECK-ERRORS: but 's' suffix specified
+
+
@ Out of range shift immediate values.
adc r1, r2, r3, lsl #invalid
adc r4, r5, r6, lsl #-1