repo.or.cz
/
clang.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[Heikki Kultala] This patch contains the ABI changes for the TCE target.
[clang.git]
/
test
/
CodeGen
/
builtin-count-zeros.c
blob
5a0be2fb867f433a9a22b07878475300015fb044
1
// RUN: %clang_cc1 -emit-llvm %s -o - | grep 'cttz' | count 2
2
// RUN: %clang_cc1 -emit-llvm %s -o - | grep 'ctlz' | count 2
3
4
int
a
(
int
a
) {
return
__builtin_ctz
(
a
) +
__builtin_clz
(
a
);}