Commit e9575b51 by Richard Stallman

(VALUE_REGNO, HARD_REGNO_MODE_OK): Add missing #undef.

(HARD_REGNO_MODE_OK): Properly check for floating-point registers.
Register 16 is AP and not floating.

From-SVN: r4386
parent 172a1cb0
......@@ -60,14 +60,16 @@
/* If no 387, use the general regs to return floating values,
since this system does not emulate the 80387. */
#undef VALUE_REGNO
#define VALUE_REGNO(MODE) \
((TARGET_80387 && ((MODE) == SFmode || (MODE) == DFmode))
? FIRST_FLOAT_REG : 0)
#undef HARD_REGNO_MODE_OK
#define HARD_REGNO_MODE_OK(REGNO, MODE) \
((REGNO) < 2 ? 1 \
: (REGNO) < 4 ? 1 \
: (REGNO) >= 8 ? ((GET_MODE_CLASS (MODE) == MODE_FLOAT \
: FP_REGNO_P (REGNO) ? ((GET_MODE_CLASS (MODE) == MODE_FLOAT \
|| GET_MODE_CLASS (MODE) == MODE_COMPLEX_FLOAT) \
&& TARGET_80387 \
&& GET_MODE_UNIT_SIZE (MODE) <= 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