diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-01-12 05:25:44 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-01-12 05:25:44 +0000 |
commit | 3d83eb48ac55f20e16997e210a59486f3717402a (patch) | |
tree | cf2d990e832f9e65674def9cd3e1658d0c57b627 /test | |
parent | fcb6800dd4f28ccf0ca37f228b65f8c7a7f4bd08 (diff) | |
download | llvm-3d83eb48ac55f20e16997e210a59486f3717402a.tar.gz llvm-3d83eb48ac55f20e16997e210a59486f3717402a.tar.bz2 llvm-3d83eb48ac55f20e16997e210a59486f3717402a.tar.xz |
ARM IAS: fix diagnostics of improper qualification
An improper qualifier would result in a superfluous error due to the parser not
consuming the remainder of the statement. Simply consume the remainder of the
statement to avoid the error.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199035 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/MC/ARM/arm-qualifier-diagnostics.s | 15 |
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 0000000000..8b75eee5de --- /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: ^ + |