Commit 11b635fe by Kazu Hirata Committed by Kazu Hirata

genemit.c (gen_exp): Use const_int_rtx whenever possible.

	* genemit.c (gen_exp) [CONST_INT]: Use const_int_rtx whenever
	possible.

From-SVN: r77379
parent ace3ffcd
2004-02-06 Kazu Hirata <kazu@cs.umass.edu> 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
* genemit.c (gen_exp) [CONST_INT]: Use const_int_rtx whenever
possible.
2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
* reload1.c (eliminate_regs_in_insn): If a set has a REG_EQUAL * reload1.c (eliminate_regs_in_insn): If a set has a REG_EQUAL
note containing (plus (reg) (const_int)), where reg is an note containing (plus (reg) (const_int)), where reg is an
eliminable reg, then perform the register elimination without eliminable reg, then perform the register elimination without
......
...@@ -243,6 +243,10 @@ gen_exp (rtx x, enum rtx_code subroutine_type, char *used) ...@@ -243,6 +243,10 @@ gen_exp (rtx x, enum rtx_code subroutine_type, char *used)
printf ("const1_rtx"); printf ("const1_rtx");
else if (INTVAL (x) == -1) else if (INTVAL (x) == -1)
printf ("constm1_rtx"); printf ("constm1_rtx");
else if (-MAX_SAVED_CONST_INT <= INTVAL (x)
&& INTVAL (x) <= MAX_SAVED_CONST_INT)
printf ("const_int_rtx[MAX_SAVED_CONST_INT + (%d)]",
(int) INTVAL (x));
else if (INTVAL (x) == STORE_FLAG_VALUE) else if (INTVAL (x) == STORE_FLAG_VALUE)
printf ("const_true_rtx"); printf ("const_true_rtx");
else else
......
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