testsuite: Fix optimize_one.c FAIL on i686-linux
[official-gcc.git] / gcc / testsuite / gcc.dg / predict-20.c
blob7bb0d411f880078b4f50075ec7955c9df2548773
1 /* PR tree-optimization/86925 */
3 /* { dg-do compile } */
4 /* { dg-options "-O2 -fdump-tree-profile_estimate" } */
6 int a, b;
8 void
9 c ()
11 for (;;)
13 if (__builtin_expect (b < 0, 0))
14 break;
15 if (__builtin_expect (a, 1))
16 break;
18 int d = b < 0;
19 /* We fail to apply __builtin_expect heuristics here. Se PR109210. */
20 if (__builtin_expect (d, 0))
21 asm("");
24 /* { dg-final { scan-tree-dump-times "__builtin_expect heuristics of edge" 2 "profile_estimate" } } */