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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [tree-prof/] [pr47187.c] - Blame information for rev 801

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

Line No. Rev Author Line
1 689 jeremybenn
/* PR bootstrap/47187 */
2
/* { dg-options "-O2" } */
3
 
4
char buf[64];
5
char buf2[64];
6
 
7
void *
8
foo (char *p, long size)
9
{
10
  return __builtin_memcpy (buf, p, size);
11
}
12
 
13
int
14
main (void)
15
{
16
  long i;
17
  for (i = 0; i < 65536; i++)
18
    if (foo ("abcdefghijkl", 12) != buf)
19
      __builtin_abort ();
20
  if (foo (buf2, 64) != buf)
21
    __builtin_abort ();
22
  return 0;
23
}

powered by: WebSVN 2.1.0

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