Home | History | Annotate | Download | only in CodeGen
      1 // RUN: %clang_cc1 %s -emit-llvm -o %t
      2 // RUN: not grep call*__builtin %t
      3 
      4 int G, H, I;
      5 void foo(int P) {
      6   G = __builtin_clz(P);
      7   H = __builtin_ctz(P);
      8   I = __builtin_popcount(P);
      9 }
     10 
     11 long long g, h, i;
     12 void fooll(float P) {
     13   g = __builtin_clzll(P);
     14   g = __builtin_clzll(P);
     15   h = __builtin_ctzll(P);
     16   i = __builtin_popcountll(P);
     17 }
     18