[PATCH 00/11] sim: riscv: simulation of single and double precision floating point instructions
bhushan.attarde@imgtec.com
bhushan.attarde@imgtec.com
Mon Feb 26 14:22:23 GMT 2024
From: Bhushan Attarde <bhushan.attarde@imgtec.com>
Hi All,
This patch series (total 11 patches) adds simulation of riscv single and double
precision floating point instructions. This includes load-store, move, compare,
classify, sign injection, min, max, MAC, conversion and basic arithmetic
instructions. Each patch also includes tests for the corresponding instructions.
The tool-chain sources used are from:
https://github.com/riscv-collab/riscv-gnu-toolchain.git
And gdb sources are replaced with latest upstream sources from:
https://sourceware.org/git/binutils-gdb.git
GDB is configured with --target=riscv64-unknown-elf option.
Contributions from:
Bhushan Attarde (Bhushan.Attarde@imgtec.com)
Jaydeep Patil (Jaydeep.Patil@imgtec.com)
Bhushan Attarde (11):
sim: riscv: Add single precision floating-point load-store, move,
compare and classify instructions
sim: riscv: Add single precision floating-point sign injection, min
and max instructions
sim: riscv: Add floating-point CSR instructions
sim: riscv: Add single precision floating-point MAC instructions
sim: riscv: Add single precision floating-point basic arithmetic
instructions
sim: riscv: Add single-precision floating-point conversion
instructions
sim: riscv: Add double precision floating-point load-store, move,
compare and classify instructions
sim: riscv: Add double precision floating-point sign-injection, min
and max instructions
sim: riscv: Add double precision floating-point MAC instructions
sim: riscv: Add double precision floating-point basic arithmetic
instructions
sim: riscv: Add double precision floating-point conversion
instructions
sim/riscv/model_list.def | 4 +
sim/riscv/sim-main.c | 1544 ++++++++++++++++++++++++
sim/testsuite/riscv/d-basic-arith.s | 128 ++
sim/testsuite/riscv/d-conversion.s | 111 ++
sim/testsuite/riscv/d-fp-compare.s | 94 ++
sim/testsuite/riscv/d-fp-load-store.s | 58 +
sim/testsuite/riscv/d-fp-sign-inject.s | 87 ++
sim/testsuite/riscv/f-csr.s | 56 +
sim/testsuite/riscv/s-basic-arith.s | 131 ++
sim/testsuite/riscv/s-conversion-l.s | 60 +
sim/testsuite/riscv/s-conversion.s | 61 +
sim/testsuite/riscv/s-fp-compare.s | 97 ++
sim/testsuite/riscv/s-fp-load-store.s | 62 +
sim/testsuite/riscv/s-fp-sign-inject.s | 90 ++
14 files changed, 2583 insertions(+)
create mode 100644 sim/testsuite/riscv/d-basic-arith.s
create mode 100755 sim/testsuite/riscv/d-conversion.s
create mode 100755 sim/testsuite/riscv/d-fp-compare.s
create mode 100755 sim/testsuite/riscv/d-fp-load-store.s
create mode 100644 sim/testsuite/riscv/d-fp-sign-inject.s
create mode 100644 sim/testsuite/riscv/f-csr.s
create mode 100644 sim/testsuite/riscv/s-basic-arith.s
create mode 100644 sim/testsuite/riscv/s-conversion-l.s
create mode 100644 sim/testsuite/riscv/s-conversion.s
create mode 100644 sim/testsuite/riscv/s-fp-compare.s
create mode 100644 sim/testsuite/riscv/s-fp-load-store.s
create mode 100644 sim/testsuite/riscv/s-fp-sign-inject.s
--
2.25.1
More information about the Gdb-patches
mailing list