diff options
Diffstat (limited to 'test/CodeGen/builtin-expect.c')
-rw-r--r-- | test/CodeGen/builtin-expect.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGen/builtin-expect.c b/test/CodeGen/builtin-expect.c new file mode 100644 index 0000000..8f02c4d --- /dev/null +++ b/test/CodeGen/builtin-expect.c @@ -0,0 +1,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 (); +} + |