From: Richard Henderson Date: Thu, 26 Aug 1999 00:59:14 +0000 (-0700) Subject: optabs.c (emit_cmp_and_jump_insns): Be more thorough in canonization. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5879933a92e9b01b6233b8e9c276446cc5ef0734;p=gcc.git optabs.c (emit_cmp_and_jump_insns): Be more thorough in canonization. * optabs.c (emit_cmp_and_jump_insns): Be more thorough in canonization. From-SVN: r28885 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a15299724ac..f73c4da31a4 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Wed Aug 25 17:56:59 1999 Richard Henderson + + * optabs.c (emit_cmp_and_jump_insns): Be more thorough in + canonization. + Wed Aug 25 15:35:55 1999 Richard Henderson * m88k.h (VERSION_INFO2): Kill. diff --git a/gcc/optabs.c b/gcc/optabs.c index dc742627a77..f8409374409 100644 --- a/gcc/optabs.c +++ b/gcc/optabs.c @@ -3299,7 +3299,8 @@ emit_cmp_and_jump_insns (x, y, comparison, size, mode, unsignedp, align, label) rtx op0; rtx op1; - if (CONSTANT_P (x)) + if ((CONSTANT_P (x) && ! CONSTANT_P (y)) + || (GET_CODE (x) == CONST_INT && GET_CODE (y) != CONST_INT)) { /* Swap operands and condition to ensure canonical RTL. */ op0 = y;