1 ; RUN: llc -mtriple=aarch64-linux-gnu -mattr=+sve < %s | FileCheck %s
7 define <vscale x 8 x i1> @punpkhi_b16(<vscale x 16 x i1> %a) {
8 ; CHECK-LABEL: punpkhi_b16
9 ; CHECK: punpkhi p0.h, p0.b
11 %res = call <vscale x 8 x i1> @llvm.aarch64.sve.punpkhi.nxv8i1(<vscale x 16 x i1> %a)
12 ret <vscale x 8 x i1> %res
15 define <vscale x 4 x i1> @punpkhi_b8(<vscale x 8 x i1> %a) {
16 ; CHECK-LABEL: punpkhi_b8
17 ; CHECK: punpkhi p0.h, p0.b
19 %res = call <vscale x 4 x i1> @llvm.aarch64.sve.punpkhi.nxv4i1(<vscale x 8 x i1> %a)
20 ret <vscale x 4 x i1> %res
23 define <vscale x 2 x i1> @punpkhi_b4(<vscale x 4 x i1> %a) {
24 ; CHECK-LABEL: punpkhi_b4
25 ; CHECK: punpkhi p0.h, p0.b
27 %res = call <vscale x 2 x i1> @llvm.aarch64.sve.punpkhi.nxv2i1(<vscale x 4 x i1> %a)
28 ret <vscale x 2 x i1> %res
35 define <vscale x 8 x i1> @punpklo_b16(<vscale x 16 x i1> %a) {
36 ; CHECK-LABEL: punpklo_b16
37 ; CHECK: punpklo p0.h, p0.b
39 %res = call <vscale x 8 x i1> @llvm.aarch64.sve.punpklo.nxv8i1(<vscale x 16 x i1> %a)
40 ret <vscale x 8 x i1> %res
43 define <vscale x 4 x i1> @punpklo_b8(<vscale x 8 x i1> %a) {
44 ; CHECK-LABEL: punpklo_b8
45 ; CHECK: punpklo p0.h, p0.b
47 %res = call <vscale x 4 x i1> @llvm.aarch64.sve.punpklo.nxv4i1(<vscale x 8 x i1> %a)
48 ret <vscale x 4 x i1> %res
51 define <vscale x 2 x i1> @punpklo_b4(<vscale x 4 x i1> %a) {
52 ; CHECK-LABEL: punpklo_b4
53 ; CHECK: punpklo p0.h, p0.b
55 %res = call <vscale x 2 x i1> @llvm.aarch64.sve.punpklo.nxv2i1(<vscale x 4 x i1> %a)
56 ret <vscale x 2 x i1> %res
59 declare <vscale x 8 x i1> @llvm.aarch64.sve.punpkhi.nxv8i1(<vscale x 16 x i1>)
60 declare <vscale x 4 x i1> @llvm.aarch64.sve.punpkhi.nxv4i1(<vscale x 8 x i1>)
61 declare <vscale x 2 x i1> @llvm.aarch64.sve.punpkhi.nxv2i1(<vscale x 4 x i1>)
63 declare <vscale x 8 x i1> @llvm.aarch64.sve.punpklo.nxv8i1(<vscale x 16 x i1>)
64 declare <vscale x 4 x i1> @llvm.aarch64.sve.punpklo.nxv4i1(<vscale x 8 x i1>)
65 declare <vscale x 2 x i1> @llvm.aarch64.sve.punpklo.nxv2i1(<vscale x 4 x i1>)