summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/builtin-expect.c
blob: 8f02c4da78a4e26dbc4a006b7f30a1faf7723107 (plain)
1
2
3
4
5
6
7
8
9
10
11
// RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s

int x;
int y(void);
void foo();
void FUNC() {
// CHECK: [[call:%.*]] = call i32 @y
  if (__builtin_expect (x, y()))
    foo ();
}

OpenPOWER on IntegriCloud