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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [tm/] [props-1.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
/* { dg-do compile } */
2
/* { dg-options "-fgnu-tm -fdump-tree-tmedge -fdump-tree-tmlower" } */
3
 
4
int global;
5
 
6
foo(int local)
7
{
8
  __transaction_atomic {
9
    local++;
10
    if (++global == 10)
11
      __transaction_cancel;
12
  }
13
}
14
 
15
/* { dg-final { scan-tree-dump-times " instrumentedCode" 1 "tmedge" } } */
16
/* { dg-final { scan-tree-dump-times "hasNoAbort" 0 "tmedge" } } */
17
/* { dg-final { scan-tree-dump-times "GTMA_HAVE_ABORT" 1 "tmlower" } } */
18
/* { dg-final { cleanup-tree-dump "tmedge" } } */
19
/* { dg-final { cleanup-tree-dump "tmlower" } } */

powered by: WebSVN 2.1.0

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