[ARM] Better OR's for MVE compares
[llvm-core.git] / test / MC / AArch64 / directive-arch-negative.s
blob29df7510b700e37eb2f9054120753f148a39d2fa
1 // RUN: not llvm-mc -triple aarch64-unknown-none-eabi -filetype asm -o - %s 2>&1 | FileCheck %s
3 .arch axp64
4 # CHECK: error: unknown arch name
5 # CHECK-NEXT: .arch axp64
6 # CHECK-NEXT: ^
8 .arch armv8
9 aese v0.8h, v1.8h
11 # CHECK: error: invalid operand for instruction
12 # CHECK-NEXT: aese v0.8h, v1.8h
13 # CHECK-NEXT: ^
15 // We silently ignore invalid features.
16 .arch armv8+foo
17 aese v0.8h, v1.8h
19 # CHECK: error: invalid operand for instruction
20 # CHECK-NEXT: aese v0.8h, v1.8h
21 # CHECK-NEXT: ^
23 .arch armv8+crypto
25 .arch armv8
27 aese v0.8h, v1.8h
29 # CHECK: error: invalid operand for instruction
30 # CHECK-NEXT: aese v0.8h, v1.8h
31 # CHECK-NEXT: ^
33 .arch armv8.1-a+noras
34 esb
36 # CHECK: error: instruction requires: ras
37 # CHECK-NEXT: esb
39 // PR32873: without extra features, '.arch' is currently ignored.
40 // Add an unrelated feature to accept the directive.
41 .arch armv8+crc
42 casa w5, w7, [x19]
44 # CHECK: error: instruction requires: lse
45 # CHECK-NEXT: casa w5, w7, [x19]
47 .arch armv8+crypto
48 crc32b w0, w1, w2
50 # CHECK: error: instruction requires: crc
51 # CHECK-NEXT: crc32b w0, w1, w2
53 .arch armv8.1-a+nolse
54 casa w5, w7, [x20]
56 # CHECK: error: instruction requires: lse
57 # CHECK-NEXT: casa w5, w7, [x20]