ARM IAS: support .inst directive
[oota-llvm.git] / test / MC / ARM / inst-thumb-overflow.s
diff --git a/test/MC/ARM/inst-thumb-overflow.s b/test/MC/ARM/inst-thumb-overflow.s
new file mode 100644 (file)
index 0000000..34626f9
--- /dev/null
@@ -0,0 +1,13 @@
+@ RUN: not llvm-mc %s -triple armv7-linux-gnueabi -filetype asm -o - 2>&1 \
+@ RUN:   | FileCheck -check-prefix CHECK-ERROR %s
+
+       .syntax unified
+       .thumb
+
+       .align 2
+       .global constant_overflow
+       .type constant_overflow,%function
+constant_overflow:
+       .inst.n 1 << 31
+@ CHECK-ERROR: inst.n operand is too big, use inst.w instead
+