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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [ipa/] [ipa-pta-9.c] - Blame information for rev 706

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

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do run } */
2
/* { dg-options "-O2 -fipa-pta" } */
3
 
4
static void __attribute__((noinline,noclone))
5
foo (int *p, int *q)
6
{
7
  __builtin_memcpy (p, q, sizeof (int));
8
}
9
extern void abort (void);
10
int main()
11
{
12
  int i = 0, j = 1;
13
  foo (&i, &j);
14
  if (i != 1)
15
    abort ();
16
  return 0;
17
}

powered by: WebSVN 2.1.0

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