1 ; RUN: llvm-as < %s | llc -march=bfin -verify-machineinstrs
3 declare i64 @llvm.cttz.i64(i64) nounwind readnone
5 declare i16 @llvm.cttz.i16(i16) nounwind readnone
7 declare i8 @llvm.cttz.i8(i8) nounwind readnone
9 define void @cttztest(i8 %A, i16 %B, i32 %C, i64 %D, i8* %AP, i16* %BP, i32* %CP, i64* %DP) {
10 %a = call i8 @llvm.cttz.i8(i8 %A) ; <i8> [#uses=1]
11 %b = call i16 @llvm.cttz.i16(i16 %B) ; <i16> [#uses=1]
12 %d = call i64 @llvm.cttz.i64(i64 %D) ; <i64> [#uses=1]
14 store i16 %b, i16* %BP
15 store i64 %d, i64* %DP