aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/ia64
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/ia64')
-rw-r--r--sysdeps/ia64/bits/fenv.h5
-rw-r--r--sysdeps/ia64/fpu/feenablxcpt.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/sysdeps/ia64/bits/fenv.h b/sysdeps/ia64/bits/fenv.h
index 783fc9bff2..80b7629f78 100644
--- a/sysdeps/ia64/bits/fenv.h
+++ b/sysdeps/ia64/bits/fenv.h
@@ -79,4 +79,9 @@ typedef unsigned long int fenv_t;
/* Floating-point environment where only FE_UNNORMAL is masked since this
exception is not generally supported by glibc. */
# define FE_NOMASK_ENV ((__const fenv_t *) 0xc009804c02700302UL)
+
+/* Floating-point environment with (processor-dependent) non-IEEE
+ floating point. In this case, turning on flush-to-zero mode for
+ s0, s2, and s3. */
+# define FE_NONIEEE_ENV ((__const fenv_t *) 0xc009a04d0270037fUL)
#endif
diff --git a/sysdeps/ia64/fpu/feenablxcpt.c b/sysdeps/ia64/fpu/feenablxcpt.c
index 686b7505cc..c699ab4dfc 100644
--- a/sysdeps/ia64/fpu/feenablxcpt.c
+++ b/sysdeps/ia64/fpu/feenablxcpt.c
@@ -27,7 +27,7 @@ feenableexcept (int excepts)
fenv_t new_fpsr;
/* Get the current fpsr. */
- __asm__ __volatile__ ("mov.m %0=ar.fpsr" : "=r " (old_fpsr));
+ __asm__ __volatile__ ("mov.m %0=ar.fpsr" : "=r" (old_fpsr));
new_fpsr = old_fpsr & ~((fenv_t) excepts & FE_ALL_EXCEPT);