diff options
author | David Faust <david.faust@oracle.com> | 2020-09-18 09:56:43 -0700 |
---|---|---|
committer | David Faust <david.faust@oracle.com> | 2020-09-18 10:04:23 -0700 |
commit | 6e25f88828f500fc649aa6eac8b567c7b1e96c59 (patch) | |
tree | f2ee690ca5ba7bb36cb1c887a33daf76677311d7 /gdb/compile | |
parent | e163628395d40485c3b379fa39bdc211ee19d40b (diff) | |
download | gdb-6e25f88828f500fc649aa6eac8b567c7b1e96c59.zip gdb-6e25f88828f500fc649aa6eac8b567c7b1e96c59.tar.gz gdb-6e25f88828f500fc649aa6eac8b567c7b1e96c59.tar.bz2 |
bpf: xBPF SDIV, SMOD instructions
Add gas and opcodes support for two xBPF-exclusive ALU operations:
SDIV (signed division) and SMOD (signed modulo), and add tests for
them in gas.
cpu/
* bpf.cpu (insn-op-code-alu): Add SDIV and SMOD.
(define-alu-insn-bin, daib): Take ISAs as an argument.
(define-alu-instructions): Update calls to daib pmacro with
ISAs; add sdiv and smod.
gas/
* testsuite/gas/bpf/alu-xbpf.d: New file.
* testsuite/gas/bpf/alu-xbpf.s: Likewise.
* testsuite/gas/bpf/alu32-xbpf.d: Likewise.
* testsuite/gas/bpf/alu32-xbpf.d: Likewise.
* testuiste/gas/bpf/bpf.exp: Run new tests.
opcodes/
* bpf-desc.c: Regenerate.
* bpf-desc.h: Likewise.
* bpf-opc.c: Likewise.
* bpf-opc.h: Likewise.
Diffstat (limited to 'gdb/compile')
0 files changed, 0 insertions, 0 deletions