diff options
author | nickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-05-27 06:55:00 +0000 |
---|---|---|
committer | nickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-05-27 06:55:00 +0000 |
commit | 452bfb8baf4e6fa609d722d451bbf31fcfc43de0 (patch) | |
tree | 18826ff2c38cf60857c01f3bac96bb73bc42d88f /gcc/config/m32r/m32r.h | |
parent | a6ead2a9a5bc5d68772ee7cc83bd2b664646c902 (diff) | |
download | gcc-452bfb8baf4e6fa609d722d451bbf31fcfc43de0.tar.gz |
* config/m32r/m32r.c: Use REG_P, MEM_P and CONST_INT_P where
applicable.
* config/m32r/m32r.h: Ditto.
* config/m32r/m32r.md: Ditto.
* config/m32r/predicates.md: Ditto.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@147899 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/m32r/m32r.h')
-rw-r--r-- | gcc/config/m32r/m32r.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/config/m32r/m32r.h b/gcc/config/m32r/m32r.h index 41dc07abad6..61c322048d9 100644 --- a/gcc/config/m32r/m32r.h +++ b/gcc/config/m32r/m32r.h @@ -1059,7 +1059,7 @@ L2: .word STATIC #define CONSTANT_ADDRESS_P(X) \ ( GET_CODE (X) == LABEL_REF \ || GET_CODE (X) == SYMBOL_REF \ - || GET_CODE (X) == CONST_INT \ + || CONST_INT_P (X) \ || (GET_CODE (X) == CONST \ && ! (flag_pic && ! m32r_legitimate_pic_operand_p (X)))) @@ -1073,7 +1073,7 @@ L2: .word STATIC (! (GET_CODE (X) == CONST \ && GET_CODE (XEXP (X, 0)) == PLUS \ && (GET_CODE (XEXP (XEXP (X, 0), 0)) == SYMBOL_REF || GET_CODE (XEXP (XEXP (X, 0), 0)) == LABEL_REF) \ - && GET_CODE (XEXP (XEXP (X, 0), 1)) == CONST_INT \ + && CONST_INT_P (XEXP (XEXP (X, 0), 1)) \ && (unsigned HOST_WIDE_INT) INTVAL (XEXP (XEXP (X, 0), 1)) > 32767)) /* The macros REG_OK_FOR..._P assume that the arg is a REG rtx @@ -1120,7 +1120,7 @@ L2: .word STATIC /* Local to this file. */ #define RTX_OK_FOR_OFFSET_P(X) \ - (GET_CODE (X) == CONST_INT && INT16_P (INTVAL (X))) + (CONST_INT_P (X) && INT16_P (INTVAL (X))) /* Local to this file. */ #define LEGITIMATE_OFFSET_ADDRESS_P(MODE, X) \ @@ -1142,7 +1142,7 @@ L2: .word STATIC #define LOAD_POSTINC_P(MODE, X) \ (((MODE) == SImode || (MODE) == SFmode) \ && GET_CODE (X) == POST_INC \ - && GET_CODE (XEXP (X, 0)) == REG \ + && REG_P (XEXP (X, 0)) \ && RTX_OK_FOR_BASE_P (XEXP (X, 0))) /* Local to this file. */ @@ -1150,7 +1150,7 @@ L2: .word STATIC #define STORE_PREINC_PREDEC_P(MODE, X) \ (((MODE) == SImode || (MODE) == SFmode) \ && (GET_CODE (X) == PRE_INC || GET_CODE (X) == PRE_DEC) \ - && GET_CODE (XEXP (X, 0)) == REG \ + && REG_P (XEXP (X, 0)) \ && RTX_OK_FOR_BASE_P (XEXP (X, 0))) #define GO_IF_LEGITIMATE_ADDRESS(MODE, X, ADDR) \ |