From 43e228e98c33d3dbb428f4061de0362ba13ffbf5 Mon Sep 17 00:00:00 2001 From: Srinath Parvathaneni Date: Thu, 16 Nov 2023 12:16:53 +0000 Subject: aarch64: Add features to the Statistical Profiling Extension. This patch adds features to the Statistical Profiling Extension, identified as FEAT_SPEv1p4, FEAT_SPE_FDS, and FEAT_SPE_CRR, which are enabled by default from Armv9.4-A. Also adds support for system register "pmsdsfr_el1". --- gas/testsuite/gas/aarch64/armv8_9-a-sysregs-bad.d | 3 +++ gas/testsuite/gas/aarch64/armv8_9-a-sysregs-bad.l | 3 +++ gas/testsuite/gas/aarch64/armv8_9-a-sysregs.d | 10 ++++++++++ gas/testsuite/gas/aarch64/armv8_9-a-sysregs.s | 2 ++ 4 files changed, 18 insertions(+) create mode 100644 gas/testsuite/gas/aarch64/armv8_9-a-sysregs-bad.d create mode 100644 gas/testsuite/gas/aarch64/armv8_9-a-sysregs-bad.l create mode 100644 gas/testsuite/gas/aarch64/armv8_9-a-sysregs.d create mode 100644 gas/testsuite/gas/aarch64/armv8_9-a-sysregs.s (limited to 'gas') diff --git a/gas/testsuite/gas/aarch64/armv8_9-a-sysregs-bad.d b/gas/testsuite/gas/aarch64/armv8_9-a-sysregs-bad.d new file mode 100644 index 0000000..2471b6b --- /dev/null +++ b/gas/testsuite/gas/aarch64/armv8_9-a-sysregs-bad.d @@ -0,0 +1,3 @@ +#as: -march=armv8.8-a +#source: armv8_9-a-sysregs.s +#error_output: armv8_9-a-sysregs-bad.l diff --git a/gas/testsuite/gas/aarch64/armv8_9-a-sysregs-bad.l b/gas/testsuite/gas/aarch64/armv8_9-a-sysregs-bad.l new file mode 100644 index 0000000..48c5568 --- /dev/null +++ b/gas/testsuite/gas/aarch64/armv8_9-a-sysregs-bad.l @@ -0,0 +1,3 @@ +.*: Assembler messages: +.*: Error: selected processor does not support system register name 'pmsdsfr_el1' +.*: Error: selected processor does not support system register name 'pmsdsfr_el1' diff --git a/gas/testsuite/gas/aarch64/armv8_9-a-sysregs.d b/gas/testsuite/gas/aarch64/armv8_9-a-sysregs.d new file mode 100644 index 0000000..d4cb769 --- /dev/null +++ b/gas/testsuite/gas/aarch64/armv8_9-a-sysregs.d @@ -0,0 +1,10 @@ +#as: -march=armv8.9-a +#objdump: -dr + +.*: file format .* + +Disassembly of section \.text: + +0+ <.*>: +.*: d53c9a83 mrs x3, pmsdsfr_el1 +.*: d51c9a83 msr pmsdsfr_el1, x3 diff --git a/gas/testsuite/gas/aarch64/armv8_9-a-sysregs.s b/gas/testsuite/gas/aarch64/armv8_9-a-sysregs.s new file mode 100644 index 0000000..4200d7c --- /dev/null +++ b/gas/testsuite/gas/aarch64/armv8_9-a-sysregs.s @@ -0,0 +1,2 @@ + mrs x3, PMSDSFR_EL1 + msr PMSDSFR_EL1, x3 -- cgit v1.1