* c-c++-common/ubsan/float-cast-overflow-6.c: Add i?86-*-* target.
[official-gcc.git] / gcc / testsuite / gcc.dg / predict-4.c
blob17a50b9ead515c1abe6ae10b941a1e4db7cfc9c8
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-profile_estimate" } */
4 extern int global;
6 int bar(int);
8 void foo (int bound)
10 int i, ret = 0;
11 for (i = 0; i < 10; i++)
13 if (i < 5)
14 global += bar (i);
18 /* { dg-final { scan-tree-dump "loop iv compare heuristics: 50.0%" "profile_estimate"} } */
19 /* { dg-final { cleanup-tree-dump "profile_estimate" } } */