Stop only if there aren't any usable algorithms
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / branch-cost3.c
blob3b69f503fcc434dedaf8576ea9cbc06467993547
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-gimple -mbranch-cost=2" } */
4 extern int doo (void);
6 int
7 foo (_Bool a, _Bool b)
9 if (a && b)
10 return doo ();
11 return 0;
14 /* { dg-final { scan-tree-dump-times "if " 1 "gimple" } } */
15 /* { dg-final { scan-tree-dump-times " & " 1 "gimple" } } */
16 /* { dg-final { cleanup-tree-dump "gimple" } } */