URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.target/] [frv/] [fr550-builtins-1.c] - Rev 820
Go to most recent revision | Compare with Previous | Blame | View Log
/* Test prefetch support. */ /* { dg-do run } */ extern void abort (void); extern void exit (int); unsigned char global[64]; void foo (unsigned int *x, int n) { unsigned short local[16]; __data_prefetch0 (x); __data_prefetch0 (&x[8]); __data_prefetch0 (&x[n]); __data_prefetch0 (local); __data_prefetch0 (&local[16]); __data_prefetch0 (&local[n]); __data_prefetch0 (global); __data_prefetch0 (&global[32]); __data_prefetch0 (&global[n]); #if __FRV_VLIW__ > 1 __data_prefetch (x); __data_prefetch (&x[8]); __data_prefetch (&x[n]); __data_prefetch (local); __data_prefetch (&local[16]); __data_prefetch (&local[n]); __data_prefetch (global); __data_prefetch (&global[32]); __data_prefetch (&global[n]); #endif } int main () { unsigned int i[16]; foo (i, 2); exit (0); }
Go to most recent revision | Compare with Previous | Blame | View Log