; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py ; RUN: llc -mtriple=aarch64-linux-gnu -mattr=+sve2p2 < %s | FileCheck %s --check-prefixes=CHECK ; RUN: llc -mtriple=aarch64-linux-gnu -mattr=+sve,+sme2p2 < %s | FileCheck %s --check-prefixes=CHECK ; RUN: llc -mtriple=aarch64-linux-gnu -mattr=+sme2p2 -force-streaming < %s | FileCheck %s --check-prefixes=CHECK ; ; COMPACT ; define @compact_i8( %pg, %a) { ; CHECK-LABEL: compact_i8: ; CHECK: // %bb.0: ; CHECK-NEXT: compact z0.b, p0, z0.b ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.compact.nxv16i8( %pg, %a) ret %out } define @compact_i16( %pg, %a) { ; CHECK-LABEL: compact_i16: ; CHECK: // %bb.0: ; CHECK-NEXT: compact z0.h, p0, z0.h ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.compact.nxv8i16( %pg, %a) ret %out } define @compact_i32( %pg, %a) { ; CHECK-LABEL: compact_i32: ; CHECK: // %bb.0: ; CHECK-NEXT: compact z0.s, p0, z0.s ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.compact.nxv4i32( %pg, %a) ret %out } define @compact_i64( %pg, %a) { ; CHECK-LABEL: compact_i64: ; CHECK: // %bb.0: ; CHECK-NEXT: compact z0.d, p0, z0.d ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.compact.nxv2i64( %pg, %a) ret %out } define @compact_f16( %pg, %a) { ; CHECK-LABEL: compact_f16: ; CHECK: // %bb.0: ; CHECK-NEXT: compact z0.h, p0, z0.h ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.compact.nxv8f16( %pg, %a) ret %out } define @compact_f32( %pg, %a) { ; CHECK-LABEL: compact_f32: ; CHECK: // %bb.0: ; CHECK-NEXT: compact z0.s, p0, z0.s ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.compact.nxv4f32( %pg, %a) ret %out } define @compact_f64( %pg, %a) { ; CHECK-LABEL: compact_f64: ; CHECK: // %bb.0: ; CHECK-NEXT: compact z0.d, p0, z0.d ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.compact.nxv2f64( %pg, %a) ret %out } define @compact_bf16( %pg, %a) { ; CHECK-LABEL: compact_bf16: ; CHECK: // %bb.0: ; CHECK-NEXT: compact z0.h, p0, z0.h ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.compact.nxv8bf16( %pg, %a) ret %out } declare @llvm.aarch64.sve.compact.nxv16i8(, ) declare @llvm.aarch64.sve.compact.nxv8i16(, ) declare @llvm.aarch64.sve.compact.nxv4i32(, ) declare @llvm.aarch64.sve.compact.nxv2i64(, ) declare @llvm.aarch64.sve.compact.nxv8f16(, ) declare @llvm.aarch64.sve.compact.nxv4f32(, ) declare @llvm.aarch64.sve.compact.nxv2f64(, ) declare @llvm.aarch64.sve.compact.nxv8bf16(, )