* config/mips/mips.md (GPR2): New mode iterator.
authornemet <nemet@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 10 Apr 2008 18:28:45 +0000 (18:28 +0000)
committernemet <nemet@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 10 Apr 2008 18:28:45 +0000 (18:28 +0000)
commit40e4a59dfd1ac39990fabc4bd08e341a2d7644e3
treecfc57e17ab56b580908b71d4f44b183d01ef784c
parent44d32dba0a0cfd8b4956af9ef221e28d6b476c0a
* config/mips/mips.md (GPR2): New mode iterator.
(seq): Add comment.
(*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
*sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
*slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
Rewrite these to take two modes, the mode of comparison and the
mode of the destination.
* config/mips/mips.c (mips_expand_scc): Instead of having
paradoxical subreg as destination, expand "narrowing" scc if mode
of comparison is SI and target is requested in DI mode.
(mips_emit_int_order_test): Update comment.  Make mode of
comparison match CMP0 rather than TARGET.  When creating inverse
target use mode of TARGET.

testsuite/

* gcc.target/mips/scc-2.c: New test.
* gcc.target/mips/scc-3.c: New test.
* gcc.target/mips/scc-4.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@134167 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config/mips/mips.c
gcc/config/mips/mips.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/mips/scc-2.c [new file with mode: 0644]
gcc/testsuite/gcc.target/mips/scc-3.c [new file with mode: 0644]
gcc/testsuite/gcc.target/mips/scc-4.c [new file with mode: 0644]