8sa1-binutils-gdb/sim/testsuite
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
..
common Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
config
d10v-elf Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
frv-elf Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
lib sim: testsuite: support basic vars in flags 2015-11-15 00:43:48 -05:00
m32r-elf Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mips64el-elf Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
sim bpf: simulator: correct div, mod insn semantics 2020-09-08 11:39:07 -07:00
.gitignore
ChangeLog bpf: simulator: correct div, mod insn semantics 2020-09-08 11:39:07 -07:00
configure sim: eBPF simulator 2020-08-04 18:09:16 +02:00
configure.ac Bump to autoconf 2.69 and automake 1.15.1 2018-06-19 16:55:06 -04:00
Makefile.in Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00