aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/i386/branch-cost1.c
blob: ed873fa71369750c36a783df1635f87ca8d8e2ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-gimple -mbranch-cost=0" } */

extern int doo (void);

int
foo (int a, int b)
{
  if (a && b)
   return doo ();
  return 0;
}

/* { dg-final { scan-tree-dump-times "if " 2 "gimple" } } */
/* { dg-final { scan-tree-dump-not " & " "gimple" } } */
/* { dg-final { cleanup-tree-dump "gimple" } } */