mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 22:04:55 +00:00
new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21854 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5eb9f0d56c
commit
3c8a3b1393
21
test/CodeGen/Generic/llvm-ct-intrinsics.ll
Normal file
21
test/CodeGen/Generic/llvm-ct-intrinsics.ll
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
; Make sure this testcase is supported by all code generators
|
||||||
|
; RUN: llvm-as < %s | llc
|
||||||
|
|
||||||
|
declare long %llvm.ctpop(long)
|
||||||
|
declare int %llvm.ctpop(int)
|
||||||
|
declare short %llvm.ctpop(short)
|
||||||
|
declare sbyte %llvm.ctpop(sbyte)
|
||||||
|
|
||||||
|
void %ctpoptest(sbyte %A, short %B, int %C, long %D,
|
||||||
|
sbyte *%AP, short* %BP, int* %CP, long* %DP) {
|
||||||
|
%a = call sbyte %llvm.ctpop(sbyte %A)
|
||||||
|
%b = call short %llvm.ctpop(short %B)
|
||||||
|
%c = call int %llvm.ctpop(int %C)
|
||||||
|
%d = call long %llvm.ctpop(long %D)
|
||||||
|
|
||||||
|
store sbyte %a, sbyte* %AP
|
||||||
|
store short %b, short* %BP
|
||||||
|
store int %c, int* %CP
|
||||||
|
store long %d, long* %DP
|
||||||
|
ret void
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user