mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-01 00:33:09 +00:00
include the other bit count intrinsics
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21863 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
18aa680a96
commit
07fc17371b
@ -19,3 +19,41 @@ void %ctpoptest(sbyte %A, short %B, int %C, long %D,
|
||||
store long %d, long* %DP
|
||||
ret void
|
||||
}
|
||||
|
||||
declare long %llvm.ctlz(long)
|
||||
declare int %llvm.ctlz(int)
|
||||
declare short %llvm.ctlz(short)
|
||||
declare sbyte %llvm.ctlz(sbyte)
|
||||
|
||||
void %ctlztest(sbyte %A, short %B, int %C, long %D,
|
||||
sbyte *%AP, short* %BP, int* %CP, long* %DP) {
|
||||
%a = call sbyte %llvm.ctlz(sbyte %A)
|
||||
%b = call short %llvm.ctlz(short %B)
|
||||
%c = call int %llvm.ctlz(int %C)
|
||||
%d = call long %llvm.ctlz(long %D)
|
||||
|
||||
store sbyte %a, sbyte* %AP
|
||||
store short %b, short* %BP
|
||||
store int %c, int* %CP
|
||||
store long %d, long* %DP
|
||||
ret void
|
||||
}
|
||||
|
||||
declare long %llvm.cttz(long)
|
||||
declare int %llvm.cttz(int)
|
||||
declare short %llvm.cttz(short)
|
||||
declare sbyte %llvm.cttz(sbyte)
|
||||
|
||||
void %cttztest(sbyte %A, short %B, int %C, long %D,
|
||||
sbyte *%AP, short* %BP, int* %CP, long* %DP) {
|
||||
%a = call sbyte %llvm.cttz(sbyte %A)
|
||||
%b = call short %llvm.cttz(short %B)
|
||||
%c = call int %llvm.cttz(int %C)
|
||||
%d = call long %llvm.cttz(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