diff options
author | Jim Wilson <wilson@gcc.gnu.org> | 1995-02-24 14:50:34 -0800 |
---|---|---|
committer | Jim Wilson <wilson@gcc.gnu.org> | 1995-02-24 14:50:34 -0800 |
commit | 819f6d59590c2c0380d94af634d2fcc8d3007229 (patch) | |
tree | 7758dfe968c108acfff957f64376926ef3690ae7 | |
parent | 0e089454b8dc1ddcf0f1d98023b27250c9d7b7d9 (diff) | |
download | gcc-819f6d59590c2c0380d94af634d2fcc8d3007229.zip gcc-819f6d59590c2c0380d94af634d2fcc8d3007229.tar.gz gcc-819f6d59590c2c0380d94af634d2fcc8d3007229.tar.bz2 |
(REAL_ARITHMETIC): Define.
(LEGITIMATE_CONSTANT_P): Pass argument mode not VOIDmode to fp_literal.
From-SVN: r9066
-rw-r--r-- | gcc/config/i960/i960.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/gcc/config/i960/i960.h b/gcc/config/i960/i960.h index f140f7f..4f81a2f 100644 --- a/gcc/config/i960/i960.h +++ b/gcc/config/i960/i960.h @@ -303,6 +303,10 @@ extern int target_flags; /* Target machine storage layout. */ +/* Define for cross-compilation from a host with a different float format + or endianess (e.g. VAX, x86). */ +#define REAL_ARITHMETIC + /* Define this if most significant bit is lowest numbered in instructions that operate on numbered bit-fields. */ #define BITS_BIG_ENDIAN 0 @@ -940,10 +944,12 @@ extern struct rtx_def *i960_function_arg (); is a legitimate general operand. It is given that X satisfies CONSTANT_P. - Anything but a CONST_DOUBLE can be made to work, excepting 0.0 and 1.0. */ + Anything but a CONST_DOUBLE can be made to work, excepting 0.0 and 1.0. + + ??? This probably should be defined to 1. */ #define LEGITIMATE_CONSTANT_P(X) \ - ((GET_CODE (X) != CONST_DOUBLE) || fp_literal ((X), VOIDmode)) + ((GET_CODE (X) != CONST_DOUBLE) || fp_literal ((X), GET_MODE (X))) /* The macros REG_OK_FOR..._P assume that the arg is a REG rtx and check its validity for a certain class. |