diff options
author | Will Hawkins <hawkinsw@obs.cr> | 2024-02-15 15:11:44 +0100 |
---|---|---|
committer | Jose E. Marchesi <jose.marchesi@oracle.com> | 2024-02-15 15:11:44 +0100 |
commit | 7921285b6c2ba0bee9bb21d8e23fdea4c790c181 (patch) | |
tree | 5f9c5706cf87eefb28305986f8659d5292e37c32 /gas | |
parent | 664239bcaa2f7589ccdcdf02b46e327ad6cc36fe (diff) | |
download | gdb-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')
-rw-r--r-- | gas/ChangeLog | 6 | ||||
-rw-r--r-- | gas/testsuite/gas/bpf/indcall-1-pseudoc.d | 4 | ||||
-rw-r--r-- | gas/testsuite/gas/bpf/indcall-1.d | 4 |
3 files changed, 10 insertions, 4 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index b277f47..8be2991 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,9 @@ +2024-02-15 Will Hawkins <hawkinsw@obs.cr> + + * testsuite/gas/bpf/indcall-1-pseudoc.d: Do not select xbpf cpu + version. + * testsuite/gas/bpf/indcall-1.d: Likewise. + 2024-02-14 Yuriy Kolerov <ykolerov@synopsys.com> * config/tc-arc.c (is_br_jmp_insn_p): Add check against "DBNZ". 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 |