; RUN: llc -mtriple=aarch64-linux-gnu -mattr=+sve < %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 define @mul_i8( %pg, %a, %b) { ; CHECK-LABEL: mul_i8: ; CHECK: mul z0.b, p0/m, z0.b, z1.b ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.mul.nxv16i8( %pg, %a, %b) ret %out } define @mul_i16( %pg, %a, %b) { ; CHECK-LABEL: mul_i16: ; CHECK: mul z0.h, p0/m, z0.h, z1.h ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.mul.nxv8i16( %pg, %a, %b) ret %out } define @mul_i32( %pg, %a, %b) { ; CHECK-LABEL: mul_i32: ; CHECK: mul z0.s, p0/m, z0.s, z1.s ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.mul.nxv4i32( %pg, %a, %b) ret %out } define @mul_i64( %pg, %a, %b) { ; CHECK-LABEL: mul_i64: ; CHECK: mul z0.d, p0/m, z0.d, z1.d ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.mul.nxv2i64( %pg, %a, %b) ret %out } define @smulh_i8( %pg, %a, %b) { ; CHECK-LABEL: smulh_i8: ; CHECK: smulh z0.b, p0/m, z0.b, z1.b ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.smulh.nxv16i8( %pg, %a, %b) ret %out } define @smulh_i16( %pg, %a, %b) { ; CHECK-LABEL: smulh_i16: ; CHECK: smulh z0.h, p0/m, z0.h, z1.h ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.smulh.nxv8i16( %pg, %a, %b) ret %out } define @smulh_i32( %pg, %a, %b) { ; CHECK-LABEL: smulh_i32: ; CHECK: smulh z0.s, p0/m, z0.s, z1.s ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.smulh.nxv4i32( %pg, %a, %b) ret %out } define @smulh_i64( %pg, %a, %b) { ; CHECK-LABEL: smulh_i64: ; CHECK: smulh z0.d, p0/m, z0.d, z1.d ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.smulh.nxv2i64( %pg, %a, %b) ret %out } define @umulh_i8( %pg, %a, %b) { ; CHECK-LABEL: umulh_i8: ; CHECK: umulh z0.b, p0/m, z0.b, z1.b ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.umulh.nxv16i8( %pg, %a, %b) ret %out } define @umulh_i16( %pg, %a, %b) { ; CHECK-LABEL: umulh_i16: ; CHECK: umulh z0.h, p0/m, z0.h, z1.h ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.umulh.nxv8i16( %pg, %a, %b) ret %out } define @umulh_i32( %pg, %a, %b) { ; CHECK-LABEL: umulh_i32: ; CHECK: umulh z0.s, p0/m, z0.s, z1.s ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.umulh.nxv4i32( %pg, %a, %b) ret %out } define @umulh_i64( %pg, %a, %b) { ; CHECK-LABEL: umulh_i64: ; CHECK: umulh z0.d, p0/m, z0.d, z1.d ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.umulh.nxv2i64( %pg, %a, %b) ret %out } declare @llvm.aarch64.sve.mul.nxv16i8(, , ) declare @llvm.aarch64.sve.mul.nxv8i16(, , ) declare @llvm.aarch64.sve.mul.nxv4i32(, , ) declare @llvm.aarch64.sve.mul.nxv2i64(, , ) declare @llvm.aarch64.sve.smulh.nxv16i8(, , ) declare @llvm.aarch64.sve.smulh.nxv8i16(, , ) declare @llvm.aarch64.sve.smulh.nxv4i32(, , ) declare @llvm.aarch64.sve.smulh.nxv2i64(, , ) declare @llvm.aarch64.sve.umulh.nxv16i8(, , ) declare @llvm.aarch64.sve.umulh.nxv8i16(, , ) declare @llvm.aarch64.sve.umulh.nxv4i32(, , ) declare @llvm.aarch64.sve.umulh.nxv2i64(, , )