1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-optimized" } */
3
4 // Division is expensive
f(long a,long b)5 long f(long a, long b) {
6 if (__builtin_expect(b == 1, 1)) return a;
7 return a / b;
8 }
9
10 /* { dg-final { scan-tree-dump-times "goto " 2 "optimized" } } */
11