From ffd73a8b9ed30934b3cd00c15f5aa041621dcf9c Mon Sep 17 00:00:00 2001 From: Przemyslaw Wirkus Date: Wed, 21 Oct 2020 18:28:27 +0100 Subject: [PATCH] aarch64: Add testcase for HCR_EL2 system register HCR_EL2 is a 64-bit Hypervisor Configuration Register. gas/ChangeLog: 2020-10-16 Przemyslaw Wirkus * testsuite/gas/aarch64/sysreg-6.d: New test. * testsuite/gas/aarch64/sysreg-6.s: New test. --- gas/testsuite/gas/aarch64/sysreg-6.d | 9 +++++++++ gas/testsuite/gas/aarch64/sysreg-6.s | 2 ++ 2 files changed, 11 insertions(+) create mode 100644 gas/testsuite/gas/aarch64/sysreg-6.d create mode 100644 gas/testsuite/gas/aarch64/sysreg-6.s diff --git a/gas/testsuite/gas/aarch64/sysreg-6.d b/gas/testsuite/gas/aarch64/sysreg-6.d new file mode 100644 index 00000000000..ac928ce3037 --- /dev/null +++ b/gas/testsuite/gas/aarch64/sysreg-6.d @@ -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 index 00000000000..c6772ae732d --- /dev/null +++ b/gas/testsuite/gas/aarch64/sysreg-6.s @@ -0,0 +1,2 @@ +msr hcr_el2, x0 +mrs x0,hcr_el2 -- 2.30.2