summaryrefslogtreecommitdiff
path: root/gcc/config/sparc/sparc.h
diff options
context:
space:
mode:
authordavem <davem@138bc75d-0d04-0410-961f-82ee72b054a4>2004-06-09 18:26:11 +0000
committerdavem <davem@138bc75d-0d04-0410-961f-82ee72b054a4>2004-06-09 18:26:11 +0000
commit5b9dc69448195712a89b47fe5164e00a9563c0c3 (patch)
treed547f91f0017b93fd9a7408a7aff0c737821d9cd /gcc/config/sparc/sparc.h
parent500ff7402b2592e2771aad9775c69c19070c56e8 (diff)
downloadgcc-5b9dc69448195712a89b47fe5164e00a9563c0c3.tar.gz
2004-06-09 David S. Miller <davem@nuts.davemloft.net>
* config/sparc/sparc.h (MOVE_RATIO): New definition. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@82844 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/sparc/sparc.h')
-rw-r--r--gcc/config/sparc/sparc.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/config/sparc/sparc.h b/gcc/config/sparc/sparc.h
index 3e0b1c91461..d1c80499970 100644
--- a/gcc/config/sparc/sparc.h
+++ b/gcc/config/sparc/sparc.h
@@ -2181,6 +2181,11 @@ do { \
in one reasonably fast instruction. */
#define MOVE_MAX 8
+/* If a memory-to-memory move would take MOVE_RATIO or more simple
+ move-instruction pairs, we will do a movstr or libcall instead. */
+
+#define MOVE_RATIO (optimize_size ? 3 : 8)
+
/* Define if operations between registers always perform the operation
on the full register even if a narrower mode is specified. */
#define WORD_REGISTER_OPERATIONS