[ARC] Add support for HS4x cpus

Programming / Compilers / GCC - claziss [138bc75d-0d04-0410-961f-82ee72b054a4] - 16 July 2018 10:12 EDT

gcc/ 2017-03-10 Claudiu Zissulescu

- config/arc/arc-arch.h (arc_tune_attr): Add new tune parameters for ARCHS4x.
- config/arc/arc-cpus.def (hs4x): New cpu. (hs4xd): Likewise.
- config/arc/arc-tables.opt: Regenerate.
- config/arc/arc.c (arc_sched_issue_rate): New function. (TARGET_SCHED_ISSUE_RATE): Define. (TARGET_SCHED_EXPOSED_PIPELINE): Likewise.
- config/arc/arc.md (attr type): Add fpu_fuse, fpu_sdiv, fpu_ddiv, fpu_cvt. (attr tune): Add ARCHS4x tune values. (attr tune_dspmpy): Define. (*tst): Correct instruction type.
- config/arc/arcHS.md: Don't use this automaton for ARCHS4x cpus.
- config/arc/arcHS4x.md: New file.
- config/arc/fpu.md: Update instruction type attributes.
- config/arc/t-multilib: Regenerate.

f158ddd48e2 [ARC] Add support for HS4x cpus.
gcc/ChangeLog | 20 ++++
gcc/config/arc/arc-arch.h | 5 +-
gcc/config/arc/arc-cpus.def | 2 +
gcc/config/arc/arc-tables.opt | 6 ++
gcc/config/arc/arc.c | 19 ++++
gcc/config/arc/arc.md | 24 ++++-
gcc/config/arc/arcHS.md | 6 ++
gcc/config/arc/arcHS4x.md | 221 ++++++++++++++++++++++++++++++++++++++++++
gcc/config/arc/fpu.md | 16 +--
9 files changed, 306 insertions(+), 13 deletions(-)

Upstream: gcc.gnu.org


  • Share