sim: cgen: add remainder functions (needed for OR1K lf.rem.[sd])
authorPeter Gavin <pgavin@gmail.com>
Fri, 8 Dec 2017 20:57:25 +0000 (05:57 +0900)
committerStafford Horne <shorne@gmail.com>
Tue, 12 Dec 2017 14:41:43 +0000 (23:41 +0900)
commit07b95864f35f19636e2a95eaf3083a8b18ac7cda
tree5ebfa4d1d728e6625c033a9c8cf90f3e45468ded
parent638d913757609367eea219d00296a0a3d45010c2
sim: cgen: add remainder functions (needed for OR1K lf.rem.[sd])

* sim/common/ChangeLog:

2017-12-12  Peter Gavin  <pgavin@gmail.com>
    Stafford Horne <shorne@gmail.com>

* 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.
sim/common/ChangeLog
sim/common/cgen-accfp.c
sim/common/cgen-fpu.h
sim/common/sim-fpu.c
sim/common/sim-fpu.h