An open API service indexing awesome lists of open source software.

https://github.com/raulmurillo/softfloat-riscv

SoftFloat-3e and TestFloat-3e for RISC-V
https://github.com/raulmurillo/softfloat-riscv

emulation floating-point risc-v software

Last synced: 7 months ago
JSON representation

SoftFloat-3e and TestFloat-3e for RISC-V

Awesome Lists containing this project

README

          

# softfloat-riscv

Berkley [SoftFloat](http://www.jhauser.us/arithmetic/SoftFloat.html) and
[TestFloat](http://www.jhauser.us/arithmetic/TestFloat.html) for emulating and
testing floating point routines.

This repository combines both and adds explicit support for RISC-V.

For SoftFloat this mean the specialization of the software floating routines to
match RISC-V specified behavior.

For TestFloat this means adding a generic `RISCV` build target.

Both softwares are modified to *emulate* RISC-V behavior, not to be run on RISC-V machines. For that, the a different compiler should be used (see the `Makefile`).

To build and run the modified libraries, execute:
```bash
cd SoftFloat-3e/build/Linux-RISCV-GCC
make all
cd ../../../TestFloat-3e/build/Linux-RISCV-GCC/
make all
./testfloat_gen -rnear_even f64_mulAdd
```