diff options
author | Tom de Vries <tom@codesourcery.com> | 2011-05-23 07:00:02 +0000 |
---|---|---|
committer | Tom de Vries <vries@gcc.gnu.org> | 2011-05-23 07:00:02 +0000 |
commit | fec5d58b1ff0548148eb41ae72757a09d67a876c (patch) | |
tree | 4b991c4e32104b2cdc33c4b85fb8ce34e8e393c0 /gcc/testsuite/gcc.target/arm | |
parent | 67520c53edbdb6cf373ca65fc1e74035dd009e2d (diff) | |
download | gcc-fec5d58b1ff0548148eb41ae72757a09d67a876c.zip gcc-fec5d58b1ff0548148eb41ae72757a09d67a876c.tar.gz gcc-fec5d58b1ff0548148eb41ae72757a09d67a876c.tar.bz2 |
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
Diffstat (limited to 'gcc/testsuite/gcc.target/arm')
-rw-r--r-- | gcc/testsuite/gcc.target/arm/ivopts-6.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/arm/ivopts-6.c b/gcc/testsuite/gcc.target/arm/ivopts-6.c new file mode 100644 index 0000000..8a3bafb --- /dev/null +++ b/gcc/testsuite/gcc.target/arm/ivopts-6.c @@ -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" } } */ |