]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - opcodes/bpf-opc.c
bpf: use w regs in 32-bit non-fetch atomic pseudo-c
authorDavid Faust <david.faust@oracle.com>
Wed, 9 Aug 2023 18:44:38 +0000 (11:44 -0700)
committerDavid Faust <david.faust@oracle.com>
Wed, 9 Aug 2023 20:51:50 +0000 (13:51 -0700)
commit6bf6f9245ac56a7ca6eb52a07fc2153b921c5fd6
tree90e78f615d68170b41b60fa1a21e766a17a7c513
parent3cdc2d7e66ab6a48014dcd425c88cfd42a964321
bpf: use w regs in 32-bit non-fetch atomic pseudo-c

The 32-bit non-fetching atomic instructions treat the source register as
32-bits, which means in the pseudo-c syntax the "w" registers should be
used rather than the "r" registers.

opcodes/

* bpf-opc-c (bpf_opcodes): Use %sw for AAD32, AOR32, AAND32
and AXOR32 pseudo-c dialect asm templates.

gas/

* testsuite/gas/bpf/atomic-be-pseudoc.d: Use "w" for source reg
in non-fetching 32-bit atomic instructions.
* testsuite/gas/bpf/atomic-pseudoc.d: Likewise.
* testsuite/gas/bpf/atomic-pseudoc.s: Likewise.
gas/testsuite/gas/bpf/atomic-be-pseudoc.d
gas/testsuite/gas/bpf/atomic-pseudoc.d
gas/testsuite/gas/bpf/atomic-pseudoc.s
opcodes/bpf-opc.c