8sa1-binutils-gdb/sim/testsuite/sim
David Faust 3ad6c19423 bpf: simulator: correct div, mod insn semantics
The div and mod eBPF instructions are unsigned, but the semantic
specification for the simulator incorrectly used signed operators.
Correct them to unsigned versions, and correct the ALU tests in
the simulator (which incorrectly assumed signed semantics).

Tested in bpf-unknown-none.

cpu/ChangeLog:
2020-09-08  David Faust  <david.faust@oracle.com>

	* bpf.cpu (define-alu-instructions): Correct semantic operators
	for div, mod to unsigned versions.

sim/ChangeLog:
2020-09-08  David Faust  <david.faust@oracle.com>

	* bpf/sem-be.c: Regenerate.
	* bpf/sem-le.c: Likewise.

sim/testsuite/ChangeLog:
2020-09-08  David Faust  <david.faust@oracle.com>

	* sim/bpf/alu.s: Correct div and mod tests.
	* sim/bpf/alu32.s: Likewise.
2020-09-08 11:39:07 -07:00
..
aarch64
arm
avr
bfin
bpf bpf: simulator: correct div, mod insn semantics 2020-09-08 11:39:07 -07:00
cr16
cris Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
fr30
frv
ft32
h8300
iq2000
lm32
m32c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
m32r
m68hc11
mcore
microblaze
mips Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mn10300
moxie
msp430 MSP430: sim: Fix incorrect simulation of unsigned widening multiply 2020-08-05 15:02:30 +01:00
or1k Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
pru Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
sh
sh64
v850