aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite
diff options
context:
space:
mode:
authorSrinath Parvathaneni <srinath.parvathaneni@arm.com>2023-11-16 12:16:53 +0000
committersrinath <srinath.parvathaneni@arm.com>2023-11-16 12:16:56 +0000
commit43e228e98c33d3dbb428f4061de0362ba13ffbf5 (patch)
treea9a1239b9ef124c5cd6dbd34acf6bd1eb9c3aed0 /gas/testsuite
parentebd5c32f2f0c2cfaeb5b86e9dd792cc62530be84 (diff)
downloadgdb-43e228e98c33d3dbb428f4061de0362ba13ffbf5.zip
gdb-43e228e98c33d3dbb428f4061de0362ba13ffbf5.tar.gz
gdb-43e228e98c33d3dbb428f4061de0362ba13ffbf5.tar.bz2
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".
Diffstat (limited to 'gas/testsuite')
-rw-r--r--gas/testsuite/gas/aarch64/armv8_9-a-sysregs-bad.d3
-rw-r--r--gas/testsuite/gas/aarch64/armv8_9-a-sysregs-bad.l3
-rw-r--r--gas/testsuite/gas/aarch64/armv8_9-a-sysregs.d10
-rw-r--r--gas/testsuite/gas/aarch64/armv8_9-a-sysregs.s2
4 files changed, 18 insertions, 0 deletions
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