i386: Set ix86_fpmath to FPMATH_387 without SSE
authorH.J. Lu <hongjiu.lu@intel.com>
Tue, 19 Feb 2019 14:19:33 +0000 (14:19 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Tue, 19 Feb 2019 14:19:33 +0000 (06:19 -0800)
commit23c4471ee530a7a752ca8c7eff111aaa39e8d118
tree2ab27d3898276eb97af06ffead6a4081a0697354
parent19695f4d99e51181c37958680c99502e6f4edd08
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.

From-SVN: r269017
gcc/ChangeLog
gcc/config/i386/i386.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr89397.c [new file with mode: 0644]