Skip to contentSkip to conversation

sim: cgen: add remainder functions (needed for OR1K lf.rem.[sd])

PATCH Superseded Doug Evans 1 participant 1 message Oct 9, 2017

v5 of 6 Superseded Latest is v6 →

lore
Share & tools
lore

Doug Evans

author
#0 lore raw

PATCH v5 1/6 sim: cgen: add remainder functions (needed for OR1K lf.rem.[sd])

Quoted 7 lines · Stafford Horne

From: Peter Gavin <[email protected]>

* sim/common/ChangeLog:

2016-05-21 Peter Gavin <[email protected]>
Stafford Horne <[email protected]>

Quoted 6 lines

* cgen-accfp.c (remsf, remdf): New function. (cgen_init_accurate_fpu): Add remsf and remdf.
* cgen-fpu.h (cgen_fp_ops): Add remsf, remdf, remxf and remtf.
* sim-fpu.c (sim_fpu_rem): New function.
* sim-fpu.h (sim_fpu_status_invalid_irx): New enum. (sim_fpu_rem): New function.

LGTM (with the discussed changes to date).