Commit ef3b9941 by Kazu Hirata Committed by Kazu Hirata

h8300.h (FUNCTION_VALUE): Use R0_REG.

	* config/h8300/h8300.h (FUNCTION_VALUE): Use R0_REG.
	(FUNCTION_VALUE_REGNO_P): Likewise.
	* config/h8300/h8300.md: Define R0_REG.

From-SVN: r73998
parent 80e58519
2003-11-27 Kazu Hirata <kazu@cs.umass.edu>
* config/h8300/h8300.h (FUNCTION_VALUE): Use R0_REG.
(FUNCTION_VALUE_REGNO_P): Likewise.
* config/h8300/h8300.md: Define R0_REG.
2003-11-27 Kazu Hirata <kazu@cs.umass.edu>
* config/h8300/h8300.c: Fix formatting.
* config/h8300/h8300.md: Likewise.
......
......@@ -609,7 +609,7 @@ enum reg_class {
On the H8 the return value is in R0/R1. */
#define FUNCTION_VALUE(VALTYPE, FUNC) \
gen_rtx_REG (TYPE_MODE (VALTYPE), 0)
gen_rtx_REG (TYPE_MODE (VALTYPE), R0_REG)
/* Define how to find the value returned by a library function
assuming the value has mode MODE. */
......@@ -622,7 +622,7 @@ enum reg_class {
/* 1 if N is a possible register number for a function value.
On the H8, R0 is the only register thus used. */
#define FUNCTION_VALUE_REGNO_P(N) ((N) == 0)
#define FUNCTION_VALUE_REGNO_P(N) ((N) == R0_REG)
/* Define this if PCC uses the nonreentrant convention for returning
structure and union values. */
......
......@@ -53,7 +53,8 @@
(UNSPEC_MONITOR 1)])
(define_constants
[(SC_REG 3)
[(R0_REG 0)
(SC_REG 3)
(FP_REG 6)
(SP_REG 7)
(MAC_REG 8)
......
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