* config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
(RTX_OK_FOR_OLO10_P): Likewise.
From-SVN: r220421
+2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
+
+ * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
+ (RTX_OK_FOR_OLO10_P): Likewise.
+
2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
* tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
#define RTX_OK_FOR_OFFSET_P(X, MODE) \
(CONST_INT_P (X) \
&& INTVAL (X) >= -0x1000 \
- && INTVAL (X) < (0x1000 - GET_MODE_SIZE (MODE)))
+ && INTVAL (X) <= (0x1000 - GET_MODE_SIZE (MODE)))
#define RTX_OK_FOR_OLO10_P(X, MODE) \
(CONST_INT_P (X) \
&& INTVAL (X) >= -0x1000 \
- && INTVAL (X) < (0xc00 - GET_MODE_SIZE (MODE)))
+ && INTVAL (X) <= (0xc00 - GET_MODE_SIZE (MODE)))
/* Handle the TARGET_LEGITIMATE_ADDRESS_P target hook.