This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [RFC PATCH, i386]: Make FP inequality comparisons trapping on qNaN.
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Uros Bizjak <ubizjak at gmail dot com>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 20 Oct 2017 12:15:07 +0000
- Subject: Re: [RFC PATCH, i386]: Make FP inequality comparisons trapping on qNaN.
- Authentication-results: sourceware.org; auth=none
- References: <CAFULd4aGkGaLCth+z-aaiXm+dQY1y1zs+NU202k6X_s8tV6wFw@mail.gmail.com>
On Fri, 20 Oct 2017, Uros Bizjak wrote:
> 2017-10-20 Uros Bizjak <ubizjak@gmail.com>
>
> * config/i386/i386.c (ix86_fp_compare_mode): Return CCFPmode
> for ordered inequality comparisons even with TARGET_IEEE_FP.
This is PR target/52451.
A testcase (conditional on the fenv_exceptions effective-target) that
ordered comparisons with quiet NaNs set FE_INVALID would be a good idea,
but it would need XFAILing for powerpc (bug 58684) and s390 (bug 77918).
--
Joseph S. Myers
joseph@codesourcery.com