llvm.org GIT mirror llvm / 3c8a3b1
new testcase git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21854 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 15 years ago
1 changed file(s) with 21 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 ; Make sure this testcase is supported by all code generators
1 ; RUN: llvm-as < %s | llc
2
3 declare long %llvm.ctpop(long)
4 declare int %llvm.ctpop(int)
5 declare short %llvm.ctpop(short)
6 declare sbyte %llvm.ctpop(sbyte)
7
8 void %ctpoptest(sbyte %A, short %B, int %C, long %D,
9 sbyte *%AP, short* %BP, int* %CP, long* %DP) {
10 %a = call sbyte %llvm.ctpop(sbyte %A)
11 %b = call short %llvm.ctpop(short %B)
12 %c = call int %llvm.ctpop(int %C)
13 %d = call long %llvm.ctpop(long %D)
14
15 store sbyte %a, sbyte* %AP
16 store short %b, short* %BP
17 store int %c, int* %CP
18 store long %d, long* %DP
19 ret void
20 }