freebsd-nq/test/CodeGen/builtin-count-zeros.c

5 lines
184 B
C
Raw Normal View History

2010-01-01 10:34:51 +00:00
// RUN: %clang_cc1 -emit-llvm %s -o - | grep 'cttz' | count 2
// RUN: %clang_cc1 -emit-llvm %s -o - | grep 'ctlz' | count 2
2009-06-02 17:58:47 +00:00
int a(int a) {return __builtin_ctz(a) + __builtin_clz(a);}