Commit 0ca40216 by Jeffrey A Law Committed by Jeff Law

optabs.c (emit_cmp_and_jump_insns): Handle the case where both operands to the…

optabs.c (emit_cmp_and_jump_insns): Handle the case where both operands to the comparison are constants.

	* optabs.c (emit_cmp_and_jump_insns): Handle the case where both
	operands to the comparison are constants.

From-SVN: r26860
parent f2646f9c
Mon May 10 12:59:20 1999 Jeffrey A Law (law@cygnus.com)
* optabs.c (emit_cmp_and_jump_insns): Handle the case where both
operands to the comparison are constants.
Mon May 10 07:28:10 1999 Bruce Korb <autogen@autogen.freeservers.com>
* fixinc/inclhack.def(arm_norcroft_hint): check before fixing
......
......@@ -2976,6 +2976,15 @@ emit_cmp_and_jump_insns (x, y, comparison, size, mode, unsignedp, align, label)
op0 = x;
op1 = y;
}
#ifdef HAVE_cc0
/* If OP0 is still a constant, then both X and Y must be constants. Force
X into a register to avoid aborting in emit_cmp_insn due to non-canonical
RTL. */
if (CONSTANT_P (op0))
op0 = force_reg (mode, op0);
#endif
emit_cmp_insn (op0, op1, comparison, size, mode, unsignedp, align);
if (unsignedp)
......
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