Commit 5879933a by Richard Henderson Committed by Richard Henderson

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
parent 2cb3d06c
Wed Aug 25 17:56:59 1999 Richard Henderson <rth@cygnus.com>
* optabs.c (emit_cmp_and_jump_insns): Be more thorough in
canonization.
Wed Aug 25 15:35:55 1999 Richard Henderson <rth@cygnus.com>
* m88k.h (VERSION_INFO2): Kill.
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment