[PATCH] ldbl-128 fmal fix
Jakub Jelinek
jakub@redhat.com
Mon Nov 22 19:51:00 GMT 2010
Hi!
I have included this fix unfortunately as part of the
[PATCH] bits/mathdef.h changes for s390 and ia64, ldbl-128 fmal fix
patch, thus when the (not very urgent, still need to find time to write
and test the inlines and not 100% sure whether we ever want to
claim FP_FAST_FMA* when not __OPTIMIZE__) mathdef.h changes didn't make it
in, this got forgotten. This is a build failure on
s390{,x}/sparc{,64}/alpha, tested on s390x-linux a month ago.
2010-10-20 Jakub Jelinek <jakub@redhat.com>
* sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
--- libc/sysdeps/ieee754/ldbl-128/s_fmal.c
+++ libc/sysdeps/ieee754/ldbl-128/s_fmal.c
@@ -176,7 +176,7 @@ __fmal (long double x, long double y, long double z)
u.ieee.mantissa3 |= fetestexcept (FE_INEXACT) != 0;
v.d = a1 + u.d;
/* Ensure the addition is not scheduled after fetestexcept call. */
- asm volatile ("" : "m" (v));
+ asm volatile ("" : : "m" (v));
int j = fetestexcept (FE_INEXACT) != 0;
feupdateenv (&env);
/* Ensure the following computations are performed in default rounding
Jakub
More information about the Libc-alpha
mailing list