blob: 2c505e3d97d27aefa1881c902bc497762e1ca044 [file] [log] [blame]
/* { dg-options "-O0 -fdump-ipa-profile" } */
int
main (int argc, char **argv)
{
unsigned u = (argc - 1);
int counter = 0;
for (unsigned i = 0; i < 100; i++)
{
unsigned x = i < 10 ? 16 : 15;
counter += u % x;
}
return counter;
}
/* autofdo does not do value profiling so far */
/* { dg-final-use-not-autofdo { scan-ipa-dump "Pow2 counter pow2:10 nonpow2:90." "profile" } } */