[libc][test] fix memory leak pt.2 (#122384)
[llvm-project.git] / llvm / test / MC / AArch64 / directive-arch-negative.s
blob4c17c5609712036211bfa06d54f9d79cbae1da4f
1 // RUN: not llvm-mc -triple aarch64 -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 .arch armv8+foo+nobar
16 aese v0.8h, v1.8h
18 # CHECK: error: unsupported architectural extension: foo
19 # CHECK-NEXT: .arch armv8+foo+nobar
20 # CHECK-NEXT: ^
22 # CHECK: error: invalid operand for instruction
23 # CHECK-NEXT: aese v0.8h, v1.8h
24 # CHECK-NEXT: ^
26 .arch armv8+crypto
28 .arch armv8
30 aese v0.8h, v1.8h
32 # CHECK: error: invalid operand for instruction
33 # CHECK-NEXT: aese v0.8h, v1.8h
34 # CHECK-NEXT: ^
36 .arch armv8.1-a+noras
37 esb
39 # CHECK: error: instruction requires: ras
40 # CHECK-NEXT: esb
42 .arch armv8
43 casa w5, w7, [x19]
45 # CHECK: error: instruction requires: lse
46 # CHECK-NEXT: casa w5, w7, [x19]
48 .arch armv8+crypto
49 crc32b w0, w1, w2
51 # CHECK: error: instruction requires: crc
52 # CHECK-NEXT: crc32b w0, w1, w2
54 .arch armv8.1-a+nolse
55 casa w5, w7, [x20]
57 # CHECK: error: instruction requires: lse
58 # CHECK-NEXT: casa w5, w7, [x20]
60 .arch arm9.6-a-nocmpbr
61 cbhi x5, x5, #1020
62 # CHECK: error: instruction requires: cmpbr
63 # CHECK-NEXT: cbhi x5, x5, #1020
65 .arch armv9.6.-a+nofprcvt
66 scvtf d1, s2
68 # CHECK: error: instruction requires: fprcvt
69 # CHECK-NEXT: scvtf d1, s2
71 .arch armv9.6.-a+nof8f16mm
72 fmmla v0.8h, v1.16b, v2.16b
74 # CHECK: error: instruction requires: f8f16mm
75 # CHECK-NEXT: fmmla v0.8h, v1.16b, v2.16b
77 .arch armv9.6.-a+nof8f32mm
78 fmmla v0.4s, v1.16b, v2.16b
80 # CHECK: error: instruction requires: f8f32mm
81 # CHECK-NEXT: fmmla v0.4s, v1.16b, v2.16b