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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [tm/] [pr52142.c] - Blame information for rev 774

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 -O1" } */
3
static int global = 0;
4
 
5
__attribute__((transaction_pure))
6
static inline void purefunc()
7
{
8
  global++;
9
}
10
 
11
__attribute__((transaction_safe))
12
void f();
13
 
14
void push()
15
{
16
  __transaction_atomic {
17
        f();
18
    purefunc();
19
  }
20
}
21
 
22
/* { dg-final { scan-assembler-not "_ITM_RfWU4" } } */

powered by: WebSVN 2.1.0

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