1// RUN: not llvm-mc -triple aarch64 -filetype asm -o - %s 2>&1 | FileCheck %s 2 3.arch_extension sve2 4.arch_extension nosve2 5tbx z0.b, z1.b, z2.b 6// CHECK: error: instruction requires: sve2 or sme 7// CHECK-NEXT: tbx z0.b, z1.b, z2.b 8 9.arch_extension sve-aes 10.arch_extension nosve-aes 11aesd z23.b, z23.b, z13.b 12// CHECK: error: instruction requires: sve2 or ssve-aes sve-aes 13// CHECK-NEXT: aesd z23.b, z23.b, z13.b 14 15// nosve2-aes should disable sve-aes but not sve2. 16.arch_extension sve2-aes 17.arch_extension nosve2-aes 18aesd z23.b, z23.b, z13.b 19// CHECK: error: instruction requires: sve-aes 20// CHECK-NEXT: aesd z23.b, z23.b, z13.b 21 22.arch_extension sve2-sm4 23.arch_extension nosve2-sm4 24sm4e z0.s, z0.s, z0.s 25// CHECK: error: instruction requires: sve2-sm4 26// CHECK-NEXT: sm4e z0.s, z0.s, z0.s 27 28.arch_extension sve2-sha3 29.arch_extension nosve2-sha3 30rax1 z0.d, z0.d, z0.d 31// CHECK: error: instruction requires: sve2-sha3 32// CHECK-NEXT: rax1 z0.d, z0.d, z0.d 33 34.arch_extension sve2-bitperm 35.arch_extension nosve2-bitperm 36bgrp z21.s, z10.s, z21.s 37// CHECK: error: instruction requires: sve2 or ssve-bitperm sve-bitperm 38// CHECK-NEXT: bgrp z21.s, z10.s, z21.s 39 40.arch_extension sve2-bitperm 41.arch_extension nosve2 42bgrp z21.s, z10.s, z21.s 43// CHECK: error: instruction requires: sve2 or ssve-bitperm 44// CHECK-NEXT: bgrp z21.s, z10.s, z21.s 45 46.arch_extension f8f16mm 47.arch_extension nof8f16mm 48fmmla z23.h, z13.b, z8.b 49// CHECK: error: instruction requires: f8f16mm 50// CHECK-NEXT: fmmla z23.h, z13.b, z8.b 51 52.arch_extension f8f32mm 53.arch_extension nof8f32mm 54fmmla z23.s, z13.b, z8.b 55// CHECK: error: instruction requires: f8f32mm 56// CHECK-NEXT: fmmla z23.s, z13.b, z8.b 57 58.arch_extension sve-f16f32mm 59.arch_extension nosve-f16f32mm 60fmmla z23.s, z13.h, z8.h 61// CHECK: error: instruction requires: sve-f16f32mm 62// CHECK-NEXT: fmmla z23.s, z13.h, z8.h 63 64.arch_extension sve-bfscale 65.arch_extension nosve-bfscale 66bfscale z0.h, p0/m, z0.h, z0.h 67// CHECK: error: instruction requires: sve-bfscale 68// CHECK-NEXT: bfscale z0.h, p0/m, z0.h, z0.h 69