diff options
author | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-11-17 22:49:05 +0000 |
---|---|---|
committer | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-11-17 22:49:05 +0000 |
commit | 723f75aa7753a4425dc8603f7271df529d0896ba (patch) | |
tree | 36cb3165b921ef395682a3eab8b8469d2af9cc09 /gcc/testsuite/gcc.target/mips/msub-8.c | |
parent | 0848b1987f39de325a4c137c549fe9af341bac7f (diff) | |
download | gcc-723f75aa7753a4425dc8603f7271df529d0896ba.tar.gz |
gcc/
* config/mips/mips.md (*mul_acc_si): Remove middle alternative
and its associated define_split. Expose the all-d alternative
to the register allocator, but mark it with "?". Mark the first
alternative with "*?*?".
(*mul_sub_si): Likewise.
(*mul_acc_si_r3900): New pattern.
gcc/testsuite/
* gcc.target/mips/madd-5.c: New test.
* gcc.target/mips/madd-6.c: Likewise.
* gcc.target/mips/madd-7.c: Likewise.
* gcc.target/mips/madd-8.c: Likewise.
* gcc.target/mips/msub-5.c: Likewise.
* gcc.target/mips/msub-6.c: Likewise.
* gcc.target/mips/msub-7.c: Likewise.
* gcc.target/mips/msub-8.c: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@141954 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.target/mips/msub-8.c')
-rw-r--r-- | gcc/testsuite/gcc.target/mips/msub-8.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/mips/msub-8.c b/gcc/testsuite/gcc.target/mips/msub-8.c new file mode 100644 index 00000000000..7517540cdc4 --- /dev/null +++ b/gcc/testsuite/gcc.target/mips/msub-8.c @@ -0,0 +1,15 @@ +/* { dg-mips-options "-O2 -march=5kc" } */ +/* { dg-final { scan-assembler "\tmul\t" } } */ +/* { dg-final { scan-assembler-not "\tmsub\t" } } */ +/* { dg-final { scan-assembler-not "\tmtlo\t" } } */ +/* { dg-final { scan-assembler-not "\tmflo\t" } } */ + +NOMIPS16 int +f2 (int x, int y, int z) +{ + asm volatile ("" ::: "$1", "$2", "$3", "$4", "$5", "$6", "$7", "$8", "$9", + "$10", "$11", "$12", "$13", "$14", "$15", "$16", "$17", + "$18", "$19", "$20", "$21", "$22", "$23", "$24", "$25", + "$31"); + return x - y * z; +} |