[Frontend] Remove unused includes (NFC) (#116927)
[llvm-project.git] / llvm / test / MC / AArch64 / SME / system-regs-diagnostics.s
blob669c9cace7f9e6e5bc8742ce5705282d662cab83
1 // RUN: not llvm-mc -triple aarch64 -mattr=+sme -show-encoding < %s 2>&1 | FileCheck %s
4 // --------------------------------------------------------------------------//
5 // Check read-only
7 msr ID_AA64SMFR0_EL1, x3
8 // CHECK: error: expected writable system register or pstate
9 // CHECK-NEXT: msr ID_AA64SMFR0_EL1, x3
11 msr SMIDR_EL1, x3
12 // CHECK: error: expected writable system register or pstate
13 // CHECK-NEXT: msr SMIDR_EL1, x3
15 // --------------------------------------------------------------------------//
16 // Check MSR SVCR immediate is in range [0, 1]
18 msr SVCRSM, #-1
19 // CHECK: error: immediate must be an integer in range [0, 1].
20 // CHECK-NEXT: msr SVCRSM, #-1
22 msr SVCRZA, #2
23 // CHECK: error: immediate must be an integer in range [0, 1].
24 // CHECK-NEXT: msr SVCRZA, #2
26 msr SVCRSMZA, #4
27 // CHECK: error: immediate must be an integer in range [0, 1].
28 // CHECK-NEXT: msr SVCRSMZA, #4