On Wed, Nov 18, 2020 at 01:27:12PM -0600, Segher Boessenkool wrote:
> Hi!
> 
> On Sun, Nov 15, 2020 at 12:23:50PM -0500, Michael Meissner wrote:
> > --- a/gcc/testsuite/c-c++-common/dfp/convert-bfp-11.c
> > +++ b/gcc/testsuite/c-c++-common/dfp/convert-bfp-11.c
> > @@ -1,4 +1,5 @@
> >  /* { dg-skip-if "" { ! "powerpc*-*-linux*" } } */
> > +/* { dg-require-effective-target ppc_long_double_ibm } */
> 
> You can remove the dg-skip-if then (there is nothing in this test that
> requires Linux).  But you want a
> /* { dg-require-effective-target dfp } */
> (or dfprt).
> 
> So what happens if you use IEEE QP float, instead?  You didn't explain.
> (Explain in the source code, with a comment where you require it!)
> 
> 
> Segher

I will post a new version of this patch shortly.

As I will say in the patch description, what happens is the test has a number
that has larger exponent than IBM 128-bit long double can handle, and it
expects the conversion to return infinity.  But IEEE 128-bit has a much larger
exponenent range, so it doesn't return infinity.

-- 
Michael Meissner, IBM
IBM, M/S 2506R, 550 King Street, Littleton, MA 01460-6245, USA
email: meiss...@linux.ibm.com, phone: +1 (978) 899-4797

Reply via email to