; RUN: llc -mtriple=aarch64-linux-gnu -mattr=+sve2 -asm-verbose=0 < %s 2>%t | FileCheck %s ; RUN: FileCheck --check-prefix=WARN --allow-empty %s <%t ; If this check fails please read test/CodeGen/AArch64/README for instructions on how to resolve it. ; WARN-NOT: warning ; ; HISTCNT ; define @histcnt_i32( %pg, %a, %b) { ; CHECK-LABEL: histcnt_i32: ; CHECK: histcnt z0.s, p0/z, z0.s, z1.s ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.histcnt.nxv4i32( %pg, %a, %b) ret %out } define @histcnt_i64( %pg, %a, %b) { ; CHECK-LABEL: histcnt_i64: ; CHECK: histcnt z0.d, p0/z, z0.d, z1.d ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.histcnt.nxv2i64( %pg, %a, %b) ret %out } ; ; HISTSEG ; define @histseg( %a, %b) { ; CHECK-LABEL: histseg: ; CHECK: histseg z0.b, z0.b, z1.b ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.histseg.nxv16i8( %a, %b) ret %out } declare @llvm.aarch64.sve.histcnt.nxv4i32(, , ) declare @llvm.aarch64.sve.histcnt.nxv2i64(, , ) declare @llvm.aarch64.sve.histseg.nxv16i8(, )