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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [prefetch-4.c] - Blame information for rev 689

Details | Compare with Previous | View Log

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