Skip to contentSkip to conversation

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

PATCH New Doug Evans 1 participant 1 message Oct 18, 2017

lore
Share & tools
lore

Doug Evans

author
#0 lore raw

PATCH v6 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 7 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.
(sim_fpu_print_status): Add case for sim_fpu_status_invalid_irx.

LGTM