Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
fp2-dev
/
platform
/
external
/
clang
/
6855492ab6d55a6dd70691efa166aa0b2ee0f56e
/
.
/
test
/
CodeGen
/
builtin-count-zeros.c
blob: 5453cb1d8905ef2ed383e41dc97a54c7bbd7e749 [
file
] [
log
] [
blame
]
// RUN: clang -emit-llvm %s -o - | grep 'cttz' | count 2 &&
// RUN: clang -emit-llvm %s -o - | grep 'ctlz' | count 2
int
a
(
int
a
)
{
return
__builtin_ctz
(
a
)
+
__builtin_clz
(
a
);}