aboutsummaryrefslogtreecommitdiffstats
path: root/test/MC/ARM/arm-qualifier-diagnostics.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/MC/ARM/arm-qualifier-diagnostics.s')
-rw-r--r--test/MC/ARM/arm-qualifier-diagnostics.s15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/MC/ARM/arm-qualifier-diagnostics.s b/test/MC/ARM/arm-qualifier-diagnostics.s
new file mode 100644
index 0000000..8b75eee
--- /dev/null
+++ b/test/MC/ARM/arm-qualifier-diagnostics.s
@@ -0,0 +1,15 @@
+@ RUN: not llvm-mc -triple armv7-eabi -filetype asm -o - %s 2>&1 | FileCheck %s
+
+ .syntax unified
+
+ .type function,%function
+function:
+ ldr.n r0, [r0]
+
+@ CHECK: error: instruction with .n (narrow) qualifier not allowed in arm mode
+@ CHECK: ldr.n r0, [r0]
+@ CHECK: ^
+@ CHECK-NOT: error: unexpected token in operand
+@ CHECK-NOT: ldr.n r0, [r0]
+@ CHECK-NOT: ^
+