aarch64: Add testcase for HCR_EL2 system register
authorPrzemyslaw Wirkus <przemyslaw.wirkus@arm.com>
Wed, 21 Oct 2020 17:28:27 +0000 (18:28 +0100)
committerPrzemyslaw Wirkus <przemyslaw.wirkus@arm.com>
Wed, 21 Oct 2020 17:28:27 +0000 (18:28 +0100)
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.

gas/testsuite/gas/aarch64/sysreg-6.d [new file with mode: 0644]
gas/testsuite/gas/aarch64/sysreg-6.s [new file with mode: 0644]

diff --git a/gas/testsuite/gas/aarch64/sysreg-6.d b/gas/testsuite/gas/aarch64/sysreg-6.d
new file mode 100644 (file)
index 0000000..ac928ce
--- /dev/null
@@ -0,0 +1,9 @@
+#objdump: -dr
+
+.*:     file format .*
+
+Disassembly of section \.text:
+
+0+ <.*>:
+[^:]+: d51c1100        msr     hcr_el2, x0
+[^:]+: d53c1100        mrs     x0, hcr_el2
diff --git a/gas/testsuite/gas/aarch64/sysreg-6.s b/gas/testsuite/gas/aarch64/sysreg-6.s
new file mode 100644 (file)
index 0000000..c6772ae
--- /dev/null
@@ -0,0 +1,2 @@
+msr hcr_el2, x0
+mrs x0,hcr_el2