1 ; RUN: llc -march=ppc64 -mattr=+popcntd < %s | FileCheck %s
3 define i8 @cnt8(i8 %x) nounwind readnone {
4 %cnt = tail call i8 @llvm.ctpop.i8(i8 %x)
12 define i16 @cnt16(i16 %x) nounwind readnone {
13 %cnt = tail call i16 @llvm.ctpop.i16(i16 %x)
21 define i32 @cnt32(i32 %x) nounwind readnone {
22 %cnt = tail call i32 @llvm.ctpop.i32(i32 %x)
29 define i64 @cnt64(i64 %x) nounwind readnone {
30 %cnt = tail call i64 @llvm.ctpop.i64(i64 %x)
37 declare i8 @llvm.ctpop.i8(i8) nounwind readnone
38 declare i16 @llvm.ctpop.i16(i16) nounwind readnone
39 declare i32 @llvm.ctpop.i32(i32) nounwind readnone
40 declare i64 @llvm.ctpop.i64(i64) nounwind readnone