Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / AArch64 / gicv3-regs-diagnostics.s
blobbcf00b985f6c6bcc50abd48e20137b6fa042e8a7
1 // RUN: not llvm-mc -triple aarch64-none-linux-gnu < %s 2>&1 | FileCheck %s
3 // Write-only
4 mrs x10, icc_eoir1_el1
5 mrs x7, icc_eoir0_el1
6 mrs x22, icc_dir_el1
7 mrs x24, icc_sgi1r_el1
8 mrs x8, icc_asgi1r_el1
9 mrs x28, icc_sgi0r_el1
10 // CHECK: error: expected readable system register
11 // CHECK-NEXT: mrs x10, icc_eoir1_el1
12 // CHECK-NEXT: ^
13 // CHECK-NEXT: error: expected readable system register
14 // CHECK-NEXT: mrs x7, icc_eoir0_el1
15 // CHECK-NEXT: ^
16 // CHECK-NEXT: error: expected readable system register
17 // CHECK-NEXT: mrs x22, icc_dir_el1
18 // CHECK-NEXT: ^
19 // CHECK-NEXT: error: expected readable system register
20 // CHECK-NEXT: mrs x24, icc_sgi1r_el1
21 // CHECK-NEXT: ^
22 // CHECK-NEXT: error: expected readable system register
23 // CHECK-NEXT: mrs x8, icc_asgi1r_el1
24 // CHECK-NEXT: ^
25 // CHECK-NEXT: error: expected readable system register
26 // CHECK-NEXT: mrs x28, icc_sgi0r_el1
27 // CHECK-NEXT: ^
29 // Read-only
30 msr icc_iar1_el1, x16
31 msr icc_iar0_el1, x19
32 msr icc_hppir1_el1, x29
33 msr icc_hppir0_el1, x14
34 msr icc_rpr_el1, x6
35 msr ich_vtr_el2, x8
36 msr ich_eisr_el2, x22
37 msr ich_elsr_el2, x8
38 msr ich_misr_el2, x10
39 // CHECK: error: expected writable system register or pstate
40 // CHECK-NEXT: msr icc_iar1_el1, x16
41 // CHECK-NEXT: ^
42 // CHECK-NEXT: error: expected writable system register or pstate
43 // CHECK-NEXT: msr icc_iar0_el1, x19
44 // CHECK-NEXT: ^
45 // CHECK-NEXT: error: expected writable system register or pstate
46 // CHECK-NEXT: msr icc_hppir1_el1, x29
47 // CHECK-NEXT: ^
48 // CHECK-NEXT: error: expected writable system register or pstate
49 // CHECK-NEXT: msr icc_hppir0_el1, x14
50 // CHECK-NEXT: ^
51 // CHECK-NEXT: error: expected writable system register or pstate
52 // CHECK-NEXT: msr icc_rpr_el1, x6
53 // CHECK-NEXT: ^
54 // CHECK-NEXT: error: expected writable system register or pstate
55 // CHECK-NEXT: msr ich_vtr_el2, x8
56 // CHECK-NEXT: ^
57 // CHECK-NEXT: error: expected writable system register or pstate
58 // CHECK-NEXT: msr ich_eisr_el2, x22
59 // CHECK-NEXT: ^
60 // CHECK-NEXT: error: expected writable system register or pstate
61 // CHECK-NEXT: msr ich_elsr_el2, x8
62 // CHECK-NEXT: ^
63 // CHECK-NEXT: error: expected writable system register or pstate
64 // CHECK-NEXT: msr ich_misr_el2, x10
65 // CHECK-NEXT: ^