rs6000.c (validate_condition_mode): Test flag_finite_math_only for CCFPmode.
authorDavid Edelsohn <edelsohn@gnu.org>
Wed, 31 Jul 2002 15:46:21 +0000 (15:46 +0000)
committerDavid Edelsohn <dje@gcc.gnu.org>
Wed, 31 Jul 2002 15:46:21 +0000 (11:46 -0400)
        * rs6000.c (validate_condition_mode): Test flag_finite_math_only
        for CCFPmode.

From-SVN: r55904

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

index ff553ab4207c7fc5a0a51a84c6e2bf298770d3c1..5d79a16b7cd3c4bef6a087e58c1c48f2bdac718d 100644 (file)
@@ -1,3 +1,8 @@
+2002-07-31  David Edelsohn  <edelsohn@gnu.org>
+
+       * rs6000.c (validate_condition_mode): Test flag_finite_math_only
+       for CCFPmode.
+
 2002-07-31  Richard Sandiford  <rsandifo@redhat.com>
 
        * config/mips/crtn.asm: Don't use __mips16 to determine the
index 891bfca5ffe5021a7cc3cceb5aa8aef8a7140f89..a85923f82bf13547a78dcaea4c48c568e5a65867 100644 (file)
@@ -6674,9 +6674,10 @@ validate_condition_mode (code, mode)
     abort ();
   
   /* These should never be generated except for 
-     flag_unsafe_math_optimizations.  */
+     flag_unsafe_math_optimizations and flag_finite_math_only.  */
   if (mode == CCFPmode
       && ! flag_unsafe_math_optimizations
+      && ! flag_finite_math_only
       && (code == LE || code == GE
          || code == UNEQ || code == LTGT
          || code == UNGT || code == UNLT))