summaryrefslogtreecommitdiff
path: root/gcc/config/m32c/m32c.h
diff options
context:
space:
mode:
authorfroydnj <froydnj@138bc75d-0d04-0410-961f-82ee72b054a4>2012-08-22 02:23:19 +0000
committerfroydnj <froydnj@138bc75d-0d04-0410-961f-82ee72b054a4>2012-08-22 02:23:19 +0000
commit4ead5e300035ea4e0e4856c5eaa60e685b129339 (patch)
treebe7b56fe9dfc21819a3533ac4334a4007af10c31 /gcc/config/m32c/m32c.h
parent4bbc0011096a0473f5dea17353259dfc46f4051c (diff)
downloadgcc-4ead5e300035ea4e0e4856c5eaa60e685b129339.tar.gz
* config/m32c/constraints.md: New file.
* config/m32c/t-m32c (MD_FILES): Add constraints. * config/m32c/m32c-protos.h (m32c_const_ok_for_constraint_p): Delete. (m32c_extra_address_constraint, m32c_extra_memory_constraint): Delete. (m32c_reg_class_from_constraint): Delete. (m32c_extra_constraint_p, m32c_extra_constraint_p2): Delete. (m32c_matches_constraint_p): Declare. * config/m32c/m32c.h (CONSTRAINT_LEN): Delete. (REG_CLASS_FROM_CONSTRAINT): Delete. (CONST_OK_FOR_CONSTRAINT_P): Delete. (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Delete. (EXTRA_CONSTRAINT_STR): Delete. (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Delete. * config/m32c/m32c.c: Include tm-constrs.h (m32c_reg_class_from_constraint): Delete. (m32c_const_ok_for_constraint_p): Delete. (m32c_extra_constraint_p2): Rename to... (m32c_matches_constraint_p): ...this. Make it return bool. Tweak formatting. (m32c_extra_constraint_p): Delete. (m32c_extra_address_constraint, m32c_extra_memory_constraint): Delete. (m32c_split_move): Use satisfies_constraint_Ss. * config/m32c/predicates.md (memsym_operand): Use satisfies_constraint_Si. (memimmed_operand): Use satisfies_constraint_Sp. (m32c_psi_scale, m32c_1bit8_operand): Use satisfies_constraint_Ilb. (m32c_1bit16_operand): Use satisfies_constraint_Ilw. (m32c_1mask8_operand): Use satisfies_constraint_ImB. (m32c_1mask16_operand): Use satisfies_constraint_Imw. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@190585 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/m32c/m32c.h')
-rw-r--r--gcc/config/m32c/m32c.h19
1 files changed, 0 insertions, 19 deletions
diff --git a/gcc/config/m32c/m32c.h b/gcc/config/m32c/m32c.h
index 00f8a2c52a1..1efbd36bbdd 100644
--- a/gcc/config/m32c/m32c.h
+++ b/gcc/config/m32c/m32c.h
@@ -405,15 +405,6 @@ enum reg_class
A - addresses (currently unused)
*/
-#define CONSTRAINT_LEN(CHAR,STR) \
- ((CHAR) == 'I' ? 3 \
- : (CHAR) == 'R' ? 3 \
- : (CHAR) == 'S' ? 2 \
- : (CHAR) == 'A' ? 2 \
- : DEFAULT_CONSTRAINT_LEN(CHAR,STR))
-#define REG_CLASS_FROM_CONSTRAINT(CHAR,STR) \
- (enum reg_class) m32c_reg_class_from_constraint (CHAR, STR)
-
#define REGNO_OK_FOR_BASE_P(NUM) m32c_regno_ok_for_base_p (NUM)
#define REGNO_OK_FOR_INDEX_P(NUM) 0
@@ -427,16 +418,6 @@ enum reg_class
#define CANNOT_CHANGE_MODE_CLASS(F,T,C) m32c_cannot_change_mode_class(F,T,C)
-#define CONST_OK_FOR_CONSTRAINT_P(VALUE,C,STR) \
- m32c_const_ok_for_constraint_p (VALUE, C, STR)
-#define CONST_DOUBLE_OK_FOR_CONSTRAINT_P(VALUE,C,STR) 0
-#define EXTRA_CONSTRAINT_STR(VALUE,C,STR) \
- m32c_extra_constraint_p (VALUE, C, STR)
-#define EXTRA_MEMORY_CONSTRAINT(C,STR) \
- m32c_extra_memory_constraint (C, STR)
-#define EXTRA_ADDRESS_CONSTRAINT(C,STR) \
- m32c_extra_address_constraint (C, STR)
-
/* STACK AND CALLING */
/* Frame Layout */