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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [unroll_3.c] - Blame information for rev 801

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do compile  { target i?86-*-linux* x86_64-*-linux* } } */
2
/* { dg-options "-O2 -fdump-rtl-loop2_unroll -fno-peel-loops -fdisable-tree-cunroll -fdisable-tree-cunrolli -fenable-rtl-loop2_unroll=foo" } */
3
 
4
unsigned a[100], b[100];
5
inline void bar()
6
{
7
 a[10] = b[10];
8
}
9
 
10
int foo(void)
11
{
12
  int i;
13
  bar();
14
  for (i = 0; i < 2; i++)
15
  {
16
     a[i]= b[i] + 1;
17
  }
18
  return 1;
19
}
20
 
21
int foo2(void)
22
{
23
  int i;
24
  for (i = 0; i < 2; i++)
25
  {
26
     a[i]= b[i] + 1;
27
  }
28
  return 1;
29
}
30
 
31
/* { dg-final { scan-rtl-dump-times "Decided to peel loop completely" 1 "loop2_unroll" } } */
32
/* { dg-final { cleanup-rtl-dump "loop2_unroll" } } */
33
/* { dg-excess-errors "extra notes" } */

powered by: WebSVN 2.1.0

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