From: Jeffrey A Law Date: Sun, 3 Jan 1999 22:03:47 +0000 (+0000) Subject: optabs.c (emit_cmp_and_jump_insns): Use CONSTANT_P canonicalizing RTL for a compare... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3b0d546a2bd7685ef25bbbee124409ab6147c1ea;p=gcc.git optabs.c (emit_cmp_and_jump_insns): Use CONSTANT_P canonicalizing RTL for a compare/jump sequence. * optabs.c (emit_cmp_and_jump_insns): Use CONSTANT_P canonicalizing RTL for a compare/jump sequence. From-SVN: r24472 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1e222523dc5..81a7398dd61 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Sun Jan 3 23:00:42 1999 Jeffrey A Law (law@cygnus.com) + + * optabs.c (emit_cmp_and_jump_insns): Use CONSTANT_P canonicalizing + RTL for a compare/jump sequence. + Sun Jan 3 22:58:15 1999 Michael Hayes * optabs.c (emit_cmp_insn): Abort if asked to emit non-canonical RTL diff --git a/gcc/optabs.c b/gcc/optabs.c index e57a8fc3679..0d300530565 100644 --- a/gcc/optabs.c +++ b/gcc/optabs.c @@ -2950,7 +2950,7 @@ emit_cmp_and_jump_insns (x, y, comparison, size, mode, unsignedp, align, label) rtx op0; rtx op1; - if (GET_CODE (x) == CONST_INT) + if (CONSTANT_P (x)) { /* Swap operands and condition to ensure canonical RTL. */ op0 = y;