aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1993-03-09 00:14:51 +0000
committerRichard Stallman <rms@gnu.org>1993-03-09 00:14:51 +0000
commit48227a2c7e208e0c358579223192004ce713ee44 (patch)
tree06fb5630ca42ba848b9688e277e6314c08cfda1e /gcc
parent6d337bba2dd69139437f03298cc5c0e6bdb80aca (diff)
downloadgcc-48227a2c7e208e0c358579223192004ce713ee44.zip
gcc-48227a2c7e208e0c358579223192004ce713ee44.tar.gz
gcc-48227a2c7e208e0c358579223192004ce713ee44.tar.bz2
(HARD_REGNO_MODE_OK): Add some casts.
From-SVN: r3683
Diffstat (limited to 'gcc')
-rw-r--r--gcc/config/i386/i386.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/gcc/config/i386/i386.h b/gcc/config/i386/i386.h
index c5383ac..018a017 100644
--- a/gcc/config/i386/i386.h
+++ b/gcc/config/i386/i386.h
@@ -275,14 +275,17 @@ extern int target_flags;
while the floating point registers may hold only floating point.
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) \
((REGNO) < 2 ? 1 \
: (REGNO) < 4 ? 1 \
: FP_REGNO_P ((REGNO)) \
- ? ((GET_MODE_CLASS (MODE) == MODE_FLOAT \
- || GET_MODE_CLASS (MODE) == MODE_COMPLEX_FLOAT) \
- && GET_MODE_UNIT_SIZE (MODE) <= 8) \
- : (MODE) != QImode)
+ ? (((int) GET_MODE_CLASS (MODE) == (int) MODE_FLOAT \
+ || (int) GET_MODE_CLASS (MODE) == (int) MODE_COMPLEX_FLOAT) \
+ && GET_MODE_UNIT_SIZE (MODE) <= 12) \
+ : (int) (MODE) != (int) QImode)
/* Value is 1 if it is a good idea to tie two pseudo registers
when one has mode MODE1 and one has mode MODE2.