blob: 4c12100dc50cfa472e285be41ac62744e1c82da8 [file] [log] [blame]
Eric Christopher3883e662011-07-26 22:17:02 +00001// RUN: %clang_cc1 %s -emit-llvm -o %t
2// RUN: not grep call*__builtin %t
3
4int G, H, I;
5void foo(int P) {
6 G = __builtin_clz(P);
7 H = __builtin_ctz(P);
8 I = __builtin_popcount(P);
9}
10
11long long g, h, i;
12void fooll(float P) {
13 g = __builtin_clzll(P);
14 g = __builtin_clzll(P);
15 h = __builtin_ctzll(P);
16 i = __builtin_popcountll(P);
17}