blob: da40a142ae90b98e0737ddf0bfbdf34203fd633c [file] [log] [blame]
Reid Spencer43b40032007-04-16 15:31:49 +00001// RUN: %llvmgcc %s -S -o - | llvm-as | llvm-dis | not grep call.*__builtin
Chris Lattner8ccdf7b2005-05-07 02:16:08 +00002
3int G, H, I;
4void foo(int P) {
5 G = __builtin_clz(P);
6 H = __builtin_ctz(P);
7 I = __builtin_popcount(P);
8}
9
10long long g, h, i;
11void fooll(float P) {
12 g = __builtin_clzll(P);
13 g = __builtin_clzll(P);
14 h = __builtin_ctzll(P);
15 i = __builtin_popcountll(P);
16}
17