aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorAndrea Corallo <andrea.corallo@arm.com>2023-09-12 11:23:52 +0100
committerAndrea Corallo <andrea.corallo@arm.com>2023-12-19 15:35:49 +0100
commitdb168da2e0d7ea01d0a8ed4bdd0e035e47094fed (patch)
tree3eee402784b784b8f65d91a16c0ea9640cf47d47 /gas
parent88b5a8ae138f3ace20f63635dbaea437fb17ae78 (diff)
downloadfsf-binutils-gdb-db168da2e0d7ea01d0a8ed4bdd0e035e47094fed.zip
fsf-binutils-gdb-db168da2e0d7ea01d0a8ed4bdd0e035e47094fed.tar.gz
fsf-binutils-gdb-db168da2e0d7ea01d0a8ed4bdd0e035e47094fed.tar.bz2
aarch64: Add FEAT_ECBHB support
This patch add support for FEAT_ECBHB "Exploitative control using branch history information" adding the "clrbhb" instruction. AFAIU the same alias was originally added as "clearbhb" before the architecture was finalized (Mandatory v8.9-a/v9.4-a; Optional v8.0-a+/v9.0-a+).
Diffstat (limited to 'gas')
-rw-r--r--gas/testsuite/gas/aarch64/clrbhb-1.d9
-rw-r--r--gas/testsuite/gas/aarch64/clrbhb-1.s2
-rw-r--r--gas/testsuite/gas/aarch64/system.d4
3 files changed, 13 insertions, 2 deletions
diff --git a/gas/testsuite/gas/aarch64/clrbhb-1.d b/gas/testsuite/gas/aarch64/clrbhb-1.d
new file mode 100644
index 0000000..272ee23
--- /dev/null
+++ b/gas/testsuite/gas/aarch64/clrbhb-1.d
@@ -0,0 +1,9 @@
+#objdump: -dr
+
+.*: file format .*
+
+Disassembly of section \.text:
+
+0+ <.*>:
+ 0: d50322df clrbhb
+
diff --git a/gas/testsuite/gas/aarch64/clrbhb-1.s b/gas/testsuite/gas/aarch64/clrbhb-1.s
new file mode 100644
index 0000000..edf8846
--- /dev/null
+++ b/gas/testsuite/gas/aarch64/clrbhb-1.s
@@ -0,0 +1,2 @@
+ clrbhb
+
diff --git a/gas/testsuite/gas/aarch64/system.d b/gas/testsuite/gas/aarch64/system.d
index dbb7c0a..c140077 100644
--- a/gas/testsuite/gas/aarch64/system.d
+++ b/gas/testsuite/gas/aarch64/system.d
@@ -14,7 +14,7 @@ Disassembly of section \.text:
.*: d503207f wfi
.*: d503209f sev
.*: d50320bf sevl
-.*: d50322df clearbhb
+.*: d50322df clrbhb
.*: d503201f nop
.*: d503203f yield
.*: d503205f wfe
@@ -37,7 +37,7 @@ Disassembly of section \.text:
.*: d503227f (hint #0x13|gcsb dsync)
.*: d503229f (hint #0x14|csdb)
.*: d50322bf hint #0x15
-.*: d50322df (hint #0x16|clearbhb)
+.*: d50322df (hint #0x16|clrbhb)
.*: d50322ff hint #0x17
.*: d503231f (hint #0x18|paciaz)
.*: d503233f (hint #0x19|paciasp)