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 /cpu/ChangeLog | |
parent | e163628395d40485c3b379fa39bdc211ee19d40b (diff) | |
download | fsf-binutils-gdb-6e25f88828f500fc649aa6eac8b567c7b1e96c59.zip fsf-binutils-gdb-6e25f88828f500fc649aa6eac8b567c7b1e96c59.tar.gz fsf-binutils-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 'cpu/ChangeLog')
-rw-r--r-- | cpu/ChangeLog | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cpu/ChangeLog b/cpu/ChangeLog index 29e2512..4d68e00 100644 --- a/cpu/ChangeLog +++ b/cpu/ChangeLog @@ -1,3 +1,10 @@ +2020-09-18 David Faust <david.faust@oracle.com> + + * 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. + 2020-09-08 David Faust <david.faust@oracle.com> * bpf.cpu (define-alu-instructions): Correct semantic operators |