]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/config/i386/i386.c
PR target/89397
[thirdparty/gcc.git] / gcc / config / i386 / i386.c
index 591a7cdccdc7178758dbb1e6a79924eae2c3e1ef..a58ddca3fab1189a8c8b79afa041236d06dacdf0 100644 (file)
@@ -39215,7 +39215,7 @@ ix86_vectorize_builtin_scatter (const_tree vectype,
 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);
@@ -50681,7 +50681,7 @@ ix86_float_exceptions_rounding_supported_p (void)
      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.  */
@@ -50689,7 +50689,7 @@ ix86_float_exceptions_rounding_supported_p (void)
 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)
@@ -50724,7 +50724,7 @@ ix86_atomic_assign_expand_fenv (tree *hold, tree *clear, tree *update)
       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);
@@ -51014,7 +51014,7 @@ ix86_excess_precision (enum excess_precision_type type)
          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;