]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
or1k: Add the l.muld, l.muldu, l.macu, l.msbu insns
authorRichard Henderson <rth@redhat.com>
Fri, 5 Oct 2018 02:41:41 +0000 (11:41 +0900)
committerStafford Horne <shorne@gmail.com>
Fri, 5 Oct 2018 02:41:42 +0000 (11:41 +0900)
commit07f5f4c683879e844d20d0d4963bbaf1b7cd47b9
tree872d6d64ac1dd790d76b214c2f7ae0150d51bdbb
parentc8e98e3692cec125b92c995d8f881d9bdf1fac00
or1k: Add the l.muld, l.muldu, l.macu, l.msbu insns

Also fix the incorrect definitions of multiply and divide carry and
overflow float.

Changes to the instructions are made in the .cpu file, then we
regenerate the binutils and sim files.

The changes also required a few fixups for tests and additional sim helpers.

cpu/ChangeLog:

yyyy-mm-dd  Richard Henderson  <rth@twiddle.net>
    Stafford Horne  <shorne@gmail.com>

* or1korbis.cpu (insn-opcode-mac): Add opcodes for MACU and MSBU.
(insn-opcode-alu-regreg): Add opcodes for MULD and MULDU.
(l-mul): Fix overflow support and indentation.
(l-mulu): Fix overflow support and indentation.
(l-muld, l-muldu, l-msbu, l-macu): New instructions.
(l-div); Remove incorrect carry behavior.
(l-divu): Fix carry and overflow behavior.
(l-mac): Add overflow support.
(l-msb, l-msbu): Add carry and overflow support.

opcodes/ChangeLog:

yyyy-mm-dd  Richard Henderson  <rth@twiddle.net>
    Stafford Horne  <shorne@gmail.com>

* or1k-desc.c: Regenerate.
* or1k-desc.h: Regenerate.
* or1k-opc.c: Regenerate.
* or1k-opc.h: Regenerate.
* or1k-opinst.c: Regenerate.

sim/common/ChangeLog:

yyyy-mm-dd  Stafford Horne  <shorne@gmail.com>

* cgen-ops.h (ADDCFDI): New function, add carry flag DI variant.
(ADDOFDI): New function, add overflow flag DI variant.
(SUBCFDI): New function, subtract carry flag DI variant.
(SUBOFDI): New function, subtract overflow flag DI variant.

sim/ChangeLog:

yyyy-mm-dd  Stafford Horne  <shorne@gmail.com>

* or1k/cpu.h: Regenerate.
* or1k/decode.c: Regenerate.
* or1k/decode.h: Regenerate.
* or1k/model.c: Regenerate.
* or1k/sem-switch.c: Regenerate.
* or1k/sem.c: Regenerate:

sim/testsuite/sim/or1k/ChangeLog:

yyyy-mm-dd  Stafford Horne  <shorne@gmail.com>

* div.S: Fix tests to match correct overflow/carry semantics.
* mul.S: Likewise.

gas/ChangeLog:

yyyy-mm-dd  Stafford Horne  <shorne@gmail.com>

* testsuite/gas/or1k/allinsn.s: Add instruction tests for
l.muld, l.muldu, l.macu, l.msb, l.msbu.
* testsuite/gas/or1k/allinsn.d: Add test results for new
instructions.
23 files changed:
cpu/ChangeLog
cpu/or1korbis.cpu
gas/ChangeLog
gas/testsuite/gas/or1k/allinsn.d
gas/testsuite/gas/or1k/allinsn.s
opcodes/ChangeLog
opcodes/or1k-desc.c
opcodes/or1k-desc.h
opcodes/or1k-opc.c
opcodes/or1k-opc.h
opcodes/or1k-opinst.c
sim/ChangeLog
sim/common/ChangeLog
sim/common/cgen-ops.h
sim/or1k/cpu.h
sim/or1k/decode.c
sim/or1k/decode.h
sim/or1k/model.c
sim/or1k/sem-switch.c
sim/or1k/sem.c
sim/testsuite/sim/or1k/ChangeLog
sim/testsuite/sim/or1k/div.S
sim/testsuite/sim/or1k/mul.S