[llvm-commits] CVS: llvm/test/Regression/CFrontend/2005-05-06-CountBuiltins.c
Chris Lattner
lattner at cs.uiuc.edu
Fri May 6 19:16:25 PDT 2005
Changes in directory llvm/test/Regression/CFrontend:
2005-05-06-CountBuiltins.c added (r1.1)
---
Log message:
new testcase
---
Diffs of the changes: (+17 -0)
2005-05-06-CountBuiltins.c | 17 +++++++++++++++++
1 files changed, 17 insertions(+)
Index: llvm/test/Regression/CFrontend/2005-05-06-CountBuiltins.c
diff -c /dev/null llvm/test/Regression/CFrontend/2005-05-06-CountBuiltins.c:1.1
*** /dev/null Fri May 6 21:16:18 2005
--- llvm/test/Regression/CFrontend/2005-05-06-CountBuiltins.c Fri May 6 21:16:08 2005
***************
*** 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);
+ }
+
More information about the llvm-commits
mailing list