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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [c-c++-common/] [tm/] [trxn-expr-3.c] - Rev 686

Compare with Previous | Blame | View Log

// { dg-do compile }
// { dg-options "-fgnu-tm -O -fdump-tree-tmmark" }
 
int global;
 
int f2()
{
  return __transaction_atomic (global + 3)
         + __transaction_atomic (global + 4);
}
 
/* { dg-final { scan-tree-dump-times "ITM_RU" 2 "tmmark" } } */
/* { dg-final { scan-tree-dump-times "ITM_commitTransaction" 2 "tmmark" } } */
/* { dg-final { cleanup-tree-dump "tmmark" } } */
 

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.