From: David Edelsohn Date: Sun, 20 Mar 2005 20:27:05 +0000 (+0000) Subject: rs6000.c (rs6000_generate_compare): Test flag_finite_math_only, not flag_unsafe_math_... X-Git-Tag: misc/cutover-cvs2svn~4830 X-Git-Url: https://gcc.gnu.org/git/?a=commitdiff_plain;h=e7108df9b95aeab82d1f9659f93ceea5e1fd3fff;p=gcc.git rs6000.c (rs6000_generate_compare): Test flag_finite_math_only, not flag_unsafe_math_optimizations. * config/rs6000/rs6000.c (rs6000_generate_compare): Test flag_finite_math_only, not flag_unsafe_math_optimizations. From-SVN: r96764 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7efd3180139e..258526b3fadb 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2005-03-20 David Edelsohn + + * config/rs6000/rs6000.c (rs6000_generate_compare): Test + flag_finite_math_only, not flag_unsafe_math_optimizations. + 2005-03-20 Kazu Hirata * builtins.c (fold_builtin_1): Update a call to diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index 602e83aa6afc..2dbe28fc4b07 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -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))