summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/builtin-expect-3.c
blob: 8fcc4e2bd401d18f8e272375957e608828a8ce2c (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) 
{ 
  if (__builtin_expect (i > 0 && j, 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" } } */