mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-05 08:00:26 +08:00
testsuite/gcc.target/cris/biap-mul.c: New test.
gcc/testsuite: * gcc.target/cris/biap-mul.c: New test.
This commit is contained in:
parent
6cb68940dc
commit
dd7376371f
15
gcc/testsuite/gcc.target/cris/biap-mul.c
Normal file
15
gcc/testsuite/gcc.target/cris/biap-mul.c
Normal file
@ -0,0 +1,15 @@
|
||||
/* Make sure ADDI is used for trivial multiplications too. */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-O2" } */
|
||||
/* { dg-final { scan-assembler-times "\taddi" 2 } } */
|
||||
/* { dg-final { scan-assembler-not "\tlsl|\tmul|\tmove|\tadd\[^i\]" } } */
|
||||
|
||||
int xyzzy (int r10)
|
||||
{
|
||||
return r10 * 5;
|
||||
}
|
||||
|
||||
int plugh (int r10)
|
||||
{
|
||||
return r10 * 3;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user