Commit f2263848 authored by vries's avatar vries

2011-05-19 Tom de Vries <tom@codesourcery.com>

	PR target/45098
	* gcc.target/arm/ivopts.c: New test.
	* gcc.target/arm/ivopts-2.c: New test.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@173896 138bc75d-0d04-0410-961f-82ee72b054a4
parent 3403feba
2011-05-19 Tom de Vries <tom@codesourcery.com>
PR target/45098
* gcc.target/arm/ivopts.c: New test.
* gcc.target/arm/ivopts-2.c: New test.
2011-05-19 Tom de Vries <tom@codesourcery.com>
* lib/lib/scanasm.exp (object-size): Fix target selector handling.
......
/* { dg-do assemble } */
/* { dg-options "-Os -mthumb -fdump-tree-ivopts -save-temps" } */
extern void foo2 (short*);
void
tr4 (short array[], int n)
{
int x;
if (n > 0)
for (x = 0; x < n; x++)
foo2 (&array[x]);
}
/* { dg-final { scan-tree-dump-times "PHI <ivtmp" 1 "ivopts"} } */
/* { dg-final { scan-tree-dump-times "PHI <" 1 "ivopts"} } */
/* { dg-final { object-size text <= 26 { target arm_thumb2_ok } } } */
/* { dg-final { cleanup-tree-dump "ivopts" } } */
/* { dg-do assemble } */
/* { dg-options "-Os -mthumb -fdump-tree-ivopts -save-temps" } */
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 <= 20 { target arm_thumb2_ok } } } */
/* { dg-final { cleanup-tree-dump "ivopts" } } */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment