This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] ldbl-128 fmal fix
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Ulrich Drepper <drepper at gmail dot com>
- Cc: libc-alpha at sourceware dot org
- Date: Mon, 22 Nov 2010 20:34:19 +0100
- Subject: [PATCH] ldbl-128 fmal fix
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
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