Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / AArch64 / armv8.3a-diagnostics.s
blob178a64266f26e857a1f6476c4f0923f027db993f
1 // RUN: not llvm-mc -triple aarch64-none-linux-gnu -mattr=+v8.3a < %s 2> %t
2 // RUN: FileCheck %s < %t
4 msr ID_ISAR6_EL1, x0
5 // CHECK: error: expected writable system register or pstate
6 // CHECK-NEXT: msr ID_ISAR6_EL1, x0
7 // CHECK-NEXT: ^
9 ldraa x0, [x1, 4089]
10 // CHECK: error: index must be a multiple of 8 in range [-4096, 4088].
11 ldraa x0, [x1, -4097]
12 // CHECK: error: index must be a multiple of 8 in range [-4096, 4088].
13 ldraa x0, [x1, 4086]
14 // CHECK: error: index must be a multiple of 8 in range [-4096, 4088].
15 ldrab x0, [x1, 4089]
16 // CHECK: error: index must be a multiple of 8 in range [-4096, 4088].
17 ldrab x0, [x1, -4097]
18 // CHECK: error: index must be a multiple of 8 in range [-4096, 4088].
19 ldrab x0, [x1, 4086]
20 // CHECK: error: index must be a multiple of 8 in range [-4096, 4088].
21 ldraa x0, [x0, -4096]!
22 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: unpredictable LDRA instruction, writeback base is also a destination
23 ldrab x0, [x0, -4096]!
24 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: unpredictable LDRA instruction, writeback base is also a destination
25 ldraa xzr, [xzr, -4096]!
26 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
27 ldraa sp, [sp, -4096]!
28 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
29 ldrab xzr, [xzr, -4096]!
30 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
31 ldrab sp, [sp, -4096]!
32 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction