mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-19 03:30:27 +08:00
re PR middle-end/45098 (Missed induction variable optimization)
2011-05-23 Tom de Vries <tom@codesourcery.com> PR target/45098 * gcc.target/arm/ivopts-6.c: New test. From-SVN: r174055
This commit is contained in:
parent
67520c53ed
commit
fec5d58b1f
@ -1,3 +1,8 @@
|
||||
2011-05-23 Tom de Vries <tom@codesourcery.com>
|
||||
|
||||
PR target/45098
|
||||
* gcc.target/arm/ivopts-6.c: New test.
|
||||
|
||||
2011-05-22 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR middle-end/49029
|
||||
|
15
gcc/testsuite/gcc.target/arm/ivopts-6.c
Normal file
15
gcc/testsuite/gcc.target/arm/ivopts-6.c
Normal file
@ -0,0 +1,15 @@
|
||||
/* { dg-do assemble } */
|
||||
/* { dg-options "-Os -fdump-tree-ivopts -save-temps -marm" } */
|
||||
|
||||
void
|
||||
tr5 (short array[], int n)
|
||||
{
|
||||
int x;
|
||||
if (n > 0)
|
||||
for (x = 0; x < n; x++)
|
||||
array[x] = 0;
|
||||
}
|
||||
|
||||
/* { dg-final { scan-tree-dump-times "PHI <" 1 "ivopts"} } */
|
||||
/* { dg-final { object-size text <= 32 } } */
|
||||
/* { dg-final { cleanup-tree-dump "ivopts" } } */
|
Loading…
x
Reference in New Issue
Block a user