Commit a7a2225a by Kazu Hirata Committed by Kazu Hirata

c4x.h (FUNCTION_VALUE): Use gen_rtx_REG instead of gen_rtx.

	* config/c4x/c4x.h (FUNCTION_VALUE): Use gen_rtx_REG instead
	of gen_rtx.
	(LIBCALL_VALUE): Likewise.
	* config/ip2k/ip2k.c (mdr_try_propagate_clr_sequence): Use
	gen_rtx_CC0 instead of gen_rtx.
	* config/m68hc11/m68hc11.c (m68hc11_emit_libcall): Use
	gen_rtx_fmt_e and gen_rtx_fmt_ee instead of gen_rtx.
	(m68hc11_expand_compare): Use gen_rtx_fmt_ee instead of
	gen_rtx.
	(m68hc11_emit_logical): Likewise.

From-SVN: r77162
parent a556fd39
2004-02-03 Kazu Hirata <kazu@cs.umass.edu> 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
* config/c4x/c4x.h (FUNCTION_VALUE): Use gen_rtx_REG instead
of gen_rtx.
(LIBCALL_VALUE): Likewise.
* config/ip2k/ip2k.c (mdr_try_propagate_clr_sequence): Use
gen_rtx_CC0 instead of gen_rtx.
* config/m68hc11/m68hc11.c (m68hc11_emit_libcall): Use
gen_rtx_fmt_e and gen_rtx_fmt_ee instead of gen_rtx.
(m68hc11_expand_compare): Use gen_rtx_fmt_ee instead of
gen_rtx.
(m68hc11_emit_logical): Likewise.
2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
* config/alpha/alpha.c, config/arm/arm.c, config/c4x/c4x.c, * config/alpha/alpha.c, config/arm/arm.c, config/c4x/c4x.c,
config/fr30/fr30.md, config/frv/frv.c, config/frv/frv.md, config/fr30/fr30.md, config/frv/frv.c, config/frv/frv.md,
config/h8300/h8300.c, config/ia64/ia64.c, config/ip2k/ip2k.md, config/h8300/h8300.c, config/ia64/ia64.c, config/ip2k/ip2k.md,
......
...@@ -1151,10 +1151,10 @@ CUMULATIVE_ARGS; ...@@ -1151,10 +1151,10 @@ CUMULATIVE_ARGS;
/* How Scalar Function Values Are Returned. */ /* How Scalar Function Values Are Returned. */
#define FUNCTION_VALUE(VALTYPE, FUNC) \ #define FUNCTION_VALUE(VALTYPE, FUNC) \
gen_rtx(REG, TYPE_MODE(VALTYPE), R0_REGNO) /* Return in R0. */ gen_rtx_REG (TYPE_MODE(VALTYPE), R0_REGNO) /* Return in R0. */
#define LIBCALL_VALUE(MODE) \ #define LIBCALL_VALUE(MODE) \
gen_rtx(REG, MODE, R0_REGNO) /* Return in R0. */ gen_rtx_REG (MODE, R0_REGNO) /* Return in R0. */
#define FUNCTION_VALUE_REGNO_P(REGNO) ((REGNO) == R0_REGNO) #define FUNCTION_VALUE_REGNO_P(REGNO) ((REGNO) == R0_REGNO)
......
...@@ -4458,7 +4458,7 @@ mdr_try_propagate_clr_sequence (first_insn, regno) ...@@ -4458,7 +4458,7 @@ mdr_try_propagate_clr_sequence (first_insn, regno)
&& GET_MODE_SIZE (GET_MODE (XEXP (set2, 1))) == 2 && GET_MODE_SIZE (GET_MODE (XEXP (set2, 1))) == 2
&& REGNO (XEXP (set2, 1)) == regno) && REGNO (XEXP (set2, 1)) == regno)
{ {
new_insn = gen_rtx_SET (VOIDmode, gen_rtx (CC0, VOIDmode), new_insn = gen_rtx_SET (VOIDmode, gen_rtx_CC0 (VOIDmode),
gen_rtx_REG(QImode, regno + 1)); gen_rtx_REG(QImode, regno + 1));
new_insn = emit_insn_before (new_insn, try_insn); new_insn = emit_insn_before (new_insn, try_insn);
} }
......
...@@ -866,7 +866,7 @@ m68hc11_emit_libcall (const char *name, enum rtx_code code, ...@@ -866,7 +866,7 @@ m68hc11_emit_libcall (const char *name, enum rtx_code code,
case 2: case 2:
ret = emit_library_call_value (libcall, NULL_RTX, LCT_CONST, ret = emit_library_call_value (libcall, NULL_RTX, LCT_CONST,
dmode, 1, operands[1], smode); dmode, 1, operands[1], smode);
equiv = gen_rtx (code, dmode, operands[1]); equiv = gen_rtx_fmt_e (code, dmode, operands[1]);
break; break;
case 3: case 3:
...@@ -874,7 +874,7 @@ m68hc11_emit_libcall (const char *name, enum rtx_code code, ...@@ -874,7 +874,7 @@ m68hc11_emit_libcall (const char *name, enum rtx_code code,
LCT_CONST, dmode, 2, LCT_CONST, dmode, 2,
operands[1], smode, operands[2], operands[1], smode, operands[2],
smode); smode);
equiv = gen_rtx (code, dmode, operands[1], operands[2]); equiv = gen_rtx_fmt_ee (code, dmode, operands[1], operands[2]);
break; break;
default: default:
...@@ -2498,7 +2498,7 @@ m68hc11_expand_compare (enum rtx_code code, rtx op0, rtx op1) ...@@ -2498,7 +2498,7 @@ m68hc11_expand_compare (enum rtx_code code, rtx op0, rtx op1)
{ {
emit_insn (gen_rtx_SET (VOIDmode, cc0_rtx, emit_insn (gen_rtx_SET (VOIDmode, cc0_rtx,
gen_rtx_COMPARE (VOIDmode, op0, op1))); gen_rtx_COMPARE (VOIDmode, op0, op1)));
ret = gen_rtx (code, VOIDmode, cc0_rtx, const0_rtx); ret = gen_rtx_fmt_ee (code, VOIDmode, cc0_rtx, const0_rtx);
} }
return ret; return ret;
...@@ -2976,17 +2976,18 @@ m68hc11_emit_logical (enum machine_mode mode, int code, rtx *operands) ...@@ -2976,17 +2976,18 @@ m68hc11_emit_logical (enum machine_mode mode, int code, rtx *operands)
{ {
emit_move_insn (operands[3], operands[1]); emit_move_insn (operands[3], operands[1]);
emit_insn (gen_rtx_SET (mode, emit_insn (gen_rtx_SET (mode,
operands[3], operands[3],
gen_rtx (code, mode, gen_rtx_fmt_ee (code, mode,
operands[3], operands[2]))); operands[3], operands[2])));
insn = emit_move_insn (operands[0], operands[3]); insn = emit_move_insn (operands[0], operands[3]);
} }
else else
{ {
insn = emit_insn (gen_rtx_SET (mode, insn = emit_insn (gen_rtx_SET (mode,
operands[0], operands[0],
gen_rtx (code, mode, gen_rtx_fmt_ee (code, mode,
operands[0], operands[2]))); operands[0],
operands[2])));
} }
} }
......
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