c4x.h (HARD_REGNO_NREGS): HCmode mode uses 2 regs not 4.

2001-04-07  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>

	* c4x.h (HARD_REGNO_NREGS): HCmode mode uses 2 regs not 4.

From-SVN: r41173
This commit is contained in:
Herman A.J. ten Brugge 2001-04-07 03:17:57 +02:00 committed by Michael Hayes
parent c8cd06a813
commit d0550d07e2
2 changed files with 12 additions and 4 deletions

View File

@ -1,3 +1,7 @@
2001-04-07 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
* c4x.h (HARD_REGNO_NREGS): HCmode mode uses 2 regs not 4.
2001-04-06 Neil Booth <neil@daikokuya.demon.co.uk>
* cpplib.c (cpp_push_buffer): Give stdin buffers the name <stdin>.

View File

@ -630,12 +630,16 @@ extern const char *c4x_rpts_cycles_string, *c4x_cpu_version_string;
#define CLASS_LIKELY_SPILLED_P(CLASS) ((CLASS) == INDEX_REGS)
/* CCmode is wrongly defined in machmode.def It should have a size
of UNITS_PER_WORD. */
/* CCmode is wrongly defined in machmode.def. It should have a size
of UNITS_PER_WORD. HFmode is 40-bits and thus fits within a single
extended precision register. Similarly, HCmode fits within two
extended precision registers. */
#define HARD_REGNO_NREGS(REGNO, MODE) \
(((MODE) == CCmode || (MODE) == CC_NOOVmode) ? 1 : ((MODE) == HFmode) ? 1 : \
((GET_MODE_SIZE(MODE) + UNITS_PER_WORD - 1) / UNITS_PER_WORD))
(((MODE) == CCmode || (MODE) == CC_NOOVmode) ? 1 : \
((MODE) == HFmode) ? 1 : \
((MODE) == HCmode) ? 2 : \
((GET_MODE_SIZE(MODE) + UNITS_PER_WORD - 1) / UNITS_PER_WORD))
/* A C expression that is nonzero if the hard register REGNO is preserved