blob: b5c9e6febaeef1e98085c77e0eb67e3fc455ddcd [file] [log] [blame]
Chris Lattner3c8a3b12005-05-11 04:22:47 +00001; Make sure this testcase is supported by all code generators
2; RUN: llvm-as < %s | llc
3
4declare long %llvm.ctpop(long)
5declare int %llvm.ctpop(int)
6declare short %llvm.ctpop(short)
7declare sbyte %llvm.ctpop(sbyte)
8
9void %ctpoptest(sbyte %A, short %B, int %C, long %D,
10 sbyte *%AP, short* %BP, int* %CP, long* %DP) {
11 %a = call sbyte %llvm.ctpop(sbyte %A)
12 %b = call short %llvm.ctpop(short %B)
13 %c = call int %llvm.ctpop(int %C)
14 %d = call long %llvm.ctpop(long %D)
15
16 store sbyte %a, sbyte* %AP
17 store short %b, short* %BP
18 store int %c, int* %CP
19 store long %d, long* %DP
20 ret void
21}