diff options
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/arm/ivopts-6.c | 15 |
2 files changed, 20 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 015b4fa..b1446bb 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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 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" } } */ |