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