+2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR target/69225
+ * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
+ TARGET_80387 is true.
+
2016-01-11 Jakub Jelinek <jakub@redhat.com>
PR target/69071
the rounding precision is indeterminate, since either may be chosen
apparently at random. */
#define TARGET_FLT_EVAL_METHOD \
- (TARGET_MIX_SSE_I387 ? -1 : TARGET_SSE_MATH ? 0 : 2)
+ (TARGET_MIX_SSE_I387 ? -1 : (TARGET_80387 && !TARGET_SSE_MATH) ? 2 : 0)
/* Whether to allow x87 floating-point arithmetic on MODE (one of
SFmode, DFmode and XFmode) in the current excess precision
+2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR target/69225
+ * gcc.target/i386/pr69225-1.c: New test.
+ * gcc.target/i386/pr69225-2.c: Likewise.
+ * gcc.target/i386/pr69225-3.c: Likewise.
+ * gcc.target/i386/pr69225-4.c: Likewise.
+ * gcc.target/i386/pr69225-5.c: Likewise.
+ * gcc.target/i386/pr69225-6.c: Likewise.
+
2016-01-11 Jakub Jelinek <jakub@redhat.com>
PR target/67462
--- /dev/null
+/* { dg-do compile} */
+/* { dg-options "-msse2 -mfpmath=sse" } */
+
+#include <float.h>
+
+#if FLT_EVAL_METHOD != 0
+# error FLT_EVAL_METHOD != 0
+#endif
--- /dev/null
+/* { dg-do compile} */
+/* { dg-options "-mno-sse -mno-80387" } */
+
+#include <float.h>
+
+#if FLT_EVAL_METHOD != 0
+# error FLT_EVAL_METHOD != 0
+#endif
--- /dev/null
+/* { dg-do compile} */
+/* { dg-options "-m80387 -mfpmath=387" } */
+
+#include <float.h>
+
+#if FLT_EVAL_METHOD != 2
+# error FLT_EVAL_METHOD != 2
+#endif
--- /dev/null
+/* { dg-do compile} */
+/* { dg-options "-msse2 -mfancy-math-387 -mfpmath=sse" } */
+
+#include <float.h>
+
+#if FLT_EVAL_METHOD != 0
+# error FLT_EVAL_METHOD != 0
+#endif
--- /dev/null
+/* { dg-do compile} */
+/* { dg-options "-msse2 -m80387 -mfpmath=sse,387" } */
+
+#include <float.h>
+
+#if FLT_EVAL_METHOD != -1
+# error FLT_EVAL_METHOD != -1
+#endif
--- /dev/null
+/* { dg-do compile} */
+/* { dg-options "-mno-80387" } */
+
+#include <float.h>
+
+#if FLT_EVAL_METHOD != 0
+# error FLT_EVAL_METHOD != 0
+#endif