1 /* { dg-do compile } */
2 /* { dg-options "-fgnu-tm -O1 -fdump-tree-lim1" } */
4 /* Test that thread visible loads do not get hoisted out of loops if
5 the load would not have occurred on each path out of the loop. */
7 int x
[10] = {0,0,0,0,0,0,0,0,0,0};
15 for (i
= 0; i
< 10; i
++)
18 /* If we loaded DATA_DATA here, we could hoist it before the loop,
19 but since we don't... we can't. */
23 /* { dg-final { scan-tree-dump-times "Cannot hoist.*DATA_DATA because it is in a transaction" 1 "lim1" } } */
24 /* { dg-final { cleanup-tree-dump "lim1" } } */