Add support for Loongson 2K1000 processor

Programming / Compilers / GCC - paulhua [138bc75d-0d04-0410-961f-82ee72b054a4] - 7 November 2018 08:58 EST

gcc/
- config/mips/gs264e.md: New.
- config/mips/mips-cpus.def: Define gs264e.
- config/mips/mips-tables.opt: Regenerate.
- config/mips/mips.c (mips_rtx_cost_data): Add DEFAULT_COSTS for gs264e. (mips_issue_rate): Add support for gs264e. (mips_multipass_dfa_lookahead): Likewise.
- config/mips/mips.h: Define TARGET_GS264E and TUNE_GS264E. (MIPS_ISA_LEVEL_SPEC): Infer mips64r2 from gs264e. (MIPS_ASE_MSA_SPEC): New. (BASE_DRIVER_SELF_SPECS): march=gs264e implies -mmsa. (ISA_HAS_FUSED_MADD4): Enable for TARGET_GS264E. (ISA_HAS_UNFUSED_MADD4): Exclude TARGET_GS264E.
- config/mips/mips.md: Include gs264e.md. (processor): Add gs264e.
- config/mips/mips.opt (MSA): Use Mask instead of Var.
- doc/invoke.texi: Add gs264e to supported architectures.

2551131a7b0 Add support for Loongson 2K1000 processor.
gcc/ChangeLog | 20 ++++++
gcc/config/mips/gs264e.md | 133 ++++++++++++++++++++++++++++++++++++++++
gcc/config/mips/mips-cpus.def | 1 +
gcc/config/mips/mips-tables.opt | 19 +++---
gcc/config/mips/mips.c | 6 +-
gcc/config/mips/mips.h | 23 +++++--
gcc/config/mips/mips.md | 2 +
gcc/config/mips/mips.opt | 2 +-
gcc/doc/invoke.texi | 2 +-
9 files changed, 191 insertions(+), 17 deletions(-)

Upstream: gcc.gnu.org


  • Share