mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-21 15:40:55 +08:00
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
This commit is contained in:
parent
362cc3d434
commit
3b0d546a2b
@ -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 <m.hayes@elec.canterbury.ac.nz>
|
||||
|
||||
* optabs.c (emit_cmp_insn): Abort if asked to emit non-canonical RTL
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user