diff --git a/gcc/config/a29k/a29k.h b/gcc/config/a29k/a29k.h index 4e531ce62c9..67818f4ae2f 100644 --- a/gcc/config/a29k/a29k.h +++ b/gcc/config/a29k/a29k.h @@ -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