• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// RUN: not llvm-mc -triple aarch64-none-linux-gnu -show-encoding -mattr=+v8.4a < %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.4a < %s 2>&1 | FileCheck %s --check-prefix=CHECK-ERROR
4
5//------------------------------------------------------------------------------
6// ARMV8.4-A Activity Monitors
7//------------------------------------------------------------------------------
8
9msr AMCR_EL0, x0
10msr AMCFGR_EL0, x0
11msr AMCGCR_EL0, x0
12msr AMUSERENR_EL0, x0
13msr AMCNTENCLR0_EL0, x0
14msr AMCNTENSET0_EL0, x0
15msr AMEVCNTR00_EL0, x0
16msr AMEVCNTR01_EL0, x0
17msr AMEVCNTR02_EL0, x0
18msr AMEVCNTR03_EL0, x0
19msr AMEVTYPER00_EL0, x0
20msr AMEVTYPER01_EL0, x0
21msr AMEVTYPER02_EL0, x0
22msr AMEVTYPER03_EL0, x0
23msr AMCNTENCLR1_EL0, x0
24msr AMCNTENSET1_EL0, x0
25msr AMEVCNTR10_EL0, x0
26msr AMEVCNTR11_EL0, x0
27msr AMEVCNTR12_EL0, x0
28msr AMEVCNTR13_EL0, x0
29msr AMEVCNTR14_EL0, x0
30msr AMEVCNTR15_EL0, x0
31msr AMEVCNTR16_EL0, x0
32msr AMEVCNTR17_EL0, x0
33msr AMEVCNTR18_EL0, x0
34msr AMEVCNTR19_EL0, x0
35msr AMEVCNTR110_EL0, x0
36msr AMEVCNTR111_EL0, x0
37msr AMEVCNTR112_EL0, x0
38msr AMEVCNTR113_EL0, x0
39msr AMEVCNTR114_EL0, x0
40msr AMEVCNTR115_EL0, x0
41msr AMEVTYPER10_EL0, x0
42msr AMEVTYPER11_EL0, x0
43msr AMEVTYPER12_EL0, x0
44msr AMEVTYPER13_EL0, x0
45msr AMEVTYPER14_EL0, x0
46msr AMEVTYPER15_EL0, x0
47msr AMEVTYPER16_EL0, x0
48msr AMEVTYPER17_EL0, x0
49msr AMEVTYPER18_EL0, x0
50msr AMEVTYPER19_EL0, x0
51msr AMEVTYPER110_EL0, x0
52msr AMEVTYPER111_EL0, x0
53msr AMEVTYPER112_EL0, x0
54msr AMEVTYPER113_EL0, x0
55msr AMEVTYPER114_EL0, x0
56msr AMEVTYPER115_EL0, x0
57
58mrs x0, AMCR_EL0
59mrs x0, AMCFGR_EL0
60mrs x0, AMCGCR_EL0
61mrs x0, AMUSERENR_EL0
62mrs x0, AMCNTENCLR0_EL0
63mrs x0, AMCNTENSET0_EL0
64mrs x0, AMEVCNTR00_EL0
65mrs x0, AMEVCNTR01_EL0
66mrs x0, AMEVCNTR02_EL0
67mrs x0, AMEVCNTR03_EL0
68mrs x0, AMEVTYPER00_EL0
69mrs x0, AMEVTYPER01_EL0
70mrs x0, AMEVTYPER02_EL0
71mrs x0, AMEVTYPER03_EL0
72mrs x0, AMCNTENCLR1_EL0
73mrs x0, AMCNTENSET1_EL0
74mrs x0, AMEVCNTR10_EL0
75mrs x0, AMEVCNTR11_EL0
76mrs x0, AMEVCNTR12_EL0
77mrs x0, AMEVCNTR13_EL0
78mrs x0, AMEVCNTR14_EL0
79mrs x0, AMEVCNTR15_EL0
80mrs x0, AMEVCNTR16_EL0
81mrs x0, AMEVCNTR17_EL0
82mrs x0, AMEVCNTR18_EL0
83mrs x0, AMEVCNTR19_EL0
84mrs x0, AMEVCNTR110_EL0
85mrs x0, AMEVCNTR111_EL0
86mrs x0, AMEVCNTR112_EL0
87mrs x0, AMEVCNTR113_EL0
88mrs x0, AMEVCNTR114_EL0
89mrs x0, AMEVCNTR115_EL0
90mrs x0, AMEVTYPER10_EL0
91mrs x0, AMEVTYPER11_EL0
92mrs x0, AMEVTYPER12_EL0
93mrs x0, AMEVTYPER13_EL0
94mrs x0, AMEVTYPER14_EL0
95mrs x0, AMEVTYPER15_EL0
96mrs x0, AMEVTYPER16_EL0
97mrs x0, AMEVTYPER17_EL0
98mrs x0, AMEVTYPER18_EL0
99mrs x0, AMEVTYPER19_EL0
100mrs x0, AMEVTYPER110_EL0
101mrs x0, AMEVTYPER111_EL0
102mrs x0, AMEVTYPER112_EL0
103mrs x0, AMEVTYPER113_EL0
104mrs x0, AMEVTYPER114_EL0
105mrs x0, AMEVTYPER115_EL0
106
107
108//CHECK-RO: error: expected writable system register or pstate
109//CHECK-RO: msr AMCFGR_EL0, x0
110//CHECK-RO:     ^
111//CHECK-RO: error: expected writable system register or pstate
112//CHECK-RO: msr AMCGCR_EL0, x0
113//CHECK-RO:     ^
114//CHECK-RO: error: expected writable system register or pstate
115//CHECK-RO: msr AMEVTYPER00_EL0, x0
116//CHECK-RO:     ^
117//CHECK-RO: error: expected writable system register or pstate
118//CHECK-RO: msr AMEVTYPER01_EL0, x0
119//CHECK-RO:     ^
120//CHECK-RO: error: expected writable system register or pstate
121//CHECK-RO: msr AMEVTYPER02_EL0, x0
122//CHECK-RO:     ^
123//CHECK-RO: error: expected writable system register or pstate
124//CHECK-RO: msr AMEVTYPER03_EL0, x0
125//CHECK-RO:     ^
126
127
128//CHECK:  msr AMCR_EL0, x0            // encoding: [0x00,0xd2,0x1b,0xd5]
129//CHECK:  msr AMUSERENR_EL0, x0       // encoding: [0x60,0xd2,0x1b,0xd5]
130//CHECK:  msr AMCNTENCLR0_EL0, x0     // encoding: [0x80,0xd2,0x1b,0xd5]
131//CHECK:  msr AMCNTENSET0_EL0, x0     // encoding: [0xa0,0xd2,0x1b,0xd5]
132//CHECK:  msr AMEVCNTR00_EL0, x0      // encoding: [0x00,0xd4,0x1b,0xd5]
133//CHECK:  msr AMEVCNTR01_EL0, x0      // encoding: [0x20,0xd4,0x1b,0xd5]
134//CHECK:  msr AMEVCNTR02_EL0, x0      // encoding: [0x40,0xd4,0x1b,0xd5]
135//CHECK:  msr AMEVCNTR03_EL0, x0      // encoding: [0x60,0xd4,0x1b,0xd5]
136//CHECK:  msr AMCNTENCLR1_EL0, x0     // encoding: [0x00,0xd3,0x1b,0xd5]
137//CHECK:  msr AMCNTENSET1_EL0, x0     // encoding: [0x20,0xd3,0x1b,0xd5]
138//CHECK:  msr AMEVCNTR10_EL0, x0      // encoding: [0x00,0xdc,0x1b,0xd5]
139//CHECK:  msr AMEVCNTR11_EL0, x0      // encoding: [0x20,0xdc,0x1b,0xd5]
140//CHECK:  msr AMEVCNTR12_EL0, x0      // encoding: [0x40,0xdc,0x1b,0xd5]
141//CHECK:  msr AMEVCNTR13_EL0, x0      // encoding: [0x60,0xdc,0x1b,0xd5]
142//CHECK:  msr AMEVCNTR14_EL0, x0      // encoding: [0x80,0xdc,0x1b,0xd5]
143//CHECK:  msr AMEVCNTR15_EL0, x0      // encoding: [0xa0,0xdc,0x1b,0xd5]
144//CHECK:  msr AMEVCNTR16_EL0, x0      // encoding: [0xc0,0xdc,0x1b,0xd5]
145//CHECK:  msr AMEVCNTR17_EL0, x0      // encoding: [0xe0,0xdc,0x1b,0xd5]
146//CHECK:  msr AMEVCNTR18_EL0, x0      // encoding: [0x00,0xdd,0x1b,0xd5]
147//CHECK:  msr AMEVCNTR19_EL0, x0      // encoding: [0x20,0xdd,0x1b,0xd5]
148//CHECK:  msr AMEVCNTR110_EL0, x0     // encoding: [0x40,0xdd,0x1b,0xd5]
149//CHECK:  msr AMEVCNTR111_EL0, x0     // encoding: [0x60,0xdd,0x1b,0xd5]
150//CHECK:  msr AMEVCNTR112_EL0, x0     // encoding: [0x80,0xdd,0x1b,0xd5]
151//CHECK:  msr AMEVCNTR113_EL0, x0     // encoding: [0xa0,0xdd,0x1b,0xd5]
152//CHECK:  msr AMEVCNTR114_EL0, x0     // encoding: [0xc0,0xdd,0x1b,0xd5]
153//CHECK:  msr AMEVCNTR115_EL0, x0     // encoding: [0xe0,0xdd,0x1b,0xd5]
154//CHECK:  msr AMEVTYPER10_EL0, x0     // encoding: [0x00,0xde,0x1b,0xd5]
155//CHECK:  msr AMEVTYPER11_EL0, x0     // encoding: [0x20,0xde,0x1b,0xd5]
156//CHECK:  msr AMEVTYPER12_EL0, x0     // encoding: [0x40,0xde,0x1b,0xd5]
157//CHECK:  msr AMEVTYPER13_EL0, x0     // encoding: [0x60,0xde,0x1b,0xd5]
158//CHECK:  msr AMEVTYPER14_EL0, x0     // encoding: [0x80,0xde,0x1b,0xd5]
159//CHECK:  msr AMEVTYPER15_EL0, x0     // encoding: [0xa0,0xde,0x1b,0xd5]
160//CHECK:  msr AMEVTYPER16_EL0, x0     // encoding: [0xc0,0xde,0x1b,0xd5]
161//CHECK:  msr AMEVTYPER17_EL0, x0     // encoding: [0xe0,0xde,0x1b,0xd5]
162//CHECK:  msr AMEVTYPER18_EL0, x0     // encoding: [0x00,0xdf,0x1b,0xd5]
163//CHECK:  msr AMEVTYPER19_EL0, x0     // encoding: [0x20,0xdf,0x1b,0xd5]
164//CHECK:  msr AMEVTYPER110_EL0, x0    // encoding: [0x40,0xdf,0x1b,0xd5]
165//CHECK:  msr AMEVTYPER111_EL0, x0    // encoding: [0x60,0xdf,0x1b,0xd5]
166//CHECK:  msr AMEVTYPER112_EL0, x0    // encoding: [0x80,0xdf,0x1b,0xd5]
167//CHECK:  msr AMEVTYPER113_EL0, x0    // encoding: [0xa0,0xdf,0x1b,0xd5]
168//CHECK:  msr AMEVTYPER114_EL0, x0    // encoding: [0xc0,0xdf,0x1b,0xd5]
169//CHECK:  msr AMEVTYPER115_EL0, x0    // encoding: [0xe0,0xdf,0x1b,0xd5]
170
171//CHECK:  mrs x0, AMCR_EL0            // encoding: [0x00,0xd2,0x3b,0xd5]
172//CHECK:  mrs x0, AMCFGR_EL0          // encoding: [0x20,0xd2,0x3b,0xd5]
173//CHECK:  mrs x0, AMCGCR_EL0          // encoding: [0x40,0xd2,0x3b,0xd5]
174//CHECK:  mrs x0, AMUSERENR_EL0       // encoding: [0x60,0xd2,0x3b,0xd5]
175//CHECK:  mrs x0, AMCNTENCLR0_EL0     // encoding: [0x80,0xd2,0x3b,0xd5]
176//CHECK:  mrs x0, AMCNTENSET0_EL0     // encoding: [0xa0,0xd2,0x3b,0xd5]
177//CHECK:  mrs x0, AMEVCNTR00_EL0      // encoding: [0x00,0xd4,0x3b,0xd5]
178//CHECK:  mrs x0, AMEVCNTR01_EL0      // encoding: [0x20,0xd4,0x3b,0xd5]
179//CHECK:  mrs x0, AMEVCNTR02_EL0      // encoding: [0x40,0xd4,0x3b,0xd5]
180//CHECK:  mrs x0, AMEVCNTR03_EL0      // encoding: [0x60,0xd4,0x3b,0xd5]
181//CHECK:  mrs x0, AMEVTYPER00_EL0     // encoding: [0x00,0xd6,0x3b,0xd5]
182//CHECK:  mrs x0, AMEVTYPER01_EL0     // encoding: [0x20,0xd6,0x3b,0xd5]
183//CHECK:  mrs x0, AMEVTYPER02_EL0     // encoding: [0x40,0xd6,0x3b,0xd5]
184//CHECK:  mrs x0, AMEVTYPER03_EL0     // encoding: [0x60,0xd6,0x3b,0xd5]
185//CHECK:  mrs x0, AMCNTENCLR1_EL0     // encoding: [0x00,0xd3,0x3b,0xd5]
186//CHECK:  mrs x0, AMCNTENSET1_EL0     // encoding: [0x20,0xd3,0x3b,0xd5]
187//CHECK:  mrs x0, AMEVCNTR10_EL0      // encoding: [0x00,0xdc,0x3b,0xd5]
188//CHECK:  mrs x0, AMEVCNTR11_EL0      // encoding: [0x20,0xdc,0x3b,0xd5]
189//CHECK:  mrs x0, AMEVCNTR12_EL0      // encoding: [0x40,0xdc,0x3b,0xd5]
190//CHECK:  mrs x0, AMEVCNTR13_EL0      // encoding: [0x60,0xdc,0x3b,0xd5]
191//CHECK:  mrs x0, AMEVCNTR14_EL0      // encoding: [0x80,0xdc,0x3b,0xd5]
192//CHECK:  mrs x0, AMEVCNTR15_EL0      // encoding: [0xa0,0xdc,0x3b,0xd5]
193//CHECK:  mrs x0, AMEVCNTR16_EL0      // encoding: [0xc0,0xdc,0x3b,0xd5]
194//CHECK:  mrs x0, AMEVCNTR17_EL0      // encoding: [0xe0,0xdc,0x3b,0xd5]
195//CHECK:  mrs x0, AMEVCNTR18_EL0      // encoding: [0x00,0xdd,0x3b,0xd5]
196//CHECK:  mrs x0, AMEVCNTR19_EL0      // encoding: [0x20,0xdd,0x3b,0xd5]
197//CHECK:  mrs x0, AMEVCNTR110_EL0     // encoding: [0x40,0xdd,0x3b,0xd5]
198//CHECK:  mrs x0, AMEVCNTR111_EL0     // encoding: [0x60,0xdd,0x3b,0xd5]
199//CHECK:  mrs x0, AMEVCNTR112_EL0     // encoding: [0x80,0xdd,0x3b,0xd5]
200//CHECK:  mrs x0, AMEVCNTR113_EL0     // encoding: [0xa0,0xdd,0x3b,0xd5]
201//CHECK:  mrs x0, AMEVCNTR114_EL0     // encoding: [0xc0,0xdd,0x3b,0xd5]
202//CHECK:  mrs x0, AMEVCNTR115_EL0     // encoding: [0xe0,0xdd,0x3b,0xd5]
203//CHECK:  mrs x0, AMEVTYPER10_EL0     // encoding: [0x00,0xde,0x3b,0xd5]
204//CHECK:  mrs x0, AMEVTYPER11_EL0     // encoding: [0x20,0xde,0x3b,0xd5]
205//CHECK:  mrs x0, AMEVTYPER12_EL0     // encoding: [0x40,0xde,0x3b,0xd5]
206//CHECK:  mrs x0, AMEVTYPER13_EL0     // encoding: [0x60,0xde,0x3b,0xd5]
207//CHECK:  mrs x0, AMEVTYPER14_EL0     // encoding: [0x80,0xde,0x3b,0xd5]
208//CHECK:  mrs x0, AMEVTYPER15_EL0     // encoding: [0xa0,0xde,0x3b,0xd5]
209//CHECK:  mrs x0, AMEVTYPER16_EL0     // encoding: [0xc0,0xde,0x3b,0xd5]
210//CHECK:  mrs x0, AMEVTYPER17_EL0     // encoding: [0xe0,0xde,0x3b,0xd5]
211//CHECK:  mrs x0, AMEVTYPER18_EL0     // encoding: [0x00,0xdf,0x3b,0xd5]
212//CHECK:  mrs x0, AMEVTYPER19_EL0     // encoding: [0x20,0xdf,0x3b,0xd5]
213//CHECK:  mrs x0, AMEVTYPER110_EL0    // encoding: [0x40,0xdf,0x3b,0xd5]
214//CHECK:  mrs x0, AMEVTYPER111_EL0    // encoding: [0x60,0xdf,0x3b,0xd5]
215//CHECK:  mrs x0, AMEVTYPER112_EL0    // encoding: [0x80,0xdf,0x3b,0xd5]
216//CHECK:  mrs x0, AMEVTYPER113_EL0    // encoding: [0xa0,0xdf,0x3b,0xd5]
217//CHECK:  mrs x0, AMEVTYPER114_EL0    // encoding: [0xc0,0xdf,0x3b,0xd5]
218//CHECK:  mrs x0, AMEVTYPER115_EL0    // encoding: [0xe0,0xdf,0x3b,0xd5]
219
220
221//CHECK-ERROR: error: expected writable system register or pstate
222//CHECK-ERROR: msr AMCR_EL0, x0
223//CHECK-ERROR:     ^
224//CHECK-ERROR: error: expected writable system register or pstate
225//CHECK-ERROR: msr AMCFGR_EL0, x0
226//CHECK-ERROR:     ^
227//CHECK-ERROR: error: expected writable system register or pstate
228//CHECK-ERROR: msr AMCGCR_EL0, x0
229//CHECK-ERROR:     ^
230//CHECK-ERROR: error: expected writable system register or pstate
231//CHECK-ERROR: msr AMUSERENR_EL0, x0
232//CHECK-ERROR:     ^
233//CHECK-ERROR: error: expected writable system register or pstate
234//CHECK-ERROR: msr AMCNTENCLR0_EL0, x0
235//CHECK-ERROR:     ^
236//CHECK-ERROR: error: expected writable system register or pstate
237//CHECK-ERROR: msr AMCNTENSET0_EL0, x0
238//CHECK-ERROR:     ^
239//CHECK-ERROR: error: expected writable system register or pstate
240//CHECK-ERROR: msr AMEVCNTR00_EL0, x0
241//CHECK-ERROR:     ^
242//CHECK-ERROR: error: expected writable system register or pstate
243//CHECK-ERROR: msr AMEVCNTR01_EL0, x0
244//CHECK-ERROR:     ^
245//CHECK-ERROR: error: expected writable system register or pstate
246//CHECK-ERROR: msr AMEVCNTR02_EL0, x0
247//CHECK-ERROR:     ^
248//CHECK-ERROR: error: expected writable system register or pstate
249//CHECK-ERROR: msr AMEVCNTR03_EL0, x0
250//CHECK-ERROR:     ^
251//CHECK-ERROR: error: expected writable system register or pstate
252//CHECK-ERROR: msr AMEVTYPER00_EL0, x0
253//CHECK-ERROR:     ^
254//CHECK-ERROR: error: expected writable system register or pstate
255//CHECK-ERROR: msr AMEVTYPER01_EL0, x0
256//CHECK-ERROR:     ^
257//CHECK-ERROR: error: expected writable system register or pstate
258//CHECK-ERROR: msr AMEVTYPER02_EL0, x0
259//CHECK-ERROR:     ^
260//CHECK-ERROR: error: expected writable system register or pstate
261//CHECK-ERROR: msr AMEVTYPER03_EL0, x0
262//CHECK-ERROR:     ^
263//CHECK-ERROR: error: expected writable system register or pstate
264//CHECK-ERROR: msr AMCNTENCLR1_EL0, x0
265//CHECK-ERROR:     ^
266//CHECK-ERROR: error: expected writable system register or pstate
267//CHECK-ERROR: msr AMCNTENSET1_EL0, x0
268//CHECK-ERROR:     ^
269//CHECK-ERROR: error: expected writable system register or pstate
270//CHECK-ERROR: msr AMEVCNTR10_EL0, x0
271//CHECK-ERROR:     ^
272//CHECK-ERROR: error: expected writable system register or pstate
273//CHECK-ERROR: msr AMEVCNTR11_EL0, x0
274//CHECK-ERROR:     ^
275//CHECK-ERROR: error: expected writable system register or pstate
276//CHECK-ERROR: msr AMEVCNTR12_EL0, x0
277//CHECK-ERROR:     ^
278//CHECK-ERROR: error: expected writable system register or pstate
279//CHECK-ERROR: msr AMEVCNTR13_EL0, x0
280//CHECK-ERROR:     ^
281//CHECK-ERROR: error: expected writable system register or pstate
282//CHECK-ERROR: msr AMEVCNTR14_EL0, x0
283//CHECK-ERROR:     ^
284//CHECK-ERROR: error: expected writable system register or pstate
285//CHECK-ERROR: msr AMEVCNTR15_EL0, x0
286//CHECK-ERROR:     ^
287//CHECK-ERROR: error: expected writable system register or pstate
288//CHECK-ERROR: msr AMEVCNTR16_EL0, x0
289//CHECK-ERROR:     ^
290//CHECK-ERROR: error: expected writable system register or pstate
291//CHECK-ERROR: msr AMEVCNTR17_EL0, x0
292//CHECK-ERROR:     ^
293//CHECK-ERROR: error: expected writable system register or pstate
294//CHECK-ERROR: msr AMEVCNTR18_EL0, x0
295//CHECK-ERROR:     ^
296//CHECK-ERROR: error: expected writable system register or pstate
297//CHECK-ERROR: msr AMEVCNTR19_EL0, x0
298//CHECK-ERROR:     ^
299//CHECK-ERROR: error: expected writable system register or pstate
300//CHECK-ERROR: msr AMEVCNTR110_EL0, x0
301//CHECK-ERROR:     ^
302//CHECK-ERROR: error: expected writable system register or pstate
303//CHECK-ERROR: msr AMEVCNTR111_EL0, x0
304//CHECK-ERROR:     ^
305//CHECK-ERROR: error: expected writable system register or pstate
306//CHECK-ERROR: msr AMEVCNTR112_EL0, x0
307//CHECK-ERROR:     ^
308//CHECK-ERROR: error: expected writable system register or pstate
309//CHECK-ERROR: msr AMEVCNTR113_EL0, x0
310//CHECK-ERROR:     ^
311//CHECK-ERROR: error: expected writable system register or pstate
312//CHECK-ERROR: msr AMEVCNTR114_EL0, x0
313//CHECK-ERROR:     ^
314//CHECK-ERROR: error: expected writable system register or pstate
315//CHECK-ERROR: msr AMEVCNTR115_EL0, x0
316//CHECK-ERROR:     ^
317//CHECK-ERROR: error: expected writable system register or pstate
318//CHECK-ERROR: msr AMEVTYPER10_EL0, x0
319//CHECK-ERROR:     ^
320//CHECK-ERROR: error: expected writable system register or pstate
321//CHECK-ERROR: msr AMEVTYPER11_EL0, x0
322//CHECK-ERROR:     ^
323//CHECK-ERROR: error: expected writable system register or pstate
324//CHECK-ERROR: msr AMEVTYPER12_EL0, x0
325//CHECK-ERROR:     ^
326//CHECK-ERROR: error: expected writable system register or pstate
327//CHECK-ERROR: msr AMEVTYPER13_EL0, x0
328//CHECK-ERROR:     ^
329//CHECK-ERROR: error: expected writable system register or pstate
330//CHECK-ERROR: msr AMEVTYPER14_EL0, x0
331//CHECK-ERROR:     ^
332//CHECK-ERROR: error: expected writable system register or pstate
333//CHECK-ERROR: msr AMEVTYPER15_EL0, x0
334//CHECK-ERROR:     ^
335//CHECK-ERROR: error: expected writable system register or pstate
336//CHECK-ERROR: msr AMEVTYPER16_EL0, x0
337//CHECK-ERROR:     ^
338//CHECK-ERROR: error: expected writable system register or pstate
339//CHECK-ERROR: msr AMEVTYPER17_EL0, x0
340//CHECK-ERROR:     ^
341//CHECK-ERROR: error: expected writable system register or pstate
342//CHECK-ERROR: msr AMEVTYPER18_EL0, x0
343//CHECK-ERROR:     ^
344//CHECK-ERROR: error: expected writable system register or pstate
345//CHECK-ERROR: msr AMEVTYPER19_EL0, x0
346//CHECK-ERROR:     ^
347//CHECK-ERROR: error: expected writable system register or pstate
348//CHECK-ERROR: msr AMEVTYPER110_EL0, x0
349//CHECK-ERROR:     ^
350//CHECK-ERROR: error: expected writable system register or pstate
351//CHECK-ERROR: msr AMEVTYPER111_EL0, x0
352//CHECK-ERROR:     ^
353//CHECK-ERROR: error: expected writable system register or pstate
354//CHECK-ERROR: msr AMEVTYPER112_EL0, x0
355//CHECK-ERROR:     ^
356//CHECK-ERROR: error: expected writable system register or pstate
357//CHECK-ERROR: msr AMEVTYPER113_EL0, x0
358//CHECK-ERROR:     ^
359//CHECK-ERROR: error: expected writable system register or pstate
360//CHECK-ERROR: msr AMEVTYPER114_EL0, x0
361//CHECK-ERROR:     ^
362//CHECK-ERROR: error: expected writable system register or pstate
363//CHECK-ERROR: msr AMEVTYPER115_EL0, x0
364//CHECK-ERROR:     ^
365
366//CHECK-ERROR: error: expected readable system register
367//CHECK-ERROR: mrs x0, AMCR_EL0
368//CHECK-ERROR:         ^
369//CHECK-ERROR: error: expected readable system register
370//CHECK-ERROR: mrs x0, AMCFGR_EL0
371//CHECK-ERROR:         ^
372//CHECK-ERROR: error: expected readable system register
373//CHECK-ERROR: mrs x0, AMCGCR_EL0
374//CHECK-ERROR:         ^
375//CHECK-ERROR: error: expected readable system register
376//CHECK-ERROR: mrs x0, AMUSERENR_EL0
377//CHECK-ERROR:         ^
378//CHECK-ERROR: error: expected readable system register
379//CHECK-ERROR: mrs x0, AMCNTENCLR0_EL0
380//CHECK-ERROR:         ^
381//CHECK-ERROR: error: expected readable system register
382//CHECK-ERROR: mrs x0, AMCNTENSET0_EL0
383//CHECK-ERROR:         ^
384//CHECK-ERROR: error: expected readable system register
385//CHECK-ERROR: mrs x0, AMEVCNTR00_EL0
386//CHECK-ERROR:         ^
387//CHECK-ERROR: error: expected readable system register
388//CHECK-ERROR: mrs x0, AMEVCNTR01_EL0
389//CHECK-ERROR:         ^
390//CHECK-ERROR: error: expected readable system register
391//CHECK-ERROR: mrs x0, AMEVCNTR02_EL0
392//CHECK-ERROR:         ^
393//CHECK-ERROR: error: expected readable system register
394//CHECK-ERROR: mrs x0, AMEVCNTR03_EL0
395//CHECK-ERROR:         ^
396//CHECK-ERROR: error: expected readable system register
397//CHECK-ERROR: mrs x0, AMEVTYPER00_EL0
398//CHECK-ERROR:         ^
399//CHECK-ERROR: error: expected readable system register
400//CHECK-ERROR: mrs x0, AMEVTYPER01_EL0
401//CHECK-ERROR:         ^
402//CHECK-ERROR: error: expected readable system register
403//CHECK-ERROR: mrs x0, AMEVTYPER02_EL0
404//CHECK-ERROR:         ^
405//CHECK-ERROR: error: expected readable system register
406//CHECK-ERROR: mrs x0, AMEVTYPER03_EL0
407//CHECK-ERROR:         ^
408//CHECK-ERROR: error: expected readable system register
409//CHECK-ERROR: mrs x0, AMCNTENCLR1_EL0
410//CHECK-ERROR:         ^
411//CHECK-ERROR: error: expected readable system register
412//CHECK-ERROR: mrs x0, AMCNTENSET1_EL0
413//CHECK-ERROR:         ^
414//CHECK-ERROR: error: expected readable system register
415//CHECK-ERROR: mrs x0, AMEVCNTR10_EL0
416//CHECK-ERROR:         ^
417//CHECK-ERROR: error: expected readable system register
418//CHECK-ERROR: mrs x0, AMEVCNTR11_EL0
419//CHECK-ERROR:         ^
420//CHECK-ERROR: error: expected readable system register
421//CHECK-ERROR: mrs x0, AMEVCNTR12_EL0
422//CHECK-ERROR:         ^
423//CHECK-ERROR: error: expected readable system register
424//CHECK-ERROR: mrs x0, AMEVCNTR13_EL0
425//CHECK-ERROR:         ^
426//CHECK-ERROR: error: expected readable system register
427//CHECK-ERROR: mrs x0, AMEVCNTR14_EL0
428//CHECK-ERROR:         ^
429//CHECK-ERROR: error: expected readable system register
430//CHECK-ERROR: mrs x0, AMEVCNTR15_EL0
431//CHECK-ERROR:         ^
432//CHECK-ERROR: error: expected readable system register
433//CHECK-ERROR: mrs x0, AMEVCNTR16_EL0
434//CHECK-ERROR:         ^
435//CHECK-ERROR: error: expected readable system register
436//CHECK-ERROR: mrs x0, AMEVCNTR17_EL0
437//CHECK-ERROR:         ^
438//CHECK-ERROR: error: expected readable system register
439//CHECK-ERROR: mrs x0, AMEVCNTR18_EL0
440//CHECK-ERROR:         ^
441//CHECK-ERROR: error: expected readable system register
442//CHECK-ERROR: mrs x0, AMEVCNTR19_EL0
443//CHECK-ERROR:         ^
444//CHECK-ERROR: error: expected readable system register
445//CHECK-ERROR: mrs x0, AMEVCNTR110_EL0
446//CHECK-ERROR:         ^
447//CHECK-ERROR: error: expected readable system register
448//CHECK-ERROR: mrs x0, AMEVCNTR111_EL0
449//CHECK-ERROR:         ^
450//CHECK-ERROR: error: expected readable system register
451//CHECK-ERROR: mrs x0, AMEVCNTR112_EL0
452//CHECK-ERROR:         ^
453//CHECK-ERROR: error: expected readable system register
454//CHECK-ERROR: mrs x0, AMEVCNTR113_EL0
455//CHECK-ERROR:         ^
456//CHECK-ERROR: error: expected readable system register
457//CHECK-ERROR: mrs x0, AMEVCNTR114_EL0
458//CHECK-ERROR:         ^
459//CHECK-ERROR: error: expected readable system register
460//CHECK-ERROR: mrs x0, AMEVCNTR115_EL0
461//CHECK-ERROR:         ^
462//CHECK-ERROR: error: expected readable system register
463//CHECK-ERROR: mrs x0, AMEVTYPER10_EL0
464//CHECK-ERROR:         ^
465//CHECK-ERROR: error: expected readable system register
466//CHECK-ERROR: mrs x0, AMEVTYPER11_EL0
467//CHECK-ERROR:         ^
468//CHECK-ERROR: error: expected readable system register
469//CHECK-ERROR: mrs x0, AMEVTYPER12_EL0
470//CHECK-ERROR:         ^
471//CHECK-ERROR: error: expected readable system register
472//CHECK-ERROR: mrs x0, AMEVTYPER13_EL0
473//CHECK-ERROR:         ^
474//CHECK-ERROR: error: expected readable system register
475//CHECK-ERROR: mrs x0, AMEVTYPER14_EL0
476//CHECK-ERROR:         ^
477//CHECK-ERROR: error: expected readable system register
478//CHECK-ERROR: mrs x0, AMEVTYPER15_EL0
479//CHECK-ERROR:         ^
480//CHECK-ERROR: error: expected readable system register
481//CHECK-ERROR: mrs x0, AMEVTYPER16_EL0
482//CHECK-ERROR:         ^
483//CHECK-ERROR: error: expected readable system register
484//CHECK-ERROR: mrs x0, AMEVTYPER17_EL0
485//CHECK-ERROR:         ^
486//CHECK-ERROR: error: expected readable system register
487//CHECK-ERROR: mrs x0, AMEVTYPER18_EL0
488//CHECK-ERROR:         ^
489//CHECK-ERROR: error: expected readable system register
490//CHECK-ERROR: mrs x0, AMEVTYPER19_EL0
491//CHECK-ERROR:         ^
492//CHECK-ERROR: error: expected readable system register
493//CHECK-ERROR: mrs x0, AMEVTYPER110_EL0
494//CHECK-ERROR:         ^
495//CHECK-ERROR: error: expected readable system register
496//CHECK-ERROR: mrs x0, AMEVTYPER111_EL0
497//CHECK-ERROR:         ^
498//CHECK-ERROR: error: expected readable system register
499//CHECK-ERROR: mrs x0, AMEVTYPER112_EL0
500//CHECK-ERROR:         ^
501//CHECK-ERROR: error: expected readable system register
502//CHECK-ERROR: mrs x0, AMEVTYPER113_EL0
503//CHECK-ERROR:         ^
504//CHECK-ERROR: error: expected readable system register
505//CHECK-ERROR: mrs x0, AMEVTYPER114_EL0
506//CHECK-ERROR:         ^
507//CHECK-ERROR: error: expected readable system register
508//CHECK-ERROR: mrs x0, AMEVTYPER115_EL0
509//CHECK-ERROR:         ^
510