* i386.h (LEGITIMATE_CONSTANT_P): Reject CONST_DOUBLEs that are not
standard 387 constants.
From-SVN: r23721
Thu Nov 19 19:34:13 1998 Jeffrey A Law (law@cygnus.com)
+ * i386.h (LEGITIMATE_CONSTANT_P): Reject CONST_DOUBLEs that are not
+ standard 387 constants.
+
* i386.md (jump): Explicitly set "memory" attribute.
(indirect_jump, prologue_set_stack_ptr): Likewise.
(prologue_get_pc_and_set_got, pop): Likewise.
/* Nonzero if the constant value X is a legitimate general operand.
It is given that X satisfies CONSTANT_P or is a CONST_DOUBLE. */
-#define LEGITIMATE_CONSTANT_P(X) 1
+#define LEGITIMATE_CONSTANT_P(X) \
+ (GET_CODE (X) == CONST_DOUBLE ? standard_80387_constant_p (X) : 1)
#ifdef REG_OK_STRICT
#define GO_IF_LEGITIMATE_ADDRESS(MODE, X, ADDR) \