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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [tm/] [memopt-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 -O -fdump-tree-tmmemopt" } */
3
 
4
long g, xxx, yyy;
5
extern george() __attribute__((transaction_callable));
6
extern ringo(long int);
7
int i;
8
 
9
f()
10
{
11
  __transaction_relaxed {
12
    g = 666;
13
    george();
14
    if (i == 9)
15
      goto bye;
16
    xxx=8;
17
    yyy=9;
18
    for (i=0; i < 10; ++i)
19
      ringo(g);
20
  bye:
21
    ringo(g);
22
  }
23
}
24
 
25
/* { dg-final { scan-tree-dump-times "transforming: .*_ITM_RaWU\[248\] \\(&g\\);" 1 "tmmemopt" } } */
26
/* { dg-final { scan-tree-dump-times "transforming: .*_ITM_WaRU4 \\(&i," 1 "tmmemopt" } } */
27
/* { dg-final { scan-tree-dump-times "transforming: .*_ITM_RaWU4 \\(&i\\);" 1 "tmmemopt" } } */
28
/* { dg-final { scan-tree-dump-times "transforming: .*_ITM_WaWU4 \\(&i," 1 "tmmemopt" } } */
29
/* { dg-final { cleanup-tree-dump "tmmemopt" } } */

powered by: WebSVN 2.1.0

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