aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/alpha/div.S
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2004-09-06 02:01:35 +0000
committerRichard Henderson <rth@redhat.com>2004-09-06 02:01:35 +0000
commita61c91b0ca2fce7f63c95e5dd7ed385872ab3f4d (patch)
treeb229e073148e2a4530498943c7f1d7072949162e /sysdeps/alpha/div.S
parentdf8419fe0a67841bcc7ab47283eaa8cd20bf9043 (diff)
downloadglibc-a61c91b0ca2fce7f63c95e5dd7ed385872ab3f4d.tar
glibc-a61c91b0ca2fce7f63c95e5dd7ed385872ab3f4d.tar.gz
glibc-a61c91b0ca2fce7f63c95e5dd7ed385872ab3f4d.tar.bz2
glibc-a61c91b0ca2fce7f63c95e5dd7ed385872ab3f4d.zip
* sysdeps/alpha/div.S: Save and restore FPCR around fp operations.
* sysdeps/alpha/divl.S, sysdeps/alpha/divq.S, sysdeps/alpha/divqu.S, sysdeps/alpha/ldiv.S, sysdeps/alpha/reml.S, sysdeps/alpha/remq.S, sysdeps/alpha/remqu.S: Likewise. * sysdeps/alpha/div_libc.h (FRAME): Increase to 64.
Diffstat (limited to 'sysdeps/alpha/div.S')
-rw-r--r--sysdeps/alpha/div.S5
1 files changed, 4 insertions, 1 deletions
diff --git a/sysdeps/alpha/div.S b/sysdeps/alpha/div.S
index e0eb7e9796..d1a724d375 100644
--- a/sysdeps/alpha/div.S
+++ b/sysdeps/alpha/div.S
@@ -48,6 +48,8 @@ div:
#endif
beq $18, $divbyzero
+ excb
+ mf_fpcr $f10
_ITOFT2 $17, $f0, 0, $18, $f1, 8
@@ -55,7 +57,8 @@ div:
cvtqt $f1, $f1
divt/c $f0, $f1, $f0
cvttq/c $f0, $f0
-
+ excb
+ mt_fpcr $f10
_FTOIT $f0, $0, 0
mull $0, $18, $1