1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -mtriple=aarch64-linux-gnu -mattr=+sve2 < %s | FileCheck %s
8 define <vscale x 4 x i32> @histcnt_i32(<vscale x 4 x i1> %pg, <vscale x 4 x i32> %a, <vscale x 4 x i32> %b) {
9 ; CHECK-LABEL: histcnt_i32:
11 ; CHECK-NEXT: histcnt z0.s, p0/z, z0.s, z1.s
13 %out = call <vscale x 4 x i32> @llvm.aarch64.sve.histcnt.nxv4i32(<vscale x 4 x i1> %pg,
14 <vscale x 4 x i32> %a,
15 <vscale x 4 x i32> %b)
16 ret <vscale x 4 x i32> %out
19 define <vscale x 2 x i64> @histcnt_i64(<vscale x 2 x i1> %pg, <vscale x 2 x i64> %a, <vscale x 2 x i64> %b) {
20 ; CHECK-LABEL: histcnt_i64:
22 ; CHECK-NEXT: histcnt z0.d, p0/z, z0.d, z1.d
24 %out = call <vscale x 2 x i64> @llvm.aarch64.sve.histcnt.nxv2i64(<vscale x 2 x i1> %pg,
25 <vscale x 2 x i64> %a,
26 <vscale x 2 x i64> %b)
27 ret <vscale x 2 x i64> %out
34 define <vscale x 16 x i8> @histseg(<vscale x 16 x i8> %a, <vscale x 16 x i8> %b) {
35 ; CHECK-LABEL: histseg:
37 ; CHECK-NEXT: histseg z0.b, z0.b, z1.b
39 %out = call <vscale x 16 x i8> @llvm.aarch64.sve.histseg.nxv16i8(<vscale x 16 x i8> %a,
40 <vscale x 16 x i8> %b)
41 ret <vscale x 16 x i8> %out
44 declare <vscale x 4 x i32> @llvm.aarch64.sve.histcnt.nxv4i32(<vscale x 4 x i1>, <vscale x 4 x i32>, <vscale x 4 x i32>)
45 declare <vscale x 2 x i64> @llvm.aarch64.sve.histcnt.nxv2i64(<vscale x 2 x i1>, <vscale x 2 x i64>, <vscale x 2 x i64>)
46 declare <vscale x 16 x i8> @llvm.aarch64.sve.histseg.nxv16i8(<vscale x 16 x i8>, <vscale x 16 x i8>)