| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-O2 -fdump-tree-lim-details" } */ |
| 3 |
|
| 4 |
/* PR tree-optimization/117234 */ |
| 5 |
/* PAREN_EXPR should not be declared as |
| 6 |
a trapping. */ |
| 7 |
|
| 8 |
float f1(float a, int t, _Bool *b, float c) |
| 9 |
{ |
| 10 |
float tt = 0; |
| 11 |
for (int i = 0; i < t; i++) |
| 12 |
{ |
| 13 |
if (b[i]) |
| 14 |
tt *= -__builtin_assoc_barrier (-a); |
| 15 |
} |
| 16 |
return tt; |
| 17 |
} |
| 18 |
|
| 19 |
/* There should be 3 `invariant up to level`, two for each `-` and one |
| 20 |
for the PAREN_EXPR. */ |
| 21 |
/* { dg-final { scan-tree-dump-times "invariant up to level" 3 "lim2" } } */ |