summaryrefslogtreecommitdiff
path: root/gcc/config/epiphany
diff options
context:
space:
mode:
authoramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>2011-12-10 09:40:02 +0000
committeramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>2011-12-10 09:40:02 +0000
commitfea11e96b68082b7dc175f861ecff41333a1cd11 (patch)
treef1b985857cb95e7fb4c1c47f2103ff82a4cb36d4 /gcc/config/epiphany
parent5b0e70eee581a927fb1007cdfde31fa02179374b (diff)
downloadgcc-fea11e96b68082b7dc175f861ecff41333a1cd11.tar.gz
* config/epiphany/epiphany.h (USE_LOAD_POST_INCREMENT): Define.
(USE_LOAD_POST_DECREMENT, USE_STORE_POST_INCREMENT): Likewise. (USE_STORE_POST_DECREMENT): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182185 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/epiphany')
-rw-r--r--gcc/config/epiphany/epiphany.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/config/epiphany/epiphany.h b/gcc/config/epiphany/epiphany.h
index 9d03ee909b8..08b121b8cde 100644
--- a/gcc/config/epiphany/epiphany.h
+++ b/gcc/config/epiphany/epiphany.h
@@ -602,6 +602,21 @@ typedef struct GTY (()) machine_function
#define HAVE_POST_MODIFY_DISP TARGET_POST_MODIFY
#define HAVE_POST_MODIFY_REG TARGET_POST_MODIFY
+/* Currently, the only users of the USE_*CREMENT macros are
+ move_by_pieces / store_by_pieces_1 . We don't want them to use
+ POST_MODIFY modes, because we got ample addressing range for the
+ reg+offset addressing mode; besides, there are short index+offset loads,
+ but the only short post-modify load uses POST_MODIFY_REG.
+ Moreover, using auto-increment in move_by_pieces from structure copying
+ in the prologue causes confused debug output.
+ If another pass starts using these macros where the use of these
+ addressing modes would make more sense, we can try checking the
+ current pass. */
+#define USE_LOAD_POST_INCREMENT(MODE) 0
+#define USE_LOAD_POST_DECREMENT(MODE) 0
+#define USE_STORE_POST_INCREMENT(MODE) 0
+#define USE_STORE_POST_DECREMENT(MODE) 0
+
/* Recognize any constant value that is a valid address. */
#define CONSTANT_ADDRESS_P(X) \
(GET_CODE (X) == LABEL_REF || GET_CODE (X) == SYMBOL_REF \