OSDN Git Service

* gcc.dg/vect/vect-105.c: Prevent compiler from hoisting abort
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / tree-ssa / builtin-expect-2.c
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-gimple" } */
3
4 f (int i, float j) 
5
6   if (__builtin_expect (i > 0 || j, 0))
7     ;
8   else
9     g ();
10
11
12 /* { dg-final { scan-tree-dump-times {builtin_expect[^\n]*, 0\);\n[^\n]*if} 2 "gimple"} } */
13 /* { dg-final { cleanup-tree-dump "gimple" } } */