Hello gcc developers!

These patches add support for the MIPS Allegrex CPU (a device present in
the Sony PSP). There's support for this CPU in binutils as of 2.41.

This CPU is mostly a MIPS II CPU with some extra instructions and a few
quirks.

Running the testsuite produces no regressions. I also added some test
cases for the new and modified instructions.

David Guillen Fandos (4):
  MIPS: Add basic support for mips allegrex CPU
  MIPS: Add support for Allegrex min/max instructions
  MIPS: Add WSBW instruction to perform bswapsi2
  MIPS: Add Allegrex support for madd/msub instructions.

 gcc/config/mips/mips-cpus.def           |   1 +
 gcc/config/mips/mips-tables.opt         | 371 ++++++++++++------------
 gcc/config/mips/mips.cc                 |  14 +
 gcc/config/mips/mips.h                  |  32 +-
 gcc/config/mips/mips.md                 |  71 ++++-
 gcc/doc/invoke.texi                     |   1 +
 gcc/testsuite/gcc.target/mips/bswap-7.c |   9 +
 gcc/testsuite/gcc.target/mips/madd-10.c |  15 +
 gcc/testsuite/gcc.target/mips/maddu-5.c |  20 ++
 gcc/testsuite/gcc.target/mips/max-1.c   |   9 +
 gcc/testsuite/gcc.target/mips/min-1.c   |   9 +
 gcc/testsuite/gcc.target/mips/msub-9.c  |  15 +
 gcc/testsuite/gcc.target/mips/msubu-5.c |  14 +
 13 files changed, 377 insertions(+), 204 deletions(-)
 create mode 100644 gcc/testsuite/gcc.target/mips/bswap-7.c
 create mode 100644 gcc/testsuite/gcc.target/mips/madd-10.c
 create mode 100644 gcc/testsuite/gcc.target/mips/maddu-5.c
 create mode 100644 gcc/testsuite/gcc.target/mips/max-1.c
 create mode 100644 gcc/testsuite/gcc.target/mips/min-1.c
 create mode 100644 gcc/testsuite/gcc.target/mips/msub-9.c
 create mode 100644 gcc/testsuite/gcc.target/mips/msubu-5.c

-- 
2.50.0

Reply via email to