]> git.ipfire.org Git - thirdparty/gcc.git/commit
MIPS: Add basic support for mips allegrex CPU
authorDavid Guillen Fandos <david@davidgf.net>
Fri, 19 Sep 2025 16:48:08 +0000 (18:48 +0200)
committerYunQiang Su <yunqiang@isrc.iscas.ac.cn>
Tue, 2 Dec 2025 01:24:45 +0000 (09:24 +0800)
commitbafc35e65aac2d2e31db531bb3bb400c624f20d4
tree5a51462907e7efdf6cba2ba2f02c3725b797cc36
parentc40c67095a97f0335b4dbe100ed788ede1d79e3d
MIPS: Add basic support for mips allegrex CPU

The MIPS Allegrex CPU is based on MIPS2 with some additional MIPS32r2
instructions and a few novel ones. Support for this CPU was added as of
binutils 2.41.

gcc/ChangeLog:

* config/mips/mips-cpus.def (MIPS_CPU): Added a new CPU.
* config/mips/mips-tables.opt: Regenerated table.
* config/mips/mips.cc: Added cost table for the new CPU.
* config/mips/mips.h (TARGET_ALLEGREX): Defined a new macro.
(TUNE_ALLEGREX): Defined a new macro.
(ISA_HAS_CONDMOVE): Added Allegrex CPU to the list.
(ISA_HAS_LDC1_SDC1): Exclude Allegrex from the list.
(ISA_HAS_COND_TRAP): Exclude Allegrex from the list.
(ISA_HAS_COND_TRAPI): Exclude Allegrex from the list.
(ISA_HAS_CLZ_CLO): Added Allegrex CPU to the list.
(ISA_HAS_ROR): Added Allegrex CPU to the list.
(ISA_HAS_WSBH): Added Allegrex CPU to the list.
(ISA_HAS_SEB_SEH): Added Allegrex CPU to the list.
(ISA_HAS_EXT_INS): Added Allegrex CPU to the list.
(ISA_HAS_XFER_DELAY): Exclude Allegrex from the list.
(ISA_HAS_HILO_INTERLOCKS): Added Allegrex CPU to the list.
* config/mips/mips.md: Added Allegrex CPU as a new processor.
* doc/invoke.texi: Documented Allegrex as a new arch

Signed-off-by: David Guillen Fandos <david@davidgf.net>
gcc/config/mips/mips-cpus.def
gcc/config/mips/mips-tables.opt
gcc/config/mips/mips.cc
gcc/config/mips/mips.h
gcc/config/mips/mips.md
gcc/doc/invoke.texi