aboutsummaryrefslogtreecommitdiff
path: root/sim/common/cgen-accfp.c
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>1999-10-19 02:47:02 +0000
committerJason Molenda <jmolenda@apple.com>1999-10-19 02:47:02 +0000
commit917317f4c6550f3f3e0001d0a9e5a6acd6a2d1be (patch)
tree3ecc5a5d86fef50ae8715adacf956a2011797441 /sim/common/cgen-accfp.c
parent446a06c9b8819b20be7704f0b540471d76959c66 (diff)
downloadfsf-binutils-gdb-917317f4c6550f3f3e0001d0a9e5a6acd6a2d1be.zip
fsf-binutils-gdb-917317f4c6550f3f3e0001d0a9e5a6acd6a2d1be.tar.gz
fsf-binutils-gdb-917317f4c6550f3f3e0001d0a9e5a6acd6a2d1be.tar.bz2
import gdb-1999-10-18 snapshot
Diffstat (limited to 'sim/common/cgen-accfp.c')
-rw-r--r--sim/common/cgen-accfp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sim/common/cgen-accfp.c b/sim/common/cgen-accfp.c
index 9ce204f..0ef61fd 100644
--- a/sim/common/cgen-accfp.c
+++ b/sim/common/cgen-accfp.c
@@ -74,10 +74,13 @@ divsf (CGEN_FPU* fpu, SF x, SF y)
sim_fpu op2;
sim_fpu ans;
unsigned32 res;
+ sim_fpu_status status;
sim_fpu_32to (&op1, x);
sim_fpu_32to (&op2, y);
- sim_fpu_div (&ans, &op1, &op2);
+ status = sim_fpu_div (&ans, &op1, &op2);
+ if (status != 0)
+ (*fpu->ops->error) (fpu, status);
sim_fpu_to32 (&res, &ans);
return res;