+2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
+
+ PR target/89397
+ * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
+ TARGET_SSE in addition to TARGET_SSE_MATH.
+
+ (ix86_excess_precision): Ditto.
+ (ix86_float_exceptions_rounding_supported_p): Ditto.
+ (use_rsqrt_p): Ditto.
+ * config/i386/sse.md (rsqrt<mode>2): Ditto.
+
2019-02-20 David Malcolm <dmalcolm@redhat.com>
PR c/89410
static bool
use_rsqrt_p ()
{
- return (TARGET_SSE_MATH
+ return (TARGET_SSE && TARGET_SSE_MATH
&& flag_finite_math_only
&& !flag_trapping_math
&& flag_unsafe_math_optimizations);
there is no adddf3 pattern (since x87 floating point only has
XFmode operations) so the default hook implementation gets this
wrong. */
- return TARGET_80387 || TARGET_SSE_MATH;
+ return TARGET_80387 || (TARGET_SSE && TARGET_SSE_MATH);
}
/* Implement TARGET_ATOMIC_ASSIGN_EXPAND_FENV. */
static void
ix86_atomic_assign_expand_fenv (tree *hold, tree *clear, tree *update)
{
- if (!TARGET_80387 && !TARGET_SSE_MATH)
+ if (!TARGET_80387 && !(TARGET_SSE && TARGET_SSE_MATH))
return;
tree exceptions_var = create_tmp_var_raw (integer_type_node);
if (TARGET_80387)
tree update_fldenv = build_call_expr (fldenv, 1, fenv_addr);
*update = build2 (COMPOUND_EXPR, void_type_node, *update, update_fldenv);
}
- if (TARGET_SSE_MATH)
+ if (TARGET_SSE && TARGET_SSE_MATH)
{
tree mxcsr_orig_var = create_tmp_var_raw (unsigned_type_node);
tree mxcsr_mod_var = create_tmp_var_raw (unsigned_type_node);
return FLT_EVAL_METHOD_PROMOTE_TO_FLOAT;
else if (!TARGET_MIX_SSE_I387)
{
- if (!TARGET_SSE_MATH)
+ if (!(TARGET_SSE && TARGET_SSE_MATH))
return FLT_EVAL_METHOD_PROMOTE_TO_LONG_DOUBLE;
else if (TARGET_SSE2)
return FLT_EVAL_METHOD_PROMOTE_TO_FLOAT;
[(set (match_operand:VF1_128_256 0 "register_operand")
(unspec:VF1_128_256
[(match_operand:VF1_128_256 1 "vector_operand")] UNSPEC_RSQRT))]
- "TARGET_SSE_MATH"
+ "TARGET_SSE && TARGET_SSE_MATH"
{
ix86_emit_swsqrtsf (operands[0], operands[1], <MODE>mode, true);
DONE;
(unspec:V16SF
[(match_operand:V16SF 1 "vector_operand")]
UNSPEC_RSQRT28))]
- "TARGET_SSE_MATH && TARGET_AVX512ER"
+ "TARGET_AVX512ER && TARGET_SSE_MATH"
{
ix86_emit_swsqrtsf (operands[0], operands[1], V16SFmode, true);
DONE;