PR testsuite/52641
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / builtin-expect-3.c
blobb9e6cfb8ff99b1ef77a2c58674235e483e236ad6
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-gimple" } */
4 f (int i, float j, int i2, float j2)
5 {
6 if (__builtin_expect ((i * i2) > 0 && (j * j2), 0))
7 a ();
8 else
9 b ();
12 /* { dg-final { scan-tree-dump-times {builtin_expect[^\n]*, 0\);\n[^\n]*if} 2 "gimple"} } */
13 /* { dg-final { cleanup-tree-dump "gimple" } } */