; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py ; RUN: llc -mtriple=aarch64-linux-gnu < %s | FileCheck %s define @insr_zpr_only_nxv16i8( %a, %b) #0 { ; CHECK-LABEL: insr_zpr_only_nxv16i8: ; CHECK: // %bb.0: ; CHECK-NEXT: insr z0.b, b1 ; CHECK-NEXT: ret %t0 = extractelement %b, i64 0 %t1 = tail call @llvm.aarch64.sve.insr.nxv16i8( %a, i8 %t0) ret %t1 } define @insr_zpr_only_nxv8i16( %a, %b) #0 { ; CHECK-LABEL: insr_zpr_only_nxv8i16: ; CHECK: // %bb.0: ; CHECK-NEXT: insr z0.h, h1 ; CHECK-NEXT: ret %t0 = extractelement %b, i64 0 %t1 = tail call @llvm.aarch64.sve.insr.nxv8i16( %a, i16 %t0) ret %t1 } define @insr_zpr_only_nxv4i32( %a, %b) #0 { ; CHECK-LABEL: insr_zpr_only_nxv4i32: ; CHECK: // %bb.0: ; CHECK-NEXT: insr z0.s, s1 ; CHECK-NEXT: ret %t0 = extractelement %b, i64 0 %t1 = tail call @llvm.aarch64.sve.insr.nxv4i32( %a, i32 %t0) ret %t1 } define @insr_zpr_only_nxv2i64( %a, %b) #0 { ; CHECK-LABEL: insr_zpr_only_nxv2i64: ; CHECK: // %bb.0: ; CHECK-NEXT: insr z0.d, d1 ; CHECK-NEXT: ret %t0 = extractelement %b, i64 0 %t1 = tail call @llvm.aarch64.sve.insr.nxv2i64( %a, i64 %t0) ret %t1 } declare @llvm.aarch64.sve.insr.nxv16i8(, i8) declare @llvm.aarch64.sve.insr.nxv8i16(, i16) declare @llvm.aarch64.sve.insr.nxv4i32(, i32) declare @llvm.aarch64.sve.insr.nxv2i64(, i64) attributes #0 = { "target-features"="+sve" }