[libc][test] fix memory leak pt.2 (#122384)
[llvm-project.git] / llvm / test / MC / AArch64 / armv8.8a-nmi-error.s
blobd8689186fb27a6f8c1d2996e1c48b2474b9fe5c1
1 // RUN: not llvm-mc -triple aarch64 -show-encoding -mattr=+nmi < %s 2>&1 | FileCheck %s
2 // RUN: not llvm-mc -triple aarch64 -show-encoding -mattr=+v8.8a < %s 2>&1 | FileCheck %s
3 // RUN: not llvm-mc -triple aarch64 -show-encoding < %s 2>&1 | FileCheck %s --check-prefix=NO_NMI
4 // RUN: not llvm-mc -triple aarch64 -show-encoding -mattr=-nmi < %s 2>&1 | FileCheck %s --check-prefix=NO_NMI
6 msr ALLINT, #1
7 msr ALLINT, #2
8 msr ALLINT, x3
9 mrs x2, ALLINT
10 mrs x11, icc_nmiar1_el1
11 msr icc_nmiar1_el1, x12
13 // CHECK: error: immediate must be an integer in range [0, 1].
14 // CHECK-NEXT: msr ALLINT, #2
15 // CHECK-NEXT: ^
16 // CHECK-NEXT: error: expected writable system register or pstate
17 // CHECK-NEXT: msr icc_nmiar1_el1, x12
18 // CHECK-NEXT: ^
20 // NO_NMI: error: expected writable system register or pstate
21 // NO_NMI-NEXT: msr {{allint|ALLINT}}, #1
22 // NO_NMI-NEXT: ^
23 // NO_NMI-NEXT: error: expected writable system register or pstate
24 // NO_NMI-NEXT: msr {{allint|ALLINT}}, #2
25 // NO_NMI-NEXT: ^
26 // NO_NMI-NEXT: error: expected writable system register or pstate
27 // NO_NMI-NEXT: msr {{allint|ALLINT}}, x3
28 // NO_NMI-NEXT: ^
29 // NO_NMI-NEXT: error: expected readable system register
30 // NO_NMI-NEXT: mrs x2, {{allint|ALLINT}}
31 // NO_NMI-NEXT: ^
32 // NO_NMI-NEXT: error: expected readable system register
33 // NO_NMI-NEXT: mrs x11, {{icc_nmiar1_el1|ICC_NMIAR1_EL1}}
34 // NO_NMI-NEXT: ^
35 // NO_NMI-NEXT: error: expected writable system register or pstate
36 // NO_NMI-NEXT: msr {{icc_nmiar1_el1|ICC_NMIAR1_EL1}}, x12