https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89397

--- Comment #2 from hjl at gcc dot gnu.org <hjl at gcc dot gnu.org> ---
Author: hjl
Date: Tue Feb 19 14:19:33 2019
New Revision: 269017

URL: https://gcc.gnu.org/viewcvs?rev=269017&root=gcc&view=rev
Log:
i386: Set ix86_fpmath to FPMATH_387 without SSE

ix86_fpmath should be set to combination of FPMATH_387 and FPMATH_SSE.
When SSE is disabled, it should be set to FPMATH_387 and 387 codegen is
also controlled by -msoft-float.

gcc/

        PR target/89397
        * config/i386/i386.c (ix86_option_override_internal): Set
        opts->x_ix86_fpmath to FPMATH_387 when SSE is disabled.

gcc/testsuite/

        PR target/89397
        * gcc.target/i386/pr89397.c: New test.

Added:
    trunk/gcc/testsuite/gcc.target/i386/pr89397.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/i386/i386.c
    trunk/gcc/testsuite/ChangeLog

Reply via email to