OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [arm/] [ivopts-4.c] - Blame information for rev 691

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 691 jeremybenn
/* { dg-do assemble } */
2
/* { dg-options "-Os -fdump-tree-ivopts -save-temps" } */
3
 
4
extern unsigned int foo (int*) __attribute__((pure));
5
 
6
unsigned int
7
tr2 (int array[], int n)
8
{
9
  unsigned int sum = 0;
10
  int x;
11
  if (n > 0)
12
    for (x = 0; x < n; x++)
13
      sum += foo (&array[x]);
14
  return sum;
15
}
16
 
17
/* { dg-final { scan-tree-dump-times "PHI <ivtmp" 1 "ivopts"} } */
18
/* { dg-final { scan-tree-dump-times "PHI <x" 0 "ivopts"} } */
19
/* { dg-final { scan-tree-dump-times ", x" 0 "ivopts"} } */
20
/* { dg-final { object-size text <= 36 { target arm_thumb2 } } } */
21
/* { dg-final { cleanup-tree-dump "ivopts" } } */
22
/* { dg-final { cleanup-saved-temps "ivopts" } } */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.