epilog-1.c: New test.

gcc/testsuite 

2012-06-18  Joey Ye <Joey.Ye@arm.com>
            Greta Yorsh  <Greta.Yorsh@arm.com>

        * gcc.target/arm/epilog-1.c: New test.


Co-Authored-By: Greta Yorsh <greta.yorsh@arm.com>

From-SVN: r188746
This commit is contained in:
Joey Ye 2012-06-18 19:10:41 +01:00 committed by Greta Yorsh
parent c59e1214f7
commit 469523083f
2 changed files with 22 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2012-06-18 Joey Ye <Joey.Ye@arm.com>
Greta Yorsh <Greta.Yorsh@arm.com>
* gcc.target/arm/epilog-1.c: New test.
2012-06-18 Richard Guenther <rguenther@suse.de>
PR tree-optimization/53693

View File

@ -0,0 +1,17 @@
/* Register liveness information from epilgoue enables peephole optimization. */
/* { dg-do compile } */
/* { dg-options "-mthumb -Os" } */
/* { dg-require-effective-target arm_thumb2_ok } */
volatile int g_k;
extern void bar(int, int, int, int);
int foo(int a, int b, int c, int d)
{
if (g_k & 4) c++;
bar (a, b, c, d);
return 0;
}
/* { dg-final { scan-assembler-times "lsls.*#29" 1 } } */
/* { dg-final { scan-assembler-not "tst" } } */