Commit 9bcd9715 by James E Wilson Committed by Jim Wilson

Fix for proprietary testcase that fails at -m5-compact...

Fix for proprietary testcase that fails at -m5-compact
����������������* config/sh/sh.h (HARD_REGNO_NREGS): Round up the XD register count.

From-SVN: r63963
parent 149904b5
2003-03-07 James E Wilson <wilson@tuliptree.org>
        * config/sh/sh.h (HARD_REGNO_NREGS): Round up the XD register count.
2003-03-07 Geoffrey Keating <geoffk@apple.com>
* objc/lang-specs.h (objective-c-header): Use .gch not .pch;
......
......@@ -937,10 +937,10 @@ extern char sh_additional_register_names[ADDREGNAMES_SIZE] \
#define HARD_REGNO_NREGS(REGNO, MODE) \
(XD_REGISTER_P (REGNO) \
? (GET_MODE_SIZE (MODE) / (2 * UNITS_PER_WORD)) \
? ((GET_MODE_SIZE (MODE) + (2*UNITS_PER_WORD - 1)) / (2*UNITS_PER_WORD)) \
: (TARGET_SHMEDIA && FP_REGISTER_P (REGNO)) \
? ((GET_MODE_SIZE (MODE) + UNITS_PER_WORD/2 - 1) / (UNITS_PER_WORD/2)) \
: ((GET_MODE_SIZE (MODE) + UNITS_PER_WORD - 1) / UNITS_PER_WORD)) \
: ((GET_MODE_SIZE (MODE) + UNITS_PER_WORD - 1) / UNITS_PER_WORD))
/* Value is 1 if hard register REGNO can hold a value of machine-mode MODE.
We can allow any mode in any general register. The special registers
......
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