1 // RUN
: not llvm-mc
-triple aarch64-none-linux-gnu
-show-encoding
-mattr
=+v8.4
a < %s
2> %t | FileCheck
%s
--check-prefix
=CHECK
2 // RUN
: FileCheck
--check-prefix
=CHECK-RO
< %t %s
3 // RUN
: not llvm-mc
-triple aarch64-none-linux-gnu
-show-encoding
-mattr
=-v8.4
a < %s
2>&1 | FileCheck
%s
--check-prefix
=CHECK-ERROR
5 //------------------------------------------------------------------------------
6 // ARMV8.4
-A MPAM Extensions
7 //------------------------------------------------------------------------------
43 //CHECK
: msr MPAM0_EL1
, x0
// encoding
: [0x20,0xa5,0x18,0xd5]
44 //CHECK
: msr MPAM1_EL1
, x0
// encoding
: [0x00,0xa5,0x18,0xd5]
45 //CHECK
: msr MPAM2_EL2
, x0
// encoding
: [0x00,0xa5,0x1c,0xd5]
46 //CHECK
: msr MPAM3_EL3
, x0
// encoding
: [0x00,0xa5,0x1e,0xd5]
47 //CHECK
: msr MPAM1_EL12
, x0
// encoding
: [0x00,0xa5,0x1d,0xd5]
48 //CHECK
: msr MPAMHCR_EL2
, x0
// encoding
: [0x00,0xa4,0x1c,0xd5]
49 //CHECK
: msr MPAMVPMV_EL2
, x0
// encoding
: [0x20,0xa4,0x1c,0xd5]
50 //CHECK
: msr MPAMVPM0_EL2
, x0
// encoding
: [0x00,0xa6,0x1c,0xd5]
51 //CHECK
: msr MPAMVPM1_EL2
, x0
// encoding
: [0x20,0xa6,0x1c,0xd5]
52 //CHECK
: msr MPAMVPM2_EL2
, x0
// encoding
: [0x40,0xa6,0x1c,0xd5]
53 //CHECK
: msr MPAMVPM3_EL2
, x0
// encoding
: [0x60,0xa6,0x1c,0xd5]
54 //CHECK
: msr MPAMVPM4_EL2
, x0
// encoding
: [0x80,0xa6,0x1c,0xd5]
55 //CHECK
: msr MPAMVPM5_EL2
, x0
// encoding
: [0xa0,0xa6,0x1c,0xd5]
56 //CHECK
: msr MPAMVPM6_EL2
, x0
// encoding
: [0xc0,0xa6,0x1c,0xd5]
57 //CHECK
: msr MPAMVPM7_EL2
, x0
// encoding
: [0xe0,0xa6,0x1c,0xd5]
59 //CHECK-RO
: error
: expected writable system register
or pstate
60 //CHECK-RO
: msr MPAMIDR_EL1
, x0
63 //CHECK
: mrs x0
, MPAM0_EL1
// encoding
: [0x20,0xa5,0x38,0xd5]
64 //CHECK
: mrs x0
, MPAM1_EL1
// encoding
: [0x00,0xa5,0x38,0xd5]
65 //CHECK
: mrs x0
, MPAM2_EL2
// encoding
: [0x00,0xa5,0x3c,0xd5]
66 //CHECK
: mrs x0
, MPAM3_EL3
// encoding
: [0x00,0xa5,0x3e,0xd5]
67 //CHECK
: mrs x0
, MPAM1_EL12
// encoding
: [0x00,0xa5,0x3d,0xd5]
68 //CHECK
: mrs x0
, MPAMHCR_EL2
// encoding
: [0x00,0xa4,0x3c,0xd5]
69 //CHECK
: mrs x0
, MPAMVPMV_EL2
// encoding
: [0x20,0xa4,0x3c,0xd5]
70 //CHECK
: mrs x0
, MPAMVPM0_EL2
// encoding
: [0x00,0xa6,0x3c,0xd5]
71 //CHECK
: mrs x0
, MPAMVPM1_EL2
// encoding
: [0x20,0xa6,0x3c,0xd5]
72 //CHECK
: mrs x0
, MPAMVPM2_EL2
// encoding
: [0x40,0xa6,0x3c,0xd5]
73 //CHECK
: mrs x0
, MPAMVPM3_EL2
// encoding
: [0x60,0xa6,0x3c,0xd5]
74 //CHECK
: mrs x0
, MPAMVPM4_EL2
// encoding
: [0x80,0xa6,0x3c,0xd5]
75 //CHECK
: mrs x0
, MPAMVPM5_EL2
// encoding
: [0xa0,0xa6,0x3c,0xd5]
76 //CHECK
: mrs x0
, MPAMVPM6_EL2
// encoding
: [0xc0,0xa6,0x3c,0xd5]
77 //CHECK
: mrs x0
, MPAMVPM7_EL2
// encoding
: [0xe0,0xa6,0x3c,0xd5]
78 //CHECK
: mrs x0
, MPAMIDR_EL1
// encoding
: [0x80,0xa4,0x38,0xd5]
80 //CHECK-ERROR
: error
: expected writable system register
or pstate
81 //CHECK-ERROR
: msr MPAM0_EL1
, x0
83 //CHECK-ERROR
: error
: expected writable system register
or pstate
84 //CHECK-ERROR
: msr MPAM1_EL1
, x0
86 //CHECK-ERROR
: error
: expected writable system register
or pstate
87 //CHECK-ERROR
: msr MPAM2_EL2
, x0
89 //CHECK-ERROR
: error
: expected writable system register
or pstate
90 //CHECK-ERROR
: msr MPAM3_EL3
, x0
92 //CHECK-ERROR
: error
: expected writable system register
or pstate
93 //CHECK-ERROR
: msr MPAM1_EL12
, x0
95 //CHECK-ERROR
: error
: expected writable system register
or pstate
96 //CHECK-ERROR
: msr MPAMHCR_EL2
, x0
98 //CHECK-ERROR
: error
: expected writable system register
or pstate
99 //CHECK-ERROR
: msr MPAMVPMV_EL2
, x0
101 //CHECK-ERROR
: error
: expected writable system register
or pstate
102 //CHECK-ERROR
: msr MPAMVPM0_EL2
, x0
104 //CHECK-ERROR
: error
: expected writable system register
or pstate
105 //CHECK-ERROR
: msr MPAMVPM1_EL2
, x0
107 //CHECK-ERROR
: error
: expected writable system register
or pstate
108 //CHECK-ERROR
: msr MPAMVPM2_EL2
, x0
110 //CHECK-ERROR
: error
: expected writable system register
or pstate
111 //CHECK-ERROR
: msr MPAMVPM3_EL2
, x0
113 //CHECK-ERROR
: error
: expected writable system register
or pstate
114 //CHECK-ERROR
: msr MPAMVPM4_EL2
, x0
116 //CHECK-ERROR
: error
: expected writable system register
or pstate
117 //CHECK-ERROR
: msr MPAMVPM5_EL2
, x0
119 //CHECK-ERROR
: error
: expected writable system register
or pstate
120 //CHECK-ERROR
: msr MPAMVPM6_EL2
, x0
122 //CHECK-ERROR
: error
: expected writable system register
or pstate
123 //CHECK-ERROR
: msr MPAMVPM7_EL2
, x0
125 //CHECK-ERROR
: error
: expected writable system register
or pstate
126 //CHECK-ERROR
: msr MPAMIDR_EL1
, x0
129 //CHECK-ERROR
: error
: expected readable system register
130 //CHECK-ERROR
: mrs x0
, MPAM0_EL1
132 //CHECK-ERROR
: error
: expected readable system register
133 //CHECK-ERROR
: mrs x0
, MPAM1_EL1
135 //CHECK-ERROR
: error
: expected readable system register
136 //CHECK-ERROR
: mrs x0
, MPAM2_EL2
138 //CHECK-ERROR
: error
: expected readable system register
139 //CHECK-ERROR
: mrs x0
, MPAM3_EL3
141 //CHECK-ERROR
: error
: expected readable system register
142 //CHECK-ERROR
: mrs x0
, MPAM1_EL12
144 //CHECK-ERROR
: error
: expected readable system register
145 //CHECK-ERROR
: mrs x0
, MPAMHCR_EL2
147 //CHECK-ERROR
: error
: expected readable system register
148 //CHECK-ERROR
: mrs x0
, MPAMVPMV_EL2
150 //CHECK-ERROR
: error
: expected readable system register
151 //CHECK-ERROR
: mrs x0
, MPAMVPM0_EL2
153 //CHECK-ERROR
: error
: expected readable system register
154 //CHECK-ERROR
: mrs x0
, MPAMVPM1_EL2
156 //CHECK-ERROR
: error
: expected readable system register
157 //CHECK-ERROR
: mrs x0
, MPAMVPM2_EL2
159 //CHECK-ERROR
: error
: expected readable system register
160 //CHECK-ERROR
: mrs x0
, MPAMVPM3_EL2
162 //CHECK-ERROR
: error
: expected readable system register
163 //CHECK-ERROR
: mrs x0
, MPAMVPM4_EL2
165 //CHECK-ERROR
: error
: expected readable system register
166 //CHECK-ERROR
: mrs x0
, MPAMVPM5_EL2
168 //CHECK-ERROR
: error
: expected readable system register
169 //CHECK-ERROR
: mrs x0
, MPAMVPM6_EL2
171 //CHECK-ERROR
: error
: expected readable system register
172 //CHECK-ERROR
: mrs x0
, MPAMVPM7_EL2
174 //CHECK-ERROR
: error
: expected readable system register
175 //CHECK-ERROR
: mrs x0
, MPAMIDR_EL1