(EXTRA_CONSTRAINT): Add new 'T' and 'U' constraints

which check for aligned accesses to memory and register pairs.

From-SVN: r1661
This commit is contained in:
Jeff Law 1992-07-22 14:01:13 -06:00
parent 0fb5ac6f94
commit 198586008b

View File

@ -1090,6 +1090,10 @@ extern union tree_node *current_function_decl;
&& REG_OK_FOR_BASE_P (XEXP (OP, 0))) \ && REG_OK_FOR_BASE_P (XEXP (OP, 0))) \
: (C) == 'S' \ : (C) == 'S' \
? (CONSTANT_P (OP) || memory_address_p (Pmode, OP)) \ ? (CONSTANT_P (OP) || memory_address_p (Pmode, OP)) \
: (C) == 'T' \
? (mem_aligned_8 (OP)) \
: (C) == 'U' \
? (register_ok_for_ldd (OP)) \
: 0) : 0)
#else #else
@ -1112,7 +1116,11 @@ extern union tree_node *current_function_decl;
: ((C) == 'S' \ : ((C) == 'S' \
? (CONSTANT_P (OP) \ ? (CONSTANT_P (OP) \
|| (GET_CODE (OP) == REG && reg_renumber[REGNO (OP)] > 0)\ || (GET_CODE (OP) == REG && reg_renumber[REGNO (OP)] > 0)\
|| strict_memory_address_p (Pmode, OP)) : 0))) || strict_memory_address_p (Pmode, OP)) \
: ((C) == 'T' ? \
mem_aligned_8 (OP) && strict_memory_address_p (Pmode, OP) \
: ((C) == 'U' ? \
register_ok_for_ldd (OP) : 0)))))
#endif #endif
/* GO_IF_LEGITIMATE_ADDRESS recognizes an RTL expression /* GO_IF_LEGITIMATE_ADDRESS recognizes an RTL expression