; RUN: llc -mtriple=aarch64-linux-gnu -mattr=+sve2,+sve2-bitperm < %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 ; ; BDEP ; define @bdep_nxv16i8( %a, %b) { ; CHECK-LABEL: bdep_nxv16i8: ; CHECK: bdep z0.b, z0.b, z1.b ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.bdep.x.nx16i8( %a, %b) ret %out } define @bdep_nxv8i16( %a, %b) { ; CHECK-LABEL: bdep_nxv8i16: ; CHECK: bdep z0.h, z0.h, z1.h ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.bdep.x.nx8i16( %a, %b) ret %out } define @bdep_nxv4i32( %a, %b) { ; CHECK-LABEL: bdep_nxv4i32: ; CHECK: bdep z0.s, z0.s, z1.s ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.bdep.x.nx4i32( %a, %b) ret %out } define @bdep_nxv2i64( %a, %b) { ; CHECK-LABEL: bdep_nxv2i64: ; CHECK: bdep z0.d, z0.d, z1.d ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.bdep.x.nx2i64( %a, %b) ret %out } ; ; BEXT ; define @bext_nxv16i8( %a, %b) { ; CHECK-LABEL: bext_nxv16i8: ; CHECK: bext z0.b, z0.b, z1.b ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.bext.x.nx16i8( %a, %b) ret %out } define @bext_nxv8i16( %a, %b) { ; CHECK-LABEL: bext_nxv8i16: ; CHECK: bext z0.h, z0.h, z1.h ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.bext.x.nx8i16( %a, %b) ret %out } define @bext_nxv4i32( %a, %b) { ; CHECK-LABEL: bext_nxv4i32: ; CHECK: bext z0.s, z0.s, z1.s ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.bext.x.nx4i32( %a, %b) ret %out } define @bext_nxv2i64( %a, %b) { ; CHECK-LABEL: bext_nxv2i64: ; CHECK: bext z0.d, z0.d, z1.d ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.bext.x.nx2i64( %a, %b) ret %out } ; ; BGRP ; define @bgrp_nxv16i8( %a, %b) { ; CHECK-LABEL: bgrp_nxv16i8: ; CHECK: bgrp z0.b, z0.b, z1.b ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.bgrp.x.nx16i8( %a, %b) ret %out } define @bgrp_nxv8i16( %a, %b) { ; CHECK-LABEL: bgrp_nxv8i16: ; CHECK: bgrp z0.h, z0.h, z1.h ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.bgrp.x.nx8i16( %a, %b) ret %out } define @bgrp_nxv4i32( %a, %b) { ; CHECK-LABEL: bgrp_nxv4i32: ; CHECK: bgrp z0.s, z0.s, z1.s ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.bgrp.x.nx4i32( %a, %b) ret %out } define @bgrp_nxv2i64( %a, %b) { ; CHECK-LABEL: bgrp_nxv2i64: ; CHECK: bgrp z0.d, z0.d, z1.d ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.bgrp.x.nx2i64( %a, %b) ret %out } declare @llvm.aarch64.sve.bdep.x.nx16i8( %a, %b) declare @llvm.aarch64.sve.bdep.x.nx8i16( %a, %b) declare @llvm.aarch64.sve.bdep.x.nx4i32( %a, %b) declare @llvm.aarch64.sve.bdep.x.nx2i64( %a, %b) declare @llvm.aarch64.sve.bext.x.nx16i8( %a, %b) declare @llvm.aarch64.sve.bext.x.nx8i16( %a, %b) declare @llvm.aarch64.sve.bext.x.nx4i32( %a, %b) declare @llvm.aarch64.sve.bext.x.nx2i64( %a, %b) declare @llvm.aarch64.sve.bgrp.x.nx16i8( %a, %b) declare @llvm.aarch64.sve.bgrp.x.nx8i16( %a, %b) declare @llvm.aarch64.sve.bgrp.x.nx4i32( %a, %b) declare @llvm.aarch64.sve.bgrp.x.nx2i64( %a, %b)