aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/tree-ssa/builtin-expect-4.c
blob: 2d2b206683b66de170f5a259b0bd0275e8d38faf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-gimple" } */

f (int i, float j, int i2, float j2) 
{ 
  if (__builtin_expect ((i * i2) > 0 || (j * j2), 0))
    a ();
  else
    b ();
} 

/* { dg-final { scan-tree-dump-times {builtin_expect[^\n]*, 0\);\n[^\n]*if} 2 "gimple"} } */
/* { dg-final { cleanup-tree-dump "gimple" } } */