1 ; RUN: llc -mtriple=aarch64-linux-gnu -mattr=+sve2 < %s | FileCheck %s
4 ; ADCLB (vector, long, unpredicated)
6 define <vscale x 4 x i32> @adclb_i32(<vscale x 4 x i32> %a,
8 <vscale x 4 x i32> %c) {
9 ; CHECK-LABEL: adclb_i32
10 ; CHECK: adclb z0.s, z1.s, z2.s
12 %res = call <vscale x 4 x i32> @llvm.aarch64.sve.adclb.nxv4i32(<vscale x 4 x i32> %a, <vscale x 4 x i32> %b, <vscale x 4 x i32> %c)
13 ret <vscale x 4 x i32> %res
16 define <vscale x 2 x i64> @adclb_i64(<vscale x 2 x i64> %a,
17 <vscale x 2 x i64> %b,
18 <vscale x 2 x i64> %c) {
19 ; CHECK-LABEL: adclb_i64
20 ; CHECK: adclb z0.d, z1.d, z2.d
22 %res = call <vscale x 2 x i64> @llvm.aarch64.sve.adclb.nxv2i64(<vscale x 2 x i64> %a, <vscale x 2 x i64> %b, <vscale x 2 x i64> %c)
23 ret <vscale x 2 x i64> %res
27 ; ADCLT (vector, long, unpredicated)
29 define <vscale x 4 x i32> @adclt_i32(<vscale x 4 x i32> %a,
30 <vscale x 4 x i32> %b,
31 <vscale x 4 x i32> %c) {
32 ; CHECK-LABEL: adclt_i32
33 ; CHECK: adclt z0.s, z1.s, z2.s
35 %res = call <vscale x 4 x i32> @llvm.aarch64.sve.adclt.nxv4i32(<vscale x 4 x i32> %a, <vscale x 4 x i32> %b, <vscale x 4 x i32> %c)
36 ret <vscale x 4 x i32> %res
39 define <vscale x 2 x i64> @adclt_i64(<vscale x 2 x i64> %a,
40 <vscale x 2 x i64> %b,
41 <vscale x 2 x i64> %c) {
42 ; CHECK-LABEL: adclt_i64
43 ; CHECK: adclt z0.d, z1.d, z2.d
45 %res = call <vscale x 2 x i64> @llvm.aarch64.sve.adclt.nxv2i64(<vscale x 2 x i64> %a, <vscale x 2 x i64> %b, <vscale x 2 x i64> %c)
46 ret <vscale x 2 x i64> %res
50 ; SBCLB (vector, long, unpredicated)
52 define <vscale x 4 x i32> @sbclb_i32(<vscale x 4 x i32> %a,
53 <vscale x 4 x i32> %b,
54 <vscale x 4 x i32> %c) {
55 ; CHECK-LABEL: sbclb_i32
56 ; CHECK: sbclb z0.s, z1.s, z2.s
58 %res = call <vscale x 4 x i32> @llvm.aarch64.sve.sbclb.nxv4i32(<vscale x 4 x i32> %a, <vscale x 4 x i32> %b, <vscale x 4 x i32> %c)
59 ret <vscale x 4 x i32> %res
62 define <vscale x 2 x i64> @sbclb_i64(<vscale x 2 x i64> %a,
63 <vscale x 2 x i64> %b,
64 <vscale x 2 x i64> %c) {
65 ; CHECK-LABEL: sbclb_i64
66 ; CHECK: sbclb z0.d, z1.d, z2.d
68 %res = call <vscale x 2 x i64> @llvm.aarch64.sve.sbclb.nxv2i64(<vscale x 2 x i64> %a, <vscale x 2 x i64> %b, <vscale x 2 x i64> %c)
69 ret <vscale x 2 x i64> %res
73 ; SBCLT (vector, long, unpredicated)
75 define <vscale x 4 x i32> @sbclt_i32(<vscale x 4 x i32> %a,
76 <vscale x 4 x i32> %b,
77 <vscale x 4 x i32> %c) {
78 ; CHECK-LABEL: sbclt_i32
79 ; CHECK: sbclt z0.s, z1.s, z2.s
81 %res = call <vscale x 4 x i32> @llvm.aarch64.sve.sbclt.nxv4i32(<vscale x 4 x i32> %a, <vscale x 4 x i32> %b, <vscale x 4 x i32> %c)
82 ret <vscale x 4 x i32> %res
85 define <vscale x 2 x i64> @sbclt_i64(<vscale x 2 x i64> %a,
86 <vscale x 2 x i64> %b,
87 <vscale x 2 x i64> %c) {
88 ; CHECK-LABEL: sbclt_i64
89 ; CHECK: sbclt z0.d, z1.d, z2.d
91 %res = call <vscale x 2 x i64> @llvm.aarch64.sve.sbclt.nxv2i64(<vscale x 2 x i64> %a, <vscale x 2 x i64> %b, <vscale x 2 x i64> %c)
92 ret <vscale x 2 x i64> %res
95 declare <vscale x 4 x i32> @llvm.aarch64.sve.adclb.nxv4i32(<vscale x 4 x i32>,<vscale x 4 x i32>,<vscale x 4 x i32>)
96 declare <vscale x 2 x i64> @llvm.aarch64.sve.adclb.nxv2i64(<vscale x 2 x i64>,<vscale x 2 x i64>,<vscale x 2 x i64>)
97 declare <vscale x 4 x i32> @llvm.aarch64.sve.adclt.nxv4i32(<vscale x 4 x i32>,<vscale x 4 x i32>,<vscale x 4 x i32>)
98 declare <vscale x 2 x i64> @llvm.aarch64.sve.adclt.nxv2i64(<vscale x 2 x i64>,<vscale x 2 x i64>,<vscale x 2 x i64>)
99 declare <vscale x 4 x i32> @llvm.aarch64.sve.sbclb.nxv4i32(<vscale x 4 x i32>,<vscale x 4 x i32>,<vscale x 4 x i32>)
100 declare <vscale x 2 x i64> @llvm.aarch64.sve.sbclb.nxv2i64(<vscale x 2 x i64>,<vscale x 2 x i64>,<vscale x 2 x i64>)
101 declare <vscale x 4 x i32> @llvm.aarch64.sve.sbclt.nxv4i32(<vscale x 4 x i32>,<vscale x 4 x i32>,<vscale x 4 x i32>)
102 declare <vscale x 2 x i64> @llvm.aarch64.sve.sbclt.nxv2i64(<vscale x 2 x i64>,<vscale x 2 x i64>,<vscale x 2 x i64>)