; 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 @mad_i8( %pg, %a, %b, %c) { ; CHECK-LABEL: mad_i8: ; CHECK: mad z0.b, p0/m, z1.b, z2.b ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.mad.nxv16i8( %pg, %a, %b, %c) ret %out } define @mad_i16( %pg, %a, %b, %c) { ; CHECK-LABEL: mad_i16: ; CHECK: mad z0.h, p0/m, z1.h, z2.h ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.mad.nxv8i16( %pg, %a, %b, %c) ret %out } define @mad_i32( %pg, %a, %b, %c) { ; CHECK-LABEL: mad_i32: ; CHECK: mad z0.s, p0/m, z1.s, z2.s ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.mad.nxv4i32( %pg, %a, %b, %c) ret %out } define @mad_i64( %pg, %a, %b, %c) { ; CHECK-LABEL: mad_i64: ; CHECK: mad z0.d, p0/m, z1.d, z2.d ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.mad.nxv2i64( %pg, %a, %b, %c) ret %out } define @msb_i8( %pg, %a, %b, %c) { ; CHECK-LABEL: msb_i8: ; CHECK: msb z0.b, p0/m, z1.b, z2.b ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.msb.nxv16i8( %pg, %a, %b, %c) ret %out } define @msb_i16( %pg, %a, %b, %c) { ; CHECK-LABEL: msb_i16: ; CHECK: msb z0.h, p0/m, z1.h, z2.h ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.msb.nxv8i16( %pg, %a, %b, %c) ret %out } define @msb_i32( %pg, %a, %b, %c) { ; CHECK-LABEL: msb_i32: ; CHECK: msb z0.s, p0/m, z1.s, z2.s ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.msb.nxv4i32( %pg, %a, %b, %c) ret %out } define @msb_i64( %pg, %a, %b, %c) { ; CHECK-LABEL: msb_i64: ; CHECK: msb z0.d, p0/m, z1.d, z2.d ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.msb.nxv2i64( %pg, %a, %b, %c) ret %out } define @mla_i8( %pg, %a, %b, %c) { ; CHECK-LABEL: mla_i8: ; CHECK: mla z0.b, p0/m, z1.b, z2.b ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.mla.nxv16i8( %pg, %a, %b, %c) ret %out } define @mla_i16( %pg, %a, %b, %c) { ; CHECK-LABEL: mla_i16: ; CHECK: mla z0.h, p0/m, z1.h, z2.h ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.mla.nxv8i16( %pg, %a, %b, %c) ret %out } define @mla_i32( %pg, %a, %b, %c) { ; CHECK-LABEL: mla_i32: ; CHECK: mla z0.s, p0/m, z1.s, z2.s ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.mla.nxv4i32( %pg, %a, %b, %c) ret %out } define @mla_i64( %pg, %a, %b, %c) { ; CHECK-LABEL: mla_i64: ; CHECK: mla z0.d, p0/m, z1.d, z2.d ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.mla.nxv2i64( %pg, %a, %b, %c) ret %out } define @mls_i8( %pg, %a, %b, %c) { ; CHECK-LABEL: mls_i8: ; CHECK: mls z0.b, p0/m, z1.b, z2.b ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.mls.nxv16i8( %pg, %a, %b, %c) ret %out } define @mls_i16( %pg, %a, %b, %c) { ; CHECK-LABEL: mls_i16: ; CHECK: mls z0.h, p0/m, z1.h, z2.h ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.mls.nxv8i16( %pg, %a, %b, %c) ret %out } define @mls_i32( %pg, %a, %b, %c) { ; CHECK-LABEL: mls_i32: ; CHECK: mls z0.s, p0/m, z1.s, z2.s ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.mls.nxv4i32( %pg, %a, %b, %c) ret %out } define @mls_i64( %pg, %a, %b, %c) { ; CHECK-LABEL: mls_i64: ; CHECK: mls z0.d, p0/m, z1.d, z2.d ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.mls.nxv2i64( %pg, %a, %b, %c) ret %out } declare @llvm.aarch64.sve.mad.nxv16i8(, ,,) declare @llvm.aarch64.sve.mad.nxv8i16(, ,,) declare @llvm.aarch64.sve.mad.nxv4i32(, ,,) declare @llvm.aarch64.sve.mad.nxv2i64(, ,,) declare @llvm.aarch64.sve.msb.nxv16i8(, ,,) declare @llvm.aarch64.sve.msb.nxv8i16(, ,,) declare @llvm.aarch64.sve.msb.nxv4i32(, ,,) declare @llvm.aarch64.sve.msb.nxv2i64(, ,,) declare @llvm.aarch64.sve.mla.nxv16i8(, ,,) declare @llvm.aarch64.sve.mla.nxv8i16(, ,,) declare @llvm.aarch64.sve.mla.nxv4i32(, ,,) declare @llvm.aarch64.sve.mla.nxv2i64(, ,,) declare @llvm.aarch64.sve.mls.nxv16i8(, ,,) declare @llvm.aarch64.sve.mls.nxv8i16(, ,,) declare @llvm.aarch64.sve.mls.nxv4i32(, ,,) declare @llvm.aarch64.sve.mls.nxv2i64(, ,,)