testsuite/gcc.target/cris/biap.c: Add a Y+=X*2 to the Y+=X*4.
Also, tweak the scan-assembler regexps to include a tab, lest they may spuriously match file-paths in the emitted assembly code, should some be added at some point. And, add "mul", "move" and (non-addi-)"add" to insns that shouldn't appear. gcc/testsuite: * gcc.target/cris/biap.c: Add a Y+=X*2 to the Y+=X*4.
This commit is contained in:
parent
dd7376371f
commit
a7de0ffa34
1 changed files with 7 additions and 2 deletions
|
@ -2,10 +2,15 @@
|
|||
See also PR37939. */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-O2" } */
|
||||
/* { dg-final { scan-assembler "addi" } } */
|
||||
/* { dg-final { scan-assembler-not "lsl" } } */
|
||||
/* { dg-final { scan-assembler-times "\taddi" 2 } } */
|
||||
/* { dg-final { scan-assembler-not "\tlsl|\tmul|\tmove|\tadd\[^i\]" } } */
|
||||
|
||||
int xyzzy (int r10, int r11)
|
||||
{
|
||||
return r11 * 4 + r10;
|
||||
}
|
||||
|
||||
int plugh (int r10, int r11)
|
||||
{
|
||||
return r11 * 2 + r10;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue