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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libitm/] [testsuite/] [libitm.c/] [stackundo.c] - Rev 737

Compare with Previous | Blame | View Log

int __attribute__((noinline)) test2(int x[1000])
{
  int i;
  return x[12];
}
 
int __attribute__((noinline)) test1()
{
  int x[1000], i;
 
  for (i = 0; i < 1000; i++)
    x[i] = i;
  return test2(x);
}
 
int main()
{
  __transaction_atomic {
    if (test1() !=0)
      __transaction_cancel;
  }
  return 0;
}
 

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.