ext_ins.c: New test for testing the generation of MIPS32/64 rev 2 ext/ins instructions.
authorDavid Ung <davidu@mips.com>
Thu, 26 May 2005 17:23:35 +0000 (17:23 +0000)
committerDavid Ung <davidu@gcc.gnu.org>
Thu, 26 May 2005 17:23:35 +0000 (17:23 +0000)
commite689b87000079f75748c0c105b869d22b3e6c9d4
tree2c115cbf4d0642b7f753a9bb5f736eecd964d555
parent764e01e6c34028fee59e428adf61bcc098e51703
ext_ins.c: New test for testing the generation of MIPS32/64 rev 2 ext/ins instructions.

* gcc.target/mips/ext_ins.c: New test for testing the generation
of MIPS32/64 rev 2 ext/ins instructions.

* config/mips/mips.c (mips_use_ins_ext_p): New helper function
that determines whether the MIPS32/64 R2 ext/ins should be used.
* config/mips/mips.h (ISA_HAS_EXT_INS): New macro.
* config/mips/mips.md (extzv): Changed predicate for operand to
nonimmediate_operand. Add code to generate insn patterns for
extzvsi and extzvdi.
(extzv<mode>): New pattern to match mips32/64 r2 ext insn.
(insv): Similarly for insertion.
(insv<mode>): Similarly.

From-SVN: r100212
gcc/ChangeLog
gcc/config/mips/mips.c
gcc/config/mips/mips.h
gcc/config/mips/mips.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/mips/ext_ins.c [new file with mode: 0644]