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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [prefetch-4.c] - Blame information for rev 826

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* The loop rolls too little, hence the prefetching would not be useful.  */
2
 
3
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */
4
/* { dg-require-effective-target ilp32 } */
5
/* { dg-options "-O2 -fprefetch-loop-arrays -march=athlon -fdump-tree-optimized" } */
6
 
7
int xxx[20];
8
 
9
void foo (int n)
10
{
11
  int i;
12
 
13
  for (i = 0; i < n; i++)
14
    xxx[i] = i;
15
}
16
 
17
/* { dg-final { scan-tree-dump-times "prefetch" 0 "optimized" } } */
18
/* { dg-final { cleanup-tree-dump "optimized" } } */

powered by: WebSVN 2.1.0

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