about summary refs log tree commit diff
path: root/sysdeps/alpha/soft-fp/ots_cvtxq.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2014-08-05 13:36:36 -0700
committerRichard Henderson <rth@twiddle.net>2014-08-05 13:36:36 -0700
commit27bb6dc0db1d0da548a0be3ec1aa33e2c25565cd (patch)
tree827283a9175ea2dcf94027ebca637fd5ec83bda7 /sysdeps/alpha/soft-fp/ots_cvtxq.c
parentd3f364d3c79cc6cbeb0bf6f8cec90c9e4465db0f (diff)
downloadglibc-27bb6dc0db1d0da548a0be3ec1aa33e2c25565cd.tar.gz
glibc-27bb6dc0db1d0da548a0be3ec1aa33e2c25565cd.tar.xz
glibc-27bb6dc0db1d0da548a0be3ec1aa33e2c25565cd.zip
alpha: Fix exception raising from soft-fp
Use the SSI_IEEE_RAISE_EXCEPTION function as from feraiseexcept,
instead of __ieee_get+set_fp_status.  Always raise the FP exceptions
from float-to-integer conversion.
Diffstat (limited to 'sysdeps/alpha/soft-fp/ots_cvtxq.c')
-rw-r--r--sysdeps/alpha/soft-fp/ots_cvtxq.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sysdeps/alpha/soft-fp/ots_cvtxq.c b/sysdeps/alpha/soft-fp/ots_cvtxq.c
index 1eef9490c3..2447a381ac 100644
--- a/sysdeps/alpha/soft-fp/ots_cvtxq.c
+++ b/sysdeps/alpha/soft-fp/ots_cvtxq.c
@@ -35,9 +35,7 @@ _OtsCvtXQ (long al, long ah, long _round)
   FP_INIT_ROUNDMODE;
   FP_UNPACK_RAW_Q(A, a);
   FP_TO_INT_Q(r, A, 64, s);
-
-  if (s > 0 && (_fex &= FP_EX_INVALID))
-    FP_HANDLE_EXCEPTIONS;
+  FP_HANDLE_EXCEPTIONS;
 
   return r;
 }