]> gcc.gnu.org Git - gcc.git/commitdiff
rs6000.c (rs6000_generate_compare): Test flag_finite_math_only, not flag_unsafe_math_...
authorDavid Edelsohn <edelsohn@gnu.org>
Sun, 20 Mar 2005 20:27:05 +0000 (20:27 +0000)
committerDavid Edelsohn <dje@gcc.gnu.org>
Sun, 20 Mar 2005 20:27:05 +0000 (15:27 -0500)
        * config/rs6000/rs6000.c (rs6000_generate_compare): Test
        flag_finite_math_only, not flag_unsafe_math_optimizations.

From-SVN: r96764

gcc/ChangeLog
gcc/config/rs6000/rs6000.c

index 7efd3180139ea5ad1f033c366903afde54bdd25b..258526b3fadb1b338d2440a306f521425626ea92 100644 (file)
@@ -1,3 +1,8 @@
+2005-03-20  David Edelsohn  <edelsohn@gnu.org>
+
+       * config/rs6000/rs6000.c (rs6000_generate_compare): Test
+       flag_finite_math_only, not flag_unsafe_math_optimizations.
+
 2005-03-20  Kazu Hirata  <kazu@cs.umass.edu>
 
        * builtins.c (fold_builtin_1): Update a call to
index 602e83aa6afcae4db00871df8effe247d5b278ce..2dbe28fc4b07befdb9c1f175321eb6a754bf9191 100644 (file)
@@ -10161,10 +10161,10 @@ rs6000_generate_compare (enum rtx_code code)
     }
 
   /* Some kinds of FP comparisons need an OR operation;
-     under flag_unsafe_math_optimizations we don't bother.  */
+     under flag_finite_math_only we don't bother.  */
   if (rs6000_compare_fp_p
-      && ! flag_unsafe_math_optimizations
-      && ! (TARGET_HARD_FLOAT && TARGET_E500 && !TARGET_FPRS)
+      && !flag_finite_math_only
+      && !(TARGET_HARD_FLOAT && TARGET_E500 && !TARGET_FPRS)
       && (code == LE || code == GE
          || code == UNEQ || code == LTGT
          || code == UNGT || code == UNLT))
This page took 0.099979 seconds and 5 git commands to generate.