[ARC] Add ARCv2 core3 tune option

Programming / Compilers / GCC - claziss [138bc75d-0d04-0410-961f-82ee72b054a4] - 26 January 2018 11:34 EST

ARCv2 Core3 cpus are comming with dbnz support. Add this feature on the tune option.

gcc/ 2018-01-26 Claudiu Zissulescu

- config/arc/arc-arch.h (arc_tune_attr): Add ARC_TUNE_CORE_3.
- config/arc/arc.c (arc_sched_issue_rate): Use ARC_TUNE_... . (arc_init): Likewise. (arc_override_options): Likewise. (arc_file_start): Choose Tag_ARC_CPU_variation based on arc_tune
value. (hwloop_fail): Use TARGET_DBNZ when we want to check for dbnz insn support.
- config/arc/arc.h (TARGET_DBNZ): Define.
- config/arc/arc.md (attr tune): Add core_3, use ARC_TUNE_... to properly set the tune attribute. (dbnz): Use TARGET_DBNZ guard.
- config/arc/arc.opt (mtune): Add core3 option.

860d07f01fd [ARC] Add ARCv2 core3 tune option.
gcc/ChangeLog | 16 ++++++++++++++++
gcc/config/arc/arc-arch.h | 3 ++-
gcc/config/arc/arc.c | 17 ++++++++++-------
gcc/config/arc/arc.h | 2 ++
gcc/config/arc/arc.md | 10 ++++++----
gcc/config/arc/arc.opt | 40 ++++++++++++++++++++++------------------
6 files changed, 58 insertions(+), 30 deletions(-)

Upstream: gcc.gnu.org


  • Share