1 ; RUN: llc < %s -mtriple=arm64-eabi -aarch64-neon-syntax=apple | FileCheck %s
3 define <8 x i8> @cls_8b(ptr %A) nounwind {
6 %tmp1 = load <8 x i8>, ptr %A
7 %tmp3 = call <8 x i8> @llvm.aarch64.neon.cls.v8i8(<8 x i8> %tmp1)
11 define <16 x i8> @cls_16b(ptr %A) nounwind {
12 ;CHECK-LABEL: cls_16b:
14 %tmp1 = load <16 x i8>, ptr %A
15 %tmp3 = call <16 x i8> @llvm.aarch64.neon.cls.v16i8(<16 x i8> %tmp1)
19 define <4 x i16> @cls_4h(ptr %A) nounwind {
22 %tmp1 = load <4 x i16>, ptr %A
23 %tmp3 = call <4 x i16> @llvm.aarch64.neon.cls.v4i16(<4 x i16> %tmp1)
27 define <8 x i16> @cls_8h(ptr %A) nounwind {
30 %tmp1 = load <8 x i16>, ptr %A
31 %tmp3 = call <8 x i16> @llvm.aarch64.neon.cls.v8i16(<8 x i16> %tmp1)
35 define <2 x i32> @cls_2s(ptr %A) nounwind {
38 %tmp1 = load <2 x i32>, ptr %A
39 %tmp3 = call <2 x i32> @llvm.aarch64.neon.cls.v2i32(<2 x i32> %tmp1)
43 define <4 x i32> @cls_4s(ptr %A) nounwind {
46 %tmp1 = load <4 x i32>, ptr %A
47 %tmp3 = call <4 x i32> @llvm.aarch64.neon.cls.v4i32(<4 x i32> %tmp1)
51 declare <8 x i8> @llvm.aarch64.neon.cls.v8i8(<8 x i8>) nounwind readnone
52 declare <16 x i8> @llvm.aarch64.neon.cls.v16i8(<16 x i8>) nounwind readnone
53 declare <4 x i16> @llvm.aarch64.neon.cls.v4i16(<4 x i16>) nounwind readnone
54 declare <8 x i16> @llvm.aarch64.neon.cls.v8i16(<8 x i16>) nounwind readnone
55 declare <2 x i32> @llvm.aarch64.neon.cls.v2i32(<2 x i32>) nounwind readnone
56 declare <4 x i32> @llvm.aarch64.neon.cls.v4i32(<4 x i32>) nounwind readnone