1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00
llvm-mirror/test/MC/ARM/arm-qualifier-diagnostics.s
Saleem Abdulrasool c74b8ca814 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.

llvm-svn: 199035
2014-01-12 05:25:44 +00:00

16 lines
381 B
ArmAsm

@ 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: ^