Support excess precision for integer / floating-point comparisons (PR c/87390)
Christophe Lyon
christophe.lyon@linaro.org
Fri Sep 28 08:11:00 GMT 2018
On Thu, 27 Sep 2018 at 21:29, Joseph Myers <joseph@codesourcery.com> wrote:
>
> On Thu, 27 Sep 2018, Christophe Lyon wrote:
>
> > After this patch I've noticed regressions on
> > fp-int-convert-float16-timode.c
> > gcc.dg/torture/fp-int-convert-float16.c
> > on aarch64 and arm (at execution time)
>
> Does this patch help?
>
> Index: gcc/testsuite/gcc.dg/torture/fp-int-convert.h
> ===================================================================
> --- gcc/testsuite/gcc.dg/torture/fp-int-convert.h (revision 264666)
> +++ gcc/testsuite/gcc.dg/torture/fp-int-convert.h (working copy)
> @@ -90,6 +90,7 @@
> if (ivin != (VAL) \
> || ((PREC_OK) && ivout != ivin) \
> || ((PREC_OK) && ivout != (VAL)) \
> - || fv1 != (VAL) || fv2 != (VAL) || fv1 != fv2) \
> + || fv1 != (FT) (VAL) || fv2 != (FT) (VAL) \
> + || fv1 != fv2) \
> abort (); \
> } while (0)
>
Yes, it works, thanks!
> --
> Joseph S. Myers
> joseph@codesourcery.com
More information about the Gcc-patches
mailing list