Commit 48227a2c by Richard Stallman

(HARD_REGNO_MODE_OK): Add some casts.

From-SVN: r3683
parent 6d337bba
...@@ -275,14 +275,17 @@ extern int target_flags; ...@@ -275,14 +275,17 @@ extern int target_flags;
while the floating point registers may hold only floating point. while the floating point registers may hold only floating point.
Make it clear that the fp regs could not hold a 16-byte float. */ Make it clear that the fp regs could not hold a 16-byte float. */
/* The casts to int placate a compiler on a microvax,
for cross-compiler testing. */
#define HARD_REGNO_MODE_OK(REGNO, MODE) \ #define HARD_REGNO_MODE_OK(REGNO, MODE) \
((REGNO) < 2 ? 1 \ ((REGNO) < 2 ? 1 \
: (REGNO) < 4 ? 1 \ : (REGNO) < 4 ? 1 \
: FP_REGNO_P ((REGNO)) \ : FP_REGNO_P ((REGNO)) \
? ((GET_MODE_CLASS (MODE) == MODE_FLOAT \ ? (((int) GET_MODE_CLASS (MODE) == (int) MODE_FLOAT \
|| GET_MODE_CLASS (MODE) == MODE_COMPLEX_FLOAT) \ || (int) GET_MODE_CLASS (MODE) == (int) MODE_COMPLEX_FLOAT) \
&& GET_MODE_UNIT_SIZE (MODE) <= 8) \ && GET_MODE_UNIT_SIZE (MODE) <= 12) \
: (MODE) != QImode) : (int) (MODE) != (int) QImode)
/* Value is 1 if it is a good idea to tie two pseudo registers /* Value is 1 if it is a good idea to tie two pseudo registers
when one has mode MODE1 and one has mode MODE2. when one has mode MODE1 and one has mode MODE2.
......
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