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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [unroll-1.c] - Blame information for rev 149

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

Line No. Rev Author Line
1 149 jeremybenn
/* PR optimization/8599 */
2
/* { dg-do run } */
3
/* { dg-options "-O2 -funroll-loops" } */
4
/* { dg-options "-mtune=k6 -O2 -funroll-loops" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */
5
 
6
 
7
extern void abort (void);
8
 
9
int array[6] = { 1,2,3,4,5,6 };
10
 
11
void foo()
12
{
13
  int i;
14
 
15
  for (i = 0; i < 5; i++)
16
    array[i] = 0;
17
}
18
 
19
int main()
20
{
21
  foo();
22
  if (array[0] || array [1] || array[2] || array[3] || array[4])
23
    abort ();
24
  if (array[5] != 6)
25
    abort ();
26
  return 0;
27
}

powered by: WebSVN 2.1.0

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