summaryrefslogtreecommitdiff
path: root/gcc/config/rs6000/rs6000.h
diff options
context:
space:
mode:
authorDavid Edelsohn <edelsohn@gnu.org>2005-08-13 18:47:08 +0000
committerDavid Edelsohn <dje@gcc.gnu.org>2005-08-13 14:47:08 -0400
commit3256a76e621b4fd466ea9da5ce8de9a24a66aa0c (patch)
treea8cf9cd6d7c86ffe2d57a6a6c7c45005101c77f4 /gcc/config/rs6000/rs6000.h
parentd77704579c02c48223abfe8db569941dfe0e4f46 (diff)
downloadgcc-3256a76e621b4fd466ea9da5ce8de9a24a66aa0c.tar.gz
rs6000.h (EXTRA_CONSTRAINT): Add 'a' for indexed or indirect address operand.
* config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Add 'a' for indexed or indirect address operand. (EXTRA_ADDRESS_CONSTRAINT): New. * config/rs6000/rs6000.md (prefetch): Change constraint "p" to "a". From-SVN: r103056
Diffstat (limited to 'gcc/config/rs6000/rs6000.h')
-rw-r--r--gcc/config/rs6000/rs6000.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/config/rs6000/rs6000.h b/gcc/config/rs6000/rs6000.h
index 17c98c0699a..bab54a90309 100644
--- a/gcc/config/rs6000/rs6000.h
+++ b/gcc/config/rs6000/rs6000.h
@@ -1111,6 +1111,7 @@ enum reg_class
'W' is a vector constant that can be easily generated (no mem refs).
'Y' is an indexed or word-aligned displacement memory operand.
'Z' is an indexed or indirect memory operand.
+ 'a' is an indexed or indirect address operand.
't' is for AND masks that can be performed by two rldic{l,r} insns. */
#define EXTRA_CONSTRAINT(OP, C) \
@@ -1127,6 +1128,7 @@ enum reg_class
: (C) == 'W' ? (easy_vector_constant (OP, GET_MODE (OP))) \
: (C) == 'Y' ? (word_offset_memref_operand (OP, GET_MODE (OP))) \
: (C) == 'Z' ? (indexed_or_indirect_operand (OP, GET_MODE (OP))) \
+ : (C) == 'a' ? (indexed_or_indirect_address (OP, GET_MODE (OP))) \
: 0)
/* Define which constraints are memory constraints. Tell reload
@@ -1136,6 +1138,12 @@ enum reg_class
#define EXTRA_MEMORY_CONSTRAINT(C, STR) \
((C) == 'Q' || (C) == 'Y' || (C) == 'Z')
+/* Define which constraints should be treated like address constraints
+ by the reload pass. */
+
+#define EXTRA_ADDRESS_CONSTRAINT(C, STR) \
+ ((C) == 'a')
+
/* Given an rtx X being reloaded into a reg required to be
in class CLASS, return the class of reg to actually use.
In general this is just CLASS; but on some machines