aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorClaudiu Zissulescu <claziss@synopsys.com>2017-07-17 14:32:02 +0200
committerClaudiu Zissulescu <claziss@gcc.gnu.org>2017-07-17 14:32:02 +0200
commitf26322a6f74f7d22bdee3a11b6b3ffbd1c2867a9 (patch)
treed559eca16962079e7a0e8e9622e1eeac76f043bc /gcc
parent5337720c54ee8529d7d16d6f1eaa0b5556f60426 (diff)
downloadgcc-f26322a6f74f7d22bdee3a11b6b3ffbd1c2867a9.zip
gcc-f26322a6f74f7d22bdee3a11b6b3ffbd1c2867a9.tar.gz
gcc-f26322a6f74f7d22bdee3a11b6b3ffbd1c2867a9.tar.bz2
[ARC] Enable indexed loads for elf targers.
Enable indexed loads only for elf target, as the linux ones need more testing. gcc/ 2017-02-28 Claudiu Zissulescu <claziss@synopsys.com> * config/arc/arc.opt (mindexed-loads): Use initial value TARGET_INDEXED_LOADS_DEFAULT. (mauto-modify-reg): Use initial value TARGET_AUTO_MODIFY_REG_DEFAULT. * config/arc/elf.h (TARGET_INDEXED_LOADS_DEFAULT): Define. (TARGET_AUTO_MODIFY_REG_DEFAULT): Likewise. * config/arc/linux.h (TARGET_INDEXED_LOADS_DEFAULT): Define. (TARGET_AUTO_MODIFY_REG_DEFAULT): Likewise. From-SVN: r250274
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog11
-rw-r--r--gcc/config/arc/arc.opt4
-rw-r--r--gcc/config/arc/elf.h8
-rw-r--r--gcc/config/arc/linux.h8
4 files changed, 29 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index f241a89..5f5439ba 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,14 @@
+2017-07-17 Claudiu Zissulescu <claziss@synopsys.com>
+
+ * config/arc/arc.opt (mindexed-loads): Use initial value
+ TARGET_INDEXED_LOADS_DEFAULT.
+ (mauto-modify-reg): Use initial value
+ TARGET_AUTO_MODIFY_REG_DEFAULT.
+ * config/arc/elf.h (TARGET_INDEXED_LOADS_DEFAULT): Define.
+ (TARGET_AUTO_MODIFY_REG_DEFAULT): Likewise.
+ * config/arc/linux.h (TARGET_INDEXED_LOADS_DEFAULT): Define.
+ (TARGET_AUTO_MODIFY_REG_DEFAULT): Likewise.
+
2017-07-17 Martin Liska <mliska@suse.cz>
PR sanitizer/81302
diff --git a/gcc/config/arc/arc.opt b/gcc/config/arc/arc.opt
index f01a2ff..ed2b827 100644
--- a/gcc/config/arc/arc.opt
+++ b/gcc/config/arc/arc.opt
@@ -270,11 +270,11 @@ Target RejectNegative Var(arc_tune, TUNE_ARC700_4_2_XMAC)
Tune for ARC700 R4.2 Cpu with XMAC block.
mindexed-loads
-Target Var(TARGET_INDEXED_LOADS)
+Target Var(TARGET_INDEXED_LOADS) Init(TARGET_INDEXED_LOADS_DEFAULT)
Enable the use of indexed loads.
mauto-modify-reg
-Target Var(TARGET_AUTO_MODIFY_REG)
+Target Var(TARGET_AUTO_MODIFY_REG) Init(TARGET_AUTO_MODIFY_REG_DEFAULT)
Enable the use of pre/post modify with register displacement.
mmul32x16
diff --git a/gcc/config/arc/elf.h b/gcc/config/arc/elf.h
index c5794f8..43f3408 100644
--- a/gcc/config/arc/elf.h
+++ b/gcc/config/arc/elf.h
@@ -58,3 +58,11 @@ along with GCC; see the file COPYING3. If not see
/* Bare-metal toolchains do not need a thread pointer register. */
#undef TARGET_ARC_TP_REGNO_DEFAULT
#define TARGET_ARC_TP_REGNO_DEFAULT -1
+
+/* Indexed loads are default. */
+#undef TARGET_INDEXED_LOADS_DEFAULT
+#define TARGET_INDEXED_LOADS_DEFAULT 1
+
+/* Pre/post modify with register displacement are default. */
+#undef TARGET_AUTO_MODIFY_REG_DEFAULT
+#define TARGET_AUTO_MODIFY_REG_DEFAULT 1
diff --git a/gcc/config/arc/linux.h b/gcc/config/arc/linux.h
index 83e5a1d..d8e0063 100644
--- a/gcc/config/arc/linux.h
+++ b/gcc/config/arc/linux.h
@@ -83,3 +83,11 @@ along with GCC; see the file COPYING3. If not see
#define SUBTARGET_CPP_SPEC "\
%{pthread:-D_REENTRANT} \
"
+
+/* Indexed loads are default off. */
+#undef TARGET_INDEXED_LOADS_DEFAULT
+#define TARGET_INDEXED_LOADS_DEFAULT 0
+
+/* Pre/post modify with register displacement are default off. */
+#undef TARGET_AUTO_MODIFY_REG_DEFAULT
+#define TARGET_AUTO_MODIFY_REG_DEFAULT 0