1 /* Test prefetch support.  */
2 /* { dg-options "-mcpu=fr400" } */
3 /* { dg-do run } */
4 
5 unsigned char global[64];
6 
foo(unsigned int * x,int n)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 
main()22 int main ()
23 {
24   unsigned int i[16];
25 
26   foo (i, 2);
27   return 0;
28 }
29