PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.target / arm / ivopts-2.c
blobafe91aa16bc2af441c85ac55663108d5efb35e35
1 /* { dg-do assemble } */
2 /* { dg-options "-Os -fdump-tree-ivopts -save-temps" } */
4 extern void foo2 (short*);
6 void
7 tr4 (short array[], int n)
9 int x;
10 if (n > 0)
11 for (x = 0; x < n; x++)
12 foo2 (&array[x]);
15 /* { dg-final { scan-tree-dump-times "PHI <ivtmp" 1 "ivopts"} } */
16 /* { dg-final { scan-tree-dump-times "PHI <" 1 "ivopts"} } */
17 /* { dg-final { object-size text <= 26 { target arm_thumb2 } } } */