aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite
diff options
context:
space:
mode:
authorWill Hawkins <hawkinsw@obs.cr>2024-02-15 15:11:44 +0100
committerJose E. Marchesi <jose.marchesi@oracle.com>2024-02-15 15:11:44 +0100
commit7921285b6c2ba0bee9bb21d8e23fdea4c790c181 (patch)
tree5f9c5706cf87eefb28305986f8659d5292e37c32 /gas/testsuite
parent664239bcaa2f7589ccdcdf02b46e327ad6cc36fe (diff)
downloadgdb-7921285b6c2ba0bee9bb21d8e23fdea4c790c181.zip
gdb-7921285b6c2ba0bee9bb21d8e23fdea4c790c181.tar.gz
gdb-7921285b6c2ba0bee9bb21d8e23fdea4c790c181.tar.bz2
objdump, as: add callx support for BPF CPU v1
Albeit not being a currently valid BPF instruction, callx is generated by both clang and GCC when BPF programs are compiled unoptimized. Until now, GCC would emit it only whe using the experimental compiler-testing cpu version xbpf, whereas clang would emit it from v1. This patch makes GAS to accept callx also starting with cpu v1. opcodes/ChangeLog * bpf-opc.c: Move callx into the v1 BPF CPU variant. gas/ChangeLog * testsuite/gas/bpf/indcall-1-pseudoc.d: Do not select xbpf cpu version. * testsuite/gas/bpf/indcall-1.d: Likewise.
Diffstat (limited to 'gas/testsuite')
-rw-r--r--gas/testsuite/gas/bpf/indcall-1-pseudoc.d4
-rw-r--r--gas/testsuite/gas/bpf/indcall-1.d4
2 files changed, 4 insertions, 4 deletions
diff --git a/gas/testsuite/gas/bpf/indcall-1-pseudoc.d b/gas/testsuite/gas/bpf/indcall-1-pseudoc.d
index 7a95bad..ae49cd1 100644
--- a/gas/testsuite/gas/bpf/indcall-1-pseudoc.d
+++ b/gas/testsuite/gas/bpf/indcall-1-pseudoc.d
@@ -1,5 +1,5 @@
-#as: -EL -mdialect=pseudoc -misa-spec=xbpf
-#objdump: -M xbpf,pseudoc,dec -dr
+#as: -EL -mdialect=pseudoc
+#objdump: -M pseudoc,dec -dr
#source: indcall-1-pseudoc.s
#name: BPF indirect call 1, pseudoc syntax
diff --git a/gas/testsuite/gas/bpf/indcall-1.d b/gas/testsuite/gas/bpf/indcall-1.d
index 51103bb..48e351f 100644
--- a/gas/testsuite/gas/bpf/indcall-1.d
+++ b/gas/testsuite/gas/bpf/indcall-1.d
@@ -1,5 +1,5 @@
-#as: -EL -misa-spec=xbpf
-#objdump: -dr -M xbpf,dec
+#as: -EL
+#objdump: -dr -M dec
#source: indcall-1.s
#name: BPF indirect call 1, normal syntax