aarch64: Add testcase for HCR_EL2 system register

HCR_EL2 is a 64-bit Hypervisor Configuration Register.

gas/ChangeLog:

2020-10-16  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>

	* testsuite/gas/aarch64/sysreg-6.d: New test.
	* testsuite/gas/aarch64/sysreg-6.s: New test.
This commit is contained in:
Przemyslaw Wirkus 2020-10-21 18:28:27 +01:00
parent 5962451351
commit ffd73a8b9e
2 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,9 @@
#objdump: -dr
.*: file format .*
Disassembly of section \.text:
0+ <.*>:
[^:]+: d51c1100 msr hcr_el2, x0
[^:]+: d53c1100 mrs x0, hcr_el2

View File

@ -0,0 +1,2 @@
msr hcr_el2, x0
mrs x0,hcr_el2