1 ; RUN: llc < %s -march=bfin 2 3 declare i32 @llvm.ctlz.i32(i32) 4 declare i32 @llvm.cttz.i32(i32) 5 declare i32 @llvm.ctpop.i32(i32) 6 7 define i32 @ctlztest(i32 %B) { 8 %b = call i32 @llvm.ctlz.i32( i32 %B ) 9 ret i32 %b 10 } 11 12 define i32 @cttztest(i32 %B) { 13 %b = call i32 @llvm.cttz.i32( i32 %B ) 14 ret i32 %b 15 } 16 17 define i32 @ctpoptest(i32 %B) { 18 %b = call i32 @llvm.ctpop.i32( i32 %B ) 19 ret i32 %b 20 } 21