1 ; RUN: llc < %s -march=arm64 -mcpu=cyclone | FileCheck %s
2 target triple = "arm64-apple-ios"
4 ; The non-byte ones used to fail with "Cannot select"
6 ; CHECK-LABEL: ctpopv8i8
8 define <8 x i8> @ctpopv8i8(<8 x i8> %x) nounwind readnone {
9 %cnt = tail call <8 x i8> @llvm.ctpop.v8i8(<8 x i8> %x)
13 declare <8 x i8> @llvm.ctpop.v8i8(<8 x i8>) nounwind readnone
15 ; CHECK-LABEL: ctpopv4i16
17 define <4 x i16> @ctpopv4i16(<4 x i16> %x) nounwind readnone {
18 %cnt = tail call <4 x i16> @llvm.ctpop.v4i16(<4 x i16> %x)
22 declare <4 x i16> @llvm.ctpop.v4i16(<4 x i16>) nounwind readnone
24 ; CHECK-LABEL: ctpopv2i32
26 define <2 x i32> @ctpopv2i32(<2 x i32> %x) nounwind readnone {
27 %cnt = tail call <2 x i32> @llvm.ctpop.v2i32(<2 x i32> %x)
31 declare <2 x i32> @llvm.ctpop.v2i32(<2 x i32>) nounwind readnone
34 ; CHECK-LABEL: ctpopv16i8
36 define <16 x i8> @ctpopv16i8(<16 x i8> %x) nounwind readnone {
37 %cnt = tail call <16 x i8> @llvm.ctpop.v16i8(<16 x i8> %x)
41 declare <16 x i8> @llvm.ctpop.v16i8(<16 x i8>) nounwind readnone
43 ; CHECK-LABEL: ctpopv8i16
45 define <8 x i16> @ctpopv8i16(<8 x i16> %x) nounwind readnone {
46 %cnt = tail call <8 x i16> @llvm.ctpop.v8i16(<8 x i16> %x)
50 declare <8 x i16> @llvm.ctpop.v8i16(<8 x i16>) nounwind readnone
52 ; CHECK-LABEL: ctpopv4i32
54 define <4 x i32> @ctpopv4i32(<4 x i32> %x) nounwind readnone {
55 %cnt = tail call <4 x i32> @llvm.ctpop.v4i32(<4 x i32> %x)
59 declare <4 x i32> @llvm.ctpop.v4i32(<4 x i32>) nounwind readnone
61 ; CHECK-LABEL: ctpopv2i64
63 define <2 x i64> @ctpopv2i64(<2 x i64> %x) nounwind readnone {
64 %cnt = tail call <2 x i64> @llvm.ctpop.v2i64(<2 x i64> %x)
68 declare <2 x i64> @llvm.ctpop.v2i64(<2 x i64>) nounwind readnone