xref: /aosp_15_r20/external/llvm/test/MC/ARM/arm-qualifier-diagnostics.s (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker@ RUN: not llvm-mc -triple armv7-eabi -filetype asm -o - %s 2>&1 | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Worker	.syntax unified
4*9880d681SAndroid Build Coastguard Worker
5*9880d681SAndroid Build Coastguard Worker	.type function,%function
6*9880d681SAndroid Build Coastguard Workerfunction:
7*9880d681SAndroid Build Coastguard Worker	ldr.n r0, [r0]
8*9880d681SAndroid Build Coastguard Worker
9*9880d681SAndroid Build Coastguard Worker@ CHECK: error: instruction with .n (narrow) qualifier not allowed in arm mode
10*9880d681SAndroid Build Coastguard Worker@ CHECK: 	ldr.n r0, [r0]
11*9880d681SAndroid Build Coastguard Worker@ CHECK:           ^
12*9880d681SAndroid Build Coastguard Worker@ CHECK-NOT: error: unexpected token in operand
13*9880d681SAndroid Build Coastguard Worker@ CHECK-NOT: 	ldr.n r0, [r0]
14*9880d681SAndroid Build Coastguard Worker@ CHECK-NOT:            ^
15*9880d681SAndroid Build Coastguard Worker
16