This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: 26_numerics/complex/13450.cc and IBM long double
- From: Paolo Carlini <pcarlini at suse dot de>
- To: "Joseph S. Myers" <joseph at codesourcery dot com>
- Cc: gcc-patches at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org
- Date: Tue, 14 Nov 2006 17:01:06 +0100
- Subject: Re: 26_numerics/complex/13450.cc and IBM long double
- References: <Pine.LNX.4.64.0611141440590.24050@digraph.polyomino.org.uk>
Joseph S. Myers wrote:
The libstdc++ test 26_numerics/complex/13450.cc cannot work reliably for
IBM long double, since we define epsilon correctly for this type which
means 100 * epsilon can be smaller than 1ulp for a particular long double
value (and so the test is only likely to pass if all three computed
complex values are actually identical). Thus this patch disables the long
double testing in this testcase for the IBM long double case.
If I understand correctly the issue, we could as well figure out a
generic fix, care to propose one?
Paolo.