OSDN Git Service

(REAL_ARITHMETIC): Define.
authorwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 24 Feb 1995 22:50:34 +0000 (22:50 +0000)
committerwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 24 Feb 1995 22:50:34 +0000 (22:50 +0000)
(LEGITIMATE_CONSTANT_P): Pass argument mode not VOIDmode to fp_literal.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@9066 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/config/i960/i960.h

index f140f7f..4f81a2f 100644 (file)
@@ -303,6 +303,10 @@ extern int target_flags;
 \f
 /* 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.