annotate gcc/testsuite/gcc.dg/tm/memopt-1.c @ 132:d34655255c78

update gcc-8.2
author mir3636
date Thu, 25 Oct 2018 10:21:07 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* { dg-do compile } */
kono
parents:
diff changeset
2 /* { dg-options "-fgnu-tm -O -fdump-tree-tmmemopt" } */
kono
parents:
diff changeset
3
kono
parents:
diff changeset
4 long g, xxx, yyy;
kono
parents:
diff changeset
5 extern void george() __attribute__((transaction_safe));
kono
parents:
diff changeset
6 extern void ringo(long int) __attribute__((transaction_safe));
kono
parents:
diff changeset
7 int i;
kono
parents:
diff changeset
8
kono
parents:
diff changeset
9 void
kono
parents:
diff changeset
10 f()
kono
parents:
diff changeset
11 {
kono
parents:
diff changeset
12 __transaction_relaxed {
kono
parents:
diff changeset
13 g = 666;
kono
parents:
diff changeset
14 george();
kono
parents:
diff changeset
15 if (i == 9)
kono
parents:
diff changeset
16 goto bye;
kono
parents:
diff changeset
17 xxx=8;
kono
parents:
diff changeset
18 yyy=9;
kono
parents:
diff changeset
19 for (i=0; i < 10; ++i)
kono
parents:
diff changeset
20 ringo(g);
kono
parents:
diff changeset
21 bye:
kono
parents:
diff changeset
22 ringo(g);
kono
parents:
diff changeset
23 }
kono
parents:
diff changeset
24 }
kono
parents:
diff changeset
25
kono
parents:
diff changeset
26 /* { dg-final { scan-tree-dump-times "transforming: .*_ITM_RaWU\[248\] \\(&g\\);" 1 "tmmemopt" } } */
kono
parents:
diff changeset
27 /* { dg-final { scan-tree-dump-times "transforming: .*_ITM_WaRU4 \\(&i," 1 "tmmemopt" } } */
kono
parents:
diff changeset
28 /* { dg-final { scan-tree-dump-times "transforming: .*_ITM_RaWU4 \\(&i\\);" 1 "tmmemopt" } } */
kono
parents:
diff changeset
29 /* { dg-final { scan-tree-dump-times "transforming: .*_ITM_WaWU4 \\(&i," 1 "tmmemopt" } } */