Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / AArch64 / arm64-system-encoding.s
blob313ec911774603572c9a0a95c16af0a1510aad15
1 ; RUN: not llvm-mc -triple arm64-apple-darwin -show-encoding < %s 2> %t | FileCheck %s
2 ; RUN: not llvm-mc -triple arm64-apple-darwin -mattr=+v8.3a -show-encoding < %s 2> %t | FileCheck %s --check-prefix=CHECK-V83
3 ; RUN: FileCheck --check-prefix=CHECK-ERRORS < %t %s
5 foo:
7 ;-----------------------------------------------------------------------------
8 ; Simple encodings (instructions w/ no operands)
9 ;-----------------------------------------------------------------------------
11 nop
12 sev
13 sevl
14 wfe
15 wfi
16 yield
18 ; CHECK: nop ; encoding: [0x1f,0x20,0x03,0xd5]
19 ; CHECK: sev ; encoding: [0x9f,0x20,0x03,0xd5]
20 ; CHECK: sevl ; encoding: [0xbf,0x20,0x03,0xd5]
21 ; CHECK: wfe ; encoding: [0x5f,0x20,0x03,0xd5]
22 ; CHECK: wfi ; encoding: [0x7f,0x20,0x03,0xd5]
23 ; CHECK: yield ; encoding: [0x3f,0x20,0x03,0xd5]
25 ;-----------------------------------------------------------------------------
26 ; Single-immediate operand instructions
27 ;-----------------------------------------------------------------------------
29 clrex #10
30 ; CHECK: clrex #10 ; encoding: [0x5f,0x3a,0x03,0xd5]
31 isb #15
32 isb sy
33 ; CHECK: isb ; encoding: [0xdf,0x3f,0x03,0xd5]
34 ; CHECK: isb ; encoding: [0xdf,0x3f,0x03,0xd5]
35 dmb #3
36 dmb osh
37 ; CHECK: dmb osh ; encoding: [0xbf,0x33,0x03,0xd5]
38 ; CHECK: dmb osh ; encoding: [0xbf,0x33,0x03,0xd5]
39 dsb #7
40 dsb nsh
41 ; CHECK: dsb nsh ; encoding: [0x9f,0x37,0x03,0xd5]
42 ; CHECK: dsb nsh ; encoding: [0x9f,0x37,0x03,0xd5]
44 ;-----------------------------------------------------------------------------
45 ; Generic system instructions
46 ;-----------------------------------------------------------------------------
47 sys #2, c0, c5, #7
48 ; CHECK: encoding: [0xff,0x05,0x0a,0xd5]
49 sys #7, C6, c10, #7, x7
50 ; CHECK: encoding: [0xe7,0x6a,0x0f,0xd5]
51 sysl x20, #6, c3, C15, #7
52 ; CHECK: encoding: [0xf4,0x3f,0x2e,0xd5]
54 ; Check for error on invalid 'C' operand value.
55 sys #2, c16, c5, #7
56 ; CHECK-ERRORS: error: Expected cN operand where 0 <= N <= 15
58 ;-----------------------------------------------------------------------------
59 ; MSR/MRS instructions
60 ;-----------------------------------------------------------------------------
61 msr ACTLR_EL1, x3
62 msr ACTLR_EL2, x3
63 msr ACTLR_EL3, x3
64 msr AFSR0_EL1, x3
65 msr AFSR0_EL2, x3
66 msr AFSR0_EL3, x3
67 msr AFSR1_EL1, x3
68 msr AFSR1_EL2, x3
69 msr AFSR1_EL3, x3
70 msr AMAIR_EL1, x3
71 msr AMAIR_EL2, x3
72 msr AMAIR_EL3, x3
73 msr CNTFRQ_EL0, x3
74 msr CNTHCTL_EL2, x3
75 msr CNTHP_CTL_EL2, x3
76 msr CNTHP_CVAL_EL2, x3
77 msr CNTHP_TVAL_EL2, x3
78 msr CNTKCTL_EL1, x3
79 msr CNTP_CTL_EL0, x3
80 msr CNTP_CVAL_EL0, x3
81 msr CNTP_TVAL_EL0, x3
82 msr CNTVOFF_EL2, x3
83 msr CNTV_CTL_EL0, x3
84 msr CNTV_CVAL_EL0, x3
85 msr CNTV_TVAL_EL0, x3
86 msr CONTEXTIDR_EL1, x3
87 msr CPACR_EL1, x3
88 msr CPTR_EL2, x3
89 msr CPTR_EL3, x3
90 msr CSSELR_EL1, x3
91 msr DACR32_EL2, x3
92 msr ESR_EL1, x3
93 msr ESR_EL2, x3
94 msr ESR_EL3, x3
95 msr FAR_EL1, x3
96 msr FAR_EL2, x3
97 msr FAR_EL3, x3
98 msr FPEXC32_EL2, x3
99 msr HACR_EL2, x3
100 msr HCR_EL2, x3
101 msr HPFAR_EL2, x3
102 msr HSTR_EL2, x3
103 msr IFSR32_EL2, x3
104 msr MAIR_EL1, x3
105 msr MAIR_EL2, x3
106 msr MAIR_EL3, x3
107 msr MDCR_EL2, x3
108 msr MDCR_EL3, x3
109 msr PAR_EL1, x3
110 msr SCR_EL3, x3
111 msr SCTLR_EL1, x3
112 msr SCTLR_EL2, x3
113 msr SCTLR_EL3, x3
114 msr SDER32_EL3, x3
115 msr TCR_EL1, x3
116 msr TCR_EL2, x3
117 msr TCR_EL3, x3
118 msr TEECR32_EL1, x3
119 msr TEEHBR32_EL1, x3
120 msr TPIDRRO_EL0, x3
121 msr TPIDR_EL0, x3
122 msr TPIDR_EL1, x3
123 msr TPIDR_EL2, x3
124 msr TPIDR_EL3, x3
125 msr TTBR0_EL1, x3
126 msr TTBR0_EL2, x3
127 msr TTBR0_EL3, x3
128 msr TTBR1_EL1, x3
129 msr VBAR_EL1, x3
130 msr VBAR_EL2, x3
131 msr VBAR_EL3, x3
132 msr VMPIDR_EL2, x3
133 msr VPIDR_EL2, x3
134 msr VTCR_EL2, x3
135 msr VTTBR_EL2, x3
136 msr SPSel, x3
137 msr AMAIR2_EL1, x3
138 msr AMAIR2_EL12, x3
139 msr AMAIR2_EL2, x3
140 msr AMAIR2_EL3, x3
141 msr MAIR2_EL1, x3
142 msr MAIR2_EL12, x3
143 msr MAIR2_EL2, x3
144 msr MAIR2_EL3, x3
145 msr PIRE0_EL1, x3
146 msr PIRE0_EL12, x3
147 msr PIRE0_EL2, x3
148 msr PIR_EL1, x3
149 msr PIR_EL12, x3
150 msr PIR_EL2, x3
151 msr PIR_EL3, x3
152 msr S2PIR_EL2, x3
153 msr POR_EL0, x3
154 msr POR_EL1, x3
155 msr POR_EL12, x3
156 msr POR_EL2, x3
157 msr POR_EL3, x3
158 msr S2POR_EL1, x3
159 msr SCTLR2_EL1, x3
160 msr SCTLR2_EL12, x3
161 msr SCTLR2_EL2, x3
162 msr SCTLR2_EL3, x3
163 msr TCR2_EL1, x3
164 msr TCR2_EL12, x3
165 msr TCR2_EL2, x3
166 msr S3_2_C11_C6_4, x1
167 msr S0_0_C0_C0_0, x0
168 msr S1_2_C3_C4_5, x2
169 ; CHECK: msr ACTLR_EL1, x3 ; encoding: [0x23,0x10,0x18,0xd5]
170 ; CHECK: msr ACTLR_EL2, x3 ; encoding: [0x23,0x10,0x1c,0xd5]
171 ; CHECK: msr ACTLR_EL3, x3 ; encoding: [0x23,0x10,0x1e,0xd5]
172 ; CHECK: msr AFSR0_EL1, x3 ; encoding: [0x03,0x51,0x18,0xd5]
173 ; CHECK: msr AFSR0_EL2, x3 ; encoding: [0x03,0x51,0x1c,0xd5]
174 ; CHECK: msr AFSR0_EL3, x3 ; encoding: [0x03,0x51,0x1e,0xd5]
175 ; CHECK: msr AFSR1_EL1, x3 ; encoding: [0x23,0x51,0x18,0xd5]
176 ; CHECK: msr AFSR1_EL2, x3 ; encoding: [0x23,0x51,0x1c,0xd5]
177 ; CHECK: msr AFSR1_EL3, x3 ; encoding: [0x23,0x51,0x1e,0xd5]
178 ; CHECK: msr AMAIR_EL1, x3 ; encoding: [0x03,0xa3,0x18,0xd5]
179 ; CHECK: msr AMAIR_EL2, x3 ; encoding: [0x03,0xa3,0x1c,0xd5]
180 ; CHECK: msr AMAIR_EL3, x3 ; encoding: [0x03,0xa3,0x1e,0xd5]
181 ; CHECK: msr CNTFRQ_EL0, x3 ; encoding: [0x03,0xe0,0x1b,0xd5]
182 ; CHECK: msr CNTHCTL_EL2, x3 ; encoding: [0x03,0xe1,0x1c,0xd5]
183 ; CHECK: msr CNTHP_CTL_EL2, x3 ; encoding: [0x23,0xe2,0x1c,0xd5]
184 ; CHECK: msr CNTHP_CVAL_EL2, x3 ; encoding: [0x43,0xe2,0x1c,0xd5]
185 ; CHECK: msr CNTHP_TVAL_EL2, x3 ; encoding: [0x03,0xe2,0x1c,0xd5]
186 ; CHECK: msr CNTKCTL_EL1, x3 ; encoding: [0x03,0xe1,0x18,0xd5]
187 ; CHECK: msr CNTP_CTL_EL0, x3 ; encoding: [0x23,0xe2,0x1b,0xd5]
188 ; CHECK: msr CNTP_CVAL_EL0, x3 ; encoding: [0x43,0xe2,0x1b,0xd5]
189 ; CHECK: msr CNTP_TVAL_EL0, x3 ; encoding: [0x03,0xe2,0x1b,0xd5]
190 ; CHECK: msr CNTVOFF_EL2, x3 ; encoding: [0x63,0xe0,0x1c,0xd5]
191 ; CHECK: msr CNTV_CTL_EL0, x3 ; encoding: [0x23,0xe3,0x1b,0xd5]
192 ; CHECK: msr CNTV_CVAL_EL0, x3 ; encoding: [0x43,0xe3,0x1b,0xd5]
193 ; CHECK: msr CNTV_TVAL_EL0, x3 ; encoding: [0x03,0xe3,0x1b,0xd5]
194 ; CHECK: msr CONTEXTIDR_EL1, x3 ; encoding: [0x23,0xd0,0x18,0xd5]
195 ; CHECK: msr CPACR_EL1, x3 ; encoding: [0x43,0x10,0x18,0xd5]
196 ; CHECK: msr CPTR_EL2, x3 ; encoding: [0x43,0x11,0x1c,0xd5]
197 ; CHECK: msr CPTR_EL3, x3 ; encoding: [0x43,0x11,0x1e,0xd5]
198 ; CHECK: msr CSSELR_EL1, x3 ; encoding: [0x03,0x00,0x1a,0xd5]
199 ; CHECK: msr DACR32_EL2, x3 ; encoding: [0x03,0x30,0x1c,0xd5]
200 ; CHECK: msr ESR_EL1, x3 ; encoding: [0x03,0x52,0x18,0xd5]
201 ; CHECK: msr ESR_EL2, x3 ; encoding: [0x03,0x52,0x1c,0xd5]
202 ; CHECK: msr ESR_EL3, x3 ; encoding: [0x03,0x52,0x1e,0xd5]
203 ; CHECK: msr FAR_EL1, x3 ; encoding: [0x03,0x60,0x18,0xd5]
204 ; CHECK: msr FAR_EL2, x3 ; encoding: [0x03,0x60,0x1c,0xd5]
205 ; CHECK: msr FAR_EL3, x3 ; encoding: [0x03,0x60,0x1e,0xd5]
206 ; CHECK: msr FPEXC32_EL2, x3 ; encoding: [0x03,0x53,0x1c,0xd5]
207 ; CHECK: msr HACR_EL2, x3 ; encoding: [0xe3,0x11,0x1c,0xd5]
208 ; CHECK: msr HCR_EL2, x3 ; encoding: [0x03,0x11,0x1c,0xd5]
209 ; CHECK: msr HPFAR_EL2, x3 ; encoding: [0x83,0x60,0x1c,0xd5]
210 ; CHECK: msr HSTR_EL2, x3 ; encoding: [0x63,0x11,0x1c,0xd5]
211 ; CHECK: msr IFSR32_EL2, x3 ; encoding: [0x23,0x50,0x1c,0xd5]
212 ; CHECK: msr MAIR_EL1, x3 ; encoding: [0x03,0xa2,0x18,0xd5]
213 ; CHECK: msr MAIR_EL2, x3 ; encoding: [0x03,0xa2,0x1c,0xd5]
214 ; CHECK: msr MAIR_EL3, x3 ; encoding: [0x03,0xa2,0x1e,0xd5]
215 ; CHECK: msr MDCR_EL2, x3 ; encoding: [0x23,0x11,0x1c,0xd5]
216 ; CHECK: msr MDCR_EL3, x3 ; encoding: [0x23,0x13,0x1e,0xd5]
217 ; CHECK: msr PAR_EL1, x3 ; encoding: [0x03,0x74,0x18,0xd5]
218 ; CHECK: msr SCR_EL3, x3 ; encoding: [0x03,0x11,0x1e,0xd5]
219 ; CHECK: msr SCTLR_EL1, x3 ; encoding: [0x03,0x10,0x18,0xd5]
220 ; CHECK: msr SCTLR_EL2, x3 ; encoding: [0x03,0x10,0x1c,0xd5]
221 ; CHECK: msr SCTLR_EL3, x3 ; encoding: [0x03,0x10,0x1e,0xd5]
222 ; CHECK: msr SDER32_EL3, x3 ; encoding: [0x23,0x11,0x1e,0xd5]
223 ; CHECK: msr TCR_EL1, x3 ; encoding: [0x43,0x20,0x18,0xd5]
224 ; CHECK: msr TCR_EL2, x3 ; encoding: [0x43,0x20,0x1c,0xd5]
225 ; CHECK: msr TCR_EL3, x3 ; encoding: [0x43,0x20,0x1e,0xd5]
226 ; CHECK: msr TEECR32_EL1, x3 ; encoding: [0x03,0x00,0x12,0xd5]
227 ; CHECK: msr TEEHBR32_EL1, x3 ; encoding: [0x03,0x10,0x12,0xd5]
228 ; CHECK: msr TPIDRRO_EL0, x3 ; encoding: [0x63,0xd0,0x1b,0xd5]
229 ; CHECK: msr TPIDR_EL0, x3 ; encoding: [0x43,0xd0,0x1b,0xd5]
230 ; CHECK: msr TPIDR_EL1, x3 ; encoding: [0x83,0xd0,0x18,0xd5]
231 ; CHECK: msr TPIDR_EL2, x3 ; encoding: [0x43,0xd0,0x1c,0xd5]
232 ; CHECK: msr TPIDR_EL3, x3 ; encoding: [0x43,0xd0,0x1e,0xd5]
233 ; CHECK: msr TTBR0_EL1, x3 ; encoding: [0x03,0x20,0x18,0xd5]
234 ; CHECK: msr TTBR0_EL2, x3 ; encoding: [0x03,0x20,0x1c,0xd5]
235 ; CHECK: msr TTBR0_EL3, x3 ; encoding: [0x03,0x20,0x1e,0xd5]
236 ; CHECK: msr TTBR1_EL1, x3 ; encoding: [0x23,0x20,0x18,0xd5]
237 ; CHECK: msr VBAR_EL1, x3 ; encoding: [0x03,0xc0,0x18,0xd5]
238 ; CHECK: msr VBAR_EL2, x3 ; encoding: [0x03,0xc0,0x1c,0xd5]
239 ; CHECK: msr VBAR_EL3, x3 ; encoding: [0x03,0xc0,0x1e,0xd5]
240 ; CHECK: msr VMPIDR_EL2, x3 ; encoding: [0xa3,0x00,0x1c,0xd5]
241 ; CHECK: msr VPIDR_EL2, x3 ; encoding: [0x03,0x00,0x1c,0xd5]
242 ; CHECK: msr VTCR_EL2, x3 ; encoding: [0x43,0x21,0x1c,0xd5]
243 ; CHECK: msr VTTBR_EL2, x3 ; encoding: [0x03,0x21,0x1c,0xd5]
244 ; CHECK: msr SPSel, x3 ; encoding: [0x03,0x42,0x18,0xd5]
245 ; CHECK: msr AMAIR2_EL1, x3 ; encoding: [0x23,0xa3,0x18,0xd5]
246 ; CHECK: msr AMAIR2_EL12, x3 ; encoding: [0x23,0xa3,0x1d,0xd5]
247 ; CHECK: msr AMAIR2_EL2, x3 ; encoding: [0x23,0xa3,0x1c,0xd5]
248 ; CHECK: msr AMAIR2_EL3, x3 ; encoding: [0x23,0xa3,0x1e,0xd5]
249 ; CHECK: msr MAIR2_EL1, x3 ; encoding: [0x23,0xa2,0x18,0xd5]
250 ; CHECK: msr MAIR2_EL12, x3 ; encoding: [0x23,0xa2,0x1d,0xd5]
251 ; CHECK: msr MAIR2_EL2, x3 ; encoding: [0x23,0xa1,0x1c,0xd5]
252 ; CHECK: msr MAIR2_EL3, x3 ; encoding: [0x23,0xa1,0x1e,0xd5]
253 ; CHECK: msr PIRE0_EL1, x3 ; encoding: [0x43,0xa2,0x18,0xd5]
254 ; CHECK: msr PIRE0_EL12, x3 ; encoding: [0x43,0xa2,0x1d,0xd5]
255 ; CHECK: msr PIRE0_EL2, x3 ; encoding: [0x43,0xa2,0x1c,0xd5]
256 ; CHECK: msr PIR_EL1, x3 ; encoding: [0x63,0xa2,0x18,0xd5]
257 ; CHECK: msr PIR_EL12, x3 ; encoding: [0x63,0xa2,0x1d,0xd5]
258 ; CHECK: msr PIR_EL2, x3 ; encoding: [0x63,0xa2,0x1c,0xd5]
259 ; CHECK: msr PIR_EL3, x3 ; encoding: [0x63,0xa2,0x1e,0xd5]
260 ; CHECK: msr S2PIR_EL2, x3 ; encoding: [0xa3,0xa2,0x1c,0xd5]
261 ; CHECK: msr POR_EL0, x3 ; encoding: [0x83,0xa2,0x1b,0xd5]
262 ; CHECK: msr POR_EL1, x3 ; encoding: [0x83,0xa2,0x18,0xd5]
263 ; CHECK: msr POR_EL12, x3 ; encoding: [0x83,0xa2,0x1d,0xd5]
264 ; CHECK: msr POR_EL2, x3 ; encoding: [0x83,0xa2,0x1c,0xd5]
265 ; CHECK: msr POR_EL3, x3 ; encoding: [0x83,0xa2,0x1e,0xd5]
266 ; CHECK: msr S2POR_EL1, x3 ; encoding: [0xa3,0xa2,0x18,0xd5]
267 ; CHECK: msr SCTLR2_EL1, x3 ; encoding: [0x63,0x10,0x18,0xd5]
268 ; CHECK: msr SCTLR2_EL12, x3 ; encoding: [0x63,0x10,0x1d,0xd5]
269 ; CHECK: msr SCTLR2_EL2, x3 ; encoding: [0x63,0x10,0x1c,0xd5]
270 ; CHECK: msr SCTLR2_EL3, x3 ; encoding: [0x63,0x10,0x1e,0xd5]
271 ; CHECK: msr TCR2_EL1, x3 ; encoding: [0x63,0x20,0x18,0xd5]
272 ; CHECK: msr TCR2_EL12, x3 ; encoding: [0x63,0x20,0x1d,0xd5]
273 ; CHECK: msr TCR2_EL2, x3 ; encoding: [0x63,0x20,0x1c,0xd5]
274 ; CHECK: msr S3_2_C11_C6_4, x1 ; encoding: [0x81,0xb6,0x1a,0xd5]
275 ; CHECK: msr S0_0_C0_C0_0, x0 ; encoding: [0x00,0x00,0x00,0xd5]
276 ; CHECK: msr S1_2_C3_C4_5, x2 ; encoding: [0xa2,0x34,0x0a,0xd5]
278 // Readonly system registers: writing to them gives an error
279 msr CURRENTEL, x3
280 ; CHECK-ERRORS: :[[@LINE-1]]:7: error: expected writable system register or pstate
282 mrs x3, ACTLR_EL1
283 mrs x3, ACTLR_EL2
284 mrs x3, ACTLR_EL3
285 mrs x3, AFSR0_EL1
286 mrs x3, AFSR0_EL2
287 mrs x3, AFSR0_EL3
288 mrs x3, AIDR_EL1
289 mrs x3, AFSR1_EL1
290 mrs x3, AFSR1_EL2
291 mrs x3, AFSR1_EL3
292 mrs x3, AMAIR_EL1
293 mrs x3, AMAIR_EL2
294 mrs x3, AMAIR_EL3
295 mrs x3, CCSIDR_EL1
296 mrs x3, CLIDR_EL1
297 mrs x3, CCSIDR2_EL1
298 mrs x3, CNTFRQ_EL0
299 mrs x3, CNTHCTL_EL2
300 mrs x3, CNTHP_CTL_EL2
301 mrs x3, CNTHP_CVAL_EL2
302 mrs x3, CNTHP_TVAL_EL2
303 mrs x3, CNTKCTL_EL1
304 mrs x3, CNTPCT_EL0
305 mrs x3, CNTP_CTL_EL0
306 mrs x3, CNTP_CVAL_EL0
307 mrs x3, CNTP_TVAL_EL0
308 mrs x3, CNTVCT_EL0
309 mrs x3, CNTVOFF_EL2
310 mrs x3, CNTV_CTL_EL0
311 mrs x3, CNTV_CVAL_EL0
312 mrs x3, CNTV_TVAL_EL0
313 mrs x3, CONTEXTIDR_EL1
314 mrs x3, CPACR_EL1
315 mrs x3, CPTR_EL2
316 mrs x3, CPTR_EL3
317 mrs x3, CSSELR_EL1
318 mrs x3, CTR_EL0
319 mrs x3, CURRENTEL
320 mrs x3, DACR32_EL2
321 mrs x3, DCZID_EL0
322 mrs x3, REVIDR_EL1
323 mrs x3, ESR_EL1
324 mrs x3, ESR_EL2
325 mrs x3, ESR_EL3
326 mrs x3, FAR_EL1
327 mrs x3, FAR_EL2
328 mrs x3, FAR_EL3
329 mrs x3, FPEXC32_EL2
330 mrs x3, HACR_EL2
331 mrs x3, HCR_EL2
332 mrs x3, HPFAR_EL2
333 mrs x3, HSTR_EL2
334 mrs x3, ID_AA64DFR0_EL1
335 mrs x3, ID_AA64DFR1_EL1
336 mrs x3, ID_AA64ISAR0_EL1
337 mrs x3, ID_AA64ISAR1_EL1
338 mrs x3, ID_AA64ISAR2_EL1
339 mrs x3, ID_AA64ISAR3_EL1
340 mrs x3, ID_AA64MMFR0_EL1
341 mrs x3, ID_AA64MMFR1_EL1
342 mrs x3, ID_AA64MMFR2_EL1
343 mrs x3, ID_AA64MMFR3_EL1
344 mrs x3, ID_AA64MMFR4_EL1
345 mrs x3, ID_AA64PFR0_EL1
346 mrs x3, ID_AA64PFR1_EL1
347 mrs x3, ID_AA64PFR2_EL1
348 mrs x3, IFSR32_EL2
349 mrs x3, ISR_EL1
350 mrs x3, MAIR_EL1
351 mrs x3, MAIR_EL2
352 mrs x3, MAIR_EL3
353 mrs x3, MDCR_EL2
354 mrs x3, MDCR_EL3
355 mrs x3, MIDR_EL1
356 mrs x3, MPIDR_EL1
357 mrs x3, MVFR0_EL1
358 mrs x3, MVFR1_EL1
359 mrs x3, PAR_EL1
360 mrs x3, RVBAR_EL1
361 mrs x3, RVBAR_EL2
362 mrs x3, RVBAR_EL3
363 mrs x3, SCR_EL3
364 mrs x3, SCTLR_EL1
365 mrs x3, SCTLR_EL2
366 mrs x3, SCTLR_EL3
367 mrs x3, SDER32_EL3
368 mrs x3, TCR_EL1
369 mrs x3, TCR_EL2
370 mrs x3, TCR_EL3
371 mrs x3, TEECR32_EL1
372 mrs x3, TEEHBR32_EL1
373 mrs x3, TPIDRRO_EL0
374 mrs x3, TPIDR_EL0
375 mrs x3, TPIDR_EL1
376 mrs x3, TPIDR_EL2
377 mrs x3, TPIDR_EL3
378 mrs x3, TTBR0_EL1
379 mrs x3, TTBR0_EL2
380 mrs x3, TTBR0_EL3
381 mrs x3, TTBR1_EL1
382 mrs x3, VBAR_EL1
383 mrs x3, VBAR_EL2
384 mrs x3, VBAR_EL3
385 mrs x3, VMPIDR_EL2
386 mrs x3, VPIDR_EL2
387 mrs x3, VTCR_EL2
388 mrs x3, VTTBR_EL2
390 mrs x3, MDCCSR_EL0
391 mrs x3, MDCCINT_EL1
392 mrs x3, DBGDTR_EL0
393 mrs x3, DBGDTRRX_EL0
394 mrs x3, DBGVCR32_EL2
395 mrs x3, OSDTRRX_EL1
396 mrs x3, MDSCR_EL1
397 mrs x3, OSDTRTX_EL1
398 mrs x3, OSECCR_EL1
399 mrs x3, DBGBVR0_EL1
400 mrs x3, DBGBVR1_EL1
401 mrs x3, DBGBVR2_EL1
402 mrs x3, DBGBVR3_EL1
403 mrs x3, DBGBVR4_EL1
404 mrs x3, DBGBVR5_EL1
405 mrs x3, DBGBVR6_EL1
406 mrs x3, DBGBVR7_EL1
407 mrs x3, DBGBVR8_EL1
408 mrs x3, DBGBVR9_EL1
409 mrs x3, DBGBVR10_EL1
410 mrs x3, DBGBVR11_EL1
411 mrs x3, DBGBVR12_EL1
412 mrs x3, DBGBVR13_EL1
413 mrs x3, DBGBVR14_EL1
414 mrs x3, DBGBVR15_EL1
415 mrs x3, DBGBCR0_EL1
416 mrs x3, DBGBCR1_EL1
417 mrs x3, DBGBCR2_EL1
418 mrs x3, DBGBCR3_EL1
419 mrs x3, DBGBCR4_EL1
420 mrs x3, DBGBCR5_EL1
421 mrs x3, DBGBCR6_EL1
422 mrs x3, DBGBCR7_EL1
423 mrs x3, DBGBCR8_EL1
424 mrs x3, DBGBCR9_EL1
425 mrs x3, DBGBCR10_EL1
426 mrs x3, DBGBCR11_EL1
427 mrs x3, DBGBCR12_EL1
428 mrs x3, DBGBCR13_EL1
429 mrs x3, DBGBCR14_EL1
430 mrs x3, DBGBCR15_EL1
431 mrs x3, DBGWVR0_EL1
432 mrs x3, DBGWVR1_EL1
433 mrs x3, DBGWVR2_EL1
434 mrs x3, DBGWVR3_EL1
435 mrs x3, DBGWVR4_EL1
436 mrs x3, DBGWVR5_EL1
437 mrs x3, DBGWVR6_EL1
438 mrs x3, DBGWVR7_EL1
439 mrs x3, DBGWVR8_EL1
440 mrs x3, DBGWVR9_EL1
441 mrs x3, DBGWVR10_EL1
442 mrs x3, DBGWVR11_EL1
443 mrs x3, DBGWVR12_EL1
444 mrs x3, DBGWVR13_EL1
445 mrs x3, DBGWVR14_EL1
446 mrs x3, DBGWVR15_EL1
447 mrs x3, DBGWCR0_EL1
448 mrs x3, DBGWCR1_EL1
449 mrs x3, DBGWCR2_EL1
450 mrs x3, DBGWCR3_EL1
451 mrs x3, DBGWCR4_EL1
452 mrs x3, DBGWCR5_EL1
453 mrs x3, DBGWCR6_EL1
454 mrs x3, DBGWCR7_EL1
455 mrs x3, DBGWCR8_EL1
456 mrs x3, DBGWCR9_EL1
457 mrs x3, DBGWCR10_EL1
458 mrs x3, DBGWCR11_EL1
459 mrs x3, DBGWCR12_EL1
460 mrs x3, DBGWCR13_EL1
461 mrs x3, DBGWCR14_EL1
462 mrs x3, DBGWCR15_EL1
463 mrs x3, MDRAR_EL1
464 mrs x3, OSLSR_EL1
465 mrs x3, OSDLR_EL1
466 mrs x3, DBGPRCR_EL1
467 mrs x3, DBGCLAIMSET_EL1
468 mrs x3, DBGCLAIMCLR_EL1
469 mrs x3, DBGAUTHSTATUS_EL1
470 mrs x3, AMAIR2_EL1
471 mrs x3, AMAIR2_EL12
472 mrs x3, AMAIR2_EL2
473 mrs x3, AMAIR2_EL3
474 mrs x3, MAIR2_EL1
475 mrs x3, MAIR2_EL12
476 mrs x3, MAIR2_EL2
477 mrs x3, MAIR2_EL3
478 mrs x3, PIRE0_EL1
479 mrs x3, PIRE0_EL12
480 mrs x3, PIRE0_EL2
481 mrs x3, PIR_EL1
482 mrs x3, PIR_EL12
483 mrs x3, PIR_EL2
484 mrs x3, PIR_EL3
485 mrs x3, S2PIR_EL2
486 mrs x3, POR_EL0
487 mrs x3, POR_EL1
488 mrs x3, POR_EL12
489 mrs x3, POR_EL2
490 mrs x3, POR_EL3
491 mrs x3, S2POR_EL1
492 mrs x3, SCTLR2_EL1
493 mrs x3, SCTLR2_EL12
494 mrs x3, SCTLR2_EL2
495 mrs x3, SCTLR2_EL3
496 mrs x3, TCR2_EL1
497 mrs x3, TCR2_EL12
498 mrs x3, TCR2_EL2
499 mrs x1, S3_2_C15_C6_4
500 mrs x3, s3_3_c11_c1_4
501 mrs x3, S3_3_c11_c1_4
503 ; CHECK: mrs x3, ACTLR_EL1 ; encoding: [0x23,0x10,0x38,0xd5]
504 ; CHECK: mrs x3, ACTLR_EL2 ; encoding: [0x23,0x10,0x3c,0xd5]
505 ; CHECK: mrs x3, ACTLR_EL3 ; encoding: [0x23,0x10,0x3e,0xd5]
506 ; CHECK: mrs x3, AFSR0_EL1 ; encoding: [0x03,0x51,0x38,0xd5]
507 ; CHECK: mrs x3, AFSR0_EL2 ; encoding: [0x03,0x51,0x3c,0xd5]
508 ; CHECK: mrs x3, AFSR0_EL3 ; encoding: [0x03,0x51,0x3e,0xd5]
509 ; CHECK: mrs x3, AIDR_EL1 ; encoding: [0xe3,0x00,0x39,0xd5]
510 ; CHECK: mrs x3, AFSR1_EL1 ; encoding: [0x23,0x51,0x38,0xd5]
511 ; CHECK: mrs x3, AFSR1_EL2 ; encoding: [0x23,0x51,0x3c,0xd5]
512 ; CHECK: mrs x3, AFSR1_EL3 ; encoding: [0x23,0x51,0x3e,0xd5]
513 ; CHECK: mrs x3, AMAIR_EL1 ; encoding: [0x03,0xa3,0x38,0xd5]
514 ; CHECK: mrs x3, AMAIR_EL2 ; encoding: [0x03,0xa3,0x3c,0xd5]
515 ; CHECK: mrs x3, AMAIR_EL3 ; encoding: [0x03,0xa3,0x3e,0xd5]
516 ; CHECK: mrs x3, CCSIDR_EL1 ; encoding: [0x03,0x00,0x39,0xd5]
517 ; CHECK: mrs x3, CLIDR_EL1 ; encoding: [0x23,0x00,0x39,0xd5]
518 ; CHECK-V83: mrs x3, CCSIDR2_EL1 ; encoding: [0x43,0x00,0x39,0xd5]
519 ; CHECK: mrs x3, CNTFRQ_EL0 ; encoding: [0x03,0xe0,0x3b,0xd5]
520 ; CHECK: mrs x3, CNTHCTL_EL2 ; encoding: [0x03,0xe1,0x3c,0xd5]
521 ; CHECK: mrs x3, CNTHP_CTL_EL2 ; encoding: [0x23,0xe2,0x3c,0xd5]
522 ; CHECK: mrs x3, CNTHP_CVAL_EL2 ; encoding: [0x43,0xe2,0x3c,0xd5]
523 ; CHECK: mrs x3, CNTHP_TVAL_EL2 ; encoding: [0x03,0xe2,0x3c,0xd5]
524 ; CHECK: mrs x3, CNTKCTL_EL1 ; encoding: [0x03,0xe1,0x38,0xd5]
525 ; CHECK: mrs x3, CNTPCT_EL0 ; encoding: [0x23,0xe0,0x3b,0xd5]
526 ; CHECK: mrs x3, CNTP_CTL_EL0 ; encoding: [0x23,0xe2,0x3b,0xd5]
527 ; CHECK: mrs x3, CNTP_CVAL_EL0 ; encoding: [0x43,0xe2,0x3b,0xd5]
528 ; CHECK: mrs x3, CNTP_TVAL_EL0 ; encoding: [0x03,0xe2,0x3b,0xd5]
529 ; CHECK: mrs x3, CNTVCT_EL0 ; encoding: [0x43,0xe0,0x3b,0xd5]
530 ; CHECK: mrs x3, CNTVOFF_EL2 ; encoding: [0x63,0xe0,0x3c,0xd5]
531 ; CHECK: mrs x3, CNTV_CTL_EL0 ; encoding: [0x23,0xe3,0x3b,0xd5]
532 ; CHECK: mrs x3, CNTV_CVAL_EL0 ; encoding: [0x43,0xe3,0x3b,0xd5]
533 ; CHECK: mrs x3, CNTV_TVAL_EL0 ; encoding: [0x03,0xe3,0x3b,0xd5]
534 ; CHECK: mrs x3, CONTEXTIDR_EL1 ; encoding: [0x23,0xd0,0x38,0xd5]
535 ; CHECK: mrs x3, CPACR_EL1 ; encoding: [0x43,0x10,0x38,0xd5]
536 ; CHECK: mrs x3, CPTR_EL2 ; encoding: [0x43,0x11,0x3c,0xd5]
537 ; CHECK: mrs x3, CPTR_EL3 ; encoding: [0x43,0x11,0x3e,0xd5]
538 ; CHECK: mrs x3, CSSELR_EL1 ; encoding: [0x03,0x00,0x3a,0xd5]
539 ; CHECK: mrs x3, CTR_EL0 ; encoding: [0x23,0x00,0x3b,0xd5]
540 ; CHECK: mrs x3, CurrentEL ; encoding: [0x43,0x42,0x38,0xd5]
541 ; CHECK: mrs x3, DACR32_EL2 ; encoding: [0x03,0x30,0x3c,0xd5]
542 ; CHECK: mrs x3, DCZID_EL0 ; encoding: [0xe3,0x00,0x3b,0xd5]
543 ; CHECK: mrs x3, REVIDR_EL1 ; encoding: [0xc3,0x00,0x38,0xd5]
544 ; CHECK: mrs x3, ESR_EL1 ; encoding: [0x03,0x52,0x38,0xd5]
545 ; CHECK: mrs x3, ESR_EL2 ; encoding: [0x03,0x52,0x3c,0xd5]
546 ; CHECK: mrs x3, ESR_EL3 ; encoding: [0x03,0x52,0x3e,0xd5]
547 ; CHECK: mrs x3, FAR_EL1 ; encoding: [0x03,0x60,0x38,0xd5]
548 ; CHECK: mrs x3, FAR_EL2 ; encoding: [0x03,0x60,0x3c,0xd5]
549 ; CHECK: mrs x3, FAR_EL3 ; encoding: [0x03,0x60,0x3e,0xd5]
550 ; CHECK: mrs x3, FPEXC32_EL2 ; encoding: [0x03,0x53,0x3c,0xd5]
551 ; CHECK: mrs x3, HACR_EL2 ; encoding: [0xe3,0x11,0x3c,0xd5]
552 ; CHECK: mrs x3, HCR_EL2 ; encoding: [0x03,0x11,0x3c,0xd5]
553 ; CHECK: mrs x3, HPFAR_EL2 ; encoding: [0x83,0x60,0x3c,0xd5]
554 ; CHECK: mrs x3, HSTR_EL2 ; encoding: [0x63,0x11,0x3c,0xd5]
555 ; CHECK: mrs x3, ID_AA64DFR0_EL1 ; encoding: [0x03,0x05,0x38,0xd5]
556 ; CHECK: mrs x3, ID_AA64DFR1_EL1 ; encoding: [0x23,0x05,0x38,0xd5]
557 ; CHECK: mrs x3, ID_AA64ISAR0_EL1 ; encoding: [0x03,0x06,0x38,0xd5]
558 ; CHECK: mrs x3, ID_AA64ISAR1_EL1 ; encoding: [0x23,0x06,0x38,0xd5]
559 ; CHECK: mrs x3, ID_AA64ISAR2_EL1 ; encoding: [0x43,0x06,0x38,0xd5]
560 ; CHECK: mrs x3, ID_AA64ISAR3_EL1 ; encoding: [0x63,0x06,0x38,0xd5]
561 ; CHECK: mrs x3, ID_AA64MMFR0_EL1 ; encoding: [0x03,0x07,0x38,0xd5]
562 ; CHECK: mrs x3, ID_AA64MMFR1_EL1 ; encoding: [0x23,0x07,0x38,0xd5]
563 ; CHECK: mrs x3, ID_AA64MMFR2_EL1 ; encoding: [0x43,0x07,0x38,0xd5]
564 ; CHECK: mrs x3, ID_AA64MMFR3_EL1 ; encoding: [0x63,0x07,0x38,0xd5]
565 ; CHECK: mrs x3, ID_AA64MMFR4_EL1 ; encoding: [0x83,0x07,0x38,0xd5]
566 ; CHECK: mrs x3, ID_AA64PFR0_EL1 ; encoding: [0x03,0x04,0x38,0xd5]
567 ; CHECK: mrs x3, ID_AA64PFR1_EL1 ; encoding: [0x23,0x04,0x38,0xd5]
568 ; CHECK: mrs x3, ID_AA64PFR2_EL1 ; encoding: [0x43,0x04,0x38,0xd5]
569 ; CHECK: mrs x3, IFSR32_EL2 ; encoding: [0x23,0x50,0x3c,0xd5]
570 ; CHECK: mrs x3, ISR_EL1 ; encoding: [0x03,0xc1,0x38,0xd5]
571 ; CHECK: mrs x3, MAIR_EL1 ; encoding: [0x03,0xa2,0x38,0xd5]
572 ; CHECK: mrs x3, MAIR_EL2 ; encoding: [0x03,0xa2,0x3c,0xd5]
573 ; CHECK: mrs x3, MAIR_EL3 ; encoding: [0x03,0xa2,0x3e,0xd5]
574 ; CHECK: mrs x3, MDCR_EL2 ; encoding: [0x23,0x11,0x3c,0xd5]
575 ; CHECK: mrs x3, MDCR_EL3 ; encoding: [0x23,0x13,0x3e,0xd5]
576 ; CHECK: mrs x3, MIDR_EL1 ; encoding: [0x03,0x00,0x38,0xd5]
577 ; CHECK: mrs x3, MPIDR_EL1 ; encoding: [0xa3,0x00,0x38,0xd5]
578 ; CHECK: mrs x3, MVFR0_EL1 ; encoding: [0x03,0x03,0x38,0xd5]
579 ; CHECK: mrs x3, MVFR1_EL1 ; encoding: [0x23,0x03,0x38,0xd5]
580 ; CHECK: mrs x3, PAR_EL1 ; encoding: [0x03,0x74,0x38,0xd5]
581 ; CHECK: mrs x3, RVBAR_EL1 ; encoding: [0x23,0xc0,0x38,0xd5]
582 ; CHECK: mrs x3, RVBAR_EL2 ; encoding: [0x23,0xc0,0x3c,0xd5]
583 ; CHECK: mrs x3, RVBAR_EL3 ; encoding: [0x23,0xc0,0x3e,0xd5]
584 ; CHECK: mrs x3, SCR_EL3 ; encoding: [0x03,0x11,0x3e,0xd5]
585 ; CHECK: mrs x3, SCTLR_EL1 ; encoding: [0x03,0x10,0x38,0xd5]
586 ; CHECK: mrs x3, SCTLR_EL2 ; encoding: [0x03,0x10,0x3c,0xd5]
587 ; CHECK: mrs x3, SCTLR_EL3 ; encoding: [0x03,0x10,0x3e,0xd5]
588 ; CHECK: mrs x3, SDER32_EL3 ; encoding: [0x23,0x11,0x3e,0xd5]
589 ; CHECK: mrs x3, TCR_EL1 ; encoding: [0x43,0x20,0x38,0xd5]
590 ; CHECK: mrs x3, TCR_EL2 ; encoding: [0x43,0x20,0x3c,0xd5]
591 ; CHECK: mrs x3, TCR_EL3 ; encoding: [0x43,0x20,0x3e,0xd5]
592 ; CHECK: mrs x3, TEECR32_EL1 ; encoding: [0x03,0x00,0x32,0xd5]
593 ; CHECK: mrs x3, TEEHBR32_EL1 ; encoding: [0x03,0x10,0x32,0xd5]
594 ; CHECK: mrs x3, TPIDRRO_EL0 ; encoding: [0x63,0xd0,0x3b,0xd5]
595 ; CHECK: mrs x3, TPIDR_EL0 ; encoding: [0x43,0xd0,0x3b,0xd5]
596 ; CHECK: mrs x3, TPIDR_EL1 ; encoding: [0x83,0xd0,0x38,0xd5]
597 ; CHECK: mrs x3, TPIDR_EL2 ; encoding: [0x43,0xd0,0x3c,0xd5]
598 ; CHECK: mrs x3, TPIDR_EL3 ; encoding: [0x43,0xd0,0x3e,0xd5]
599 ; CHECK: mrs x3, TTBR0_EL1 ; encoding: [0x03,0x20,0x38,0xd5]
600 ; CHECK: mrs x3, TTBR0_EL2 ; encoding: [0x03,0x20,0x3c,0xd5]
601 ; CHECK: mrs x3, TTBR0_EL3 ; encoding: [0x03,0x20,0x3e,0xd5]
602 ; CHECK: mrs x3, TTBR1_EL1 ; encoding: [0x23,0x20,0x38,0xd5]
603 ; CHECK: mrs x3, VBAR_EL1 ; encoding: [0x03,0xc0,0x38,0xd5]
604 ; CHECK: mrs x3, VBAR_EL2 ; encoding: [0x03,0xc0,0x3c,0xd5]
605 ; CHECK: mrs x3, VBAR_EL3 ; encoding: [0x03,0xc0,0x3e,0xd5]
606 ; CHECK: mrs x3, VMPIDR_EL2 ; encoding: [0xa3,0x00,0x3c,0xd5]
607 ; CHECK: mrs x3, VPIDR_EL2 ; encoding: [0x03,0x00,0x3c,0xd5]
608 ; CHECK: mrs x3, VTCR_EL2 ; encoding: [0x43,0x21,0x3c,0xd5]
609 ; CHECK: mrs x3, VTTBR_EL2 ; encoding: [0x03,0x21,0x3c,0xd5]
610 ; CHECK: mrs x3, MDCCSR_EL0 ; encoding: [0x03,0x01,0x33,0xd5]
611 ; CHECK: mrs x3, MDCCINT_EL1 ; encoding: [0x03,0x02,0x30,0xd5]
612 ; CHECK: mrs x3, DBGDTR_EL0 ; encoding: [0x03,0x04,0x33,0xd5]
613 ; CHECK: mrs x3, DBGDTRRX_EL0 ; encoding: [0x03,0x05,0x33,0xd5]
614 ; CHECK: mrs x3, DBGVCR32_EL2 ; encoding: [0x03,0x07,0x34,0xd5]
615 ; CHECK: mrs x3, OSDTRRX_EL1 ; encoding: [0x43,0x00,0x30,0xd5]
616 ; CHECK: mrs x3, MDSCR_EL1 ; encoding: [0x43,0x02,0x30,0xd5]
617 ; CHECK: mrs x3, OSDTRTX_EL1 ; encoding: [0x43,0x03,0x30,0xd5]
618 ; CHECK: mrs x3, OSECCR_EL1 ; encoding: [0x43,0x06,0x30,0xd5]
619 ; CHECK: mrs x3, DBGBVR0_EL1 ; encoding: [0x83,0x00,0x30,0xd5]
620 ; CHECK: mrs x3, DBGBVR1_EL1 ; encoding: [0x83,0x01,0x30,0xd5]
621 ; CHECK: mrs x3, DBGBVR2_EL1 ; encoding: [0x83,0x02,0x30,0xd5]
622 ; CHECK: mrs x3, DBGBVR3_EL1 ; encoding: [0x83,0x03,0x30,0xd5]
623 ; CHECK: mrs x3, DBGBVR4_EL1 ; encoding: [0x83,0x04,0x30,0xd5]
624 ; CHECK: mrs x3, DBGBVR5_EL1 ; encoding: [0x83,0x05,0x30,0xd5]
625 ; CHECK: mrs x3, DBGBVR6_EL1 ; encoding: [0x83,0x06,0x30,0xd5]
626 ; CHECK: mrs x3, DBGBVR7_EL1 ; encoding: [0x83,0x07,0x30,0xd5]
627 ; CHECK: mrs x3, DBGBVR8_EL1 ; encoding: [0x83,0x08,0x30,0xd5]
628 ; CHECK: mrs x3, DBGBVR9_EL1 ; encoding: [0x83,0x09,0x30,0xd5]
629 ; CHECK: mrs x3, DBGBVR10_EL1 ; encoding: [0x83,0x0a,0x30,0xd5]
630 ; CHECK: mrs x3, DBGBVR11_EL1 ; encoding: [0x83,0x0b,0x30,0xd5]
631 ; CHECK: mrs x3, DBGBVR12_EL1 ; encoding: [0x83,0x0c,0x30,0xd5]
632 ; CHECK: mrs x3, DBGBVR13_EL1 ; encoding: [0x83,0x0d,0x30,0xd5]
633 ; CHECK: mrs x3, DBGBVR14_EL1 ; encoding: [0x83,0x0e,0x30,0xd5]
634 ; CHECK: mrs x3, DBGBVR15_EL1 ; encoding: [0x83,0x0f,0x30,0xd5]
635 ; CHECK: mrs x3, DBGBCR0_EL1 ; encoding: [0xa3,0x00,0x30,0xd5]
636 ; CHECK: mrs x3, DBGBCR1_EL1 ; encoding: [0xa3,0x01,0x30,0xd5]
637 ; CHECK: mrs x3, DBGBCR2_EL1 ; encoding: [0xa3,0x02,0x30,0xd5]
638 ; CHECK: mrs x3, DBGBCR3_EL1 ; encoding: [0xa3,0x03,0x30,0xd5]
639 ; CHECK: mrs x3, DBGBCR4_EL1 ; encoding: [0xa3,0x04,0x30,0xd5]
640 ; CHECK: mrs x3, DBGBCR5_EL1 ; encoding: [0xa3,0x05,0x30,0xd5]
641 ; CHECK: mrs x3, DBGBCR6_EL1 ; encoding: [0xa3,0x06,0x30,0xd5]
642 ; CHECK: mrs x3, DBGBCR7_EL1 ; encoding: [0xa3,0x07,0x30,0xd5]
643 ; CHECK: mrs x3, DBGBCR8_EL1 ; encoding: [0xa3,0x08,0x30,0xd5]
644 ; CHECK: mrs x3, DBGBCR9_EL1 ; encoding: [0xa3,0x09,0x30,0xd5]
645 ; CHECK: mrs x3, DBGBCR10_EL1 ; encoding: [0xa3,0x0a,0x30,0xd5]
646 ; CHECK: mrs x3, DBGBCR11_EL1 ; encoding: [0xa3,0x0b,0x30,0xd5]
647 ; CHECK: mrs x3, DBGBCR12_EL1 ; encoding: [0xa3,0x0c,0x30,0xd5]
648 ; CHECK: mrs x3, DBGBCR13_EL1 ; encoding: [0xa3,0x0d,0x30,0xd5]
649 ; CHECK: mrs x3, DBGBCR14_EL1 ; encoding: [0xa3,0x0e,0x30,0xd5]
650 ; CHECK: mrs x3, DBGBCR15_EL1 ; encoding: [0xa3,0x0f,0x30,0xd5]
651 ; CHECK: mrs x3, DBGWVR0_EL1 ; encoding: [0xc3,0x00,0x30,0xd5]
652 ; CHECK: mrs x3, DBGWVR1_EL1 ; encoding: [0xc3,0x01,0x30,0xd5]
653 ; CHECK: mrs x3, DBGWVR2_EL1 ; encoding: [0xc3,0x02,0x30,0xd5]
654 ; CHECK: mrs x3, DBGWVR3_EL1 ; encoding: [0xc3,0x03,0x30,0xd5]
655 ; CHECK: mrs x3, DBGWVR4_EL1 ; encoding: [0xc3,0x04,0x30,0xd5]
656 ; CHECK: mrs x3, DBGWVR5_EL1 ; encoding: [0xc3,0x05,0x30,0xd5]
657 ; CHECK: mrs x3, DBGWVR6_EL1 ; encoding: [0xc3,0x06,0x30,0xd5]
658 ; CHECK: mrs x3, DBGWVR7_EL1 ; encoding: [0xc3,0x07,0x30,0xd5]
659 ; CHECK: mrs x3, DBGWVR8_EL1 ; encoding: [0xc3,0x08,0x30,0xd5]
660 ; CHECK: mrs x3, DBGWVR9_EL1 ; encoding: [0xc3,0x09,0x30,0xd5]
661 ; CHECK: mrs x3, DBGWVR10_EL1 ; encoding: [0xc3,0x0a,0x30,0xd5]
662 ; CHECK: mrs x3, DBGWVR11_EL1 ; encoding: [0xc3,0x0b,0x30,0xd5]
663 ; CHECK: mrs x3, DBGWVR12_EL1 ; encoding: [0xc3,0x0c,0x30,0xd5]
664 ; CHECK: mrs x3, DBGWVR13_EL1 ; encoding: [0xc3,0x0d,0x30,0xd5]
665 ; CHECK: mrs x3, DBGWVR14_EL1 ; encoding: [0xc3,0x0e,0x30,0xd5]
666 ; CHECK: mrs x3, DBGWVR15_EL1 ; encoding: [0xc3,0x0f,0x30,0xd5]
667 ; CHECK: mrs x3, DBGWCR0_EL1 ; encoding: [0xe3,0x00,0x30,0xd5]
668 ; CHECK: mrs x3, DBGWCR1_EL1 ; encoding: [0xe3,0x01,0x30,0xd5]
669 ; CHECK: mrs x3, DBGWCR2_EL1 ; encoding: [0xe3,0x02,0x30,0xd5]
670 ; CHECK: mrs x3, DBGWCR3_EL1 ; encoding: [0xe3,0x03,0x30,0xd5]
671 ; CHECK: mrs x3, DBGWCR4_EL1 ; encoding: [0xe3,0x04,0x30,0xd5]
672 ; CHECK: mrs x3, DBGWCR5_EL1 ; encoding: [0xe3,0x05,0x30,0xd5]
673 ; CHECK: mrs x3, DBGWCR6_EL1 ; encoding: [0xe3,0x06,0x30,0xd5]
674 ; CHECK: mrs x3, DBGWCR7_EL1 ; encoding: [0xe3,0x07,0x30,0xd5]
675 ; CHECK: mrs x3, DBGWCR8_EL1 ; encoding: [0xe3,0x08,0x30,0xd5]
676 ; CHECK: mrs x3, DBGWCR9_EL1 ; encoding: [0xe3,0x09,0x30,0xd5]
677 ; CHECK: mrs x3, DBGWCR10_EL1 ; encoding: [0xe3,0x0a,0x30,0xd5]
678 ; CHECK: mrs x3, DBGWCR11_EL1 ; encoding: [0xe3,0x0b,0x30,0xd5]
679 ; CHECK: mrs x3, DBGWCR12_EL1 ; encoding: [0xe3,0x0c,0x30,0xd5]
680 ; CHECK: mrs x3, DBGWCR13_EL1 ; encoding: [0xe3,0x0d,0x30,0xd5]
681 ; CHECK: mrs x3, DBGWCR14_EL1 ; encoding: [0xe3,0x0e,0x30,0xd5]
682 ; CHECK: mrs x3, DBGWCR15_EL1 ; encoding: [0xe3,0x0f,0x30,0xd5]
683 ; CHECK: mrs x3, MDRAR_EL1 ; encoding: [0x03,0x10,0x30,0xd5]
684 ; CHECK: mrs x3, OSLSR_EL1 ; encoding: [0x83,0x11,0x30,0xd5]
685 ; CHECK: mrs x3, OSDLR_EL1 ; encoding: [0x83,0x13,0x30,0xd5]
686 ; CHECK: mrs x3, DBGPRCR_EL1 ; encoding: [0x83,0x14,0x30,0xd5]
687 ; CHECK: mrs x3, DBGCLAIMSET_EL1 ; encoding: [0xc3,0x78,0x30,0xd5]
688 ; CHECK: mrs x3, DBGCLAIMCLR_EL1 ; encoding: [0xc3,0x79,0x30,0xd5]
689 ; CHECK: mrs x3, DBGAUTHSTATUS_EL1 ; encoding: [0xc3,0x7e,0x30,0xd5]
690 ; CHECK: mrs x3, AMAIR2_EL1 ; encoding: [0x23,0xa3,0x38,0xd5]
691 ; CHECK: mrs x3, AMAIR2_EL12 ; encoding: [0x23,0xa3,0x3d,0xd5]
692 ; CHECK: mrs x3, AMAIR2_EL2 ; encoding: [0x23,0xa3,0x3c,0xd5]
693 ; CHECK: mrs x3, AMAIR2_EL3 ; encoding: [0x23,0xa3,0x3e,0xd5]
694 ; CHECK: mrs x3, MAIR2_EL1 ; encoding: [0x23,0xa2,0x38,0xd5]
695 ; CHECK: mrs x3, MAIR2_EL12 ; encoding: [0x23,0xa2,0x3d,0xd5]
696 ; CHECK: mrs x3, MAIR2_EL2 ; encoding: [0x23,0xa1,0x3c,0xd5]
697 ; CHECK: mrs x3, MAIR2_EL3 ; encoding: [0x23,0xa1,0x3e,0xd5]
698 ; CHECK: mrs x3, PIRE0_EL1 ; encoding: [0x43,0xa2,0x38,0xd5]
699 ; CHECK: mrs x3, PIRE0_EL12 ; encoding: [0x43,0xa2,0x3d,0xd5]
700 ; CHECK: mrs x3, PIRE0_EL2 ; encoding: [0x43,0xa2,0x3c,0xd5]
701 ; CHECK: mrs x3, PIR_EL1 ; encoding: [0x63,0xa2,0x38,0xd5]
702 ; CHECK: mrs x3, PIR_EL12 ; encoding: [0x63,0xa2,0x3d,0xd5]
703 ; CHECK: mrs x3, PIR_EL2 ; encoding: [0x63,0xa2,0x3c,0xd5]
704 ; CHECK: mrs x3, PIR_EL3 ; encoding: [0x63,0xa2,0x3e,0xd5]
705 ; CHECK: mrs x3, S2PIR_EL2 ; encoding: [0xa3,0xa2,0x3c,0xd5]
706 ; CHECK: mrs x3, POR_EL0 ; encoding: [0x83,0xa2,0x3b,0xd5]
707 ; CHECK: mrs x3, POR_EL1 ; encoding: [0x83,0xa2,0x38,0xd5]
708 ; CHECK: mrs x3, POR_EL12 ; encoding: [0x83,0xa2,0x3d,0xd5]
709 ; CHECK: mrs x3, POR_EL2 ; encoding: [0x83,0xa2,0x3c,0xd5]
710 ; CHECK: mrs x3, POR_EL3 ; encoding: [0x83,0xa2,0x3e,0xd5]
711 ; CHECK: mrs x3, S2POR_EL1 ; encoding: [0xa3,0xa2,0x38,0xd5]
712 ; CHECK: mrs x3, SCTLR2_EL1 ; encoding: [0x63,0x10,0x38,0xd5]
713 ; CHECK: mrs x3, SCTLR2_EL12 ; encoding: [0x63,0x10,0x3d,0xd5]
714 ; CHECK: mrs x3, SCTLR2_EL2 ; encoding: [0x63,0x10,0x3c,0xd5]
715 ; CHECK: mrs x3, SCTLR2_EL3 ; encoding: [0x63,0x10,0x3e,0xd5]
716 ; CHECK: mrs x3, TCR2_EL1 ; encoding: [0x63,0x20,0x38,0xd5]
717 ; CHECK: mrs x3, TCR2_EL12 ; encoding: [0x63,0x20,0x3d,0xd5]
718 ; CHECK: mrs x3, TCR2_EL2 ; encoding: [0x63,0x20,0x3c,0xd5]
719 ; CHECK: mrs x1, S3_2_C15_C6_4 ; encoding: [0x81,0xf6,0x3a,0xd5]
720 ; CHECK: mrs x3, S3_3_C11_C1_4 ; encoding: [0x83,0xb1,0x3b,0xd5]
721 ; CHECK: mrs x3, S3_3_C11_C1_4 ; encoding: [0x83,0xb1,0x3b,0xd5]
723 msr RMR_EL3, x0
724 msr RMR_EL2, x0
725 msr RMR_EL1, x0
726 msr OSLAR_EL1, x3
727 msr DBGDTRTX_EL0, x3
729 ; CHECK: msr RMR_EL3, x0 ; encoding: [0x40,0xc0,0x1e,0xd5]
730 ; CHECK: msr RMR_EL2, x0 ; encoding: [0x40,0xc0,0x1c,0xd5]
731 ; CHECK: msr RMR_EL1, x0 ; encoding: [0x40,0xc0,0x18,0xd5]
732 ; CHECK: msr OSLAR_EL1, x3 ; encoding: [0x83,0x10,0x10,0xd5]
733 ; CHECK: msr DBGDTRTX_EL0, x3 ; encoding: [0x03,0x05,0x13,0xd5]
735 mrs x0, ID_PFR0_EL1
736 mrs x0, ID_PFR1_EL1
737 mrs x0, ID_DFR0_EL1
738 mrs x0, ID_DFR1_EL1
739 mrs x0, ID_AFR0_EL1
740 mrs x0, ID_ISAR0_EL1
741 mrs x0, ID_ISAR1_EL1
742 mrs x0, ID_ISAR2_EL1
743 mrs x0, ID_ISAR3_EL1
744 mrs x0, ID_ISAR4_EL1
745 mrs x0, ID_ISAR5_EL1
746 mrs x0, AFSR1_EL1
747 mrs x0, AFSR0_EL1
748 mrs x0, REVIDR_EL1
749 ; CHECK: mrs x0, ID_PFR0_EL1 ; encoding: [0x00,0x01,0x38,0xd5]
750 ; CHECK: mrs x0, ID_PFR1_EL1 ; encoding: [0x20,0x01,0x38,0xd5]
751 ; CHECK: mrs x0, ID_DFR0_EL1 ; encoding: [0x40,0x01,0x38,0xd5]
752 ; CHECK: mrs x0, ID_DFR1_EL1 ; encoding: [0xa0,0x03,0x38,0xd5]
753 ; CHECK: mrs x0, ID_AFR0_EL1 ; encoding: [0x60,0x01,0x38,0xd5]
754 ; CHECK: mrs x0, ID_ISAR0_EL1 ; encoding: [0x00,0x02,0x38,0xd5]
755 ; CHECK: mrs x0, ID_ISAR1_EL1 ; encoding: [0x20,0x02,0x38,0xd5]
756 ; CHECK: mrs x0, ID_ISAR2_EL1 ; encoding: [0x40,0x02,0x38,0xd5]
757 ; CHECK: mrs x0, ID_ISAR3_EL1 ; encoding: [0x60,0x02,0x38,0xd5]
758 ; CHECK: mrs x0, ID_ISAR4_EL1 ; encoding: [0x80,0x02,0x38,0xd5]
759 ; CHECK: mrs x0, ID_ISAR5_EL1 ; encoding: [0xa0,0x02,0x38,0xd5]
760 ; CHECK: mrs x0, AFSR1_EL1 ; encoding: [0x20,0x51,0x38,0xd5]
761 ; CHECK: mrs x0, AFSR0_EL1 ; encoding: [0x00,0x51,0x38,0xd5]
762 ; CHECK: mrs x0, REVIDR_EL1 ; encoding: [0xc0,0x00,0x38,0xd5]