]> gcc.gnu.org Git - gcc.git/commitdiff
(EXTRA_CONSTRAINT): Add new 'T' and 'U' constraints
authorJeff Law <law@gcc.gnu.org>
Wed, 22 Jul 1992 20:01:13 +0000 (14:01 -0600)
committerJeff Law <law@gcc.gnu.org>
Wed, 22 Jul 1992 20:01:13 +0000 (14:01 -0600)
which check for aligned accesses to memory and register pairs.

From-SVN: r1661

gcc/config/sparc/sparc.h

index c3c96143af7ca8930990adbbea8ae987ac0fd38c..b4f5f6969243d3ea9b38a65987da8880b42ee892 100644 (file)
@@ -1090,8 +1090,12 @@ extern union tree_node *current_function_decl;
       && REG_OK_FOR_BASE_P (XEXP (OP, 0)))             \
    : (C) == 'S'                                                \
    ? (CONSTANT_P (OP) || memory_address_p (Pmode, OP)) \
+   : (C) == 'T'                                                \
+   ? (mem_aligned_8 (OP))                              \
+   : (C) == 'U'                                                \
+   ? (register_ok_for_ldd (OP))                                \
    : 0)
-
 #else
 
 /* Nonzero if X is a hard reg that can be used as an index.  */
@@ -1112,7 +1116,11 @@ extern union tree_node *current_function_decl;
       : ((C) == 'S'                                    \
         ? (CONSTANT_P (OP)                             \
            || (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
 \f
 /* GO_IF_LEGITIMATE_ADDRESS recognizes an RTL expression
This page took 0.070364 seconds and 5 git commands to generate.