blob: 0195a144226f03b68f18516c6a90d957780b6731 [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-phicprop-details" } */
/* LLVM LOCAL test not applicable */
/* { dg-require-fdump "" } */
int test(int v)
{
int x = 0;
int u;
for (u=0;u<2;u++)
{
if (u>v)
{
if (u%2==1)
x++;
}
}
return x;
}
/* { dg-final { scan-tree-dump-times "Original statement:.*% 2\[ \t\n]*Updated statement.*=1" 0 "phicprop3" } } */
/* { dg-final { cleanup-tree-dump "phicprop3" } } */