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-6.c] - Rev 689

Compare with Previous | Blame | View Log

/* { dg-do run } */
/* { dg-options "-O -fipa-pta -fdump-ipa-pta-details" } */
 
static void __attribute__((noinline,noclone))
foo (int *p)
{
  *p = 1;
}
 
extern void abort (void);
 
int main()
{
  int i = 0;
  foo (&i);
  if (i != 1)
    abort ();
  return 0;
}
 
/* Verify we correctly compute the units ESCAPED set as empty but
   still properly account for the store via *p in foo.  */
 
/* { dg-final { scan-ipa-dump "ESCAPED = { }" "pta" } } */
/* { dg-final { cleanup-ipa-dump "pta" } } */
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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