MC: Move MCSymbolData to MCSymbol.h, NFC
[oota-llvm.git] / test / MC / ARM / thumb2-diagnostics.s
index bb96db05b92982b82f231bc0c47a5a5aef5b99d3..8fd161c2cc5396fb8c3e6b0cd346185653ad51b3 100644 (file)
@@ -81,3 +81,13 @@ foo2:
 @ CHECK-ERRORS:                  ^
 @ CHECK-ERRORS: error: immediate expression for mov requires :lower16: or :upper16
 @ CHECK-ERRORS:                  ^
+
+        and sp, r1, #80008000
+        and pc, r1, #80008000
+@ CHECK-ERRORS: error: invalid operand for instruction
+@ CHECK-ERRORS: error: invalid operand for instruction
+
+ssat r0, #1, r0, asr #32
+usat r0, #1, r0, asr #32
+@ CHECK-ERRORS: error: 'asr #32' shift amount not allowed in Thumb mode
+@ CHECK-ERRORS: error: 'asr #32' shift amount not allowed in Thumb mode