diff options
author | Chris Lattner <sabre@nondot.org> | 2005-05-07 02:16:08 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-05-07 02:16:08 +0000 |
commit | 8ccdf7b07ad22686b55bdf4b48e3bdb5c6004f5c (patch) | |
tree | 13993ac75c9c257760a9e036e8be5bf93ce073e2 | |
parent | cfe6b37b0788f7aa7b2e3880e24a01ebb4f9943a (diff) |
new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21756 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/CFrontend/2005-05-06-CountBuiltins.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/CFrontend/2005-05-06-CountBuiltins.c b/test/CFrontend/2005-05-06-CountBuiltins.c new file mode 100644 index 0000000000..cfc691a670 --- /dev/null +++ b/test/CFrontend/2005-05-06-CountBuiltins.c @@ -0,0 +1,17 @@ +// RUN: %llvmgcc %s -S -o - | llvm-as | llvm-dis | not grep 'call.*__builtin' + +int G, H, I; +void foo(int P) { + G = __builtin_clz(P); + H = __builtin_ctz(P); + I = __builtin_popcount(P); +} + +long long g, h, i; +void fooll(float P) { + g = __builtin_clzll(P); + g = __builtin_clzll(P); + h = __builtin_ctzll(P); + i = __builtin_popcountll(P); +} + |