; 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 ; ; SMLALB ; define @smlalb_i16( %a, %b, %c) { ; CHECK-LABEL: smlalb_i16 ; CHECK: smlalb z0.h, z1.b, z2.b ; CHECK-NEXT: ret %res = call @llvm.aarch64.sve.smlalb.nxv8i16( %a, %b, %c) ret %res } define @smlalb_i32( %a, %b, %c) { ; CHECK-LABEL: smlalb_i32 ; CHECK: smlalb z0.s, z1.h, z2.h ; CHECK-NEXT: ret %res = call @llvm.aarch64.sve.smlalb.nxv4i32( %a, %b, %c) ret %res } define @smlalb_i64( %a, %b, %c) { ; CHECK-LABEL: smlalb_i64 ; CHECK: smlalb z0.d, z1.s, z2.s ; CHECK-NEXT: ret %res = call @llvm.aarch64.sve.smlalb.nxv2i64( %a, %b, %c) ret %res } ; ; SMLALT ; define @smlalt_i16( %a, %b, %c) { ; CHECK-LABEL: smlalt_i16 ; CHECK: smlalt z0.h, z1.b, z2.b ; CHECK-NEXT: ret %res = call @llvm.aarch64.sve.smlalt.nxv8i16( %a, %b, %c) ret %res } define @smlalt_i32( %a, %b, %c) { ; CHECK-LABEL: smlalt_i32 ; CHECK: smlalt z0.s, z1.h, z2.h ; CHECK-NEXT: ret %res = call @llvm.aarch64.sve.smlalt.nxv4i32( %a, %b, %c) ret %res } define @smlalt_i64( %a, %b, %c) { ; CHECK-LABEL: smlalt_i64 ; CHECK: smlalt z0.d, z1.s, z2.s ; CHECK-NEXT: ret %res = call @llvm.aarch64.sve.smlalt.nxv2i64( %a, %b, %c) ret %res } ; ; UMLALB ; define @umlalb_i16( %a, %b, %c) { ; CHECK-LABEL: umlalb_i16 ; CHECK: umlalb z0.h, z1.b, z2.b ; CHECK-NEXT: ret %res = call @llvm.aarch64.sve.umlalb.nxv8i16( %a, %b, %c) ret %res } define @umlalb_i32( %a, %b, %c) { ; CHECK-LABEL: umlalb_i32 ; CHECK: umlalb z0.s, z1.h, z2.h ; CHECK-NEXT: ret %res = call @llvm.aarch64.sve.umlalb.nxv4i32( %a, %b, %c) ret %res } define @umlalb_i64( %a, %b, %c) { ; CHECK-LABEL: umlalb_i64 ; CHECK: umlalb z0.d, z1.s, z2.s ; CHECK-NEXT: ret %res = call @llvm.aarch64.sve.umlalb.nxv2i64( %a, %b, %c) ret %res } ; ; UMLALT ; define @umlalt_i16( %a, %b, %c) { ; CHECK-LABEL: umlalt_i16 ; CHECK: umlalt z0.h, z1.b, z2.b ; CHECK-NEXT: ret %res = call @llvm.aarch64.sve.umlalt.nxv8i16( %a, %b, %c) ret %res } define @umlalt_i32( %a, %b, %c) { ; CHECK-LABEL: umlalt_i32 ; CHECK: umlalt z0.s, z1.h, z2.h ; CHECK-NEXT: ret %res = call @llvm.aarch64.sve.umlalt.nxv4i32( %a, %b, %c) ret %res } define @umlalt_i64( %a, %b, %c) { ; CHECK-LABEL: umlalt_i64 ; CHECK: umlalt z0.d, z1.s, z2.s ; CHECK-NEXT: ret %res = call @llvm.aarch64.sve.umlalt.nxv2i64( %a, %b, %c) ret %res } ; ; SMLSLB ; define @smlslb_i16( %a, %b, %c) { ; CHECK-LABEL: smlslb_i16 ; CHECK: smlslb z0.h, z1.b, z2.b ; CHECK-NEXT: ret %res = call @llvm.aarch64.sve.smlslb.nxv8i16( %a, %b, %c) ret %res } define @smlslb_i32( %a, %b, %c) { ; CHECK-LABEL: smlslb_i32 ; CHECK: smlslb z0.s, z1.h, z2.h ; CHECK-NEXT: ret %res = call @llvm.aarch64.sve.smlslb.nxv4i32( %a, %b, %c) ret %res } define @smlslb_i64( %a, %b, %c) { ; CHECK-LABEL: smlslb_i64 ; CHECK: smlslb z0.d, z1.s, z2.s ; CHECK-NEXT: ret %res = call @llvm.aarch64.sve.smlslb.nxv2i64( %a, %b, %c) ret %res } ; ; SMLSLT ; define @smlslt_i16( %a, %b, %c) { ; CHECK-LABEL: smlslt_i16 ; CHECK: smlslt z0.h, z1.b, z2.b ; CHECK-NEXT: ret %res = call @llvm.aarch64.sve.smlslt.nxv8i16( %a, %b, %c) ret %res } define @smlslt_i32( %a, %b, %c) { ; CHECK-LABEL: smlslt_i32 ; CHECK: smlslt z0.s, z1.h, z2.h ; CHECK-NEXT: ret %res = call @llvm.aarch64.sve.smlslt.nxv4i32( %a, %b, %c) ret %res } define @smlslt_i64( %a, %b, %c) { ; CHECK-LABEL: smlslt_i64 ; CHECK: smlslt z0.d, z1.s, z2.s ; CHECK-NEXT: ret %res = call @llvm.aarch64.sve.smlslt.nxv2i64( %a, %b, %c) ret %res } ; ; UMLSLB ; define @umlslb_i16( %a, %b, %c) { ; CHECK-LABEL: umlslb_i16 ; CHECK: umlslb z0.h, z1.b, z2.b ; CHECK-NEXT: ret %res = call @llvm.aarch64.sve.umlslb.nxv8i16( %a, %b, %c) ret %res } define @umlslb_i32( %a, %b, %c) { ; CHECK-LABEL: umlslb_i32 ; CHECK: umlslb z0.s, z1.h, z2.h ; CHECK-NEXT: ret %res = call @llvm.aarch64.sve.umlslb.nxv4i32( %a, %b, %c) ret %res } define @umlslb_i64( %a, %b, %c) { ; CHECK-LABEL: umlslb_i64 ; CHECK: umlslb z0.d, z1.s, z2.s ; CHECK-NEXT: ret %res = call @llvm.aarch64.sve.umlslb.nxv2i64( %a, %b, %c) ret %res } ; ; UMLSLT ; define @umlslt_i16( %a, %b, %c) { ; CHECK-LABEL: umlslt_i16 ; CHECK: umlslt z0.h, z1.b, z2.b ; CHECK-NEXT: ret %res = call @llvm.aarch64.sve.umlslt.nxv8i16( %a, %b, %c) ret %res } define @umlslt_i32( %a, %b, %c) { ; CHECK-LABEL: umlslt_i32 ; CHECK: umlslt z0.s, z1.h, z2.h ; CHECK-NEXT: ret %res = call @llvm.aarch64.sve.umlslt.nxv4i32( %a, %b, %c) ret %res } define @umlslt_i64( %a, %b, %c) { ; CHECK-LABEL: umlslt_i64 ; CHECK: umlslt z0.d, z1.s, z2.s ; CHECK-NEXT: ret %res = call @llvm.aarch64.sve.umlslt.nxv2i64( %a, %b, %c) ret %res } ; ; SQDMLALB ; define @sqdmlalb_i16( %a, %b, %c) { ; CHECK-LABEL: sqdmlalb_i16 ; CHECK: sqdmlalb z0.h, z1.b, z2.b ; CHECK-NEXT: ret %res = call @llvm.aarch64.sve.sqdmlalb.nxv8i16( %a, %b, %c) ret %res } define @sqdmlalb_i32( %a, %b, %c) { ; CHECK-LABEL: sqdmlalb_i32 ; CHECK: sqdmlalb z0.s, z1.h, z2.h ; CHECK-NEXT: ret %res = call @llvm.aarch64.sve.sqdmlalb.nxv4i32( %a, %b, %c) ret %res } define @sqdmlalb_i64( %a, %b, %c) { ; CHECK-LABEL: sqdmlalb_i64 ; CHECK: sqdmlalb z0.d, z1.s, z2.s ; CHECK-NEXT: ret %res = call @llvm.aarch64.sve.sqdmlalb.nxv2i64( %a, %b, %c) ret %res } ; ; SQDMLALT ; define @sqdmlalt_i16( %a, %b, %c) { ; CHECK-LABEL: sqdmlalt_i16 ; CHECK: sqdmlalt z0.h, z1.b, z2.b ; CHECK-NEXT: ret %res = call @llvm.aarch64.sve.sqdmlalt.nxv8i16( %a, %b, %c) ret %res } define @sqdmlalt_i32( %a, %b, %c) { ; CHECK-LABEL: sqdmlalt_i32 ; CHECK: sqdmlalt z0.s, z1.h, z2.h ; CHECK-NEXT: ret %res = call @llvm.aarch64.sve.sqdmlalt.nxv4i32( %a, %b, %c) ret %res } define @sqdmlalt_i64( %a, %b, %c) { ; CHECK-LABEL: sqdmlalt_i64 ; CHECK: sqdmlalt z0.d, z1.s, z2.s ; CHECK-NEXT: ret %res = call @llvm.aarch64.sve.sqdmlalt.nxv2i64( %a, %b, %c) ret %res } ; ; SQDMLSLB ; define @sqdmlslb_i16( %a, %b, %c) { ; CHECK-LABEL: sqdmlslb_i16 ; CHECK: sqdmlslb z0.h, z1.b, z2.b ; CHECK-NEXT: ret %res = call @llvm.aarch64.sve.sqdmlslb.nxv8i16( %a, %b, %c) ret %res } define @sqdmlslb_i32( %a, %b, %c) { ; CHECK-LABEL: sqdmlslb_i32 ; CHECK: sqdmlslb z0.s, z1.h, z2.h ; CHECK-NEXT: ret %res = call @llvm.aarch64.sve.sqdmlslb.nxv4i32( %a, %b, %c) ret %res } define @sqdmlslb_i64( %a, %b, %c) { ; CHECK-LABEL: sqdmlslb_i64 ; CHECK: sqdmlslb z0.d, z1.s, z2.s ; CHECK-NEXT: ret %res = call @llvm.aarch64.sve.sqdmlslb.nxv2i64( %a, %b, %c) ret %res } ; ; SQDMLSLT ; define @sqdmlslt_i16( %a, %b, %c) { ; CHECK-LABEL: sqdmlslt_i16 ; CHECK: sqdmlslt z0.h, z1.b, z2.b ; CHECK-NEXT: ret %res = call @llvm.aarch64.sve.sqdmlslt.nxv8i16( %a, %b, %c) ret %res } define @sqdmlslt_i32( %a, %b, %c) { ; CHECK-LABEL: sqdmlslt_i32 ; CHECK: sqdmlslt z0.s, z1.h, z2.h ; CHECK-NEXT: ret %res = call @llvm.aarch64.sve.sqdmlslt.nxv4i32( %a, %b, %c) ret %res } define @sqdmlslt_i64( %a, %b, %c) { ; CHECK-LABEL: sqdmlslt_i64 ; CHECK: sqdmlslt z0.d, z1.s, z2.s ; CHECK-NEXT: ret %res = call @llvm.aarch64.sve.sqdmlslt.nxv2i64( %a, %b, %c) ret %res } ; ; SQDMLALBT ; define @sqdmlalbt_i16( %a, %b, %c) { ; CHECK-LABEL: sqdmlalbt_i16 ; CHECK: sqdmlalbt z0.h, z1.b, z2.b ; CHECK-NEXT: ret %res = call @llvm.aarch64.sve.sqdmlalbt.nxv8i16( %a, %b, %c) ret %res } define @sqdmlalbt_i32( %a, %b, %c) { ; CHECK-LABEL: sqdmlalbt_i32 ; CHECK: sqdmlalbt z0.s, z1.h, z2.h ; CHECK-NEXT: ret %res = call @llvm.aarch64.sve.sqdmlalbt.nxv4i32( %a, %b, %c) ret %res } define @sqdmlalbt_i64( %a, %b, %c) { ; CHECK-LABEL: sqdmlalbt_i64 ; CHECK: sqdmlalbt z0.d, z1.s, z2.s ; CHECK-NEXT: ret %res = call @llvm.aarch64.sve.sqdmlalbt.nxv2i64( %a, %b, %c) ret %res } ; ; SQDMLSLBT ; define @sqdmlslbt_i16( %a, %b, %c) { ; CHECK-LABEL: sqdmlslbt_i16 ; CHECK: sqdmlslbt z0.h, z1.b, z2.b ; CHECK-NEXT: ret %res = call @llvm.aarch64.sve.sqdmlslbt.nxv8i16( %a, %b, %c) ret %res } define @sqdmlslbt_i32( %a, %b, %c) { ; CHECK-LABEL: sqdmlslbt_i32 ; CHECK: sqdmlslbt z0.s, z1.h, z2.h ; CHECK-NEXT: ret %res = call @llvm.aarch64.sve.sqdmlslbt.nxv4i32( %a, %b, %c) ret %res } define @sqdmlslbt_i64( %a, %b, %c) { ; CHECK-LABEL: sqdmlslbt_i64 ; CHECK: sqdmlslbt z0.d, z1.s, z2.s ; CHECK-NEXT: ret %res = call @llvm.aarch64.sve.sqdmlslbt.nxv2i64( %a, %b, %c) ret %res } declare @llvm.aarch64.sve.smlalb.nxv8i16(, , ) declare @llvm.aarch64.sve.smlalb.nxv4i32(, , ) declare @llvm.aarch64.sve.smlalb.nxv2i64(, , ) declare @llvm.aarch64.sve.smlalt.nxv8i16(, , ) declare @llvm.aarch64.sve.smlalt.nxv4i32(, , ) declare @llvm.aarch64.sve.smlalt.nxv2i64(, , ) declare @llvm.aarch64.sve.umlalb.nxv8i16(, , ) declare @llvm.aarch64.sve.umlalb.nxv4i32(, , ) declare @llvm.aarch64.sve.umlalb.nxv2i64(, , ) declare @llvm.aarch64.sve.umlalt.nxv8i16(, , ) declare @llvm.aarch64.sve.umlalt.nxv4i32(, , ) declare @llvm.aarch64.sve.umlalt.nxv2i64(, , ) declare @llvm.aarch64.sve.smlslb.nxv8i16(, , ) declare @llvm.aarch64.sve.smlslb.nxv4i32(, , ) declare @llvm.aarch64.sve.smlslb.nxv2i64(, , ) declare @llvm.aarch64.sve.smlslt.nxv8i16(, , ) declare @llvm.aarch64.sve.smlslt.nxv4i32(, , ) declare @llvm.aarch64.sve.smlslt.nxv2i64(, , ) declare @llvm.aarch64.sve.umlslb.nxv8i16(, , ) declare @llvm.aarch64.sve.umlslb.nxv4i32(, , ) declare @llvm.aarch64.sve.umlslb.nxv2i64(, , ) declare @llvm.aarch64.sve.umlslt.nxv8i16(, , ) declare @llvm.aarch64.sve.umlslt.nxv4i32(, , ) declare @llvm.aarch64.sve.umlslt.nxv2i64(, , ) declare @llvm.aarch64.sve.sqdmlalb.nxv8i16(, , ) declare @llvm.aarch64.sve.sqdmlalb.nxv4i32(, , ) declare @llvm.aarch64.sve.sqdmlalb.nxv2i64(, , ) declare @llvm.aarch64.sve.sqdmlalt.nxv8i16(, , ) declare @llvm.aarch64.sve.sqdmlalt.nxv4i32(, , ) declare @llvm.aarch64.sve.sqdmlalt.nxv2i64(, , ) declare @llvm.aarch64.sve.sqdmlslb.nxv8i16(, , ) declare @llvm.aarch64.sve.sqdmlslb.nxv4i32(, , ) declare @llvm.aarch64.sve.sqdmlslb.nxv2i64(, , ) declare @llvm.aarch64.sve.sqdmlslt.nxv8i16(, , ) declare @llvm.aarch64.sve.sqdmlslt.nxv4i32(, , ) declare @llvm.aarch64.sve.sqdmlslt.nxv2i64(, , ) declare @llvm.aarch64.sve.sqdmlalbt.nxv8i16(, , ) declare @llvm.aarch64.sve.sqdmlalbt.nxv4i32(, , ) declare @llvm.aarch64.sve.sqdmlalbt.nxv2i64(, , ) declare @llvm.aarch64.sve.sqdmlslbt.nxv8i16(, , ) declare @llvm.aarch64.sve.sqdmlslbt.nxv4i32(, , ) declare @llvm.aarch64.sve.sqdmlslbt.nxv2i64(, , )