+2016-12-12 Uros Bizjak <ubizjak@gmail.com>
+
+ PR target/78738
+ * config/i386/i386.h (X87_ENABLE_ARITH): Also enable for
+ flag_unsafe_math_optimizations.
+ (X87_ENABLE_FLOAT): Ditto.
+
2016-12-12 Marek Polacek <polacek@redhat.com>
PR middle-end/78716
/* Whether to allow x87 floating-point arithmetic on MODE (one of
SFmode, DFmode and XFmode) in the current excess precision
configuration. */
-#define X87_ENABLE_ARITH(MODE) \
- (flag_excess_precision == EXCESS_PRECISION_FAST || (MODE) == XFmode)
+#define X87_ENABLE_ARITH(MODE) \
+ (flag_unsafe_math_optimizations \
+ || flag_excess_precision == EXCESS_PRECISION_FAST \
+ || (MODE) == XFmode)
/* Likewise, whether to allow direct conversions from integer mode
IMODE (HImode, SImode or DImode) to MODE. */
#define X87_ENABLE_FLOAT(MODE, IMODE) \
- (flag_excess_precision == EXCESS_PRECISION_FAST \
+ (flag_unsafe_math_optimizations \
+ || flag_excess_precision == EXCESS_PRECISION_FAST \
|| (MODE) == XFmode \
|| ((MODE) == DFmode && (IMODE) == SImode) \
|| (IMODE) == HImode)
+2016-12-12 Uros Bizjak <ubizjak@gmail.com>
+
+ PR target/78738
+ * gcc.target/i386/pr78738.c: New test.
+
2016-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
* lib/target-supports.exp