; RUN: llc -mtriple=aarch64-linux-gnu -mattr=+sve2 < %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 ; ; SADALP ; define @sadalp_i8( %pg, %a, %b) { ; CHECK-LABEL: sadalp_i8: ; CHECK: sadalp z0.h, p0/m, z1.b ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.sadalp.nxv8i16( %pg, %a, %b) ret %out } define @sadalp_i16( %pg, %a, %b) { ; CHECK-LABEL: sadalp_i16: ; CHECK: sadalp z0.s, p0/m, z1.h ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.sadalp.nxv4i32( %pg, %a, %b) ret %out } define @sadalp_i32( %pg, %a, %b) { ; CHECK-LABEL: sadalp_i32: ; CHECK: sadalp z0.d, p0/m, z1.s ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.sadalp.nxv2i64( %pg, %a, %b) ret %out } ; ; UADALP ; define @uadalp_i8( %pg, %a, %b) { ; CHECK-LABEL: uadalp_i8: ; CHECK: uadalp z0.h, p0/m, z1.b ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.uadalp.nxv8i16( %pg, %a, %b) ret %out } define @uadalp_i16( %pg, %a, %b) { ; CHECK-LABEL: uadalp_i16: ; CHECK: uadalp z0.s, p0/m, z1.h ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.uadalp.nxv4i32( %pg, %a, %b) ret %out } define @uadalp_i32( %pg, %a, %b) { ; CHECK-LABEL: uadalp_i32: ; CHECK: uadalp z0.d, p0/m, z1.s ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.uadalp.nxv2i64( %pg, %a, %b) ret %out } declare @llvm.aarch64.sve.sadalp.nxv8i16(, , ) declare @llvm.aarch64.sve.sadalp.nxv4i32(, , ) declare @llvm.aarch64.sve.sadalp.nxv2i64(, , ) declare @llvm.aarch64.sve.uadalp.nxv8i16(, , ) declare @llvm.aarch64.sve.uadalp.nxv4i32(, , ) declare @llvm.aarch64.sve.uadalp.nxv2i64(, , )