OSDN Git Service

(CONSTANT_ADDRESS_P): Provide consistent definition.
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 28 Mar 1995 13:20:42 +0000 (13:20 +0000)
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 28 Mar 1995 13:20:42 +0000 (13:20 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@9238 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/config/a29k/a29k.h

index 4e531ce..67818f4 100644 (file)
@@ -1091,10 +1091,10 @@ extern char *a29k_function_name;
 /* Maximum number of registers that can appear in a valid memory address.  */
 #define MAX_REGS_PER_ADDRESS 1
 
-/* Recognize any constant value that is a valid address.
+/* Recognize any constant value that is a valid address.  */
 
-   None are on the 29K.  */
-#define CONSTANT_ADDRESS_P(X)  0
+#define CONSTANT_ADDRESS_P(X)  \
+(GET_CODE (X) == CONST_INT && (unsigned) INTVAL (X) < 0x100)
 
 /* Include all constant integers and constant doubles */
 #define LEGITIMATE_CONSTANT_P(X)       1