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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.target/] [frv/] [fr400-builtins-1.c] - Blame information for rev 825

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

Line No. Rev Author Line
1 149 jeremybenn
/* Test prefetch support.  */
2
/* { dg-options "-mcpu=fr400" } */
3
/* { dg-do run } */
4
 
5
unsigned char global[64];
6
 
7
int foo (unsigned int *x, int n)
8
{
9
  unsigned short local[16];
10
 
11
  __data_prefetch0 (x);
12
  __data_prefetch0 (&x[8]);
13
  __data_prefetch0 (&x[n]);
14
  __data_prefetch0 (local);
15
  __data_prefetch0 (&local[16]);
16
  __data_prefetch0 (&local[n]);
17
  __data_prefetch0 (global);
18
  __data_prefetch0 (&global[32]);
19
  __data_prefetch0 (&global[n]);
20
}
21
 
22
int main ()
23
{
24
  unsigned int i[16];
25
 
26
  foo (i, 2);
27
  return 0;
28
}

powered by: WebSVN 2.1.0

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