* expr.c (do_jump): Treat VOIDmode CONST_DOUBLEs like CONST_INTs.

From-SVN: r39035
This commit is contained in:
Geoffrey Keating 2001-01-15 12:03:36 +00:00 committed by Geoffrey Keating
parent db3f4e4eff
commit 998a298e1e
2 changed files with 7 additions and 1 deletions

View 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

View 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)