Commit e8758a3a by Jeffrey A Law Committed by Jeff Law

combine.c (if_then_else_cond): Use const_true_rtx instead of const1_rtx for…

combine.c (if_then_else_cond): Use const_true_rtx instead of const1_rtx for return values in EQ/NE comparison...

	* combine.c (if_then_else_cond): Use const_true_rtx instead of
	const1_rtx for return values in EQ/NE comparison against (const_int 0)
	case.

From-SVN: r30749
parent 705ac34f
Wed Dec 1 16:51:22 1999 Jeffrey A Law (law@cygnus.com) Wed Dec 1 16:51:22 1999 Jeffrey A Law (law@cygnus.com)
* combine.c (if_then_else_cond): Use const_true_rtx instead of
const1_rtx for return values in EQ/NE comparison against (const_int 0)
case.
* mn10300.c (REG_SAVE_BYTES): Allocate space for AM33 registers. * mn10300.c (REG_SAVE_BYTES): Allocate space for AM33 registers.
(asm_file_start): Emit .am33 into assembly file when compiling for (asm_file_start): Emit .am33 into assembly file when compiling for
the AM33. the AM33.
......
...@@ -7037,8 +7037,8 @@ if_then_else_cond (x, ptrue, pfalse) ...@@ -7037,8 +7037,8 @@ if_then_else_cond (x, ptrue, pfalse)
if ((code == NE || code == EQ) if ((code == NE || code == EQ)
&& GET_CODE (XEXP (x, 1)) == CONST_INT && INTVAL (XEXP (x, 1)) == 0) && GET_CODE (XEXP (x, 1)) == CONST_INT && INTVAL (XEXP (x, 1)) == 0)
{ {
*ptrue = (code == NE) ? const1_rtx : const0_rtx; *ptrue = (code == NE) ? const_true_rtx : const0_rtx;
*pfalse = (code == NE) ? const0_rtx : const1_rtx; *pfalse = (code == NE) ? const0_rtx : const_true_rtx;
return XEXP (x, 0); return XEXP (x, 0);
} }
......
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