* expr.c (do_jump): Treat VOIDmode CONST_DOUBLEs like CONST_INTs.
authorGeoffrey Keating <geoffk@redhat.com>
Mon, 15 Jan 2001 12:03:36 +0000 (12:03 +0000)
committerGeoffrey Keating <geoffk@gcc.gnu.org>
Mon, 15 Jan 2001 12:03:36 +0000 (12:03 +0000)
From-SVN: r39035

gcc/ChangeLog
gcc/expr.c

index a13862faca54f7820654ce47eb0ae1458b8fdbe7..18db676b7121a13fb8eedea96c44d8b58afbb6d5 100644 (file)
@@ -1,3 +1,7 @@
+2001-01-14  Geoffrey Keating  <geoffk@redhat.com>
+
+       * expr.c (do_jump): Treat VOIDmode CONST_DOUBLEs like CONST_INTs.
+
 2001-01-14  Ralf Baechle <ralf@gnu.org>
 
         * config/mips/linux.h (SUBTARGET_CPP_SPEC): Default ABI is 32; change
index 49b1c3e7e097f10f81506494af5f2fdf6ef1d448..a4637abc359c3187cd70c523a208d40f6e0ab6d2 100644 (file)
@@ -9771,7 +9771,9 @@ do_jump (exp, if_false_label, if_true_label)
       /* Do any postincrements in the expression that was tested.  */
       emit_queue ();
 
-      if (GET_CODE (temp) == CONST_INT || GET_CODE (temp) == LABEL_REF)
+      if (GET_CODE (temp) == CONST_INT 
+         || (GET_CODE (temp) == CONST_DOUBLE && GET_MODE (temp) == VOIDmode)
+         || GET_CODE (temp) == LABEL_REF)
        {
          rtx target = temp == const0_rtx ? if_false_label : if_true_label;
          if (target)