summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorgios Pinitas <georgios.pinitas@arm.com>2020-03-06 18:12:09 +0000
committerGeorgios Pinitas <georgios.pinitas@arm.com>2020-03-12 12:12:30 +0000
commitc7b183ab741650653289f8ce3bdeb4926521fdbd (patch)
tree991e9f20340c91c288d52d8f9a64a3729e4a40b0
parent6800117df3be825f0ec5c6cc71c4377322f51b99 (diff)
downloadarmcl-c7b183ab741650653289f8ce3bdeb4926521fdbd.tar.gz
armcl-c7b183ab741650653289f8ce3bdeb4926521fdbd.tar.bz2
armcl-c7b183ab741650653289f8ce3bdeb4926521fdbd.zip
COMPMID-3160: Add Bfloat16 support in NEGEMMConvolutionLayer
Signed-off-by: Georgios Pinitas <georgios.pinitas@arm.com> Change-Id: I0e449306c138a562ffc1455e76ec44b2fd059d85 Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/2860 Tested-by: Arm Jenkins <bsgcomp@arm.com> Reviewed-by: Michele Di Giorgio <michele.digiorgio@arm.com> Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
-rw-r--r--Android.bp11
-rw-r--r--SConstruct2
-rw-r--r--arm_compute/core/NEON/kernels/NEIm2ColKernel.h6
-rw-r--r--arm_compute/core/NEON/kernels/NEWeightsReshapeKernel.h6
-rw-r--r--arm_compute/core/Utils.h2
-rw-r--r--arm_compute/runtime/NEON/functions/NEGEMM.h6
-rw-r--r--arm_compute/runtime/NEON/functions/NEGEMMConvolutionLayer.h42
-rw-r--r--arm_compute/runtime/NEON/functions/NEIm2Col.h8
-rw-r--r--docs/00_introduction.dox15
-rw-r--r--src/core/NEON/kernels/NEIm2ColKernel.cpp12
-rw-r--r--src/core/NEON/kernels/NEWeightsReshapeKernel.cpp4
-rw-r--r--src/core/NEON/kernels/arm_gemm/bfloat.hpp33
-rw-r--r--src/core/NEON/kernels/arm_gemm/gemm_bf16.cpp158
-rw-r--r--src/core/NEON/kernels/arm_gemm/gemm_fp32.cpp10
-rw-r--r--src/core/NEON/kernels/arm_gemm/kernels/a32_sgemm_8x6.hpp2
-rw-r--r--src/core/NEON/kernels/arm_gemm/kernels/a64_gemm_s16_12x8.hpp2
-rw-r--r--src/core/NEON/kernels/arm_gemm/kernels/a64_gemm_s8_12x8.hpp2
-rw-r--r--src/core/NEON/kernels/arm_gemm/kernels/a64_gemm_s8_12x8/a55r1.cpp2
-rw-r--r--src/core/NEON/kernels/arm_gemm/kernels/a64_gemm_s8_12x8/generic.cpp2
-rw-r--r--src/core/NEON/kernels/arm_gemm/kernels/a64_gemm_s8_4x4.hpp2
-rw-r--r--src/core/NEON/kernels/arm_gemm/kernels/a64_gemm_u16_12x8.hpp2
-rw-r--r--src/core/NEON/kernels/arm_gemm/kernels/a64_gemm_u16_12x8/generic.cpp2
-rw-r--r--src/core/NEON/kernels/arm_gemm/kernels/a64_gemm_u8_12x8.hpp2
-rw-r--r--src/core/NEON/kernels/arm_gemm/kernels/a64_gemm_u8_12x8/a55r1.cpp2
-rw-r--r--src/core/NEON/kernels/arm_gemm/kernels/a64_gemm_u8_12x8/generic.cpp2
-rw-r--r--src/core/NEON/kernels/arm_gemm/kernels/a64_gemm_u8_4x4.hpp2
-rw-r--r--src/core/NEON/kernels/arm_gemm/kernels/a64_hgemm_24x8.hpp2
-rw-r--r--src/core/NEON/kernels/arm_gemm/kernels/a64_hgemm_24x8/generic.cpp2
-rw-r--r--src/core/NEON/kernels/arm_gemm/kernels/a64_hybrid_fp32_mla_16x4/a55.cpp2
-rw-r--r--src/core/NEON/kernels/arm_gemm/kernels/a64_hybrid_fp32_mla_16x4/generic.cpp2
-rw-r--r--src/core/NEON/kernels/arm_gemm/kernels/a64_interleaved_bf16fp32_dot_12x8.hpp69
-rw-r--r--src/core/NEON/kernels/arm_gemm/kernels/a64_interleaved_bf16fp32_dot_12x8/generic.cpp325
-rw-r--r--src/core/NEON/kernels/arm_gemm/kernels/a64_interleaved_bf16fp32_mmla_12x8.hpp69
-rw-r--r--src/core/NEON/kernels/arm_gemm/kernels/a64_interleaved_bf16fp32_mmla_12x8/generic.cpp393
-rw-r--r--src/core/NEON/kernels/arm_gemm/kernels/a64_sgemm_12x8.hpp2
-rw-r--r--src/core/NEON/kernels/arm_gemm/kernels/a64_sgemm_12x8/generic.cpp2
-rw-r--r--src/core/NEON/kernels/arm_gemm/kernels/a64_sgemv_pretransposed.hpp2
-rw-r--r--src/core/NEON/kernels/arm_gemm/kernels/a64_sgemv_trans.hpp2
-rw-r--r--src/core/NEON/kernels/arm_gemm/kernels/a64_sgemv_trans/generic.cpp2
-rw-r--r--src/core/NEON/kernels/arm_gemm/kernels/a64_smallK_hybrid_s8s32_dot_4x6.hpp2
-rw-r--r--src/core/NEON/kernels/arm_gemm/kernels/a64_smallK_hybrid_s8s32_dot_4x8.hpp2
-rw-r--r--src/core/NEON/kernels/arm_gemm/kernels/a64_smallK_hybrid_u8u32_dot_4x6.hpp2
-rw-r--r--src/core/NEON/kernels/arm_gemm/kernels/a64_smallK_hybrid_u8u32_dot_4x8.hpp2
-rw-r--r--src/core/NEON/kernels/arm_gemm/kernels/sve_hybrid_bf16fp32_dot_4VLx4.hpp86
-rw-r--r--src/core/NEON/kernels/arm_gemm/kernels/sve_hybrid_bf16fp32_dot_4VLx4/generic.cpp2236
-rw-r--r--src/core/NEON/kernels/arm_gemm/kernels/sve_hybrid_bf16fp32_mmla_4VLx4.hpp86
-rw-r--r--src/core/NEON/kernels/arm_gemm/kernels/sve_hybrid_bf16fp32_mmla_4VLx4/generic.cpp3448
-rw-r--r--src/core/NEON/kernels/arm_gemm/kernels/sve_hybrid_bf16fp32_mmla_6VLx2.hpp86
-rw-r--r--src/core/NEON/kernels/arm_gemm/kernels/sve_hybrid_bf16fp32_mmla_6VLx2/generic.cpp1622
-rw-r--r--src/core/NEON/kernels/arm_gemm/kernels/sve_hybrid_bf16fp32_mmla_8VLx2.hpp86
-rw-r--r--src/core/NEON/kernels/arm_gemm/kernels/sve_hybrid_bf16fp32_mmla_8VLx2/generic.cpp1990
-rw-r--r--src/core/NEON/kernels/arm_gemm/kernels/sve_interleaved_bf16fp32_dot_3VLx8.hpp69
-rw-r--r--src/core/NEON/kernels/arm_gemm/kernels/sve_interleaved_bf16fp32_dot_3VLx8/generic.cpp327
-rw-r--r--src/core/NEON/kernels/arm_gemm/kernels/sve_interleaved_bf16fp32_mmla_3VLx8.hpp69
-rw-r--r--src/core/NEON/kernels/arm_gemm/kernels/sve_interleaved_bf16fp32_mmla_3VLx8/generic.cpp395
-rw-r--r--src/core/NEON/kernels/arm_gemm/kernels/sve_interleaved_fp16_mla_3VLx8.hpp2
-rw-r--r--src/core/NEON/kernels/arm_gemm/kernels/sve_interleaved_fp16_mla_3VLx8/generic.cpp2
-rw-r--r--src/core/NEON/kernels/arm_gemm/kernels/sve_interleaved_fp32_mla_3VLx8.hpp2
-rw-r--r--src/core/NEON/kernels/arm_gemm/kernels/sve_interleaved_fp32_mla_3VLx8/generic.cpp2
-rw-r--r--src/core/NEON/kernels/arm_gemm/kernels/sve_interleaved_s8s32_dot_3VLx8.hpp2
-rw-r--r--src/core/NEON/kernels/arm_gemm/kernels/sve_interleaved_s8s32_dot_3VLx8/generic.cpp2
-rw-r--r--src/core/NEON/kernels/arm_gemm/kernels/sve_interleaved_u8u32_dot_3VLx8/generic.cpp2
-rw-r--r--src/core/NEON/kernels/arm_gemm/kernels/sve_native_bf16fp32_dot_4VLx4.hpp86
-rw-r--r--src/core/NEON/kernels/arm_gemm/kernels/sve_native_bf16fp32_dot_4VLx4/generic.cpp3275
-rw-r--r--src/core/NEON/kernels/arm_gemm/kernels/sve_smallK_hybrid_fp32_mla_1VLx8.hpp86
-rw-r--r--src/core/NEON/kernels/arm_gemm/kernels/sve_smallK_hybrid_fp32_mla_1VLx8/generic.cpp18807
-rw-r--r--src/core/NEON/kernels/arm_gemm/merges/a64_merge_fp16_24x8.hpp2
-rw-r--r--src/core/NEON/kernels/arm_gemm/merges/a64_merge_fp32_12x8.hpp2
-rw-r--r--src/core/NEON/kernels/arm_gemm/merges/a64_merge_s32_12x8.hpp2
-rw-r--r--src/core/NEON/kernels/arm_gemm/merges/a64_merge_s32_4x4.hpp2
-rw-r--r--src/core/NEON/kernels/arm_gemm/merges/a64_merge_u32_12x8.hpp2
-rw-r--r--src/core/NEON/kernels/arm_gemm/merges/a64_merge_u32_4x4.hpp2
-rw-r--r--src/core/NEON/kernels/arm_gemm/merges/sve_merge_fp16_3VLx8.hpp2
-rw-r--r--src/core/NEON/kernels/arm_gemm/merges/sve_merge_fp32_3VLx8.hpp2
-rw-r--r--src/core/NEON/kernels/arm_gemm/merges/sve_merge_s32_3VLx8.hpp2
-rw-r--r--src/core/NEON/kernels/arm_gemm/merges/sve_merge_u32_3VLx8.hpp2
-rw-r--r--src/runtime/NEON/functions/NEGEMM.cpp4
-rw-r--r--src/runtime/NEON/functions/NEGEMMAssemblyDispatch.cpp14
-rw-r--r--src/runtime/NEON/functions/NEGEMMConvolutionLayer.cpp14
-rw-r--r--support/Bfloat16.h2
-rw-r--r--tests/validation/Helpers.cpp12
-rw-r--r--tests/validation/Helpers.h2
-rw-r--r--tests/validation/NEON/ConvolutionLayer.cpp16
-rw-r--r--tests/validation/NEON/DepthConvertLayer.cpp14
-rw-r--r--tests/validation/fixtures/ConvolutionLayerFixture.h39
85 files changed, 34001 insertions, 125 deletions
diff --git a/Android.bp b/Android.bp
index 12cdb64c6..3dd91d310 100644
--- a/Android.bp
+++ b/Android.bp
@@ -352,6 +352,7 @@ cc_library_static {
"src/core/NEON/kernels/NEWidthConcatenateLayerKernel.cpp",
"src/core/NEON/kernels/NEWinogradConvolutionLayerKernel.cpp",
"src/core/NEON/kernels/NEYOLOLayerKernel.cpp",
+ "src/core/NEON/kernels/arm_gemm/gemm_bf16.cpp",
"src/core/NEON/kernels/arm_gemm/gemm_fp16.cpp",
"src/core/NEON/kernels/arm_gemm/gemm_fp32.cpp",
"src/core/NEON/kernels/arm_gemm/gemm_int16.cpp",
@@ -769,6 +770,8 @@ cc_library_static {
"src/core/NEON/kernels/arm_gemm/kernels/a64_hybrid_s8s32_dot_16x4/generic.cpp",
"src/core/NEON/kernels/arm_gemm/kernels/a64_hybrid_u8u32_dot_16x4/a55.cpp",
"src/core/NEON/kernels/arm_gemm/kernels/a64_hybrid_u8u32_dot_16x4/generic.cpp",
+ "src/core/NEON/kernels/arm_gemm/kernels/a64_interleaved_bf16fp32_dot_12x8/generic.cpp",
+ "src/core/NEON/kernels/arm_gemm/kernels/a64_interleaved_bf16fp32_mmla_12x8/generic.cpp",
"src/core/NEON/kernels/arm_gemm/kernels/a64_interleaved_s8s32_mmla_12x8/generic.cpp",
"src/core/NEON/kernels/arm_gemm/kernels/a64_interleaved_u8u32_mmla_12x8/generic.cpp",
"src/core/NEON/kernels/arm_gemm/kernels/a64_native_fp32_mla_16x4/generic.cpp",
@@ -788,20 +791,28 @@ cc_library_static {
"src/core/NEON/kernels/arm_gemm/kernels/a64_smallK_hybrid_u8u32_dot_4x6/generic.cpp",
"src/core/NEON/kernels/arm_gemm/kernels/a64_smallK_hybrid_u8u32_dot_4x8/a55.cpp",
"src/core/NEON/kernels/arm_gemm/kernels/a64_smallK_hybrid_u8u32_dot_4x8/generic.cpp",
+ "src/core/NEON/kernels/arm_gemm/kernels/sve_hybrid_bf16fp32_dot_4VLx4/generic.cpp",
+ "src/core/NEON/kernels/arm_gemm/kernels/sve_hybrid_bf16fp32_mmla_4VLx4/generic.cpp",
+ "src/core/NEON/kernels/arm_gemm/kernels/sve_hybrid_bf16fp32_mmla_6VLx2/generic.cpp",
+ "src/core/NEON/kernels/arm_gemm/kernels/sve_hybrid_bf16fp32_mmla_8VLx2/generic.cpp",
"src/core/NEON/kernels/arm_gemm/kernels/sve_hybrid_fp16_mla_4VLx4/generic.cpp",
"src/core/NEON/kernels/arm_gemm/kernels/sve_hybrid_fp32_mla_4VLx4/generic.cpp",
"src/core/NEON/kernels/arm_gemm/kernels/sve_hybrid_s8s32_dot_4VLx4/generic.cpp",
"src/core/NEON/kernels/arm_gemm/kernels/sve_hybrid_u8u32_dot_4VLx4/generic.cpp",
+ "src/core/NEON/kernels/arm_gemm/kernels/sve_interleaved_bf16fp32_dot_3VLx8/generic.cpp",
+ "src/core/NEON/kernels/arm_gemm/kernels/sve_interleaved_bf16fp32_mmla_3VLx8/generic.cpp",
"src/core/NEON/kernels/arm_gemm/kernels/sve_interleaved_fp16_mla_3VLx8/generic.cpp",
"src/core/NEON/kernels/arm_gemm/kernels/sve_interleaved_fp32_mla_3VLx8/generic.cpp",
"src/core/NEON/kernels/arm_gemm/kernels/sve_interleaved_s8s32_dot_3VLx8/generic.cpp",
"src/core/NEON/kernels/arm_gemm/kernels/sve_interleaved_s8s32_mmla_3VLx8/generic.cpp",
"src/core/NEON/kernels/arm_gemm/kernels/sve_interleaved_u8u32_dot_3VLx8/generic.cpp",
"src/core/NEON/kernels/arm_gemm/kernels/sve_interleaved_u8u32_mmla_3VLx8/generic.cpp",
+ "src/core/NEON/kernels/arm_gemm/kernels/sve_native_bf16fp32_dot_4VLx4/generic.cpp",
"src/core/NEON/kernels/arm_gemm/kernels/sve_native_fp16_mla_4VLx4/generic.cpp",
"src/core/NEON/kernels/arm_gemm/kernels/sve_native_fp32_mla_4VLx4/generic.cpp",
"src/core/NEON/kernels/arm_gemm/kernels/sve_native_s8s32_dot_4VLx4/generic.cpp",
"src/core/NEON/kernels/arm_gemm/kernels/sve_native_u8u32_dot_4VLx4/generic.cpp",
+ "src/core/NEON/kernels/arm_gemm/kernels/sve_smallK_hybrid_fp32_mla_1VLx8/generic.cpp",
"src/core/NEON/kernels/arm_gemm/kernels/sve_smallK_hybrid_s8s32_dot_1VLx8/generic.cpp",
"src/core/NEON/kernels/arm_gemm/kernels/sve_smallK_hybrid_u8u32_dot_1VLx8/generic.cpp",
diff --git a/SConstruct b/SConstruct
index 09df1937a..a7d2c108d 100644
--- a/SConstruct
+++ b/SConstruct
@@ -206,7 +206,7 @@ elif 'v8' in env['arch']:
env.Append(CXXFLAGS = ['-march=armv8-a'])
if 'v8.6-a' in env['arch']:
- env.Append(CPPDEFINES = ['V8P6', 'ARM_COMPUTE_FORCE_BF16'])
+ env.Append(CPPDEFINES = ['V8P6', 'V8P6_BF', 'ARM_COMPUTE_FORCE_BF16'])
elif 'x86' in env['arch']:
if env['estate'] == '32':
diff --git a/arm_compute/core/NEON/kernels/NEIm2ColKernel.h b/arm_compute/core/NEON/kernels/NEIm2ColKernel.h
index 292e94127..1c358b379 100644
--- a/arm_compute/core/NEON/kernels/NEIm2ColKernel.h
+++ b/arm_compute/core/NEON/kernels/NEIm2ColKernel.h
@@ -77,7 +77,8 @@ public:
/** Set the input and output of the kernel.
*
* @param[in] input The input tensor to convert. 3 lower dimensions represent a single input [width, height, IFM],
- * while every optional dimension from 4 and above represent a batch of inputs. Data types supported: QASYMM8/QASYMM8_SIGNED/F16/F32
+ * while every optional dimension from 4 and above represent a batch of inputs.
+ * Data types supported: QASYMM8/QASYMM8_SIGNED/BFLOAT16/F16/F32
* Note: QASYMM8 works only for has_bias = false
* @param[out] output The output tensor. Data types supported: Same as @p input
* @param[in] kernel_dims The kernel dimensions (width and height).
@@ -91,7 +92,8 @@ public:
/** Static function to check if given info will lead to a valid configuration of @ref NEIm2ColKernel
*
* @param[in] input The input tensor to convert. 3 lower dimensions represent a single input [width, height, IFM],
- * while every optional dimension from 4 and above represent a batch of inputs. Data types supported: QASYMM8/QASYMM8_SIGNED/F16/F32
+ * while every optional dimension from 4 and above represent a batch of inputs.
+ * Data types supported: QASYMM8/QASYMM8_SIGNED/BFLOAT16/F16/F32
* Note: QASYMM8 works only for has_bias = false
* @param[in] output The output tensor. Data types supported: Same as @p input
* @param[in] kernel_dims The kernel dimensions (width and height).
diff --git a/arm_compute/core/NEON/kernels/NEWeightsReshapeKernel.h b/arm_compute/core/NEON/kernels/NEWeightsReshapeKernel.h
index 46be5233e..b68cb50c7 100644
--- a/arm_compute/core/NEON/kernels/NEWeightsReshapeKernel.h
+++ b/arm_compute/core/NEON/kernels/NEWeightsReshapeKernel.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017-2019 ARM Limited.
+ * Copyright (c) 2017-2020 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
@@ -76,7 +76,7 @@ public:
*
* @param[in] input The input tensor to convert. Weights are 4D tensor with dimensions [kernel_x, kernel_y, IFM, OFM] if shared,
* and 5D tensor with dimensions [kernel_x, kernel_y, IFM, OFM, num_patches] if unshared.
- * Data types supported: QASYMM8/QASYMM8_SIGNED/QSYMM8_PER_CHANNEL/FP16/F32
+ * Data types supported: QASYMM8/QASYMM8_SIGNED/QSYMM8_PER_CHANNEL/BFLOAT16/FP16/F32
* @param[in] bias The shared biases tensor to append. Bias is 1D tensor with dimensions [OFM] if shared and 2D tensor with
* dimensions [OFM, num_patches] if unshared. Data types supported: Same as @p input
* @warning Appending biases to weights reshaped matrix is not supported for quantized asymmetric types.
@@ -87,7 +87,7 @@ public:
*
* @param[in] input The input tensor to convert. Weights are 4D tensor with dimensions [kernel_x, kernel_y, IFM, OFM] if shared,
* and 5D tensor with dimensions [kernel_x, kernel_y, IFM, OFM, num_patches] if unshared.
- * Data types supported: QASYMM8/QASYMM8_SIGNED/QSYMM8_PER_CHANNEL/F16/F32
+ * Data types supported: QASYMM8/QASYMM8_SIGNED/QSYMM8_PER_CHANNEL/BFLOAT16/F16/F32
* @param[in] biases The shared biases tensor to append. Bias is 1D tensor with dimensions [OFM] if shared and 2D tensor with
* dimensions [OFM, num_patches] if unshared. Data types supported: Same as @p input
* @warning Appending biases to weights reshaped matrix is not supported for quantized asymmetric types.
diff --git a/arm_compute/core/Utils.h b/arm_compute/core/Utils.h
index 8577046af..eff6157b1 100644
--- a/arm_compute/core/Utils.h
+++ b/arm_compute/core/Utils.h
@@ -1342,7 +1342,7 @@ void print_consecutive_elements_impl(std::ostream &s, const T *ptr, unsigned int
}
else if(std::is_same<typename std::decay<T>::type, bfloat16>::value)
{
- // We use T instead of print_type here is because the std::is_floating_point<bfloat> returns false and then the print_type becomes int.
+ // We use T instead of print_type here is because the std::is_floating_point<bfloat16> returns false and then the print_type becomes int.
s << std::right << float(ptr[i]) << element_delim;
}
else
diff --git a/arm_compute/runtime/NEON/functions/NEGEMM.h b/arm_compute/runtime/NEON/functions/NEGEMM.h
index f08bd9fac..c87e806d0 100644
--- a/arm_compute/runtime/NEON/functions/NEGEMM.h
+++ b/arm_compute/runtime/NEON/functions/NEGEMM.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017-2019 ARM Limited.
+ * Copyright (c) 2017-2020 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
@@ -74,7 +74,7 @@ public:
* @note GEMM: General Matrix Multiply - [alpha * A * B + beta * C].
* @note GEMM: The tensors a, b, c, d must have the same data type. You should not mix data types when calling this function.
*
- * @param[in] a First input tensor (Matrix A or Vector A). Data type supported: F16/F32
+ * @param[in] a First input tensor (Matrix A or Vector A). Data type supported: BLOAT16/F16/F32
* @param[in] b Second input tensor (Matrix B). Data type supported: same as @p a
* @param[in] c Third input tensor (Matrix C). It can be a nullptr if just the multiplication between @p a and @p b is needed. Data type supported: same as @p a
* @param[out] d Output tensor. Data type supported: same as @p a
@@ -86,7 +86,7 @@ public:
void configure(const ITensor *a, const ITensor *b, const ITensor *c, ITensor *d, float alpha, float beta, const GEMMInfo &gemm_info = GEMMInfo());
/** Static function to check if given info will lead to a valid configuration of @ref NEGEMM.
*
- * @param[in] a First input tensor info (Matrix or Vector A). Data types supported: F16/F32
+ * @param[in] a First input tensor info (Matrix or Vector A). Data types supported: BLOAT16/F16/F32
* @param[in] b Second input tensor info (Matrix B). Data type supported: same as @p a.
* @param[in] c Third input tensor info (Matrix C). It can be a nullptr if just the multiplication between @p a and @p b is needed. Data type supported: same as @p a.
* @param[out] output Output tensor info. Data type supported: same as @p a
diff --git a/arm_compute/runtime/NEON/functions/NEGEMMConvolutionLayer.h b/arm_compute/runtime/NEON/functions/NEGEMMConvolutionLayer.h
index 660f55953..5368384b1 100644
--- a/arm_compute/runtime/NEON/functions/NEGEMMConvolutionLayer.h
+++ b/arm_compute/runtime/NEON/functions/NEGEMMConvolutionLayer.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017-2019 ARM Limited.
+ * Copyright (c) 2017-2020 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
@@ -63,18 +63,22 @@ public:
NEConvolutionLayerReshapeWeights &operator=(NEConvolutionLayerReshapeWeights &&) = default;
/** Set the input and output tensors.
*
- * @param[in] weights Weights tensor. Weights are 4D tensor with dimensions [kernel_x, kernel_y, IFM, OFM]. Data type supported: QASYMM8/QASYMM8_SIGNED/QSYMM8_PER_CHANNEL/F16/F32.
+ * @param[in] weights Weights tensor. Weights are 4D tensor with dimensions [kernel_x, kernel_y, IFM, OFM].
+ * Data type supported: QASYMM8/QASYMM8_SIGNED/QSYMM8_PER_CHANNEL/BFLOAT16/F16/F32.
* @param[in] biases Biases tensor. Shared biases supported. Biases are 1D tensor with dimensions [OFM].
- * Data type supported: Same as @p weights, S32 if @p weights is QASYMM8/QASYMM8_SIGNED.
- * @param[out] output Destination tensor. Data types supported: Same as @p weights.
+ * Data type supported: Same as @p weights, S32 if @p weights is QASYMM8/QASYMM8_SIGNED, FP32 if @p weights is BLOAT16
+ * @param[out] output Destination tensor.
+ * Data types supported: Same as @p weights, FP32 if @p weights is BLOAT16
*/
void configure(const ITensor *weights, const ITensor *biases, ITensor *output);
/** Static function to check if given info will lead to a valid configuration of @ref NEConvolutionLayerReshapeWeights
*
- * @param[in] weights Weights tensor info. Weights are 4D tensor with dimensions [kernel_x, kernel_y, IFM, OFM]. Data type supported: QASYMM8/QASYMM8_SIGNED/QSYMM8_PER_CHANNEL/F16/F32.
+ * @param[in] weights Weights tensor info. Weights are 4D tensor with dimensions [kernel_x, kernel_y, IFM, OFM].
+ * Data type supported: QASYMM8/QASYMM8_SIGNED/QSYMM8_PER_CHANNEL/BFLOAT16/F16/F32.
* @param[in] biases Biases tensor. Shared biases supported. Biases are 1D tensor with dimensions [OFM].
- * Data type supported: Same as @p weights, S32 if @p weights is QASYMM8/QASYMM8_SIGNED.
- * @param[in] output Destination tensor. Data types supported: Same as @p weights.
+ * Data type supported: Same as @p weights, S32 if @p weights is QASYMM8/QASYMM8_SIGNED, FP32 if @p weights is BLOAT16
+ * @param[in] output Destination tensor.
+ * Data types supported: Same as @p weights FP32 if @p weights is BLOAT16
*
* @return an error status
*/
@@ -136,7 +140,7 @@ private:
/** Basic function to compute the convolution layer. This function calls the following NEON kernels/functions:
*
* -# @ref NEIm2ColKernel
- * -# @ref NEGEMM (if the data type is FP32 or FP16)
+ * -# @ref NEGEMM (if the data type is BLOAT16/FP16/FP32)
* -# @ref NEGEMMLowpMatrixMultiplyCore (if the data type is QASYMM8/QASYMM8_SIGNED)
* -# @ref NEGEMMLowpQuantizeDownInt32ToUint8ScaleByFixedPoint (if the data type is QASYMM8/QASYMM8_SIGNED)
* -# @ref NEArithmeticAdditionKernel (if biases != nullptr and we have a 1x1 convolution with the NHWC data layout)
@@ -160,8 +164,9 @@ public:
*
* @param[in] input Source tensor. 3 lower dimensions represent a single input [width, height, IFM],
* while every optional dimension from 4 and above represent a batch of inputs.
- * Data types supported: QASYMM8/QASYMM8_SIGNED/F16/F32.
- * @param[in] weights Weights tensor. Weights are 4D tensor with dimensions [kernel_x, kernel_y, IFM, OFM]. Data type supported: QASYMM8/QASYMM8_SIGNED/QSYMM8_PER_CHANNEL/F16/F32.
+ * Data types supported: QASYMM8/QASYMM8_SIGNED/BFLOAT16/F16/F32.
+ * @param[in] weights Weights tensor. Weights are 4D tensor with dimensions [kernel_x, kernel_y, IFM, OFM].
+ * Data type supported: QASYMM8/QASYMM8_SIGNED/QSYMM8_PER_CHANNEL/BFLOAT16/F16/F32.
* @param[in] biases Biases tensor. Shared biases supported. Biases are 1D tensor with dimensions [OFM].
* Data type supported: Should match @p input data type, except for input of QASYMM8/QASYMM8_SIGNED type where biases should be of S32 type.
* @param[out] output Destination tensor. 3 lower dimensions represent a single output [width, height, OFM], while the rest represent batch of outputs.
@@ -179,8 +184,9 @@ public:
*
* @param[in] input Source tensor info. 3 lower dimensions represent a single input [width, height, IFM],
* while every optional dimension from 4 and above represent a batch of inputs.
- * Data types supported: QASYMM8/QASYMM8_SIGNED/F16/F32.
- * @param[in] weights Weights tensor info. Weights are 4D tensor with dimensions [kernel_x, kernel_y, IFM, OFM]. Data type supported: QASYMM8/QASYMM8_SIGNED/QSYMM8_PER_CHANNEL/F16/F32.
+ * Data types supported: QASYMM8/QASYMM8_SIGNED/BFLOAT16/F16/F32.
+ * @param[in] weights Weights tensor info. Weights are 4D tensor with dimensions [kernel_x, kernel_y, IFM, OFM].
+ * Data type supported: QASYMM8/QASYMM8_SIGNED/QSYMM8_PER_CHANNEL/BFLOAT16/F16/F32.
* @param[in] biases Biases tensor info. Shared biases supported. Biases are 1D tensor with dimensions [OFM].
* Data type supported: Should match @p input data type, except for input of QASYMM8/QASYMM8_SIGNED type where biases should be of S32 type.
* @param[in] output Destination tensor info. 3 lower dimensions represent a single output [width, height, OFM], while the rest represent batch of outputs.
@@ -204,8 +210,8 @@ public:
private:
/** Configures the appropriate matrix multiply routine
*
- * @param[in] input Input tensor. Data types supported: QASYMM8/QASYMM8_SIGNED/F16/F32.
- * @param[in] weights Weights tensor. Data type supported: QASYMM8/QASYMM8_SIGNED/QSYMM8_PER_CHANNEL/F16/F32.
+ * @param[in] input Input tensor. Data types supported: QASYMM8/QASYMM8_SIGNED/BFLOAT16/F16/F32.
+ * @param[in] weights Weights tensor. Data type supported: QASYMM8/QASYMM8_SIGNED/QSYMM8_PER_CHANNEL/BFLOAT16/F16/F32.
* @param[in] biases Biases tensor. Shared biases supported. Biases are 1D tensor with dimensions [OFM].
* Data type supported: Should match @p input data type, except for input of QASYMM8/QASYMM8_SIGNED type where biases should be of S32 type.
* @param[out] output Output tensor. Data types supported: Same as @p input,
@@ -216,8 +222,8 @@ private:
void configure_mm(const ITensor *input, const ITensor *weights, const ITensor *biases, ITensor *output, const ActivationLayerInfo &act_info = ActivationLayerInfo(), int gemm_3d_depth = 1);
/** Static function to check if given info will lead to a valid configuration of @ref NEGEMMConvolutionLayer matrix multiply routines
*
- * @param[in] input Input tensor info. Data types supported: QASYMM8/QASYMM8_SIGNED/F16/F32.
- * @param[in] weights Weights tensor info. Data type supported: QASYMM8/QASYMM8_SIGNED/QSYMM8_PER_CHANNEL/F16/F32.
+ * @param[in] input Input tensor info. Data types supported: QASYMM8/QASYMM8_SIGNED/BFLOAT16/F16/F32.
+ * @param[in] weights Weights tensor info. Data type supported: QASYMM8/QASYMM8_SIGNED/QSYMM8_PER_CHANNEL/BFLOAT16/F16/F32.
* @param[in] biases Biases tensor info. Shared biases supported. Biases are 1D tensor with dimensions [OFM].
* Data type supported: Should match @p input data type, except for input of QASYMM8/QASYMM8_SIGNED type where biases should be of S32 type.
* @param[in] output Output tensor info. Data types supported: Same as @p input,
@@ -232,8 +238,8 @@ private:
int gemm_3d_depth = 1, bool skip_im2col = false);
/** Static function to check if GEMM3D is supported in @ref NEGEMM or in @ref NEGEMMLowpMatrixMultiplyCore
*
- * @param[in] input_info Input tensor info. Data types supported: QASYMM8/QASYMM8_SIGNED/F16/F32.
- * @param[in] weights_info Weights tensor info. Data types supported: QASYMM8/QASYMM8_SIGNED/F16/F32.
+ * @param[in] input_info Input tensor info. Data types supported: QASYMM8/QASYMM8_SIGNED/BFLOAT16/F16/F32.
+ * @param[in] weights_info Weights tensor info. Data types supported: QASYMM8/QASYMM8_SIGNED/BFLOAT16/F16/F32.
* @param[in] act_info Activation layer information in case of a fused activation. Only RELU, BOUNDED_RELU and LU_BOUNDED_RELU supported.
* @param[in] gemm_3d_depth Depth of GEMM 3D
* @param[in] skip_im2col Flag which specifies if im2col has to be skipped. i.e. 1x1 convolution with NHWC data layout
diff --git a/arm_compute/runtime/NEON/functions/NEIm2Col.h b/arm_compute/runtime/NEON/functions/NEIm2Col.h
index ac1b2674a..cb905a365 100644
--- a/arm_compute/runtime/NEON/functions/NEIm2Col.h
+++ b/arm_compute/runtime/NEON/functions/NEIm2Col.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017-2019 ARM Limited.
+ * Copyright (c) 2017-2020 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
@@ -44,7 +44,8 @@ public:
/** Configure the im2col NEON kernel
*
* @param[in] input The input tensor to convert. 3 lower dimensions represent a single input [width, height, IFM],
- * while every optional dimension from 4 and above represent a batch of inputs. Data types supported: QASYMM8/QASYMM8_SIGNED/F16/F32
+ * while every optional dimension from 4 and above represent a batch of inputs.
+ * Data types supported: QASYMM8/QASYMM8_SIGNED/BFLOAT16/F16/F32
* Note: QASYMM8 works only for has_bias = false
* @param[out] output The output tensor. Data types supported: Same as @p input
* @param[in] kernel_dims The kernel dimensions (width and height).
@@ -58,7 +59,8 @@ public:
/** Static function to check if given info will lead to a valid configuration of @ref NEIm2Col
*
* @param[in] input The input tensor to convert. 3 lower dimensions represent a single input [width, height, IFM],
- * while every optional dimension from 4 and above represent a batch of inputs. Data types supported: QASYMM8/QASYMM8_SIGNED/F16/F32
+ * while every optional dimension from 4 and above represent a batch of inputs.
+ * Data types supported: QASYMM8/QASYMM8_SIGNED/BFLOAT16/F16/F32
* Note: QASYMM8 works only for has_bias = false
* @param[in] output The output tensor. Data types supported: Same as @p input
* @param[in] kernel_dims The kernel dimensions (width and height).
diff --git a/docs/00_introduction.dox b/docs/00_introduction.dox
index a0018b293..dd5543678 100644
--- a/docs/00_introduction.dox
+++ b/docs/00_introduction.dox
@@ -246,6 +246,21 @@ If there is more than one release in a month then an extra sequential number is
@subsection S2_2_changelog Changelog
+v20.02 Public major release
+ - Various bug fixes.
+ - Various optimisations.
+ - Added Bfloat16 type support
+ - Added Bfloat16 support in:
+ - @ref NEWeightsReshapeKernel
+ - @ref NEConvolutionLayerReshapeWeights
+ - @ref NEIm2ColKernel
+ - @ref NEIm2Col
+ - @ref NEDepthConvertLayerKernel
+ - @ref NEDepthConvertLayer
+ - @ref NEGEMMConvolutionLayer
+ - @ref NEGEMMConvolutionLayer
+ - @ref NEGEMMAssemblyDispatch
+
v20.02.1 Maintenance release
- Added Android-NN build script.
diff --git a/src/core/NEON/kernels/NEIm2ColKernel.cpp b/src/core/NEON/kernels/NEIm2ColKernel.cpp
index 1325cb72c..8a3f7cd83 100644
--- a/src/core/NEON/kernels/NEIm2ColKernel.cpp
+++ b/src/core/NEON/kernels/NEIm2ColKernel.cpp
@@ -49,7 +49,7 @@ Status validate_arguments(const ITensorInfo *input, const ITensorInfo *output, c
bool has_bias, const Size2D &dilation, unsigned int num_groups)
{
ARM_COMPUTE_RETURN_ERROR_ON_CPU_F16_UNSUPPORTED(input);
- ARM_COMPUTE_RETURN_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(input, 1, DataType::QASYMM8, DataType::QASYMM8_SIGNED, DataType::F16, DataType::F32);
+ ARM_COMPUTE_RETURN_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(input, 1, DataType::QASYMM8, DataType::QASYMM8_SIGNED, DataType::BFLOAT16, DataType::F16, DataType::F32);
ARM_COMPUTE_RETURN_ERROR_ON(is_data_type_quantized(input->data_type()) && has_bias);
ARM_COMPUTE_RETURN_ERROR_ON((dilation.x() < 1) || (dilation.y() < 1));
ARM_COMPUTE_RETURN_ERROR_ON_MSG(num_groups > 1, "Number of groups greater than one are not supported on NEON");
@@ -376,6 +376,11 @@ void NEIm2ColKernel::configure(const ITensor *input, ITensor *output, const Size
case DataType::F32:
_func = (!conv_info.has_padding()) ? &NEIm2ColKernel::run_im2col<float, false, true> : &NEIm2ColKernel::run_im2col<float, true, true>;
break;
+#if defined(__ARM_FEATURE_BF16_VECTOR_ARITHMETIC) || defined(ARM_COMPUTE_FORCE_BF16)
+ case DataType::BFLOAT16:
+ _func = (!conv_info.has_padding()) ? &NEIm2ColKernel::run_im2col<bfloat16, false, true> : &NEIm2ColKernel::run_im2col<bfloat16, true, true>;
+ break;
+#endif /* defined(__ARM_FEATURE_BF16_VECTOR_ARITHMETIC) || defined(ARM_COMPUTE_FORCE_BF16) */
#ifdef __ARM_FEATURE_FP16_VECTOR_ARITHMETIC
case DataType::F16:
_func = (!conv_info.has_padding()) ? &NEIm2ColKernel::run_im2col<float16_t, false, true> : &NEIm2ColKernel::run_im2col<float16_t, true, true>;
@@ -397,6 +402,11 @@ void NEIm2ColKernel::configure(const ITensor *input, ITensor *output, const Size
case DataType::F32:
_func = (!conv_info.has_padding()) ? &NEIm2ColKernel::run_im2col<float, false, false> : &NEIm2ColKernel::run_im2col<float, true, false>;
break;
+#if defined(__ARM_FEATURE_BF16_VECTOR_ARITHMETIC) || defined(ARM_COMPUTE_FORCE_BF16)
+ case DataType::BFLOAT16:
+ _func = (!conv_info.has_padding()) ? &NEIm2ColKernel::run_im2col<bfloat16, false, false> : &NEIm2ColKernel::run_im2col<bfloat16, true, false>;
+ break;
+#endif /* defined(__ARM_FEATURE_BF16_VECTOR_ARITHMETIC) || defined(ARM_COMPUTE_FORCE_BF16) */
#ifdef __ARM_FEATURE_FP16_VECTOR_ARITHMETIC
case DataType::F16:
_func = (!conv_info.has_padding()) ? &NEIm2ColKernel::run_im2col<float16_t, false, false> : &NEIm2ColKernel::run_im2col<float16_t, true, false>;
diff --git a/src/core/NEON/kernels/NEWeightsReshapeKernel.cpp b/src/core/NEON/kernels/NEWeightsReshapeKernel.cpp
index aa43ad587..d376d5308 100644
--- a/src/core/NEON/kernels/NEWeightsReshapeKernel.cpp
+++ b/src/core/NEON/kernels/NEWeightsReshapeKernel.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017-2019 ARM Limited.
+ * Copyright (c) 2017-2020 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
@@ -51,7 +51,7 @@ Status validate_arguments(const ITensorInfo *input, const ITensorInfo *biases, c
//Note: ARM_COMPUTE_RETURN_ERROR_ON_CPU_F16_UNSUPPORTED(input) is not needed here as this kernel doesn't use NEON FP16 instructions.
ARM_COMPUTE_RETURN_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(input, 1,
DataType::QASYMM8, DataType::QASYMM8_SIGNED, DataType::QSYMM8_PER_CHANNEL,
- DataType::F16, DataType::F32);
+ DataType::BFLOAT16, DataType::F16, DataType::F32);
ARM_COMPUTE_RETURN_ERROR_ON_NULLPTR(output);
if(biases != nullptr)
diff --git a/src/core/NEON/kernels/arm_gemm/bfloat.hpp b/src/core/NEON/kernels/arm_gemm/bfloat.hpp
new file mode 100644
index 000000000..547c66815
--- /dev/null
+++ b/src/core/NEON/kernels/arm_gemm/bfloat.hpp
@@ -0,0 +1,33 @@
+/*
+ * Copyright (c) 2020 ARM Limited.
+ *
+ * SPDX-License-Identifier: MIT
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+#pragma once
+
+#include "support/Bfloat16.h"
+
+namespace arm_gemm {
+
+using bfloat16 = arm_compute::bfloat16;
+
+} // namespace arm_gemm
+
diff --git a/src/core/NEON/kernels/arm_gemm/gemm_bf16.cpp b/src/core/NEON/kernels/arm_gemm/gemm_bf16.cpp
new file mode 100644
index 000000000..10fee472f
--- /dev/null
+++ b/src/core/NEON/kernels/arm_gemm/gemm_bf16.cpp
@@ -0,0 +1,158 @@
+/*
+ * Copyright (c) 2017-2018 ARM Limited.
+ *
+ * SPDX-License-Identifier: MIT
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+#include "arm_gemm.hpp"
+#include "gemm_common.hpp"
+#include "gemm_hybrid.hpp"
+#include "gemm_implementation.hpp"
+#include "gemm_interleaved.hpp"
+#include "gemm_native.hpp"
+#include "gemv_batched.hpp"
+#include "gemv_native_transposed.hpp"
+#include "gemv_pretransposed.hpp"
+
+#include "kernels/a64_interleaved_bf16fp32_dot_12x8.hpp"
+#include "kernels/a64_interleaved_bf16fp32_mmla_12x8.hpp"
+#include "kernels/a64_sgemm_12x8.hpp"
+#include "kernels/a32_sgemm_8x6.hpp"
+#include "kernels/sve_interleaved_bf16fp32_dot_3VLx8.hpp"
+#include "kernels/sve_interleaved_bf16fp32_mmla_3VLx8.hpp"
+#include "kernels/sve_native_bf16fp32_dot_4VLx4.hpp"
+#include "kernels/sve_hybrid_bf16fp32_dot_4VLx4.hpp"
+#include "kernels/sve_hybrid_bf16fp32_mmla_4VLx4.hpp"
+#include "kernels/sve_hybrid_bf16fp32_mmla_6VLx2.hpp"
+#include "kernels/sve_hybrid_bf16fp32_mmla_8VLx2.hpp"
+
+#include "bfloat.hpp"
+
+namespace arm_gemm {
+
+
+static const GemmImplementation<bfloat16, float> gemm_bf16_methods[] =
+{
+#ifdef V8P6_BF
+# ifdef __ARM_FEATURE_SVE
+{
+ GemmMethod::GEMM_HYBRID,
+ "hybrid_bf16fp32_mmla_6VLx2",
+ [](const GemmArgs &args) { return (args._Ksize>=8 && !args._trA && args._pretransposed_hint); },
+ [](const GemmArgs &args) { return ((args._Msize <= 4) && (args._Nsize <= hybrid_bf16fp32_mmla_6VLx2::out_width())); },
+ [](const GemmArgs &args) { return new GemmHybrid<hybrid_bf16fp32_mmla_6VLx2, bfloat16, float>(args); }
+},
+{
+ GemmMethod::GEMM_HYBRID,
+ "hybrid_bf16fp32_mmla_8VLx2",
+ [](const GemmArgs &args) { return (args._Ksize>=8 && !args._trA && args._pretransposed_hint); },
+ [](const GemmArgs &args) { return (args._Msize <= 4); },
+ [](const GemmArgs &args) { return new GemmHybrid<hybrid_bf16fp32_mmla_8VLx2, bfloat16, float>(args); }
+},
+{
+ GemmMethod::GEMM_HYBRID,
+ "hybrid_bf16fp32_mmla_4VLx4",
+ [](const GemmArgs &args) { return (args._Ksize>=8 && !args._trA && args._pretransposed_hint); },
+ [](const GemmArgs &args) { return ((args._Ksize <= 128) && (args._Nsize <= 128)); },
+ [](const GemmArgs &args) { return new GemmHybrid<hybrid_bf16fp32_mmla_4VLx4, bfloat16, float>(args); }
+},
+{
+ GemmMethod::GEMM_HYBRID,
+ "hybrid_bf16fp32_dot_4VLx4",
+ [](const GemmArgs &args) { return (args._Ksize>=8 && !args._trA && args._pretransposed_hint); },
+ [](const GemmArgs &args) { return ((args._Ksize <= 128) && (args._Nsize <= 128)); },
+ [](const GemmArgs &args) { return new GemmHybrid<hybrid_bf16fp32_dot_4VLx4, bfloat16, float>(args); }
+},
+{ // gemm_bf16_native
+ GemmMethod::GEMM_NATIVE,
+ "native_bf16fp32_dot_4VLx4",
+ [](const GemmArgs &args) { return (args._Ksize>=8 && !args._trA && !args._trB); },
+ [](const GemmArgs &args) { return ((args._Ksize <= 128) && (args._Nsize <= 128)); },
+ [](const GemmArgs &args) { return new GemmNative<native_bf16fp32_dot_4VLx4, bfloat16, float>(args); }
+},
+{ // gemm_bf16_interleaved
+ GemmMethod::GEMM_INTERLEAVED,
+ "interleaved_bf16fp32_mmla_3VLx8",
+ [](const GemmArgs &args) { return (args._Ksize>4); },
+ nullptr,
+ [](const GemmArgs &args) { return new GemmInterleaved<interleaved_bf16fp32_mmla_3VLx8, bfloat16, float>(args); }
+},
+{ // gemm_bf16_interleaved
+ GemmMethod::GEMM_INTERLEAVED,
+ "interleaved_bf16fp32_dot_3VLx8",
+ [](const GemmArgs &args) { return (args._Ksize>2); },
+ nullptr,
+ [](const GemmArgs &args) { return new GemmInterleaved<interleaved_bf16fp32_dot_3VLx8, bfloat16, float>(args); }
+},
+# endif // SVE
+{ // gemm_bf16_interleaved
+ GemmMethod::GEMM_INTERLEAVED,
+ "interleaved_bf16fp32_mmla_12x8",
+ [](const GemmArgs &args) { return (args._Ksize>4); },
+ nullptr,
+ [](const GemmArgs &args) { return new GemmInterleaved<interleaved_bf16fp32_mmla_12x8, bfloat16, float>(args); }
+},
+{ // gemm_bf16_interleaved
+ GemmMethod::GEMM_INTERLEAVED,
+ "interleaved_bf16fp32_dot_12x8",
+ [](const GemmArgs &args) { return (args._Ksize>2); },
+ nullptr,
+ [](const GemmArgs &args) { return new GemmInterleaved<interleaved_bf16fp32_dot_12x8, bfloat16, float>(args); }
+},
+#endif // V8P6_BF
+#ifdef __aarch64__
+{
+ GemmMethod::GEMM_INTERLEAVED,
+ "sgemm_12x8",
+ nullptr,
+ nullptr,
+ [](const GemmArgs &args) { return new GemmInterleaved<sgemm_12x8, bfloat16, float>(args); }
+},
+#elif defined(__arm__)
+{
+ GemmMethod::GEMM_INTERLEAVED,
+ "sgemm_8x6",
+ nullptr,
+ nullptr,
+ [](const GemmArgs &args) { return new GemmInterleaved<sgemm_8x6, bfloat16, float>(args); }
+},
+#else
+# error "Unknown Architecture"
+#endif
+{
+ GemmMethod::DEFAULT,
+ "",
+ nullptr,
+ nullptr,
+ nullptr
+}
+};
+
+template<>
+const GemmImplementation<bfloat16, float> *gemm_implementation_list<bfloat16, float>() {
+ return gemm_bf16_methods;
+}
+
+/* Explicitly instantiate the external functions for these types. */
+template UniqueGemmCommon<bfloat16, float> gemm<bfloat16, float, Nothing>(const GemmArgs &args, const Nothing &);
+template KernelDescription get_gemm_method<bfloat16, float, Nothing>(const GemmArgs &args, const Nothing &);
+template std::vector<KernelDescription> get_compatible_kernels<bfloat16, float, Nothing>(const GemmArgs &args, const Nothing &);
+
+} // namespace arm_gemm
diff --git a/src/core/NEON/kernels/arm_gemm/gemm_fp32.cpp b/src/core/NEON/kernels/arm_gemm/gemm_fp32.cpp
index 35493a609..96e3ce832 100644
--- a/src/core/NEON/kernels/arm_gemm/gemm_fp32.cpp
+++ b/src/core/NEON/kernels/arm_gemm/gemm_fp32.cpp
@@ -44,6 +44,7 @@
#include "kernels/sve_hybrid_fp32_mla_4VLx4.hpp"
#include "kernels/sve_interleaved_fp32_mla_3VLx8.hpp"
#include "kernels/sve_native_fp32_mla_4VLx4.hpp"
+#include "kernels/sve_smallK_hybrid_fp32_mla_1VLx8.hpp"
namespace arm_gemm {
@@ -73,7 +74,14 @@ static const GemmImplementation<float, float> gemm_fp32_methods[] =
},
#ifdef __ARM_FEATURE_SVE
-// SVE native / hybrid methods
+// SVE smallk / native / hybrid methods
+{
+ GemmMethod::GEMM_HYBRID,
+ "smallK_hybrid_fp32_mla_1VLx8",
+ [](const GemmArgs &args) { return (args._Ksize <= 24) && !args._trA && args._pretransposed_hint; },
+ nullptr,
+ [](const GemmArgs &args) { return new GemmHybrid<smallK_hybrid_fp32_mla_1VLx8, float, float>(args); }
+},
{
GemmMethod::GEMM_HYBRID,
"hybrid_fp32_mla_4VLx4",
diff --git a/src/core/NEON/kernels/arm_gemm/kernels/a32_sgemm_8x6.hpp b/src/core/NEON/kernels/arm_gemm/kernels/a32_sgemm_8x6.hpp
index 234972270..554c9c712 100644
--- a/src/core/NEON/kernels/arm_gemm/kernels/a32_sgemm_8x6.hpp
+++ b/src/core/NEON/kernels/arm_gemm/kernels/a32_sgemm_8x6.hpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017-2019 Arm Limited.
+ * Copyright (c) 2017-2018 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
diff --git a/src/core/NEON/kernels/arm_gemm/kernels/a64_gemm_s16_12x8.hpp b/src/core/NEON/kernels/arm_gemm/kernels/a64_gemm_s16_12x8.hpp
index a19e07d30..8700c42f5 100644
--- a/src/core/NEON/kernels/arm_gemm/kernels/a64_gemm_s16_12x8.hpp
+++ b/src/core/NEON/kernels/arm_gemm/kernels/a64_gemm_s16_12x8.hpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017-2019 Arm Limited.
+ * Copyright (c) 2017-2018 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
diff --git a/src/core/NEON/kernels/arm_gemm/kernels/a64_gemm_s8_12x8.hpp b/src/core/NEON/kernels/arm_gemm/kernels/a64_gemm_s8_12x8.hpp
index 941281f24..cc6c583b3 100644
--- a/src/core/NEON/kernels/arm_gemm/kernels/a64_gemm_s8_12x8.hpp
+++ b/src/core/NEON/kernels/arm_gemm/kernels/a64_gemm_s8_12x8.hpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017-2019 Arm Limited.
+ * Copyright (c) 2017-2018 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
diff --git a/src/core/NEON/kernels/arm_gemm/kernels/a64_gemm_s8_12x8/a55r1.cpp b/src/core/NEON/kernels/arm_gemm/kernels/a64_gemm_s8_12x8/a55r1.cpp
index d80d45ef1..a2e0cbd0e 100644
--- a/src/core/NEON/kernels/arm_gemm/kernels/a64_gemm_s8_12x8/a55r1.cpp
+++ b/src/core/NEON/kernels/arm_gemm/kernels/a64_gemm_s8_12x8/a55r1.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017-2019 ARM Limited.
+ * Copyright (c) 2017-2018 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
diff --git a/src/core/NEON/kernels/arm_gemm/kernels/a64_gemm_s8_12x8/generic.cpp b/src/core/NEON/kernels/arm_gemm/kernels/a64_gemm_s8_12x8/generic.cpp
index a4e23a2be..c27c94bb9 100644
--- a/src/core/NEON/kernels/arm_gemm/kernels/a64_gemm_s8_12x8/generic.cpp
+++ b/src/core/NEON/kernels/arm_gemm/kernels/a64_gemm_s8_12x8/generic.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017-2019 ARM Limited.
+ * Copyright (c) 2017-2018 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
diff --git a/src/core/NEON/kernels/arm_gemm/kernels/a64_gemm_s8_4x4.hpp b/src/core/NEON/kernels/arm_gemm/kernels/a64_gemm_s8_4x4.hpp
index 7856eb55e..fb21bfc86 100644
--- a/src/core/NEON/kernels/arm_gemm/kernels/a64_gemm_s8_4x4.hpp
+++ b/src/core/NEON/kernels/arm_gemm/kernels/a64_gemm_s8_4x4.hpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017-2019 Arm Limited.
+ * Copyright (c) 2017-2018 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
diff --git a/src/core/NEON/kernels/arm_gemm/kernels/a64_gemm_u16_12x8.hpp b/src/core/NEON/kernels/arm_gemm/kernels/a64_gemm_u16_12x8.hpp
index a8255629f..971b027c4 100644
--- a/src/core/NEON/kernels/arm_gemm/kernels/a64_gemm_u16_12x8.hpp
+++ b/src/core/NEON/kernels/arm_gemm/kernels/a64_gemm_u16_12x8.hpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017-2019 Arm Limited.
+ * Copyright (c) 2017-2018 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
diff --git a/src/core/NEON/kernels/arm_gemm/kernels/a64_gemm_u16_12x8/generic.cpp b/src/core/NEON/kernels/arm_gemm/kernels/a64_gemm_u16_12x8/generic.cpp
index 83f902806..cd0de36ea 100644
--- a/src/core/NEON/kernels/arm_gemm/kernels/a64_gemm_u16_12x8/generic.cpp
+++ b/src/core/NEON/kernels/arm_gemm/kernels/a64_gemm_u16_12x8/generic.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017-2019 ARM Limited.
+ * Copyright (c) 2017-2018 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
diff --git a/src/core/NEON/kernels/arm_gemm/kernels/a64_gemm_u8_12x8.hpp b/src/core/NEON/kernels/arm_gemm/kernels/a64_gemm_u8_12x8.hpp
index c228b8b85..a67e2d6c8 100644
--- a/src/core/NEON/kernels/arm_gemm/kernels/a64_gemm_u8_12x8.hpp
+++ b/src/core/NEON/kernels/arm_gemm/kernels/a64_gemm_u8_12x8.hpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017-2019 Arm Limited.
+ * Copyright (c) 2017-2018 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
diff --git a/src/core/NEON/kernels/arm_gemm/kernels/a64_gemm_u8_12x8/a55r1.cpp b/src/core/NEON/kernels/arm_gemm/kernels/a64_gemm_u8_12x8/a55r1.cpp
index 0c128bc71..35cb56b14 100644
--- a/src/core/NEON/kernels/arm_gemm/kernels/a64_gemm_u8_12x8/a55r1.cpp
+++ b/src/core/NEON/kernels/arm_gemm/kernels/a64_gemm_u8_12x8/a55r1.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017-2019 ARM Limited.
+ * Copyright (c) 2017-2018 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
diff --git a/src/core/NEON/kernels/arm_gemm/kernels/a64_gemm_u8_12x8/generic.cpp b/src/core/NEON/kernels/arm_gemm/kernels/a64_gemm_u8_12x8/generic.cpp
index eda6386fe..2ffda7d9a 100644
--- a/src/core/NEON/kernels/arm_gemm/kernels/a64_gemm_u8_12x8/generic.cpp
+++ b/src/core/NEON/kernels/arm_gemm/kernels/a64_gemm_u8_12x8/generic.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017-2019 ARM Limited.
+ * Copyright (c) 2017-2018 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
diff --git a/src/core/NEON/kernels/arm_gemm/kernels/a64_gemm_u8_4x4.hpp b/src/core/NEON/kernels/arm_gemm/kernels/a64_gemm_u8_4x4.hpp
index 56044e928..8bde3a694 100644
--- a/src/core/NEON/kernels/arm_gemm/kernels/a64_gemm_u8_4x4.hpp
+++ b/src/core/NEON/kernels/arm_gemm/kernels/a64_gemm_u8_4x4.hpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017-2019 Arm Limited.
+ * Copyright (c) 2017-2018 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
diff --git a/src/core/NEON/kernels/arm_gemm/kernels/a64_hgemm_24x8.hpp b/src/core/NEON/kernels/arm_gemm/kernels/a64_hgemm_24x8.hpp
index 283fea110..8e17aa666 100644
--- a/src/core/NEON/kernels/arm_gemm/kernels/a64_hgemm_24x8.hpp
+++ b/src/core/NEON/kernels/arm_gemm/kernels/a64_hgemm_24x8.hpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017-2019 Arm Limited.
+ * Copyright (c) 2017-2018 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
diff --git a/src/core/NEON/kernels/arm_gemm/kernels/a64_hgemm_24x8/generic.cpp b/src/core/NEON/kernels/arm_gemm/kernels/a64_hgemm_24x8/generic.cpp
index 4ad38cbf6..f32a627f6 100644
--- a/src/core/NEON/kernels/arm_gemm/kernels/a64_hgemm_24x8/generic.cpp
+++ b/src/core/NEON/kernels/arm_gemm/kernels/a64_hgemm_24x8/generic.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017-2019 ARM Limited.
+ * Copyright (c) 2017-2018 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
diff --git a/src/core/NEON/kernels/arm_gemm/kernels/a64_hybrid_fp32_mla_16x4/a55.cpp b/src/core/NEON/kernels/arm_gemm/kernels/a64_hybrid_fp32_mla_16x4/a55.cpp
index e3325f772..5bce632bc 100644
--- a/src/core/NEON/kernels/arm_gemm/kernels/a64_hybrid_fp32_mla_16x4/a55.cpp
+++ b/src/core/NEON/kernels/arm_gemm/kernels/a64_hybrid_fp32_mla_16x4/a55.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2019 Arm Limited.
+ * Copyright (c) 2018-2019 Arm Limited.
*
* SPDX-License-Identifier: MIT
*
diff --git a/src/core/NEON/kernels/arm_gemm/kernels/a64_hybrid_fp32_mla_16x4/generic.cpp b/src/core/NEON/kernels/arm_gemm/kernels/a64_hybrid_fp32_mla_16x4/generic.cpp
index d60d08a67..03f65889e 100644
--- a/src/core/NEON/kernels/arm_gemm/kernels/a64_hybrid_fp32_mla_16x4/generic.cpp
+++ b/src/core/NEON/kernels/arm_gemm/kernels/a64_hybrid_fp32_mla_16x4/generic.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2019 Arm Limited.
+ * Copyright (c) 2018-2019 Arm Limited.
*
* SPDX-License-Identifier: MIT
*
diff --git a/src/core/NEON/kernels/arm_gemm/kernels/a64_interleaved_bf16fp32_dot_12x8.hpp b/src/core/NEON/kernels/arm_gemm/kernels/a64_interleaved_bf16fp32_dot_12x8.hpp
new file mode 100644
index 000000000..0f6c34500
--- /dev/null
+++ b/src/core/NEON/kernels/arm_gemm/kernels/a64_interleaved_bf16fp32_dot_12x8.hpp
@@ -0,0 +1,69 @@
+/*
+ * Copyright (c) 2019 Arm Limited.
+ *
+ * SPDX-License-Identifier: MIT
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+#pragma once
+
+#ifdef __aarch64__
+
+#include "../bfloat.hpp"
+#include "../std_transforms_fixed.hpp"
+
+namespace arm_gemm {
+
+// Actual kernel implementations
+void a64_interleaved_bf16fp32_dot_12x8(const bfloat16 *, const bfloat16 *, float *, int, int, int);
+
+class interleaved_bf16fp32_dot_12x8 {
+public:
+ typedef bfloat16 operand_type;
+ typedef float result_type;
+
+ typedef void (*kern_type)(const bfloat16 *, const bfloat16 *, float *, int, int, int);
+
+ /* Kernel blocking parameters */
+ static unsigned int out_width()
+ {
+ return 12;
+ }
+
+ static unsigned int out_height()
+ {
+ return 8;
+ }
+
+ static unsigned int k_unroll()
+ {
+ return 2;
+ }
+
+ // Use the standard fixed size transforms.
+ StdTransformsFixed<operand_type, result_type, 8, 12, 2> transforms = {};
+
+ kern_type kernel=a64_interleaved_bf16fp32_dot_12x8;
+
+ interleaved_bf16fp32_dot_12x8(const CPUInfo *ci) { UNUSED(ci); }
+};
+
+} // namespace arm_gemm
+
+#endif // __aarch64__
diff --git a/src/core/NEON/kernels/arm_gemm/kernels/a64_interleaved_bf16fp32_dot_12x8/generic.cpp b/src/core/NEON/kernels/arm_gemm/kernels/a64_interleaved_bf16fp32_dot_12x8/generic.cpp
new file mode 100644
index 000000000..8ce6a601f
--- /dev/null
+++ b/src/core/NEON/kernels/arm_gemm/kernels/a64_interleaved_bf16fp32_dot_12x8/generic.cpp
@@ -0,0 +1,325 @@
+/*
+ * Copyright (c) 2019 Arm Limited.
+ *
+ * SPDX-License-Identifier: MIT
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+#ifdef __aarch64__
+
+#include "../../bfloat.hpp"
+#include "../../asmlib.hpp"
+
+namespace arm_gemm {
+
+void a64_interleaved_bf16fp32_dot_12x8(const bfloat16 *Apanel, const bfloat16 *Bpanel, float *Cpanel, int ablocks, int bblocks, int K) {
+ const bfloat16 *a_ptr = Apanel;
+ float *c_ptr = Cpanel;
+
+ K /= 2;
+ const long loops_count = (K / 2) - 1;
+ const long tails_count = K % 2;
+
+ for (int yb=0; yb<ablocks; yb++) {
+ const bfloat16 *a_ptr0 = a_ptr;
+ const bfloat16 *b_ptr = Bpanel;
+
+ for (int xb=0; xb<bblocks; xb++) {
+ a_ptr = a_ptr0;
+ long loops = loops_count;
+ long tails = tails_count;
+
+ __asm __volatile (
+ "movi v8.4s, #0\n"
+ "ldr q0, [%[a_ptr]]\n"
+ "movi v9.4s, #0\n"
+ "ldr q4, [%[b_ptr]]\n"
+ "movi v10.4s, #0\n"
+ "ldr q1, [%[a_ptr], #0x10]\n"
+ "movi v11.4s, #0\n"
+ "ldr q5, [%[b_ptr], #0x10]\n"
+ "movi v12.4s, #0\n"
+ "ldr q2, [%[a_ptr], #0x20]\n"
+ "movi v13.4s, #0\n"
+ "ldr q6, [%[b_ptr], #0x20]\n"
+ "movi v14.4s, #0\n"
+ "ldr q3, [%[a_ptr], #0x30]\n"
+ "movi v15.4s, #0\n"
+ "add %[a_ptr], %[a_ptr], #0x40\n"
+ "movi v16.4s, #0\n"
+ "add %[b_ptr], %[b_ptr], #0x30\n"
+ "movi v17.4s, #0\n"
+ "movi v18.4s, #0\n"
+ "movi v19.4s, #0\n"
+ "movi v20.4s, #0\n"
+ "movi v21.4s, #0\n"
+ "movi v22.4s, #0\n"
+ "movi v23.4s, #0\n"
+ "movi v24.4s, #0\n"
+ "movi v25.4s, #0\n"
+ "movi v26.4s, #0\n"
+ "movi v27.4s, #0\n"
+ "movi v28.4s, #0\n"
+ "movi v29.4s, #0\n"
+ "movi v30.4s, #0\n"
+ "movi v31.4s, #0\n"
+ "cbz %[loops], 1f\n"
+ "2:\n"
+ ".inst 0x4f40f088 // bfdot v8.4s, v4.8h, v0.h[0]\n"
+ "subs %[loops], %[loops], #0x1\n"
+ ".inst 0x4f60f089 // bfdot v9.4s, v4.8h, v0.h[1]\n"
+ ".inst 0x4f40f88a // bfdot v10.4s, v4.8h, v0.h[2]\n"
+ ".inst 0x4f60f88b // bfdot v11.4s, v4.8h, v0.h[3]\n"
+ ".inst 0x4f41f094 // bfdot v20.4s, v4.8h, v1.h[0]\n"
+ ".inst 0x4f61f095 // bfdot v21.4s, v4.8h, v1.h[1]\n"
+ ".inst 0x4f41f896 // bfdot v22.4s, v4.8h, v1.h[2]\n"
+ ".inst 0x4f61f897 // bfdot v23.4s, v4.8h, v1.h[3]\n"
+ "ldr q4, [%[b_ptr]]\n"
+ ".inst 0x4f40f0ac // bfdot v12.4s, v5.8h, v0.h[0]\n"
+ ".inst 0x4f60f0ad // bfdot v13.4s, v5.8h, v0.h[1]\n"
+ ".inst 0x4f40f8ae // bfdot v14.4s, v5.8h, v0.h[2]\n"
+ ".inst 0x4f60f8af // bfdot v15.4s, v5.8h, v0.h[3]\n"
+ ".inst 0x4f41f0b8 // bfdot v24.4s, v5.8h, v1.h[0]\n"
+ ".inst 0x4f61f0b9 // bfdot v25.4s, v5.8h, v1.h[1]\n"
+ ".inst 0x4f41f8ba // bfdot v26.4s, v5.8h, v1.h[2]\n"
+ ".inst 0x4f61f8bb // bfdot v27.4s, v5.8h, v1.h[3]\n"
+ "ldr q5, [%[b_ptr], #0x10]\n"
+ ".inst 0x4f40f0d0 // bfdot v16.4s, v6.8h, v0.h[0]\n"
+ ".inst 0x4f60f0d1 // bfdot v17.4s, v6.8h, v0.h[1]\n"
+ ".inst 0x4f40f8d2 // bfdot v18.4s, v6.8h, v0.h[2]\n"
+ ".inst 0x4f60f8d3 // bfdot v19.4s, v6.8h, v0.h[3]\n"
+ "ldr q0, [%[a_ptr]]\n"
+ ".inst 0x4f41f0dc // bfdot v28.4s, v6.8h, v1.h[0]\n"
+ ".inst 0x4f61f0dd // bfdot v29.4s, v6.8h, v1.h[1]\n"
+ ".inst 0x4f41f8de // bfdot v30.4s, v6.8h, v1.h[2]\n"
+ ".inst 0x4f61f8df // bfdot v31.4s, v6.8h, v1.h[3]\n"
+ "ldr q6, [%[b_ptr], #0x20]\n"
+ ".inst 0x4f42f088 // bfdot v8.4s, v4.8h, v2.h[0]\n"
+ "ldr q1, [%[a_ptr], #0x10]\n"
+ ".inst 0x4f62f089 // bfdot v9.4s, v4.8h, v2.h[1]\n"
+ "add %[a_ptr], %[a_ptr], #0x40\n"
+ ".inst 0x4f42f88a // bfdot v10.4s, v4.8h, v2.h[2]\n"
+ "add %[b_ptr], %[b_ptr], #0x60\n"
+ ".inst 0x4f62f88b // bfdot v11.4s, v4.8h, v2.h[3]\n"
+ ".inst 0x4f43f094 // bfdot v20.4s, v4.8h, v3.h[0]\n"
+ ".inst 0x4f63f095 // bfdot v21.4s, v4.8h, v3.h[1]\n"
+ ".inst 0x4f43f896 // bfdot v22.4s, v4.8h, v3.h[2]\n"
+ ".inst 0x4f63f897 // bfdot v23.4s, v4.8h, v3.h[3]\n"
+ "ldr q4, [%[b_ptr], #-0x30]\n"
+ ".inst 0x4f42f0ac // bfdot v12.4s, v5.8h, v2.h[0]\n"
+ ".inst 0x4f62f0ad // bfdot v13.4s, v5.8h, v2.h[1]\n"
+ ".inst 0x4f42f8ae // bfdot v14.4s, v5.8h, v2.h[2]\n"
+ ".inst 0x4f62f8af // bfdot v15.4s, v5.8h, v2.h[3]\n"
+ ".inst 0x4f43f0b8 // bfdot v24.4s, v5.8h, v3.h[0]\n"
+ ".inst 0x4f63f0b9 // bfdot v25.4s, v5.8h, v3.h[1]\n"
+ ".inst 0x4f43f8ba // bfdot v26.4s, v5.8h, v3.h[2]\n"
+ ".inst 0x4f63f8bb // bfdot v27.4s, v5.8h, v3.h[3]\n"
+ "ldr q5, [%[b_ptr], #-0x20]\n"
+ ".inst 0x4f42f0d0 // bfdot v16.4s, v6.8h, v2.h[0]\n"
+ ".inst 0x4f62f0d1 // bfdot v17.4s, v6.8h, v2.h[1]\n"
+ ".inst 0x4f42f8d2 // bfdot v18.4s, v6.8h, v2.h[2]\n"
+ ".inst 0x4f62f8d3 // bfdot v19.4s, v6.8h, v2.h[3]\n"
+ "ldr q2, [%[a_ptr], #-0x20]\n"
+ ".inst 0x4f43f0dc // bfdot v28.4s, v6.8h, v3.h[0]\n"
+ ".inst 0x4f63f0dd // bfdot v29.4s, v6.8h, v3.h[1]\n"
+ ".inst 0x4f43f8de // bfdot v30.4s, v6.8h, v3.h[2]\n"
+ ".inst 0x4f63f8df // bfdot v31.4s, v6.8h, v3.h[3]\n"
+ "ldr q6, [%[b_ptr], #-0x10]\n"
+ "ldr q3, [%[a_ptr], #-0x10]\n"
+ "b.ne 2b\n"
+ "1:\n"
+ "cbz %[tails], 3f\n"
+ ".inst 0x4f40f088 // bfdot v8.4s, v4.8h, v0.h[0]\n"
+ ".inst 0x4f60f089 // bfdot v9.4s, v4.8h, v0.h[1]\n"
+ ".inst 0x4f40f88a // bfdot v10.4s, v4.8h, v0.h[2]\n"
+ ".inst 0x4f60f88b // bfdot v11.4s, v4.8h, v0.h[3]\n"
+ ".inst 0x4f41f094 // bfdot v20.4s, v4.8h, v1.h[0]\n"
+ ".inst 0x4f61f095 // bfdot v21.4s, v4.8h, v1.h[1]\n"
+ ".inst 0x4f41f896 // bfdot v22.4s, v4.8h, v1.h[2]\n"
+ ".inst 0x4f61f897 // bfdot v23.4s, v4.8h, v1.h[3]\n"
+ "ldr q4, [%[b_ptr]]\n"
+ ".inst 0x4f40f0ac // bfdot v12.4s, v5.8h, v0.h[0]\n"
+ ".inst 0x4f60f0ad // bfdot v13.4s, v5.8h, v0.h[1]\n"
+ ".inst 0x4f40f8ae // bfdot v14.4s, v5.8h, v0.h[2]\n"
+ ".inst 0x4f60f8af // bfdot v15.4s, v5.8h, v0.h[3]\n"
+ ".inst 0x4f41f0b8 // bfdot v24.4s, v5.8h, v1.h[0]\n"
+ ".inst 0x4f61f0b9 // bfdot v25.4s, v5.8h, v1.h[1]\n"
+ ".inst 0x4f41f8ba // bfdot v26.4s, v5.8h, v1.h[2]\n"
+ ".inst 0x4f61f8bb // bfdot v27.4s, v5.8h, v1.h[3]\n"
+ "ldr q5, [%[b_ptr], #0x10]\n"
+ ".inst 0x4f40f0d0 // bfdot v16.4s, v6.8h, v0.h[0]\n"
+ ".inst 0x4f60f0d1 // bfdot v17.4s, v6.8h, v0.h[1]\n"
+ ".inst 0x4f40f8d2 // bfdot v18.4s, v6.8h, v0.h[2]\n"
+ ".inst 0x4f60f8d3 // bfdot v19.4s, v6.8h, v0.h[3]\n"
+ "ldr q0, [%[a_ptr]]\n"
+ ".inst 0x4f41f0dc // bfdot v28.4s, v6.8h, v1.h[0]\n"
+ ".inst 0x4f61f0dd // bfdot v29.4s, v6.8h, v1.h[1]\n"
+ ".inst 0x4f41f8de // bfdot v30.4s, v6.8h, v1.h[2]\n"
+ ".inst 0x4f61f8df // bfdot v31.4s, v6.8h, v1.h[3]\n"
+ "ldr q6, [%[b_ptr], #0x20]\n"
+ ".inst 0x4f42f088 // bfdot v8.4s, v4.8h, v2.h[0]\n"
+ "ldr q1, [%[a_ptr], #0x10]\n"
+ ".inst 0x4f62f089 // bfdot v9.4s, v4.8h, v2.h[1]\n"
+ "add %[a_ptr], %[a_ptr], #0x20\n"
+ ".inst 0x4f42f88a // bfdot v10.4s, v4.8h, v2.h[2]\n"
+ ".inst 0x4f62f88b // bfdot v11.4s, v4.8h, v2.h[3]\n"
+ ".inst 0x4f43f094 // bfdot v20.4s, v4.8h, v3.h[0]\n"
+ ".inst 0x4f63f095 // bfdot v21.4s, v4.8h, v3.h[1]\n"
+ ".inst 0x4f43f896 // bfdot v22.4s, v4.8h, v3.h[2]\n"
+ ".inst 0x4f63f897 // bfdot v23.4s, v4.8h, v3.h[3]\n"
+ "ldr q4, [%[b_ptr], #0x30]\n"
+ ".inst 0x4f42f0ac // bfdot v12.4s, v5.8h, v2.h[0]\n"
+ ".inst 0x4f62f0ad // bfdot v13.4s, v5.8h, v2.h[1]\n"
+ ".inst 0x4f42f8ae // bfdot v14.4s, v5.8h, v2.h[2]\n"
+ ".inst 0x4f62f8af // bfdot v15.4s, v5.8h, v2.h[3]\n"
+ ".inst 0x4f43f0b8 // bfdot v24.4s, v5.8h, v3.h[0]\n"
+ ".inst 0x4f63f0b9 // bfdot v25.4s, v5.8h, v3.h[1]\n"
+ ".inst 0x4f43f8ba // bfdot v26.4s, v5.8h, v3.h[2]\n"
+ ".inst 0x4f63f8bb // bfdot v27.4s, v5.8h, v3.h[3]\n"
+ "ldr q5, [%[b_ptr], #0x40]\n"
+ ".inst 0x4f42f0d0 // bfdot v16.4s, v6.8h, v2.h[0]\n"
+ ".inst 0x4f62f0d1 // bfdot v17.4s, v6.8h, v2.h[1]\n"
+ ".inst 0x4f42f8d2 // bfdot v18.4s, v6.8h, v2.h[2]\n"
+ ".inst 0x4f62f8d3 // bfdot v19.4s, v6.8h, v2.h[3]\n"
+ ".inst 0x4f43f0dc // bfdot v28.4s, v6.8h, v3.h[0]\n"
+ ".inst 0x4f63f0dd // bfdot v29.4s, v6.8h, v3.h[1]\n"
+ ".inst 0x4f43f8de // bfdot v30.4s, v6.8h, v3.h[2]\n"
+ ".inst 0x4f63f8df // bfdot v31.4s, v6.8h, v3.h[3]\n"
+ "ldr q6, [%[b_ptr], #0x50]\n"
+ ".inst 0x4f40f088 // bfdot v8.4s, v4.8h, v0.h[0]\n"
+ "add %[b_ptr], %[b_ptr], #0x60\n"
+ ".inst 0x4f60f089 // bfdot v9.4s, v4.8h, v0.h[1]\n"
+ ".inst 0x4f40f88a // bfdot v10.4s, v4.8h, v0.h[2]\n"
+ "str q8, [%[c_ptr]]\n"
+ ".inst 0x4f60f88b // bfdot v11.4s, v4.8h, v0.h[3]\n"
+ ".inst 0x4f41f094 // bfdot v20.4s, v4.8h, v1.h[0]\n"
+ ".inst 0x4f61f095 // bfdot v21.4s, v4.8h, v1.h[1]\n"
+ ".inst 0x4f41f896 // bfdot v22.4s, v4.8h, v1.h[2]\n"
+ ".inst 0x4f61f897 // bfdot v23.4s, v4.8h, v1.h[3]\n"
+ ".inst 0x4f40f0ac // bfdot v12.4s, v5.8h, v0.h[0]\n"
+ ".inst 0x4f60f0ad // bfdot v13.4s, v5.8h, v0.h[1]\n"
+ ".inst 0x4f40f8ae // bfdot v14.4s, v5.8h, v0.h[2]\n"
+ ".inst 0x4f60f8af // bfdot v15.4s, v5.8h, v0.h[3]\n"
+ "str q12, [%[c_ptr], #0x10]\n"
+ ".inst 0x4f41f0b8 // bfdot v24.4s, v5.8h, v1.h[0]\n"
+ ".inst 0x4f61f0b9 // bfdot v25.4s, v5.8h, v1.h[1]\n"
+ ".inst 0x4f41f8ba // bfdot v26.4s, v5.8h, v1.h[2]\n"
+ ".inst 0x4f61f8bb // bfdot v27.4s, v5.8h, v1.h[3]\n"
+ ".inst 0x4f40f0d0 // bfdot v16.4s, v6.8h, v0.h[0]\n"
+ ".inst 0x4f60f0d1 // bfdot v17.4s, v6.8h, v0.h[1]\n"
+ ".inst 0x4f40f8d2 // bfdot v18.4s, v6.8h, v0.h[2]\n"
+ ".inst 0x4f60f8d3 // bfdot v19.4s, v6.8h, v0.h[3]\n"
+ "str q16, [%[c_ptr], #0x20]\n"
+ ".inst 0x4f41f0dc // bfdot v28.4s, v6.8h, v1.h[0]\n"
+ ".inst 0x4f61f0dd // bfdot v29.4s, v6.8h, v1.h[1]\n"
+ ".inst 0x4f41f8de // bfdot v30.4s, v6.8h, v1.h[2]\n"
+ "str q9, [%[c_ptr], #0x30]\n"
+ ".inst 0x4f61f8df // bfdot v31.4s, v6.8h, v1.h[3]\n"
+ "b 4f\n"
+ "3:\n"
+ ".inst 0x4f40f088 // bfdot v8.4s, v4.8h, v0.h[0]\n"
+ ".inst 0x4f60f089 // bfdot v9.4s, v4.8h, v0.h[1]\n"
+ ".inst 0x4f40f88a // bfdot v10.4s, v4.8h, v0.h[2]\n"
+ ".inst 0x4f60f88b // bfdot v11.4s, v4.8h, v0.h[3]\n"
+ ".inst 0x4f41f094 // bfdot v20.4s, v4.8h, v1.h[0]\n"
+ ".inst 0x4f61f095 // bfdot v21.4s, v4.8h, v1.h[1]\n"
+ ".inst 0x4f41f896 // bfdot v22.4s, v4.8h, v1.h[2]\n"
+ ".inst 0x4f61f897 // bfdot v23.4s, v4.8h, v1.h[3]\n"
+ "ldr q4, [%[b_ptr]]\n"
+ ".inst 0x4f40f0ac // bfdot v12.4s, v5.8h, v0.h[0]\n"
+ ".inst 0x4f60f0ad // bfdot v13.4s, v5.8h, v0.h[1]\n"
+ ".inst 0x4f40f8ae // bfdot v14.4s, v5.8h, v0.h[2]\n"
+ ".inst 0x4f60f8af // bfdot v15.4s, v5.8h, v0.h[3]\n"
+ ".inst 0x4f41f0b8 // bfdot v24.4s, v5.8h, v1.h[0]\n"
+ ".inst 0x4f61f0b9 // bfdot v25.4s, v5.8h, v1.h[1]\n"
+ ".inst 0x4f41f8ba // bfdot v26.4s, v5.8h, v1.h[2]\n"
+ ".inst 0x4f61f8bb // bfdot v27.4s, v5.8h, v1.h[3]\n"
+ "ldr q5, [%[b_ptr], #0x10]\n"
+ ".inst 0x4f40f0d0 // bfdot v16.4s, v6.8h, v0.h[0]\n"
+ ".inst 0x4f60f0d1 // bfdot v17.4s, v6.8h, v0.h[1]\n"
+ ".inst 0x4f40f8d2 // bfdot v18.4s, v6.8h, v0.h[2]\n"
+ ".inst 0x4f60f8d3 // bfdot v19.4s, v6.8h, v0.h[3]\n"
+ ".inst 0x4f41f0dc // bfdot v28.4s, v6.8h, v1.h[0]\n"
+ ".inst 0x4f61f0dd // bfdot v29.4s, v6.8h, v1.h[1]\n"
+ ".inst 0x4f41f8de // bfdot v30.4s, v6.8h, v1.h[2]\n"
+ ".inst 0x4f61f8df // bfdot v31.4s, v6.8h, v1.h[3]\n"
+ "ldr q6, [%[b_ptr], #0x20]\n"
+ ".inst 0x4f42f088 // bfdot v8.4s, v4.8h, v2.h[0]\n"
+ "add %[b_ptr], %[b_ptr], #0x30\n"
+ ".inst 0x4f62f089 // bfdot v9.4s, v4.8h, v2.h[1]\n"
+ ".inst 0x4f42f88a // bfdot v10.4s, v4.8h, v2.h[2]\n"
+ "str q8, [%[c_ptr]]\n"
+ ".inst 0x4f62f88b // bfdot v11.4s, v4.8h, v2.h[3]\n"
+ ".inst 0x4f43f094 // bfdot v20.4s, v4.8h, v3.h[0]\n"
+ ".inst 0x4f63f095 // bfdot v21.4s, v4.8h, v3.h[1]\n"
+ ".inst 0x4f43f896 // bfdot v22.4s, v4.8h, v3.h[2]\n"
+ ".inst 0x4f63f897 // bfdot v23.4s, v4.8h, v3.h[3]\n"
+ ".inst 0x4f42f0ac // bfdot v12.4s, v5.8h, v2.h[0]\n"
+ ".inst 0x4f62f0ad // bfdot v13.4s, v5.8h, v2.h[1]\n"
+ ".inst 0x4f42f8ae // bfdot v14.4s, v5.8h, v2.h[2]\n"
+ ".inst 0x4f62f8af // bfdot v15.4s, v5.8h, v2.h[3]\n"
+ "str q12, [%[c_ptr], #0x10]\n"
+ ".inst 0x4f43f0b8 // bfdot v24.4s, v5.8h, v3.h[0]\n"
+ ".inst 0x4f63f0b9 // bfdot v25.4s, v5.8h, v3.h[1]\n"
+ ".inst 0x4f43f8ba // bfdot v26.4s, v5.8h, v3.h[2]\n"
+ ".inst 0x4f63f8bb // bfdot v27.4s, v5.8h, v3.h[3]\n"
+ ".inst 0x4f42f0d0 // bfdot v16.4s, v6.8h, v2.h[0]\n"
+ ".inst 0x4f62f0d1 // bfdot v17.4s, v6.8h, v2.h[1]\n"
+ ".inst 0x4f42f8d2 // bfdot v18.4s, v6.8h, v2.h[2]\n"
+ ".inst 0x4f62f8d3 // bfdot v19.4s, v6.8h, v2.h[3]\n"
+ "str q16, [%[c_ptr], #0x20]\n"
+ ".inst 0x4f43f0dc // bfdot v28.4s, v6.8h, v3.h[0]\n"
+ ".inst 0x4f63f0dd // bfdot v29.4s, v6.8h, v3.h[1]\n"
+ ".inst 0x4f43f8de // bfdot v30.4s, v6.8h, v3.h[2]\n"
+ "str q9, [%[c_ptr], #0x30]\n"
+ ".inst 0x4f63f8df // bfdot v31.4s, v6.8h, v3.h[3]\n"
+ "4:\n"
+ "str q13, [%[c_ptr], #0x40]\n"
+ "str q17, [%[c_ptr], #0x50]\n"
+ "str q10, [%[c_ptr], #0x60]\n"
+ "str q14, [%[c_ptr], #0x70]\n"
+ "str q18, [%[c_ptr], #0x80]\n"
+ "str q11, [%[c_ptr], #0x90]\n"
+ "str q15, [%[c_ptr], #0xa0]\n"
+ "str q19, [%[c_ptr], #0xb0]\n"
+ "str q20, [%[c_ptr], #0xc0]\n"
+ "str q24, [%[c_ptr], #0xd0]\n"
+ "str q28, [%[c_ptr], #0xe0]\n"
+ "str q21, [%[c_ptr], #0xf0]\n"
+ "str q25, [%[c_ptr], #0x100]\n"
+ "str q29, [%[c_ptr], #0x110]\n"
+ "str q22, [%[c_ptr], #0x120]\n"
+ "str q26, [%[c_ptr], #0x130]\n"
+ "str q30, [%[c_ptr], #0x140]\n"
+ "str q23, [%[c_ptr], #0x150]\n"
+ "str q27, [%[c_ptr], #0x160]\n"
+ "str q31, [%[c_ptr], #0x170]\n"
+ "add %[c_ptr], %[c_ptr], #0x180\n"
+ : [a_ptr] "+r" (a_ptr), [b_ptr] "+r" (b_ptr), [c_ptr] "+r" (c_ptr),
+ [loops] "+r" (loops), [tails] "+r" (tails)
+ :
+ : "v0", "v1", "v2", "v3", "v4", "v5", "v6", "v8", "v9", "v10", "v11", "v12", "v13", "v14", "v15", "v16", "v17", "v18", "v19", "v20", "v21", "v22", "v23", "v24", "v25", "v26", "v27", "v28", "v29", "v30", "v31", "cc", "memory"
+ );
+ }
+ }
+}
+
+} // namespace arm_gemm
+
+#endif // __aarch64__
diff --git a/src/core/NEON/kernels/arm_gemm/kernels/a64_interleaved_bf16fp32_mmla_12x8.hpp b/src/core/NEON/kernels/arm_gemm/kernels/a64_interleaved_bf16fp32_mmla_12x8.hpp
new file mode 100644
index 000000000..7f928fa72
--- /dev/null
+++ b/src/core/NEON/kernels/arm_gemm/kernels/a64_interleaved_bf16fp32_mmla_12x8.hpp
@@ -0,0 +1,69 @@
+/*
+ * Copyright (c) 2019 Arm Limited.
+ *
+ * SPDX-License-Identifier: MIT
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+#pragma once
+
+#ifdef __aarch64__
+
+#include "../bfloat.hpp"
+#include "../std_transforms_fixed.hpp"
+
+namespace arm_gemm {
+
+// Actual kernel implementations
+void a64_interleaved_bf16fp32_mmla_12x8(const bfloat16 *, const bfloat16 *, float *, int, int, int);
+
+class interleaved_bf16fp32_mmla_12x8 {
+public:
+ typedef bfloat16 operand_type;
+ typedef float result_type;
+
+ typedef void (*kern_type)(const bfloat16 *, const bfloat16 *, float *, int, int, int);
+
+ /* Kernel blocking parameters */
+ static unsigned int out_width()
+ {
+ return 12;
+ }
+
+ static unsigned int out_height()
+ {
+ return 8;
+ }
+
+ static unsigned int k_unroll()
+ {
+ return 4;
+ }
+
+ // Use the standard fixed size transforms.
+ StdTransformsFixed<operand_type, result_type, 8, 12, 4> transforms = {};
+
+ kern_type kernel=a64_interleaved_bf16fp32_mmla_12x8;
+
+ interleaved_bf16fp32_mmla_12x8(const CPUInfo *ci) { UNUSED(ci); }
+};
+
+} // namespace arm_gemm
+
+#endif // __aarch64__
diff --git a/src/core/NEON/kernels/arm_gemm/kernels/a64_interleaved_bf16fp32_mmla_12x8/generic.cpp b/src/core/NEON/kernels/arm_gemm/kernels/a64_interleaved_bf16fp32_mmla_12x8/generic.cpp
new file mode 100644
index 000000000..be87f442e
--- /dev/null
+++ b/src/core/NEON/kernels/arm_gemm/kernels/a64_interleaved_bf16fp32_mmla_12x8/generic.cpp
@@ -0,0 +1,393 @@
+/*
+ * Copyright (c) 2019 Arm Limited.
+ *
+ * SPDX-License-Identifier: MIT
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+#ifdef __aarch64__
+
+#include "../../bfloat.hpp"
+#include "../../asmlib.hpp"
+
+namespace arm_gemm {
+
+void a64_interleaved_bf16fp32_mmla_12x8(const bfloat16 *Apanel, const bfloat16 *Bpanel, float *Cpanel, int ablocks, int bblocks, int K) {
+ const bfloat16 *a_ptr = Apanel;
+ float *c_ptr = Cpanel;
+
+ K /= 4;
+ const long loops_count = (K / 2) - 1;
+ const long tails_count = K % 2;
+
+ for (int yb=0; yb<ablocks; yb++) {
+ const bfloat16 *a_ptr0 = a_ptr;
+ const bfloat16 *b_ptr = Bpanel;
+
+ for (int xb=0; xb<bblocks; xb++) {
+ a_ptr = a_ptr0;
+ long loops = loops_count;
+ long tails = tails_count;
+
+ __asm __volatile (
+ "movi v8.4s, #0\n"
+ "ldr q0, [%[a_ptr]]\n"
+ "movi v9.4s, #0\n"
+ "ldr q4, [%[b_ptr]]\n"
+ "movi v10.4s, #0\n"
+ "ldr q1, [%[a_ptr], #0x10]\n"
+ "movi v11.4s, #0\n"
+ "ldr q5, [%[b_ptr], #0x10]\n"
+ "movi v12.4s, #0\n"
+ "ldr q2, [%[a_ptr], #0x20]\n"
+ "movi v13.4s, #0\n"
+ "ldr q6, [%[b_ptr], #0x20]\n"
+ "movi v14.4s, #0\n"
+ "ldr q3, [%[a_ptr], #0x30]\n"
+ "movi v15.4s, #0\n"
+ "ldr q7, [%[b_ptr], #0x30]\n"
+ "movi v16.4s, #0\n"
+ "add %[a_ptr], %[a_ptr], #0x40\n"
+ "movi v17.4s, #0\n"
+ "add %[b_ptr], %[b_ptr], #0x40\n"
+ "movi v18.4s, #0\n"
+ "movi v19.4s, #0\n"
+ "movi v20.4s, #0\n"
+ "movi v21.4s, #0\n"
+ "movi v22.4s, #0\n"
+ "movi v23.4s, #0\n"
+ "movi v24.4s, #0\n"
+ "movi v25.4s, #0\n"
+ "movi v26.4s, #0\n"
+ "movi v27.4s, #0\n"
+ "movi v28.4s, #0\n"
+ "movi v29.4s, #0\n"
+ "movi v30.4s, #0\n"
+ "movi v31.4s, #0\n"
+ "cbz %[loops], 1f\n"
+ "2:\n"
+ ".inst 0x6e44ec08 // bfmmla v8.4s, v0.8h, v4.8h\n"
+ "subs %[loops], %[loops], #0x1\n"
+ ".inst 0x6e44ec2e // bfmmla v14.4s, v1.8h, v4.8h\n"
+ ".inst 0x6e44ec54 // bfmmla v20.4s, v2.8h, v4.8h\n"
+ ".inst 0x6e44ec7a // bfmmla v26.4s, v3.8h, v4.8h\n"
+ "ldr q4, [%[b_ptr]]\n"
+ ".inst 0x6e45ec09 // bfmmla v9.4s, v0.8h, v5.8h\n"
+ ".inst 0x6e45ec2f // bfmmla v15.4s, v1.8h, v5.8h\n"
+ ".inst 0x6e45ec55 // bfmmla v21.4s, v2.8h, v5.8h\n"
+ ".inst 0x6e45ec7b // bfmmla v27.4s, v3.8h, v5.8h\n"
+ "ldr q5, [%[b_ptr], #0x10]\n"
+ ".inst 0x6e46ec0a // bfmmla v10.4s, v0.8h, v6.8h\n"
+ ".inst 0x6e46ec30 // bfmmla v16.4s, v1.8h, v6.8h\n"
+ ".inst 0x6e46ec56 // bfmmla v22.4s, v2.8h, v6.8h\n"
+ ".inst 0x6e46ec7c // bfmmla v28.4s, v3.8h, v6.8h\n"
+ "ldr q6, [%[b_ptr], #0x20]\n"
+ ".inst 0x6e47ec0b // bfmmla v11.4s, v0.8h, v7.8h\n"
+ ".inst 0x6e47ec31 // bfmmla v17.4s, v1.8h, v7.8h\n"
+ ".inst 0x6e47ec57 // bfmmla v23.4s, v2.8h, v7.8h\n"
+ ".inst 0x6e47ec7d // bfmmla v29.4s, v3.8h, v7.8h\n"
+ "ldr q7, [%[b_ptr], #0x30]\n"
+ ".inst 0x6e44ec0c // bfmmla v12.4s, v0.8h, v4.8h\n"
+ ".inst 0x6e44ec32 // bfmmla v18.4s, v1.8h, v4.8h\n"
+ ".inst 0x6e44ec58 // bfmmla v24.4s, v2.8h, v4.8h\n"
+ ".inst 0x6e44ec7e // bfmmla v30.4s, v3.8h, v4.8h\n"
+ "ldr q4, [%[b_ptr], #0x40]\n"
+ ".inst 0x6e45ec0d // bfmmla v13.4s, v0.8h, v5.8h\n"
+ "ldr q0, [%[a_ptr]]\n"
+ ".inst 0x6e45ec33 // bfmmla v19.4s, v1.8h, v5.8h\n"
+ "ldr q1, [%[a_ptr], #0x10]\n"
+ ".inst 0x6e45ec59 // bfmmla v25.4s, v2.8h, v5.8h\n"
+ "ldr q2, [%[a_ptr], #0x20]\n"
+ ".inst 0x6e45ec7f // bfmmla v31.4s, v3.8h, v5.8h\n"
+ "ldr q5, [%[b_ptr], #0x50]\n"
+ ".inst 0x6e46ec08 // bfmmla v8.4s, v0.8h, v6.8h\n"
+ "ldr q3, [%[a_ptr], #0x30]\n"
+ ".inst 0x6e46ec2e // bfmmla v14.4s, v1.8h, v6.8h\n"
+ "add %[a_ptr], %[a_ptr], #0x80\n"
+ ".inst 0x6e46ec54 // bfmmla v20.4s, v2.8h, v6.8h\n"
+ "add %[b_ptr], %[b_ptr], #0xc0\n"
+ ".inst 0x6e46ec7a // bfmmla v26.4s, v3.8h, v6.8h\n"
+ "ldr q6, [%[b_ptr], #-0x60]\n"
+ ".inst 0x6e47ec09 // bfmmla v9.4s, v0.8h, v7.8h\n"
+ ".inst 0x6e47ec2f // bfmmla v15.4s, v1.8h, v7.8h\n"
+ ".inst 0x6e47ec55 // bfmmla v21.4s, v2.8h, v7.8h\n"
+ ".inst 0x6e47ec7b // bfmmla v27.4s, v3.8h, v7.8h\n"
+ "ldr q7, [%[b_ptr], #-0x50]\n"
+ ".inst 0x6e44ec0a // bfmmla v10.4s, v0.8h, v4.8h\n"
+ ".inst 0x6e44ec30 // bfmmla v16.4s, v1.8h, v4.8h\n"
+ ".inst 0x6e44ec56 // bfmmla v22.4s, v2.8h, v4.8h\n"
+ ".inst 0x6e44ec7c // bfmmla v28.4s, v3.8h, v4.8h\n"
+ "ldr q4, [%[b_ptr], #-0x40]\n"
+ ".inst 0x6e45ec0b // bfmmla v11.4s, v0.8h, v5.8h\n"
+ ".inst 0x6e45ec31 // bfmmla v17.4s, v1.8h, v5.8h\n"
+ ".inst 0x6e45ec57 // bfmmla v23.4s, v2.8h, v5.8h\n"
+ ".inst 0x6e45ec7d // bfmmla v29.4s, v3.8h, v5.8h\n"
+ "ldr q5, [%[b_ptr], #-0x30]\n"
+ ".inst 0x6e46ec0c // bfmmla v12.4s, v0.8h, v6.8h\n"
+ ".inst 0x6e46ec32 // bfmmla v18.4s, v1.8h, v6.8h\n"
+ ".inst 0x6e46ec58 // bfmmla v24.4s, v2.8h, v6.8h\n"
+ ".inst 0x6e46ec7e // bfmmla v30.4s, v3.8h, v6.8h\n"
+ "ldr q6, [%[b_ptr], #-0x20]\n"
+ ".inst 0x6e47ec0d // bfmmla v13.4s, v0.8h, v7.8h\n"
+ "ldr q0, [%[a_ptr], #-0x40]\n"
+ ".inst 0x6e47ec33 // bfmmla v19.4s, v1.8h, v7.8h\n"
+ "ldr q1, [%[a_ptr], #-0x30]\n"
+ ".inst 0x6e47ec59 // bfmmla v25.4s, v2.8h, v7.8h\n"
+ "ldr q2, [%[a_ptr], #-0x20]\n"
+ ".inst 0x6e47ec7f // bfmmla v31.4s, v3.8h, v7.8h\n"
+ "ldr q7, [%[b_ptr], #-0x10]\n"
+ "ldr q3, [%[a_ptr], #-0x10]\n"
+ "b.ne 2b\n"
+ "1:\n"
+ "cbz %[tails], 3f\n"
+ ".inst 0x6e44ec08 // bfmmla v8.4s, v0.8h, v4.8h\n"
+ ".inst 0x6e44ec2e // bfmmla v14.4s, v1.8h, v4.8h\n"
+ ".inst 0x6e44ec54 // bfmmla v20.4s, v2.8h, v4.8h\n"
+ ".inst 0x6e44ec7a // bfmmla v26.4s, v3.8h, v4.8h\n"
+ "ldr q4, [%[b_ptr]]\n"
+ ".inst 0x6e45ec09 // bfmmla v9.4s, v0.8h, v5.8h\n"
+ ".inst 0x6e45ec2f // bfmmla v15.4s, v1.8h, v5.8h\n"
+ ".inst 0x6e45ec55 // bfmmla v21.4s, v2.8h, v5.8h\n"
+ ".inst 0x6e45ec7b // bfmmla v27.4s, v3.8h, v5.8h\n"
+ "ldr q5, [%[b_ptr], #0x10]\n"
+ ".inst 0x6e46ec0a // bfmmla v10.4s, v0.8h, v6.8h\n"
+ ".inst 0x6e46ec30 // bfmmla v16.4s, v1.8h, v6.8h\n"
+ ".inst 0x6e46ec56 // bfmmla v22.4s, v2.8h, v6.8h\n"
+ ".inst 0x6e46ec7c // bfmmla v28.4s, v3.8h, v6.8h\n"
+ "ldr q6, [%[b_ptr], #0x20]\n"
+ ".inst 0x6e47ec0b // bfmmla v11.4s, v0.8h, v7.8h\n"
+ ".inst 0x6e47ec31 // bfmmla v17.4s, v1.8h, v7.8h\n"
+ ".inst 0x6e47ec57 // bfmmla v23.4s, v2.8h, v7.8h\n"
+ ".inst 0x6e47ec7d // bfmmla v29.4s, v3.8h, v7.8h\n"
+ "ldr q7, [%[b_ptr], #0x30]\n"
+ ".inst 0x6e44ec0c // bfmmla v12.4s, v0.8h, v4.8h\n"
+ ".inst 0x6e44ec32 // bfmmla v18.4s, v1.8h, v4.8h\n"
+ ".inst 0x6e44ec58 // bfmmla v24.4s, v2.8h, v4.8h\n"
+ ".inst 0x6e44ec7e // bfmmla v30.4s, v3.8h, v4.8h\n"
+ "ldr q4, [%[b_ptr], #0x40]\n"
+ ".inst 0x6e45ec0d // bfmmla v13.4s, v0.8h, v5.8h\n"
+ "ldr q0, [%[a_ptr]]\n"
+ ".inst 0x6e45ec33 // bfmmla v19.4s, v1.8h, v5.8h\n"
+ "ldr q1, [%[a_ptr], #0x10]\n"
+ ".inst 0x6e45ec59 // bfmmla v25.4s, v2.8h, v5.8h\n"
+ "ldr q2, [%[a_ptr], #0x20]\n"
+ ".inst 0x6e45ec7f // bfmmla v31.4s, v3.8h, v5.8h\n"
+ "ldr q5, [%[b_ptr], #0x50]\n"
+ ".inst 0x6e46ec08 // bfmmla v8.4s, v0.8h, v6.8h\n"
+ "ldr q3, [%[a_ptr], #0x30]\n"
+ ".inst 0x6e46ec2e // bfmmla v14.4s, v1.8h, v6.8h\n"
+ "add %[a_ptr], %[a_ptr], #0x80\n"
+ ".inst 0x6e46ec54 // bfmmla v20.4s, v2.8h, v6.8h\n"
+ "add %[b_ptr], %[b_ptr], #0xe0\n"
+ ".inst 0x6e46ec7a // bfmmla v26.4s, v3.8h, v6.8h\n"
+ "ldr q6, [%[b_ptr], #-0x80]\n"
+ ".inst 0x6e47ec09 // bfmmla v9.4s, v0.8h, v7.8h\n"
+ ".inst 0x6e47ec2f // bfmmla v15.4s, v1.8h, v7.8h\n"
+ ".inst 0x6e47ec55 // bfmmla v21.4s, v2.8h, v7.8h\n"
+ ".inst 0x6e47ec7b // bfmmla v27.4s, v3.8h, v7.8h\n"
+ "ldr q7, [%[b_ptr], #-0x70]\n"
+ ".inst 0x6e44ec0a // bfmmla v10.4s, v0.8h, v4.8h\n"
+ ".inst 0x6e44ec30 // bfmmla v16.4s, v1.8h, v4.8h\n"
+ ".inst 0x6e44ec56 // bfmmla v22.4s, v2.8h, v4.8h\n"
+ ".inst 0x6e44ec7c // bfmmla v28.4s, v3.8h, v4.8h\n"
+ "ldr q4, [%[b_ptr], #-0x60]\n"
+ ".inst 0x6e45ec0b // bfmmla v11.4s, v0.8h, v5.8h\n"
+ ".inst 0x6e45ec31 // bfmmla v17.4s, v1.8h, v5.8h\n"
+ ".inst 0x6e45ec57 // bfmmla v23.4s, v2.8h, v5.8h\n"
+ ".inst 0x6e45ec7d // bfmmla v29.4s, v3.8h, v5.8h\n"
+ "ldr q5, [%[b_ptr], #-0x50]\n"
+ ".inst 0x6e46ec0c // bfmmla v12.4s, v0.8h, v6.8h\n"
+ ".inst 0x6e46ec32 // bfmmla v18.4s, v1.8h, v6.8h\n"
+ ".inst 0x6e46ec58 // bfmmla v24.4s, v2.8h, v6.8h\n"
+ ".inst 0x6e46ec7e // bfmmla v30.4s, v3.8h, v6.8h\n"
+ "ldr q6, [%[b_ptr], #-0x40]\n"
+ ".inst 0x6e47ec0d // bfmmla v13.4s, v0.8h, v7.8h\n"
+ "ldr q0, [%[a_ptr], #-0x40]\n"
+ ".inst 0x6e47ec33 // bfmmla v19.4s, v1.8h, v7.8h\n"
+ "ldr q1, [%[a_ptr], #-0x30]\n"
+ ".inst 0x6e47ec59 // bfmmla v25.4s, v2.8h, v7.8h\n"
+ "ldr q2, [%[a_ptr], #-0x20]\n"
+ ".inst 0x6e47ec7f // bfmmla v31.4s, v3.8h, v7.8h\n"
+ "ldr q7, [%[b_ptr], #-0x30]\n"
+ ".inst 0x6e44ec08 // bfmmla v8.4s, v0.8h, v4.8h\n"
+ "ldr q3, [%[a_ptr], #-0x10]\n"
+ ".inst 0x6e44ec2e // bfmmla v14.4s, v1.8h, v4.8h\n"
+ ".inst 0x6e44ec54 // bfmmla v20.4s, v2.8h, v4.8h\n"
+ ".inst 0x6e45ec09 // bfmmla v9.4s, v0.8h, v5.8h\n"
+ ".inst 0x6e44ec7a // bfmmla v26.4s, v3.8h, v4.8h\n"
+ "ldr q4, [%[b_ptr], #-0x20]\n"
+ ".inst 0x6e45ec2f // bfmmla v15.4s, v1.8h, v5.8h\n"
+ ".inst 0x6e45ec55 // bfmmla v21.4s, v2.8h, v5.8h\n"
+ ".inst 0x6e45ec7b // bfmmla v27.4s, v3.8h, v5.8h\n"
+ "ldr q5, [%[b_ptr], #-0x10]\n"
+ ".inst 0x6e46ec0a // bfmmla v10.4s, v0.8h, v6.8h\n"
+ ".inst 0x6e46ec30 // bfmmla v16.4s, v1.8h, v6.8h\n"
+ ".inst 0x6e46ec56 // bfmmla v22.4s, v2.8h, v6.8h\n"
+ ".inst 0x6e46ec7c // bfmmla v28.4s, v3.8h, v6.8h\n"
+ "uzp1 v6.2d, v14.2d, v15.2d\n"
+ ".inst 0x6e47ec0b // bfmmla v11.4s, v0.8h, v7.8h\n"
+ ".inst 0x6e47ec31 // bfmmla v17.4s, v1.8h, v7.8h\n"
+ ".inst 0x6e47ec57 // bfmmla v23.4s, v2.8h, v7.8h\n"
+ ".inst 0x6e47ec7d // bfmmla v29.4s, v3.8h, v7.8h\n"
+ ".inst 0x6e44ec0c // bfmmla v12.4s, v0.8h, v4.8h\n"
+ "uzp1 v7.2d, v16.2d, v17.2d\n"
+ ".inst 0x6e44ec32 // bfmmla v18.4s, v1.8h, v4.8h\n"
+ ".inst 0x6e44ec58 // bfmmla v24.4s, v2.8h, v4.8h\n"
+ ".inst 0x6e44ec7e // bfmmla v30.4s, v3.8h, v4.8h\n"
+ "uzp2 v4.2d, v10.2d, v11.2d\n"
+ ".inst 0x6e45ec0d // bfmmla v13.4s, v0.8h, v5.8h\n"
+ "uzp1 v0.2d, v8.2d, v9.2d\n"
+ ".inst 0x6e45ec33 // bfmmla v19.4s, v1.8h, v5.8h\n"
+ "uzp1 v1.2d, v10.2d, v11.2d\n"
+ ".inst 0x6e45ec59 // bfmmla v25.4s, v2.8h, v5.8h\n"
+ "str q0, [%[c_ptr]]\n"
+ "uzp1 v2.2d, v12.2d, v13.2d\n"
+ "uzp1 v0.2d, v18.2d, v19.2d\n"
+ ".inst 0x6e45ec7f // bfmmla v31.4s, v3.8h, v5.8h\n"
+ "str q1, [%[c_ptr], #0x10]\n"
+ "uzp2 v3.2d, v8.2d, v9.2d\n"
+ "uzp2 v5.2d, v12.2d, v13.2d\n"
+ "uzp2 v1.2d, v14.2d, v15.2d\n"
+ "str q2, [%[c_ptr], #0x20]\n"
+ "b 4f\n"
+ "3:\n"
+ ".inst 0x6e44ec08 // bfmmla v8.4s, v0.8h, v4.8h\n"
+ "add %[a_ptr], %[a_ptr], #0x40\n"
+ ".inst 0x6e44ec2e // bfmmla v14.4s, v1.8h, v4.8h\n"
+ "add %[b_ptr], %[b_ptr], #0x80\n"
+ ".inst 0x6e44ec54 // bfmmla v20.4s, v2.8h, v4.8h\n"
+ ".inst 0x6e44ec7a // bfmmla v26.4s, v3.8h, v4.8h\n"
+ "ldr q4, [%[b_ptr], #-0x80]\n"
+ ".inst 0x6e45ec09 // bfmmla v9.4s, v0.8h, v5.8h\n"
+ ".inst 0x6e45ec2f // bfmmla v15.4s, v1.8h, v5.8h\n"
+ ".inst 0x6e45ec55 // bfmmla v21.4s, v2.8h, v5.8h\n"
+ ".inst 0x6e45ec7b // bfmmla v27.4s, v3.8h, v5.8h\n"
+ "ldr q5, [%[b_ptr], #-0x70]\n"
+ ".inst 0x6e46ec0a // bfmmla v10.4s, v0.8h, v6.8h\n"
+ ".inst 0x6e46ec30 // bfmmla v16.4s, v1.8h, v6.8h\n"
+ ".inst 0x6e46ec56 // bfmmla v22.4s, v2.8h, v6.8h\n"
+ ".inst 0x6e46ec7c // bfmmla v28.4s, v3.8h, v6.8h\n"
+ "ldr q6, [%[b_ptr], #-0x60]\n"
+ ".inst 0x6e47ec0b // bfmmla v11.4s, v0.8h, v7.8h\n"
+ ".inst 0x6e47ec31 // bfmmla v17.4s, v1.8h, v7.8h\n"
+ ".inst 0x6e47ec57 // bfmmla v23.4s, v2.8h, v7.8h\n"
+ ".inst 0x6e47ec7d // bfmmla v29.4s, v3.8h, v7.8h\n"
+ "ldr q7, [%[b_ptr], #-0x50]\n"
+ ".inst 0x6e44ec0c // bfmmla v12.4s, v0.8h, v4.8h\n"
+ ".inst 0x6e44ec32 // bfmmla v18.4s, v1.8h, v4.8h\n"
+ ".inst 0x6e44ec58 // bfmmla v24.4s, v2.8h, v4.8h\n"
+ ".inst 0x6e44ec7e // bfmmla v30.4s, v3.8h, v4.8h\n"
+ "ldr q4, [%[b_ptr], #-0x40]\n"
+ ".inst 0x6e45ec0d // bfmmla v13.4s, v0.8h, v5.8h\n"
+ "ldr q0, [%[a_ptr], #-0x40]\n"
+ ".inst 0x6e45ec33 // bfmmla v19.4s, v1.8h, v5.8h\n"
+ "ldr q1, [%[a_ptr], #-0x30]\n"
+ ".inst 0x6e45ec59 // bfmmla v25.4s, v2.8h, v5.8h\n"
+ "ldr q2, [%[a_ptr], #-0x20]\n"
+ ".inst 0x6e45ec7f // bfmmla v31.4s, v3.8h, v5.8h\n"
+ "ldr q5, [%[b_ptr], #-0x30]\n"
+ ".inst 0x6e46ec08 // bfmmla v8.4s, v0.8h, v6.8h\n"
+ "ldr q3, [%[a_ptr], #-0x10]\n"
+ ".inst 0x6e46ec2e // bfmmla v14.4s, v1.8h, v6.8h\n"
+ ".inst 0x6e46ec54 // bfmmla v20.4s, v2.8h, v6.8h\n"
+ ".inst 0x6e47ec09 // bfmmla v9.4s, v0.8h, v7.8h\n"
+ ".inst 0x6e46ec7a // bfmmla v26.4s, v3.8h, v6.8h\n"
+ "ldr q6, [%[b_ptr], #-0x20]\n"
+ ".inst 0x6e47ec2f // bfmmla v15.4s, v1.8h, v7.8h\n"
+ ".inst 0x6e47ec55 // bfmmla v21.4s, v2.8h, v7.8h\n"
+ ".inst 0x6e47ec7b // bfmmla v27.4s, v3.8h, v7.8h\n"
+ "ldr q7, [%[b_ptr], #-0x10]\n"
+ ".inst 0x6e44ec0a // bfmmla v10.4s, v0.8h, v4.8h\n"
+ ".inst 0x6e44ec30 // bfmmla v16.4s, v1.8h, v4.8h\n"
+ ".inst 0x6e44ec56 // bfmmla v22.4s, v2.8h, v4.8h\n"
+ ".inst 0x6e44ec7c // bfmmla v28.4s, v3.8h, v4.8h\n"
+ ".inst 0x6e45ec0b // bfmmla v11.4s, v0.8h, v5.8h\n"
+ ".inst 0x6e45ec31 // bfmmla v17.4s, v1.8h, v5.8h\n"
+ ".inst 0x6e45ec57 // bfmmla v23.4s, v2.8h, v5.8h\n"
+ ".inst 0x6e45ec7d // bfmmla v29.4s, v3.8h, v5.8h\n"
+ "uzp2 v4.2d, v10.2d, v11.2d\n"
+ ".inst 0x6e46ec0c // bfmmla v12.4s, v0.8h, v6.8h\n"
+ ".inst 0x6e46ec32 // bfmmla v18.4s, v1.8h, v6.8h\n"
+ ".inst 0x6e46ec58 // bfmmla v24.4s, v2.8h, v6.8h\n"
+ ".inst 0x6e46ec7e // bfmmla v30.4s, v3.8h, v6.8h\n"
+ "uzp1 v6.2d, v14.2d, v15.2d\n"
+ ".inst 0x6e47ec0d // bfmmla v13.4s, v0.8h, v7.8h\n"
+ "uzp1 v0.2d, v8.2d, v9.2d\n"
+ ".inst 0x6e47ec33 // bfmmla v19.4s, v1.8h, v7.8h\n"
+ "uzp1 v1.2d, v10.2d, v11.2d\n"
+ "uzp2 v5.2d, v12.2d, v13.2d\n"
+ "str q0, [%[c_ptr]]\n"
+ ".inst 0x6e47ec59 // bfmmla v25.4s, v2.8h, v7.8h\n"
+ "uzp1 v2.2d, v12.2d, v13.2d\n"
+ "uzp1 v0.2d, v18.2d, v19.2d\n"
+ "str q1, [%[c_ptr], #0x10]\n"
+ "uzp2 v1.2d, v14.2d, v15.2d\n"
+ ".inst 0x6e47ec7f // bfmmla v31.4s, v3.8h, v7.8h\n"
+ "uzp2 v3.2d, v8.2d, v9.2d\n"
+ "str q2, [%[c_ptr], #0x20]\n"
+ "uzp1 v7.2d, v16.2d, v17.2d\n"
+ "4:\n"
+ "uzp2 v2.2d, v16.2d, v17.2d\n"
+ "str q3, [%[c_ptr], #0x30]\n"
+ "uzp2 v3.2d, v18.2d, v19.2d\n"
+ "str q4, [%[c_ptr], #0x40]\n"
+ "uzp1 v4.2d, v20.2d, v21.2d\n"
+ "str q5, [%[c_ptr], #0x50]\n"
+ "uzp1 v5.2d, v22.2d, v23.2d\n"
+ "str q6, [%[c_ptr], #0x60]\n"
+ "uzp1 v6.2d, v24.2d, v25.2d\n"
+ "str q7, [%[c_ptr], #0x70]\n"
+ "uzp2 v7.2d, v20.2d, v21.2d\n"
+ "str q0, [%[c_ptr], #0x80]\n"
+ "uzp2 v0.2d, v22.2d, v23.2d\n"
+ "str q1, [%[c_ptr], #0x90]\n"
+ "uzp2 v1.2d, v24.2d, v25.2d\n"
+ "str q2, [%[c_ptr], #0xa0]\n"
+ "uzp1 v2.2d, v26.2d, v27.2d\n"
+ "str q3, [%[c_ptr], #0xb0]\n"
+ "uzp1 v3.2d, v28.2d, v29.2d\n"
+ "str q4, [%[c_ptr], #0xc0]\n"
+ "uzp1 v4.2d, v30.2d, v31.2d\n"
+ "str q5, [%[c_ptr], #0xd0]\n"
+ "uzp2 v5.2d, v26.2d, v27.2d\n"
+ "str q6, [%[c_ptr], #0xe0]\n"
+ "uzp2 v6.2d, v28.2d, v29.2d\n"
+ "str q7, [%[c_ptr], #0xf0]\n"
+ "uzp2 v7.2d, v30.2d, v31.2d\n"
+ "str q0, [%[c_ptr], #0x100]\n"
+ "str q1, [%[c_ptr], #0x110]\n"
+ "str q2, [%[c_ptr], #0x120]\n"
+ "str q3, [%[c_ptr], #0x130]\n"
+ "str q4, [%[c_ptr], #0x140]\n"
+ "str q5, [%[c_ptr], #0x150]\n"
+ "str q6, [%[c_ptr], #0x160]\n"
+ "str q7, [%[c_ptr], #0x170]\n"
+ "add %[c_ptr], %[c_ptr], #0x180\n"
+ : [a_ptr] "+r" (a_ptr), [b_ptr] "+r" (b_ptr), [c_ptr] "+r" (c_ptr),
+ [loops] "+r" (loops), [tails] "+r" (tails)
+ :
+ : "v0", "v1", "v2", "v3", "v4", "v5", "v6", "v7", "v8", "v9", "v10", "v11", "v12", "v13", "v14", "v15", "v16", "v17", "v18", "v19", "v20", "v21", "v22", "v23", "v24", "v25", "v26", "v27", "v28", "v29", "v30", "v31", "cc", "memory"
+ );
+ }
+ }
+}
+
+} // namespace arm_gemm
+
+#endif // __aarch64__
diff --git a/src/core/NEON/kernels/arm_gemm/kernels/a64_sgemm_12x8.hpp b/src/core/NEON/kernels/arm_gemm/kernels/a64_sgemm_12x8.hpp
index 3c0395a33..ddc97b47f 100644
--- a/src/core/NEON/kernels/arm_gemm/kernels/a64_sgemm_12x8.hpp
+++ b/src/core/NEON/kernels/arm_gemm/kernels/a64_sgemm_12x8.hpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017-2019 Arm Limited.
+ * Copyright (c) 2017-2018 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
diff --git a/src/core/NEON/kernels/arm_gemm/kernels/a64_sgemm_12x8/generic.cpp b/src/core/NEON/kernels/arm_gemm/kernels/a64_sgemm_12x8/generic.cpp
index 6c0b5b18f..9c7495ed9 100644
--- a/src/core/NEON/kernels/arm_gemm/kernels/a64_sgemm_12x8/generic.cpp
+++ b/src/core/NEON/kernels/arm_gemm/kernels/a64_sgemm_12x8/generic.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017-2019 ARM Limited.
+ * Copyright (c) 2017-2018 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
diff --git a/src/core/NEON/kernels/arm_gemm/kernels/a64_sgemv_pretransposed.hpp b/src/core/NEON/kernels/arm_gemm/kernels/a64_sgemv_pretransposed.hpp
index c5b410f0b..a7162c9f5 100644
--- a/src/core/NEON/kernels/arm_gemm/kernels/a64_sgemv_pretransposed.hpp
+++ b/src/core/NEON/kernels/arm_gemm/kernels/a64_sgemv_pretransposed.hpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017-2019 Arm Limited.
+ * Copyright (c) 2017 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
diff --git a/src/core/NEON/kernels/arm_gemm/kernels/a64_sgemv_trans.hpp b/src/core/NEON/kernels/arm_gemm/kernels/a64_sgemv_trans.hpp
index c904dc8e7..36f84d89f 100644
--- a/src/core/NEON/kernels/arm_gemm/kernels/a64_sgemv_trans.hpp
+++ b/src/core/NEON/kernels/arm_gemm/kernels/a64_sgemv_trans.hpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017-2019 Arm Limited.
+ * Copyright (c) 2017 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
diff --git a/src/core/NEON/kernels/arm_gemm/kernels/a64_sgemv_trans/generic.cpp b/src/core/NEON/kernels/arm_gemm/kernels/a64_sgemv_trans/generic.cpp
index e61dbd82e..cb7f23903 100644
--- a/src/core/NEON/kernels/arm_gemm/kernels/a64_sgemv_trans/generic.cpp
+++ b/src/core/NEON/kernels/arm_gemm/kernels/a64_sgemv_trans/generic.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017-2019 ARM Limited.
+ * Copyright (c) 2017-2018 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
diff --git a/src/core/NEON/kernels/arm_gemm/kernels/a64_smallK_hybrid_s8s32_dot_4x6.hpp b/src/core/NEON/kernels/arm_gemm/kernels/a64_smallK_hybrid_s8s32_dot_4x6.hpp
index a1a1fc51a..fcb188a24 100644
--- a/src/core/NEON/kernels/arm_gemm/kernels/a64_smallK_hybrid_s8s32_dot_4x6.hpp
+++ b/src/core/NEON/kernels/arm_gemm/kernels/a64_smallK_hybrid_s8s32_dot_4x6.hpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2019 Arm Limited.
+ * Copyright (c) 2019 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
diff --git a/src/core/NEON/kernels/arm_gemm/kernels/a64_smallK_hybrid_s8s32_dot_4x8.hpp b/src/core/NEON/kernels/arm_gemm/kernels/a64_smallK_hybrid_s8s32_dot_4x8.hpp
index 02be0bd77..bfe896b94 100644
--- a/src/core/NEON/kernels/arm_gemm/kernels/a64_smallK_hybrid_s8s32_dot_4x8.hpp
+++ b/src/core/NEON/kernels/arm_gemm/kernels/a64_smallK_hybrid_s8s32_dot_4x8.hpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2019 Arm Limited.
+ * Copyright (c) 2019 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
diff --git a/src/core/NEON/kernels/arm_gemm/kernels/a64_smallK_hybrid_u8u32_dot_4x6.hpp b/src/core/NEON/kernels/arm_gemm/kernels/a64_smallK_hybrid_u8u32_dot_4x6.hpp
index 1110924e5..d817b9f47 100644
--- a/src/core/NEON/kernels/arm_gemm/kernels/a64_smallK_hybrid_u8u32_dot_4x6.hpp
+++ b/src/core/NEON/kernels/arm_gemm/kernels/a64_smallK_hybrid_u8u32_dot_4x6.hpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2019 Arm Limited.
+ * Copyright (c) 2019 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
diff --git a/src/core/NEON/kernels/arm_gemm/kernels/a64_smallK_hybrid_u8u32_dot_4x8.hpp b/src/core/NEON/kernels/arm_gemm/kernels/a64_smallK_hybrid_u8u32_dot_4x8.hpp
index fef8909d4..b825333a3 100644
--- a/src/core/NEON/kernels/arm_gemm/kernels/a64_smallK_hybrid_u8u32_dot_4x8.hpp
+++ b/src/core/NEON/kernels/arm_gemm/kernels/a64_smallK_hybrid_u8u32_dot_4x8.hpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2019 Arm Limited.
+ * Copyright (c) 2019 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
diff --git a/src/core/NEON/kernels/arm_gemm/kernels/sve_hybrid_bf16fp32_dot_4VLx4.hpp b/src/core/NEON/kernels/arm_gemm/kernels/sve_hybrid_bf16fp32_dot_4VLx4.hpp
new file mode 100644
index 000000000..ac9a8d257
--- /dev/null
+++ b/src/core/NEON/kernels/arm_gemm/kernels/sve_hybrid_bf16fp32_dot_4VLx4.hpp
@@ -0,0 +1,86 @@
+/*
+ * Copyright (c) 2018-2019 Arm Limited.
+ *
+ * SPDX-License-Identifier: MIT
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+#pragma once
+
+#ifdef __ARM_FEATURE_SVE
+
+#include "../bfloat.hpp"
+#include "../std_transforms_sve.hpp"
+
+namespace arm_gemm
+{
+
+// Actual kernel implementations
+void sve_hybrid_bf16fp32_dot_4VLx4(const bfloat16 *, int, const bfloat16 *, float *, int, int, int, int, const float *, Activation, bool);
+
+class hybrid_bf16fp32_dot_4VLx4
+{
+public:
+ typedef bfloat16 operand_type;
+ typedef float result_type;
+
+ typedef void (*kern_type)(const bfloat16 *, int, const bfloat16 *, float *, int, int, int, int, const float *, Activation, bool);
+
+ /* Kernel blocking parameters */
+ static constexpr unsigned int out_height()
+ {
+ return 4;
+ }
+
+ static unsigned int out_width()
+ {
+ return get_vector_length<float>() * 4;
+ }
+
+ static constexpr unsigned int k_unroll()
+ {
+ return 2;
+ }
+
+ static constexpr bool supports_append()
+ {
+ return true;
+ }
+
+ static constexpr bool supports_bias()
+ {
+ return true;
+ }
+
+ static constexpr bool supports_activation()
+ {
+ return true;
+ }
+
+ StdTransformsSVE<operand_type, result_type, 4, 4, 2> transforms = {};
+
+ // Default to the generic kernel
+ kern_type kernel=sve_hybrid_bf16fp32_dot_4VLx4;
+
+ hybrid_bf16fp32_dot_4VLx4(const CPUInfo *ci) { UNUSED(ci); }
+};
+
+} // namespace arm_gemm
+
+#endif // __ARM_FEATURE_SVE
diff --git a/src/core/NEON/kernels/arm_gemm/kernels/sve_hybrid_bf16fp32_dot_4VLx4/generic.cpp b/src/core/NEON/kernels/arm_gemm/kernels/sve_hybrid_bf16fp32_dot_4VLx4/generic.cpp
new file mode 100644
index 000000000..1ee7b1cf5
--- /dev/null
+++ b/src/core/NEON/kernels/arm_gemm/kernels/sve_hybrid_bf16fp32_dot_4VLx4/generic.cpp
@@ -0,0 +1,2236 @@
+/*
+ * Copyright (c) 2018-2019 Arm Limited.
+ *
+ * SPDX-License-Identifier: MIT
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+#ifdef __ARM_FEATURE_SVE
+
+#include <algorithm>
+
+#include "arm_gemm.hpp"
+#include "../../bfloat.hpp"
+#include "../../asmlib.hpp"
+#include "../../utils.hpp"
+
+namespace arm_gemm {
+
+void sve_hybrid_bf16fp32_dot_4VLx4(const bfloat16 *A, int lda, const bfloat16 *B, float *C, int ldc, int M, int N, int K, const float *bias, Activation act, bool append) {
+ const int K_stride = ((K + 1) / 2) * 2;
+ const long loops_count = ((K + 8) / 16) - 1;
+ K -= loops_count * 16;
+ const long regs_count = (K / 8) - 1;
+ K -= (regs_count + 1) * 8;
+ const long leftovers = K;
+ const long blocks_count = (K + 1) / 2;
+ float nullbias[256];
+ if (!append && !bias) {
+ memset(nullbias, 0, (4 * get_vector_length<float>() * sizeof(float)));
+ }
+ float minval = - static_cast<float>(std::numeric_limits<float>::infinity());
+ float maxval = static_cast<float>(std::numeric_limits<float>::infinity());
+ const float * const minptr = &minval;
+ const float * const maxptr = &maxval;
+
+ switch(act.type)
+ {
+ default:
+ case Activation::Type::None:
+ break;
+ case Activation::Type::BoundedReLU:
+ maxval = static_cast<float>(act.param1);
+ /* fall through */
+ case Activation::Type::ReLU:
+ minval = 0.0f;
+ break;
+ }
+
+ for (int y=0; y<M; y+=4) {
+ const bfloat16 * const a_ptr0_base = A + (y * lda);
+ const unsigned long ldab = lda * sizeof(bfloat16);
+
+ float *c_ptr0 = C + (y * ldc);
+
+ for (int x0=0; x0<N; x0+=(4 * get_vector_length<float>())) {
+ const long width = std::min((unsigned long)N-x0, (4 * get_vector_length<float>()));
+ long loops = loops_count;
+ long regs = regs_count;
+ long temp = 0;
+ long blocks = blocks_count;
+ const bfloat16 *a_ptr0 = a_ptr0_base;
+ const bfloat16 *b_ptr0 = B + (K_stride * x0);
+ const unsigned long ldcb = ldc * sizeof(float);
+ const float *biasptr = bias ? bias+x0 : nullbias;
+
+ switch(M-y) {
+ case 1:
+ __asm __volatile (
+ "whilelt p6.h, %[temp], %[leftovers]\n"
+ "whilelt p0.s, %[temp], %[width]\n"
+ "incw %[temp], all, mul #1\n"
+ "ptrue p7.h\n"
+ "whilelt p1.s, %[temp], %[width]\n"
+ "incw %[temp], all, mul #1\n"
+ "whilelt p2.s, %[temp], %[width]\n"
+ "incw %[temp], all, mul #1\n"
+ "whilelt p3.s, %[temp], %[width]\n"
+ "cbnz %[append], 1f\n"
+ "ld1w z16.s, p0/z, [%[biasptr]]\n"
+ "ld1w z17.s, p1/z, [%[biasptr], #1, MUL VL]\n"
+ "ld1w z18.s, p2/z, [%[biasptr], #2, MUL VL]\n"
+ "ld1w z19.s, p3/z, [%[biasptr], #3, MUL VL]\n"
+ "ld1rqh z0.h, p7/z, [%[a_ptr0]]\n"
+ "add %[a_ptr0], %[a_ptr0], #0x10\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0]]\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "cbz %[loops], 2f\n"
+ "b 3f\n"
+ "1:\n"
+ "ld1w z16.s, p0/z, [%[c_ptr0]]\n"
+ "ld1w z17.s, p1/z, [%[c_ptr0], #1, MUL VL]\n"
+ "ld1w z18.s, p2/z, [%[c_ptr0], #2, MUL VL]\n"
+ "ld1w z19.s, p3/z, [%[c_ptr0], #3, MUL VL]\n"
+ "ld1rqh z0.h, p7/z, [%[a_ptr0]]\n"
+ "add %[a_ptr0], %[a_ptr0], #0x10\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0]]\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "cbz %[loops], 2f\n"
+ "3:\n"
+ ".inst 0x64604110 // bfdot z16.s, z8.h, z0.h[0]\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #-1, MUL VL]\n"
+ ".inst 0x64604131 // bfdot z17.s, z9.h, z0.h[0]\n"
+ "ld1rqh z4.h, p7/z, [%[a_ptr0]]\n"
+ ".inst 0x64604152 // bfdot z18.s, z10.h, z0.h[0]\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0]]\n"
+ ".inst 0x64604173 // bfdot z19.s, z11.h, z0.h[0]\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x64684190 // bfdot z16.s, z12.h, z0.h[1]\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x646841b1 // bfdot z17.s, z13.h, z0.h[1]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x646841d2 // bfdot z18.s, z14.h, z0.h[1]\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ ".inst 0x646841f3 // bfdot z19.s, z15.h, z0.h[1]\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ ".inst 0x64704110 // bfdot z16.s, z8.h, z0.h[2]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ ".inst 0x64704131 // bfdot z17.s, z9.h, z0.h[2]\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ ".inst 0x64704152 // bfdot z18.s, z10.h, z0.h[2]\n"
+ "subs %[loops], %[loops], #0x1\n"
+ ".inst 0x64704173 // bfdot z19.s, z11.h, z0.h[2]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #16\n"
+ ".inst 0x64784190 // bfdot z16.s, z12.h, z0.h[3]\n"
+ "add %[a_ptr0], %[a_ptr0], #0x20\n"
+ ".inst 0x647841b1 // bfdot z17.s, z13.h, z0.h[3]\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #-8, MUL VL]\n"
+ ".inst 0x647841d2 // bfdot z18.s, z14.h, z0.h[3]\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #-7, MUL VL]\n"
+ ".inst 0x647841f3 // bfdot z19.s, z15.h, z0.h[3]\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #-6, MUL VL]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #-5, MUL VL]\n"
+ ".inst 0x64644110 // bfdot z16.s, z8.h, z4.h[0]\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #-4, MUL VL]\n"
+ ".inst 0x64644131 // bfdot z17.s, z9.h, z4.h[0]\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #-3, MUL VL]\n"
+ ".inst 0x64644152 // bfdot z18.s, z10.h, z4.h[0]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #-2, MUL VL]\n"
+ ".inst 0x64644173 // bfdot z19.s, z11.h, z4.h[0]\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #-1, MUL VL]\n"
+ ".inst 0x646c4190 // bfdot z16.s, z12.h, z4.h[1]\n"
+ "ld1rqh z0.h, p7/z, [%[a_ptr0], #-0x10]\n"
+ ".inst 0x646c41b1 // bfdot z17.s, z13.h, z4.h[1]\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0]]\n"
+ ".inst 0x646c41d2 // bfdot z18.s, z14.h, z4.h[1]\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x646c41f3 // bfdot z19.s, z15.h, z4.h[1]\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x64744110 // bfdot z16.s, z8.h, z4.h[2]\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ ".inst 0x64744131 // bfdot z17.s, z9.h, z4.h[2]\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ ".inst 0x64744152 // bfdot z18.s, z10.h, z4.h[2]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ ".inst 0x64744173 // bfdot z19.s, z11.h, z4.h[2]\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ ".inst 0x647c4190 // bfdot z16.s, z12.h, z4.h[3]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #16\n"
+ ".inst 0x647c41b1 // bfdot z17.s, z13.h, z4.h[3]\n"
+ ".inst 0x647c41d2 // bfdot z18.s, z14.h, z4.h[3]\n"
+ ".inst 0x647c41f3 // bfdot z19.s, z15.h, z4.h[3]\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #-8, MUL VL]\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #-7, MUL VL]\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #-6, MUL VL]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #-5, MUL VL]\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #-4, MUL VL]\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #-3, MUL VL]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #-2, MUL VL]\n"
+ "b.ne 3b\n"
+ "2:\n"
+ "cbz %[regs], 4f\n"
+ ".inst 0x64604110 // bfdot z16.s, z8.h, z0.h[0]\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #-1, MUL VL]\n"
+ ".inst 0x64604131 // bfdot z17.s, z9.h, z0.h[0]\n"
+ "ld1rqh z4.h, p7/z, [%[a_ptr0]]\n"
+ ".inst 0x64604152 // bfdot z18.s, z10.h, z0.h[0]\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0]]\n"
+ ".inst 0x64604173 // bfdot z19.s, z11.h, z0.h[0]\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x64684190 // bfdot z16.s, z12.h, z0.h[1]\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x646841b1 // bfdot z17.s, z13.h, z0.h[1]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x646841d2 // bfdot z18.s, z14.h, z0.h[1]\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ ".inst 0x646841f3 // bfdot z19.s, z15.h, z0.h[1]\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ ".inst 0x64704110 // bfdot z16.s, z8.h, z0.h[2]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ ".inst 0x64704131 // bfdot z17.s, z9.h, z0.h[2]\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ ".inst 0x64704152 // bfdot z18.s, z10.h, z0.h[2]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #16\n"
+ ".inst 0x64704173 // bfdot z19.s, z11.h, z0.h[2]\n"
+ ".inst 0x64784190 // bfdot z16.s, z12.h, z0.h[3]\n"
+ ".inst 0x647841b1 // bfdot z17.s, z13.h, z0.h[3]\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #-8, MUL VL]\n"
+ ".inst 0x647841d2 // bfdot z18.s, z14.h, z0.h[3]\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #-7, MUL VL]\n"
+ ".inst 0x647841f3 // bfdot z19.s, z15.h, z0.h[3]\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #-6, MUL VL]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #-5, MUL VL]\n"
+ ".inst 0x64644110 // bfdot z16.s, z8.h, z4.h[0]\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #-4, MUL VL]\n"
+ ".inst 0x64644131 // bfdot z17.s, z9.h, z4.h[0]\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #-3, MUL VL]\n"
+ ".inst 0x64644152 // bfdot z18.s, z10.h, z4.h[0]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #-2, MUL VL]\n"
+ ".inst 0x64644173 // bfdot z19.s, z11.h, z4.h[0]\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #-1, MUL VL]\n"
+ ".inst 0x646c4190 // bfdot z16.s, z12.h, z4.h[1]\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0]]\n"
+ ".inst 0x646c41b1 // bfdot z17.s, z13.h, z4.h[1]\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x646c41d2 // bfdot z18.s, z14.h, z4.h[1]\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x646c41f3 // bfdot z19.s, z15.h, z4.h[1]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x64744110 // bfdot z16.s, z8.h, z4.h[2]\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ ".inst 0x64744131 // bfdot z17.s, z9.h, z4.h[2]\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ ".inst 0x64744152 // bfdot z18.s, z10.h, z4.h[2]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ ".inst 0x64744173 // bfdot z19.s, z11.h, z4.h[2]\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ ".inst 0x647c4190 // bfdot z16.s, z12.h, z4.h[3]\n"
+ "ld1rqh z0.h, p6/z, [%[a_ptr0], #0x10]\n"
+ ".inst 0x647c41b1 // bfdot z17.s, z13.h, z4.h[3]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ ".inst 0x647c41d2 // bfdot z18.s, z14.h, z4.h[3]\n"
+ "addvl %[a_ptr0], %[a_ptr0], #2\n"
+ ".inst 0x647c41f3 // bfdot z19.s, z15.h, z4.h[3]\n"
+ "cbz %[blocks], 5f\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0]]\n"
+ "subs %[blocks], %[blocks], #0x1\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x64604110 // bfdot z16.s, z8.h, z0.h[0]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x64604131 // bfdot z17.s, z9.h, z0.h[0]\n"
+ ".inst 0x64604152 // bfdot z18.s, z10.h, z0.h[0]\n"
+ ".inst 0x64604173 // bfdot z19.s, z11.h, z0.h[0]\n"
+ "b.eq 5f\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "subs %[blocks], %[blocks], #0x1\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ ".inst 0x64684190 // bfdot z16.s, z12.h, z0.h[1]\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ ".inst 0x646841b1 // bfdot z17.s, z13.h, z0.h[1]\n"
+ ".inst 0x646841d2 // bfdot z18.s, z14.h, z0.h[1]\n"
+ ".inst 0x646841f3 // bfdot z19.s, z15.h, z0.h[1]\n"
+ "b.eq 5f\n"
+ "addvl %[b_ptr0], %[b_ptr0], #16\n"
+ "subs %[blocks], %[blocks], #0x1\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #-8, MUL VL]\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #-7, MUL VL]\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #-6, MUL VL]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #-5, MUL VL]\n"
+ ".inst 0x64704110 // bfdot z16.s, z8.h, z0.h[2]\n"
+ ".inst 0x64704131 // bfdot z17.s, z9.h, z0.h[2]\n"
+ ".inst 0x64704152 // bfdot z18.s, z10.h, z0.h[2]\n"
+ ".inst 0x64704173 // bfdot z19.s, z11.h, z0.h[2]\n"
+ "b.eq 5f\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #-4, MUL VL]\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #-3, MUL VL]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #-2, MUL VL]\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #-1, MUL VL]\n"
+ ".inst 0x64784190 // bfdot z16.s, z12.h, z0.h[3]\n"
+ ".inst 0x647841b1 // bfdot z17.s, z13.h, z0.h[3]\n"
+ ".inst 0x647841d2 // bfdot z18.s, z14.h, z0.h[3]\n"
+ ".inst 0x647841f3 // bfdot z19.s, z15.h, z0.h[3]\n"
+ "b 5f\n"
+ "4:\n"
+ ".inst 0x64604110 // bfdot z16.s, z8.h, z0.h[0]\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #-1, MUL VL]\n"
+ ".inst 0x64604131 // bfdot z17.s, z9.h, z0.h[0]\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0]]\n"
+ ".inst 0x64604152 // bfdot z18.s, z10.h, z0.h[0]\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x64604173 // bfdot z19.s, z11.h, z0.h[0]\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x64684190 // bfdot z16.s, z12.h, z0.h[1]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x646841b1 // bfdot z17.s, z13.h, z0.h[1]\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ ".inst 0x646841d2 // bfdot z18.s, z14.h, z0.h[1]\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ ".inst 0x646841f3 // bfdot z19.s, z15.h, z0.h[1]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ ".inst 0x64704110 // bfdot z16.s, z8.h, z0.h[2]\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ ".inst 0x64704131 // bfdot z17.s, z9.h, z0.h[2]\n"
+ "ld1rqh z4.h, p6/z, [%[a_ptr0]]\n"
+ ".inst 0x64704152 // bfdot z18.s, z10.h, z0.h[2]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ ".inst 0x64704173 // bfdot z19.s, z11.h, z0.h[2]\n"
+ "addvl %[a_ptr0], %[a_ptr0], #1\n"
+ ".inst 0x64784190 // bfdot z16.s, z12.h, z0.h[3]\n"
+ ".inst 0x647841b1 // bfdot z17.s, z13.h, z0.h[3]\n"
+ ".inst 0x647841d2 // bfdot z18.s, z14.h, z0.h[3]\n"
+ ".inst 0x647841f3 // bfdot z19.s, z15.h, z0.h[3]\n"
+ "cbz %[blocks], 5f\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0]]\n"
+ "subs %[blocks], %[blocks], #0x1\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x64644110 // bfdot z16.s, z8.h, z4.h[0]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x64644131 // bfdot z17.s, z9.h, z4.h[0]\n"
+ ".inst 0x64644152 // bfdot z18.s, z10.h, z4.h[0]\n"
+ ".inst 0x64644173 // bfdot z19.s, z11.h, z4.h[0]\n"
+ "b.eq 5f\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "subs %[blocks], %[blocks], #0x1\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ ".inst 0x646c4190 // bfdot z16.s, z12.h, z4.h[1]\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ ".inst 0x646c41b1 // bfdot z17.s, z13.h, z4.h[1]\n"
+ ".inst 0x646c41d2 // bfdot z18.s, z14.h, z4.h[1]\n"
+ ".inst 0x646c41f3 // bfdot z19.s, z15.h, z4.h[1]\n"
+ "b.eq 5f\n"
+ "addvl %[b_ptr0], %[b_ptr0], #16\n"
+ "subs %[blocks], %[blocks], #0x1\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #-8, MUL VL]\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #-7, MUL VL]\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #-6, MUL VL]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #-5, MUL VL]\n"
+ ".inst 0x64744110 // bfdot z16.s, z8.h, z4.h[2]\n"
+ ".inst 0x64744131 // bfdot z17.s, z9.h, z4.h[2]\n"
+ ".inst 0x64744152 // bfdot z18.s, z10.h, z4.h[2]\n"
+ ".inst 0x64744173 // bfdot z19.s, z11.h, z4.h[2]\n"
+ "b.eq 5f\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #-4, MUL VL]\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #-3, MUL VL]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #-2, MUL VL]\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #-1, MUL VL]\n"
+ ".inst 0x647c4190 // bfdot z16.s, z12.h, z4.h[3]\n"
+ ".inst 0x647c41b1 // bfdot z17.s, z13.h, z4.h[3]\n"
+ ".inst 0x647c41d2 // bfdot z18.s, z14.h, z4.h[3]\n"
+ ".inst 0x647c41f3 // bfdot z19.s, z15.h, z4.h[3]\n"
+ "5:\n"
+ "ld1rw z14.s, p7/z, [%[minptr]]\n"
+ "ld1rw z15.s, p7/z, [%[maxptr]]\n"
+ "fmax z16.s, p7/m, z16.s, z14.s\n"
+ "fmax z17.s, p7/m, z17.s, z14.s\n"
+ "fmax z18.s, p7/m, z18.s, z14.s\n"
+ "fmax z19.s, p7/m, z19.s, z14.s\n"
+ "fmin z16.s, p7/m, z16.s, z15.s\n"
+ "fmin z17.s, p7/m, z17.s, z15.s\n"
+ "fmin z18.s, p7/m, z18.s, z15.s\n"
+ "fmin z19.s, p7/m, z19.s, z15.s\n"
+ "st1w z16.s, p0, [%[c_ptr0]]\n"
+ "st1w z17.s, p1, [%[c_ptr0], #1, MUL VL]\n"
+ "st1w z18.s, p2, [%[c_ptr0], #2, MUL VL]\n"
+ "st1w z19.s, p3, [%[c_ptr0], #3, MUL VL]\n"
+ "addvl %[c_ptr0], %[c_ptr0], #4\n"
+ : [a_ptr0] "+r" (a_ptr0), [b_ptr0] "+r" (b_ptr0), [c_ptr0] "+r" (c_ptr0), [loops] "+r" (loops), [regs] "+r" (regs), [temp] "+r" (temp), [blocks] "+r" (blocks)
+ : [width] "r" (width), [append] "r" (static_cast<uint64_t>(append)), [lda] "r" (ldab), [ldc] "r" (ldcb), [biasptr] "r" (biasptr), [minptr] "r" (minptr), [maxptr] "r" (maxptr), [leftovers] "r" (leftovers)
+ : "z0", "z1", "z2", "z3", "z4", "z5", "z6", "z7", "z8", "z9", "z10", "z11", "z12", "z13", "z14", "z15", "z16", "z17", "z18", "z19", "z20", "z21", "z22", "z23", "z24", "z25", "z26", "z27", "z28", "z29", "z30", "z31", "cc", "memory"
+ );
+ break;
+ case 2:
+ __asm __volatile (
+ "a_ptr1 .req X0\n"
+ "c_ptr1 .req X1\n"
+ "add a_ptr1, %[a_ptr0], %[lda]\n"
+ "add c_ptr1, %[c_ptr0], %[ldc]\n"
+ "whilelt p6.h, %[temp], %[leftovers]\n"
+ "whilelt p0.s, %[temp], %[width]\n"
+ "incw %[temp], all, mul #1\n"
+ "ptrue p7.h\n"
+ "whilelt p1.s, %[temp], %[width]\n"
+ "incw %[temp], all, mul #1\n"
+ "whilelt p2.s, %[temp], %[width]\n"
+ "incw %[temp], all, mul #1\n"
+ "whilelt p3.s, %[temp], %[width]\n"
+ "cbnz %[append], 1f\n"
+ "ld1w z16.s, p0/z, [%[biasptr]]\n"
+ "ld1w z17.s, p1/z, [%[biasptr], #1, MUL VL]\n"
+ "ld1w z18.s, p2/z, [%[biasptr], #2, MUL VL]\n"
+ "ld1w z19.s, p3/z, [%[biasptr], #3, MUL VL]\n"
+ "mov z20.d, z16.d\n"
+ "ld1rqh z0.h, p7/z, [%[a_ptr0]]\n"
+ "mov z21.d, z17.d\n"
+ "ld1rqh z1.h, p7/z, [a_ptr1]\n"
+ "mov z22.d, z18.d\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0]]\n"
+ "mov z23.d, z19.d\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "add %[a_ptr0], %[a_ptr0], #0x10\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "add a_ptr1, a_ptr1, #0x10\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "cbz %[loops], 2f\n"
+ "b 3f\n"
+ "1:\n"
+ "ld1w z16.s, p0/z, [%[c_ptr0]]\n"
+ "ld1w z17.s, p1/z, [%[c_ptr0], #1, MUL VL]\n"
+ "ld1w z18.s, p2/z, [%[c_ptr0], #2, MUL VL]\n"
+ "ld1w z19.s, p3/z, [%[c_ptr0], #3, MUL VL]\n"
+ "ld1w z20.s, p0/z, [c_ptr1]\n"
+ "ld1w z21.s, p1/z, [c_ptr1, #1, MUL VL]\n"
+ "ld1w z22.s, p2/z, [c_ptr1, #2, MUL VL]\n"
+ "ld1w z23.s, p3/z, [c_ptr1, #3, MUL VL]\n"
+ "ld1rqh z0.h, p7/z, [%[a_ptr0]]\n"
+ "add %[a_ptr0], %[a_ptr0], #0x10\n"
+ "ld1rqh z1.h, p7/z, [a_ptr1]\n"
+ "add a_ptr1, a_ptr1, #0x10\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0]]\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "cbz %[loops], 2f\n"
+ "3:\n"
+ ".inst 0x64604110 // bfdot z16.s, z8.h, z0.h[0]\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #-1, MUL VL]\n"
+ ".inst 0x64614114 // bfdot z20.s, z8.h, z1.h[0]\n"
+ "ld1rqh z4.h, p7/z, [%[a_ptr0]]\n"
+ ".inst 0x64604131 // bfdot z17.s, z9.h, z0.h[0]\n"
+ "ld1rqh z5.h, p7/z, [a_ptr1]\n"
+ ".inst 0x64614135 // bfdot z21.s, z9.h, z1.h[0]\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0]]\n"
+ ".inst 0x64604152 // bfdot z18.s, z10.h, z0.h[0]\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x64614156 // bfdot z22.s, z10.h, z1.h[0]\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x64604173 // bfdot z19.s, z11.h, z0.h[0]\n"
+ "subs %[loops], %[loops], #0x1\n"
+ ".inst 0x64614177 // bfdot z23.s, z11.h, z1.h[0]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x64684190 // bfdot z16.s, z12.h, z0.h[1]\n"
+ "add %[a_ptr0], %[a_ptr0], #0x20\n"
+ ".inst 0x64694194 // bfdot z20.s, z12.h, z1.h[1]\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ ".inst 0x646841b1 // bfdot z17.s, z13.h, z0.h[1]\n"
+ "add a_ptr1, a_ptr1, #0x20\n"
+ ".inst 0x646941b5 // bfdot z21.s, z13.h, z1.h[1]\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ ".inst 0x646841d2 // bfdot z18.s, z14.h, z0.h[1]\n"
+ ".inst 0x646941d6 // bfdot z22.s, z14.h, z1.h[1]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ ".inst 0x646841f3 // bfdot z19.s, z15.h, z0.h[1]\n"
+ ".inst 0x646941f7 // bfdot z23.s, z15.h, z1.h[1]\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ ".inst 0x64704110 // bfdot z16.s, z8.h, z0.h[2]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #16\n"
+ ".inst 0x64714114 // bfdot z20.s, z8.h, z1.h[2]\n"
+ ".inst 0x64704131 // bfdot z17.s, z9.h, z0.h[2]\n"
+ ".inst 0x64714135 // bfdot z21.s, z9.h, z1.h[2]\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #-8, MUL VL]\n"
+ ".inst 0x64704152 // bfdot z18.s, z10.h, z0.h[2]\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #-7, MUL VL]\n"
+ ".inst 0x64714156 // bfdot z22.s, z10.h, z1.h[2]\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #-6, MUL VL]\n"
+ ".inst 0x64704173 // bfdot z19.s, z11.h, z0.h[2]\n"
+ ".inst 0x64714177 // bfdot z23.s, z11.h, z1.h[2]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #-5, MUL VL]\n"
+ ".inst 0x64784190 // bfdot z16.s, z12.h, z0.h[3]\n"
+ ".inst 0x64794194 // bfdot z20.s, z12.h, z1.h[3]\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #-4, MUL VL]\n"
+ ".inst 0x647841b1 // bfdot z17.s, z13.h, z0.h[3]\n"
+ ".inst 0x647941b5 // bfdot z21.s, z13.h, z1.h[3]\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #-3, MUL VL]\n"
+ ".inst 0x647841d2 // bfdot z18.s, z14.h, z0.h[3]\n"
+ ".inst 0x647941d6 // bfdot z22.s, z14.h, z1.h[3]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #-2, MUL VL]\n"
+ ".inst 0x647841f3 // bfdot z19.s, z15.h, z0.h[3]\n"
+ "ld1rqh z0.h, p7/z, [%[a_ptr0], #-0x10]\n"
+ ".inst 0x647941f7 // bfdot z23.s, z15.h, z1.h[3]\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #-1, MUL VL]\n"
+ ".inst 0x64644110 // bfdot z16.s, z8.h, z4.h[0]\n"
+ "ld1rqh z1.h, p7/z, [a_ptr1, #-0x10]\n"
+ ".inst 0x64654114 // bfdot z20.s, z8.h, z5.h[0]\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0]]\n"
+ ".inst 0x64644131 // bfdot z17.s, z9.h, z4.h[0]\n"
+ ".inst 0x64654135 // bfdot z21.s, z9.h, z5.h[0]\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x64644152 // bfdot z18.s, z10.h, z4.h[0]\n"
+ ".inst 0x64654156 // bfdot z22.s, z10.h, z5.h[0]\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x64644173 // bfdot z19.s, z11.h, z4.h[0]\n"
+ ".inst 0x64654177 // bfdot z23.s, z11.h, z5.h[0]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x646c4190 // bfdot z16.s, z12.h, z4.h[1]\n"
+ ".inst 0x646d4194 // bfdot z20.s, z12.h, z5.h[1]\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ ".inst 0x646c41b1 // bfdot z17.s, z13.h, z4.h[1]\n"
+ ".inst 0x646d41b5 // bfdot z21.s, z13.h, z5.h[1]\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ ".inst 0x646c41d2 // bfdot z18.s, z14.h, z4.h[1]\n"
+ ".inst 0x646d41d6 // bfdot z22.s, z14.h, z5.h[1]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ ".inst 0x646c41f3 // bfdot z19.s, z15.h, z4.h[1]\n"
+ ".inst 0x646d41f7 // bfdot z23.s, z15.h, z5.h[1]\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ ".inst 0x64744110 // bfdot z16.s, z8.h, z4.h[2]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #16\n"
+ ".inst 0x64754114 // bfdot z20.s, z8.h, z5.h[2]\n"
+ ".inst 0x64744131 // bfdot z17.s, z9.h, z4.h[2]\n"
+ ".inst 0x64754135 // bfdot z21.s, z9.h, z5.h[2]\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #-8, MUL VL]\n"
+ ".inst 0x64744152 // bfdot z18.s, z10.h, z4.h[2]\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #-7, MUL VL]\n"
+ ".inst 0x64754156 // bfdot z22.s, z10.h, z5.h[2]\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #-6, MUL VL]\n"
+ ".inst 0x64744173 // bfdot z19.s, z11.h, z4.h[2]\n"
+ ".inst 0x64754177 // bfdot z23.s, z11.h, z5.h[2]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #-5, MUL VL]\n"
+ ".inst 0x647c4190 // bfdot z16.s, z12.h, z4.h[3]\n"
+ ".inst 0x647d4194 // bfdot z20.s, z12.h, z5.h[3]\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #-4, MUL VL]\n"
+ ".inst 0x647c41b1 // bfdot z17.s, z13.h, z4.h[3]\n"
+ ".inst 0x647d41b5 // bfdot z21.s, z13.h, z5.h[3]\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #-3, MUL VL]\n"
+ ".inst 0x647c41d2 // bfdot z18.s, z14.h, z4.h[3]\n"
+ ".inst 0x647d41d6 // bfdot z22.s, z14.h, z5.h[3]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #-2, MUL VL]\n"
+ ".inst 0x647c41f3 // bfdot z19.s, z15.h, z4.h[3]\n"
+ ".inst 0x647d41f7 // bfdot z23.s, z15.h, z5.h[3]\n"
+ "b.ne 3b\n"
+ "2:\n"
+ "cbz %[regs], 4f\n"
+ ".inst 0x64604110 // bfdot z16.s, z8.h, z0.h[0]\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #-1, MUL VL]\n"
+ ".inst 0x64614114 // bfdot z20.s, z8.h, z1.h[0]\n"
+ "ld1rqh z4.h, p7/z, [%[a_ptr0]]\n"
+ ".inst 0x64604131 // bfdot z17.s, z9.h, z0.h[0]\n"
+ "ld1rqh z5.h, p7/z, [a_ptr1]\n"
+ ".inst 0x64614135 // bfdot z21.s, z9.h, z1.h[0]\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0]]\n"
+ ".inst 0x64604152 // bfdot z18.s, z10.h, z0.h[0]\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x64614156 // bfdot z22.s, z10.h, z1.h[0]\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x64604173 // bfdot z19.s, z11.h, z0.h[0]\n"
+ ".inst 0x64614177 // bfdot z23.s, z11.h, z1.h[0]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x64684190 // bfdot z16.s, z12.h, z0.h[1]\n"
+ ".inst 0x64694194 // bfdot z20.s, z12.h, z1.h[1]\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ ".inst 0x646841b1 // bfdot z17.s, z13.h, z0.h[1]\n"
+ ".inst 0x646941b5 // bfdot z21.s, z13.h, z1.h[1]\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ ".inst 0x646841d2 // bfdot z18.s, z14.h, z0.h[1]\n"
+ ".inst 0x646941d6 // bfdot z22.s, z14.h, z1.h[1]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ ".inst 0x646841f3 // bfdot z19.s, z15.h, z0.h[1]\n"
+ ".inst 0x646941f7 // bfdot z23.s, z15.h, z1.h[1]\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ ".inst 0x64704110 // bfdot z16.s, z8.h, z0.h[2]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #16\n"
+ ".inst 0x64714114 // bfdot z20.s, z8.h, z1.h[2]\n"
+ ".inst 0x64704131 // bfdot z17.s, z9.h, z0.h[2]\n"
+ ".inst 0x64714135 // bfdot z21.s, z9.h, z1.h[2]\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #-8, MUL VL]\n"
+ ".inst 0x64704152 // bfdot z18.s, z10.h, z0.h[2]\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #-7, MUL VL]\n"
+ ".inst 0x64714156 // bfdot z22.s, z10.h, z1.h[2]\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #-6, MUL VL]\n"
+ ".inst 0x64704173 // bfdot z19.s, z11.h, z0.h[2]\n"
+ ".inst 0x64714177 // bfdot z23.s, z11.h, z1.h[2]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #-5, MUL VL]\n"
+ ".inst 0x64784190 // bfdot z16.s, z12.h, z0.h[3]\n"
+ ".inst 0x64794194 // bfdot z20.s, z12.h, z1.h[3]\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #-4, MUL VL]\n"
+ ".inst 0x647841b1 // bfdot z17.s, z13.h, z0.h[3]\n"
+ ".inst 0x647941b5 // bfdot z21.s, z13.h, z1.h[3]\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #-3, MUL VL]\n"
+ ".inst 0x647841d2 // bfdot z18.s, z14.h, z0.h[3]\n"
+ ".inst 0x647941d6 // bfdot z22.s, z14.h, z1.h[3]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #-2, MUL VL]\n"
+ ".inst 0x647841f3 // bfdot z19.s, z15.h, z0.h[3]\n"
+ "ld1rqh z0.h, p6/z, [%[a_ptr0], #0x10]\n"
+ ".inst 0x647941f7 // bfdot z23.s, z15.h, z1.h[3]\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #-1, MUL VL]\n"
+ ".inst 0x64644110 // bfdot z16.s, z8.h, z4.h[0]\n"
+ "ld1rqh z1.h, p6/z, [a_ptr1, #0x10]\n"
+ ".inst 0x64654114 // bfdot z20.s, z8.h, z5.h[0]\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0]]\n"
+ ".inst 0x64644131 // bfdot z17.s, z9.h, z4.h[0]\n"
+ "addvl %[a_ptr0], %[a_ptr0], #2\n"
+ ".inst 0x64654135 // bfdot z21.s, z9.h, z5.h[0]\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x64644152 // bfdot z18.s, z10.h, z4.h[0]\n"
+ "addvl a_ptr1, a_ptr1, #2\n"
+ ".inst 0x64654156 // bfdot z22.s, z10.h, z5.h[0]\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x64644173 // bfdot z19.s, z11.h, z4.h[0]\n"
+ ".inst 0x64654177 // bfdot z23.s, z11.h, z5.h[0]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x646c4190 // bfdot z16.s, z12.h, z4.h[1]\n"
+ ".inst 0x646d4194 // bfdot z20.s, z12.h, z5.h[1]\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ ".inst 0x646c41b1 // bfdot z17.s, z13.h, z4.h[1]\n"
+ ".inst 0x646d41b5 // bfdot z21.s, z13.h, z5.h[1]\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ ".inst 0x646c41d2 // bfdot z18.s, z14.h, z4.h[1]\n"
+ ".inst 0x646d41d6 // bfdot z22.s, z14.h, z5.h[1]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ ".inst 0x646c41f3 // bfdot z19.s, z15.h, z4.h[1]\n"
+ ".inst 0x646d41f7 // bfdot z23.s, z15.h, z5.h[1]\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ ".inst 0x64744110 // bfdot z16.s, z8.h, z4.h[2]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ ".inst 0x64754114 // bfdot z20.s, z8.h, z5.h[2]\n"
+ ".inst 0x64744131 // bfdot z17.s, z9.h, z4.h[2]\n"
+ ".inst 0x64754135 // bfdot z21.s, z9.h, z5.h[2]\n"
+ ".inst 0x64744152 // bfdot z18.s, z10.h, z4.h[2]\n"
+ ".inst 0x64754156 // bfdot z22.s, z10.h, z5.h[2]\n"
+ ".inst 0x64744173 // bfdot z19.s, z11.h, z4.h[2]\n"
+ ".inst 0x64754177 // bfdot z23.s, z11.h, z5.h[2]\n"
+ ".inst 0x647c4190 // bfdot z16.s, z12.h, z4.h[3]\n"
+ ".inst 0x647d4194 // bfdot z20.s, z12.h, z5.h[3]\n"
+ ".inst 0x647c41b1 // bfdot z17.s, z13.h, z4.h[3]\n"
+ ".inst 0x647d41b5 // bfdot z21.s, z13.h, z5.h[3]\n"
+ ".inst 0x647c41d2 // bfdot z18.s, z14.h, z4.h[3]\n"
+ ".inst 0x647d41d6 // bfdot z22.s, z14.h, z5.h[3]\n"
+ ".inst 0x647c41f3 // bfdot z19.s, z15.h, z4.h[3]\n"
+ ".inst 0x647d41f7 // bfdot z23.s, z15.h, z5.h[3]\n"
+ "cbz %[blocks], 5f\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0]]\n"
+ "subs %[blocks], %[blocks], #0x1\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x64604110 // bfdot z16.s, z8.h, z0.h[0]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x64614114 // bfdot z20.s, z8.h, z1.h[0]\n"
+ ".inst 0x64604131 // bfdot z17.s, z9.h, z0.h[0]\n"
+ ".inst 0x64614135 // bfdot z21.s, z9.h, z1.h[0]\n"
+ ".inst 0x64604152 // bfdot z18.s, z10.h, z0.h[0]\n"
+ ".inst 0x64614156 // bfdot z22.s, z10.h, z1.h[0]\n"
+ ".inst 0x64604173 // bfdot z19.s, z11.h, z0.h[0]\n"
+ ".inst 0x64614177 // bfdot z23.s, z11.h, z1.h[0]\n"
+ "b.eq 5f\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "subs %[blocks], %[blocks], #0x1\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ ".inst 0x64684190 // bfdot z16.s, z12.h, z0.h[1]\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ ".inst 0x64694194 // bfdot z20.s, z12.h, z1.h[1]\n"
+ ".inst 0x646841b1 // bfdot z17.s, z13.h, z0.h[1]\n"
+ ".inst 0x646941b5 // bfdot z21.s, z13.h, z1.h[1]\n"
+ ".inst 0x646841d2 // bfdot z18.s, z14.h, z0.h[1]\n"
+ ".inst 0x646941d6 // bfdot z22.s, z14.h, z1.h[1]\n"
+ ".inst 0x646841f3 // bfdot z19.s, z15.h, z0.h[1]\n"
+ ".inst 0x646941f7 // bfdot z23.s, z15.h, z1.h[1]\n"
+ "b.eq 5f\n"
+ "addvl %[b_ptr0], %[b_ptr0], #16\n"
+ "subs %[blocks], %[blocks], #0x1\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #-8, MUL VL]\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #-7, MUL VL]\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #-6, MUL VL]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #-5, MUL VL]\n"
+ ".inst 0x64704110 // bfdot z16.s, z8.h, z0.h[2]\n"
+ ".inst 0x64714114 // bfdot z20.s, z8.h, z1.h[2]\n"
+ ".inst 0x64704131 // bfdot z17.s, z9.h, z0.h[2]\n"
+ ".inst 0x64714135 // bfdot z21.s, z9.h, z1.h[2]\n"
+ ".inst 0x64704152 // bfdot z18.s, z10.h, z0.h[2]\n"
+ ".inst 0x64714156 // bfdot z22.s, z10.h, z1.h[2]\n"
+ ".inst 0x64704173 // bfdot z19.s, z11.h, z0.h[2]\n"
+ ".inst 0x64714177 // bfdot z23.s, z11.h, z1.h[2]\n"
+ "b.eq 5f\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #-4, MUL VL]\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #-3, MUL VL]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #-2, MUL VL]\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #-1, MUL VL]\n"
+ ".inst 0x64784190 // bfdot z16.s, z12.h, z0.h[3]\n"
+ ".inst 0x64794194 // bfdot z20.s, z12.h, z1.h[3]\n"
+ ".inst 0x647841b1 // bfdot z17.s, z13.h, z0.h[3]\n"
+ ".inst 0x647941b5 // bfdot z21.s, z13.h, z1.h[3]\n"
+ ".inst 0x647841d2 // bfdot z18.s, z14.h, z0.h[3]\n"
+ ".inst 0x647941d6 // bfdot z22.s, z14.h, z1.h[3]\n"
+ ".inst 0x647841f3 // bfdot z19.s, z15.h, z0.h[3]\n"
+ ".inst 0x647941f7 // bfdot z23.s, z15.h, z1.h[3]\n"
+ "b 5f\n"
+ "4:\n"
+ ".inst 0x64604110 // bfdot z16.s, z8.h, z0.h[0]\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #-1, MUL VL]\n"
+ ".inst 0x64614114 // bfdot z20.s, z8.h, z1.h[0]\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0]]\n"
+ ".inst 0x64604131 // bfdot z17.s, z9.h, z0.h[0]\n"
+ "ld1rqh z4.h, p6/z, [%[a_ptr0]]\n"
+ ".inst 0x64614135 // bfdot z21.s, z9.h, z1.h[0]\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x64604152 // bfdot z18.s, z10.h, z0.h[0]\n"
+ "ld1rqh z5.h, p6/z, [a_ptr1]\n"
+ ".inst 0x64614156 // bfdot z22.s, z10.h, z1.h[0]\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x64604173 // bfdot z19.s, z11.h, z0.h[0]\n"
+ "addvl %[a_ptr0], %[a_ptr0], #1\n"
+ ".inst 0x64614177 // bfdot z23.s, z11.h, z1.h[0]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x64684190 // bfdot z16.s, z12.h, z0.h[1]\n"
+ "addvl a_ptr1, a_ptr1, #1\n"
+ ".inst 0x64694194 // bfdot z20.s, z12.h, z1.h[1]\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ ".inst 0x646841b1 // bfdot z17.s, z13.h, z0.h[1]\n"
+ ".inst 0x646941b5 // bfdot z21.s, z13.h, z1.h[1]\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ ".inst 0x646841d2 // bfdot z18.s, z14.h, z0.h[1]\n"
+ ".inst 0x646941d6 // bfdot z22.s, z14.h, z1.h[1]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ ".inst 0x646841f3 // bfdot z19.s, z15.h, z0.h[1]\n"
+ ".inst 0x646941f7 // bfdot z23.s, z15.h, z1.h[1]\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ ".inst 0x64704110 // bfdot z16.s, z8.h, z0.h[2]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ ".inst 0x64714114 // bfdot z20.s, z8.h, z1.h[2]\n"
+ ".inst 0x64704131 // bfdot z17.s, z9.h, z0.h[2]\n"
+ ".inst 0x64714135 // bfdot z21.s, z9.h, z1.h[2]\n"
+ ".inst 0x64704152 // bfdot z18.s, z10.h, z0.h[2]\n"
+ ".inst 0x64714156 // bfdot z22.s, z10.h, z1.h[2]\n"
+ ".inst 0x64704173 // bfdot z19.s, z11.h, z0.h[2]\n"
+ ".inst 0x64714177 // bfdot z23.s, z11.h, z1.h[2]\n"
+ ".inst 0x64784190 // bfdot z16.s, z12.h, z0.h[3]\n"
+ ".inst 0x64794194 // bfdot z20.s, z12.h, z1.h[3]\n"
+ ".inst 0x647841b1 // bfdot z17.s, z13.h, z0.h[3]\n"
+ ".inst 0x647941b5 // bfdot z21.s, z13.h, z1.h[3]\n"
+ ".inst 0x647841d2 // bfdot z18.s, z14.h, z0.h[3]\n"
+ ".inst 0x647941d6 // bfdot z22.s, z14.h, z1.h[3]\n"
+ ".inst 0x647841f3 // bfdot z19.s, z15.h, z0.h[3]\n"
+ ".inst 0x647941f7 // bfdot z23.s, z15.h, z1.h[3]\n"
+ "cbz %[blocks], 5f\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0]]\n"
+ "subs %[blocks], %[blocks], #0x1\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x64644110 // bfdot z16.s, z8.h, z4.h[0]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x64654114 // bfdot z20.s, z8.h, z5.h[0]\n"
+ ".inst 0x64644131 // bfdot z17.s, z9.h, z4.h[0]\n"
+ ".inst 0x64654135 // bfdot z21.s, z9.h, z5.h[0]\n"
+ ".inst 0x64644152 // bfdot z18.s, z10.h, z4.h[0]\n"
+ ".inst 0x64654156 // bfdot z22.s, z10.h, z5.h[0]\n"
+ ".inst 0x64644173 // bfdot z19.s, z11.h, z4.h[0]\n"
+ ".inst 0x64654177 // bfdot z23.s, z11.h, z5.h[0]\n"
+ "b.eq 5f\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "subs %[blocks], %[blocks], #0x1\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ ".inst 0x646c4190 // bfdot z16.s, z12.h, z4.h[1]\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ ".inst 0x646d4194 // bfdot z20.s, z12.h, z5.h[1]\n"
+ ".inst 0x646c41b1 // bfdot z17.s, z13.h, z4.h[1]\n"
+ ".inst 0x646d41b5 // bfdot z21.s, z13.h, z5.h[1]\n"
+ ".inst 0x646c41d2 // bfdot z18.s, z14.h, z4.h[1]\n"
+ ".inst 0x646d41d6 // bfdot z22.s, z14.h, z5.h[1]\n"
+ ".inst 0x646c41f3 // bfdot z19.s, z15.h, z4.h[1]\n"
+ ".inst 0x646d41f7 // bfdot z23.s, z15.h, z5.h[1]\n"
+ "b.eq 5f\n"
+ "addvl %[b_ptr0], %[b_ptr0], #16\n"
+ "subs %[blocks], %[blocks], #0x1\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #-8, MUL VL]\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #-7, MUL VL]\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #-6, MUL VL]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #-5, MUL VL]\n"
+ ".inst 0x64744110 // bfdot z16.s, z8.h, z4.h[2]\n"
+ ".inst 0x64754114 // bfdot z20.s, z8.h, z5.h[2]\n"
+ ".inst 0x64744131 // bfdot z17.s, z9.h, z4.h[2]\n"
+ ".inst 0x64754135 // bfdot z21.s, z9.h, z5.h[2]\n"
+ ".inst 0x64744152 // bfdot z18.s, z10.h, z4.h[2]\n"
+ ".inst 0x64754156 // bfdot z22.s, z10.h, z5.h[2]\n"
+ ".inst 0x64744173 // bfdot z19.s, z11.h, z4.h[2]\n"
+ ".inst 0x64754177 // bfdot z23.s, z11.h, z5.h[2]\n"
+ "b.eq 5f\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #-4, MUL VL]\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #-3, MUL VL]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #-2, MUL VL]\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #-1, MUL VL]\n"
+ ".inst 0x647c4190 // bfdot z16.s, z12.h, z4.h[3]\n"
+ ".inst 0x647d4194 // bfdot z20.s, z12.h, z5.h[3]\n"
+ ".inst 0x647c41b1 // bfdot z17.s, z13.h, z4.h[3]\n"
+ ".inst 0x647d41b5 // bfdot z21.s, z13.h, z5.h[3]\n"
+ ".inst 0x647c41d2 // bfdot z18.s, z14.h, z4.h[3]\n"
+ ".inst 0x647d41d6 // bfdot z22.s, z14.h, z5.h[3]\n"
+ ".inst 0x647c41f3 // bfdot z19.s, z15.h, z4.h[3]\n"
+ ".inst 0x647d41f7 // bfdot z23.s, z15.h, z5.h[3]\n"
+ "5:\n"
+ "ld1rw z14.s, p7/z, [%[minptr]]\n"
+ "ld1rw z15.s, p7/z, [%[maxptr]]\n"
+ "fmax z16.s, p7/m, z16.s, z14.s\n"
+ "fmax z17.s, p7/m, z17.s, z14.s\n"
+ "fmax z18.s, p7/m, z18.s, z14.s\n"
+ "fmax z19.s, p7/m, z19.s, z14.s\n"
+ "fmin z16.s, p7/m, z16.s, z15.s\n"
+ "fmin z17.s, p7/m, z17.s, z15.s\n"
+ "fmin z18.s, p7/m, z18.s, z15.s\n"
+ "fmin z19.s, p7/m, z19.s, z15.s\n"
+ "st1w z16.s, p0, [%[c_ptr0]]\n"
+ "fmax z20.s, p7/m, z20.s, z14.s\n"
+ "fmax z21.s, p7/m, z21.s, z14.s\n"
+ "fmax z22.s, p7/m, z22.s, z14.s\n"
+ "st1w z17.s, p1, [%[c_ptr0], #1, MUL VL]\n"
+ "fmax z23.s, p7/m, z23.s, z14.s\n"
+ "fmin z20.s, p7/m, z20.s, z15.s\n"
+ "fmin z21.s, p7/m, z21.s, z15.s\n"
+ "st1w z18.s, p2, [%[c_ptr0], #2, MUL VL]\n"
+ "fmin z22.s, p7/m, z22.s, z15.s\n"
+ "fmin z23.s, p7/m, z23.s, z15.s\n"
+ "st1w z19.s, p3, [%[c_ptr0], #3, MUL VL]\n"
+ "addvl %[c_ptr0], %[c_ptr0], #4\n"
+ "st1w z20.s, p0, [c_ptr1]\n"
+ "st1w z21.s, p1, [c_ptr1, #1, MUL VL]\n"
+ "st1w z22.s, p2, [c_ptr1, #2, MUL VL]\n"
+ "st1w z23.s, p3, [c_ptr1, #3, MUL VL]\n"
+ ".unreq a_ptr1\n"
+ ".unreq c_ptr1\n"
+ : [a_ptr0] "+r" (a_ptr0), [b_ptr0] "+r" (b_ptr0), [c_ptr0] "+r" (c_ptr0), [loops] "+r" (loops), [regs] "+r" (regs), [temp] "+r" (temp), [blocks] "+r" (blocks)
+ : [width] "r" (width), [append] "r" (static_cast<uint64_t>(append)), [lda] "r" (ldab), [ldc] "r" (ldcb), [biasptr] "r" (biasptr), [minptr] "r" (minptr), [maxptr] "r" (maxptr), [leftovers] "r" (leftovers)
+ : "z0", "z1", "z2", "z3", "z4", "z5", "z6", "z7", "z8", "z9", "z10", "z11", "z12", "z13", "z14", "z15", "z16", "z17", "z18", "z19", "z20", "z21", "z22", "z23", "z24", "z25", "z26", "z27", "z28", "z29", "z30", "z31", "x0", "x1", "cc", "memory"
+ );
+ break;
+ case 3:
+ __asm __volatile (
+ "a_ptr1 .req X0\n"
+ "a_ptr2 .req X1\n"
+ "c_ptr1 .req X2\n"
+ "c_ptr2 .req X3\n"
+ "add a_ptr1, %[a_ptr0], %[lda]\n"
+ "add c_ptr1, %[c_ptr0], %[ldc]\n"
+ "add a_ptr2, a_ptr1, %[lda]\n"
+ "add c_ptr2, c_ptr1, %[ldc]\n"
+ "whilelt p6.h, %[temp], %[leftovers]\n"
+ "whilelt p0.s, %[temp], %[width]\n"
+ "incw %[temp], all, mul #1\n"
+ "ptrue p7.h\n"
+ "whilelt p1.s, %[temp], %[width]\n"
+ "incw %[temp], all, mul #1\n"
+ "whilelt p2.s, %[temp], %[width]\n"
+ "incw %[temp], all, mul #1\n"
+ "whilelt p3.s, %[temp], %[width]\n"
+ "cbnz %[append], 1f\n"
+ "ld1w z16.s, p0/z, [%[biasptr]]\n"
+ "ld1w z17.s, p1/z, [%[biasptr], #1, MUL VL]\n"
+ "ld1w z18.s, p2/z, [%[biasptr], #2, MUL VL]\n"
+ "ld1w z19.s, p3/z, [%[biasptr], #3, MUL VL]\n"
+ "mov z20.d, z16.d\n"
+ "ld1rqh z0.h, p7/z, [%[a_ptr0]]\n"
+ "mov z21.d, z17.d\n"
+ "ld1rqh z1.h, p7/z, [a_ptr1]\n"
+ "mov z22.d, z18.d\n"
+ "ld1rqh z2.h, p7/z, [a_ptr2]\n"
+ "mov z23.d, z19.d\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0]]\n"
+ "mov z24.d, z16.d\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "mov z25.d, z17.d\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "mov z26.d, z18.d\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "mov z27.d, z19.d\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "add %[a_ptr0], %[a_ptr0], #0x10\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "add a_ptr1, a_ptr1, #0x10\n"
+ "add a_ptr2, a_ptr2, #0x10\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "cbz %[loops], 2f\n"
+ "b 3f\n"
+ "1:\n"
+ "ld1w z16.s, p0/z, [%[c_ptr0]]\n"
+ "ld1w z17.s, p1/z, [%[c_ptr0], #1, MUL VL]\n"
+ "ld1w z18.s, p2/z, [%[c_ptr0], #2, MUL VL]\n"
+ "ld1w z19.s, p3/z, [%[c_ptr0], #3, MUL VL]\n"
+ "ld1w z20.s, p0/z, [c_ptr1]\n"
+ "ld1w z21.s, p1/z, [c_ptr1, #1, MUL VL]\n"
+ "ld1w z22.s, p2/z, [c_ptr1, #2, MUL VL]\n"
+ "ld1w z23.s, p3/z, [c_ptr1, #3, MUL VL]\n"
+ "ld1w z24.s, p0/z, [c_ptr2]\n"
+ "ld1w z25.s, p1/z, [c_ptr2, #1, MUL VL]\n"
+ "ld1w z26.s, p2/z, [c_ptr2, #2, MUL VL]\n"
+ "ld1w z27.s, p3/z, [c_ptr2, #3, MUL VL]\n"
+ "ld1rqh z0.h, p7/z, [%[a_ptr0]]\n"
+ "add %[a_ptr0], %[a_ptr0], #0x10\n"
+ "ld1rqh z1.h, p7/z, [a_ptr1]\n"
+ "add a_ptr1, a_ptr1, #0x10\n"
+ "ld1rqh z2.h, p7/z, [a_ptr2]\n"
+ "add a_ptr2, a_ptr2, #0x10\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0]]\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "cbz %[loops], 2f\n"
+ "3:\n"
+ ".inst 0x64604110 // bfdot z16.s, z8.h, z0.h[0]\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #-1, MUL VL]\n"
+ ".inst 0x64614114 // bfdot z20.s, z8.h, z1.h[0]\n"
+ "ld1rqh z4.h, p7/z, [%[a_ptr0]]\n"
+ ".inst 0x64624118 // bfdot z24.s, z8.h, z2.h[0]\n"
+ "ld1rqh z5.h, p7/z, [a_ptr1]\n"
+ ".inst 0x64604131 // bfdot z17.s, z9.h, z0.h[0]\n"
+ "ld1rqh z6.h, p7/z, [a_ptr2]\n"
+ ".inst 0x64614135 // bfdot z21.s, z9.h, z1.h[0]\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0]]\n"
+ ".inst 0x64624139 // bfdot z25.s, z9.h, z2.h[0]\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x64604152 // bfdot z18.s, z10.h, z0.h[0]\n"
+ "subs %[loops], %[loops], #0x1\n"
+ ".inst 0x64614156 // bfdot z22.s, z10.h, z1.h[0]\n"
+ "add %[a_ptr0], %[a_ptr0], #0x20\n"
+ ".inst 0x6462415a // bfdot z26.s, z10.h, z2.h[0]\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x64604173 // bfdot z19.s, z11.h, z0.h[0]\n"
+ "add a_ptr1, a_ptr1, #0x20\n"
+ ".inst 0x64614177 // bfdot z23.s, z11.h, z1.h[0]\n"
+ "add a_ptr2, a_ptr2, #0x20\n"
+ ".inst 0x6462417b // bfdot z27.s, z11.h, z2.h[0]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x64684190 // bfdot z16.s, z12.h, z0.h[1]\n"
+ ".inst 0x64694194 // bfdot z20.s, z12.h, z1.h[1]\n"
+ ".inst 0x646a4198 // bfdot z24.s, z12.h, z2.h[1]\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ ".inst 0x646841b1 // bfdot z17.s, z13.h, z0.h[1]\n"
+ ".inst 0x646941b5 // bfdot z21.s, z13.h, z1.h[1]\n"
+ ".inst 0x646a41b9 // bfdot z25.s, z13.h, z2.h[1]\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ ".inst 0x646841d2 // bfdot z18.s, z14.h, z0.h[1]\n"
+ ".inst 0x646941d6 // bfdot z22.s, z14.h, z1.h[1]\n"
+ ".inst 0x646a41da // bfdot z26.s, z14.h, z2.h[1]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ ".inst 0x646841f3 // bfdot z19.s, z15.h, z0.h[1]\n"
+ ".inst 0x646941f7 // bfdot z23.s, z15.h, z1.h[1]\n"
+ ".inst 0x646a41fb // bfdot z27.s, z15.h, z2.h[1]\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ ".inst 0x64704110 // bfdot z16.s, z8.h, z0.h[2]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #16\n"
+ ".inst 0x64714114 // bfdot z20.s, z8.h, z1.h[2]\n"
+ ".inst 0x64724118 // bfdot z24.s, z8.h, z2.h[2]\n"
+ ".inst 0x64704131 // bfdot z17.s, z9.h, z0.h[2]\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #-8, MUL VL]\n"
+ ".inst 0x64714135 // bfdot z21.s, z9.h, z1.h[2]\n"
+ ".inst 0x64724139 // bfdot z25.s, z9.h, z2.h[2]\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #-7, MUL VL]\n"
+ ".inst 0x64704152 // bfdot z18.s, z10.h, z0.h[2]\n"
+ ".inst 0x64714156 // bfdot z22.s, z10.h, z1.h[2]\n"
+ ".inst 0x6472415a // bfdot z26.s, z10.h, z2.h[2]\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #-6, MUL VL]\n"
+ ".inst 0x64704173 // bfdot z19.s, z11.h, z0.h[2]\n"
+ ".inst 0x64714177 // bfdot z23.s, z11.h, z1.h[2]\n"
+ ".inst 0x6472417b // bfdot z27.s, z11.h, z2.h[2]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #-5, MUL VL]\n"
+ ".inst 0x64784190 // bfdot z16.s, z12.h, z0.h[3]\n"
+ ".inst 0x64794194 // bfdot z20.s, z12.h, z1.h[3]\n"
+ ".inst 0x647a4198 // bfdot z24.s, z12.h, z2.h[3]\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #-4, MUL VL]\n"
+ ".inst 0x647841b1 // bfdot z17.s, z13.h, z0.h[3]\n"
+ ".inst 0x647941b5 // bfdot z21.s, z13.h, z1.h[3]\n"
+ ".inst 0x647a41b9 // bfdot z25.s, z13.h, z2.h[3]\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #-3, MUL VL]\n"
+ ".inst 0x647841d2 // bfdot z18.s, z14.h, z0.h[3]\n"
+ ".inst 0x647941d6 // bfdot z22.s, z14.h, z1.h[3]\n"
+ ".inst 0x647a41da // bfdot z26.s, z14.h, z2.h[3]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #-2, MUL VL]\n"
+ ".inst 0x647841f3 // bfdot z19.s, z15.h, z0.h[3]\n"
+ "ld1rqh z0.h, p7/z, [%[a_ptr0], #-0x10]\n"
+ ".inst 0x647941f7 // bfdot z23.s, z15.h, z1.h[3]\n"
+ "ld1rqh z1.h, p7/z, [a_ptr1, #-0x10]\n"
+ ".inst 0x647a41fb // bfdot z27.s, z15.h, z2.h[3]\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #-1, MUL VL]\n"
+ ".inst 0x64644110 // bfdot z16.s, z8.h, z4.h[0]\n"
+ "ld1rqh z2.h, p7/z, [a_ptr2, #-0x10]\n"
+ ".inst 0x64654114 // bfdot z20.s, z8.h, z5.h[0]\n"
+ ".inst 0x64664118 // bfdot z24.s, z8.h, z6.h[0]\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0]]\n"
+ ".inst 0x64644131 // bfdot z17.s, z9.h, z4.h[0]\n"
+ ".inst 0x64654135 // bfdot z21.s, z9.h, z5.h[0]\n"
+ ".inst 0x64664139 // bfdot z25.s, z9.h, z6.h[0]\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x64644152 // bfdot z18.s, z10.h, z4.h[0]\n"
+ ".inst 0x64654156 // bfdot z22.s, z10.h, z5.h[0]\n"
+ ".inst 0x6466415a // bfdot z26.s, z10.h, z6.h[0]\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x64644173 // bfdot z19.s, z11.h, z4.h[0]\n"
+ ".inst 0x64654177 // bfdot z23.s, z11.h, z5.h[0]\n"
+ ".inst 0x6466417b // bfdot z27.s, z11.h, z6.h[0]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x646c4190 // bfdot z16.s, z12.h, z4.h[1]\n"
+ ".inst 0x646d4194 // bfdot z20.s, z12.h, z5.h[1]\n"
+ ".inst 0x646e4198 // bfdot z24.s, z12.h, z6.h[1]\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ ".inst 0x646c41b1 // bfdot z17.s, z13.h, z4.h[1]\n"
+ ".inst 0x646d41b5 // bfdot z21.s, z13.h, z5.h[1]\n"
+ ".inst 0x646e41b9 // bfdot z25.s, z13.h, z6.h[1]\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ ".inst 0x646c41d2 // bfdot z18.s, z14.h, z4.h[1]\n"
+ ".inst 0x646d41d6 // bfdot z22.s, z14.h, z5.h[1]\n"
+ ".inst 0x646e41da // bfdot z26.s, z14.h, z6.h[1]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ ".inst 0x646c41f3 // bfdot z19.s, z15.h, z4.h[1]\n"
+ ".inst 0x646d41f7 // bfdot z23.s, z15.h, z5.h[1]\n"
+ ".inst 0x646e41fb // bfdot z27.s, z15.h, z6.h[1]\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ ".inst 0x64744110 // bfdot z16.s, z8.h, z4.h[2]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #16\n"
+ ".inst 0x64754114 // bfdot z20.s, z8.h, z5.h[2]\n"
+ ".inst 0x64764118 // bfdot z24.s, z8.h, z6.h[2]\n"
+ ".inst 0x64744131 // bfdot z17.s, z9.h, z4.h[2]\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #-8, MUL VL]\n"
+ ".inst 0x64754135 // bfdot z21.s, z9.h, z5.h[2]\n"
+ ".inst 0x64764139 // bfdot z25.s, z9.h, z6.h[2]\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #-7, MUL VL]\n"
+ ".inst 0x64744152 // bfdot z18.s, z10.h, z4.h[2]\n"
+ ".inst 0x64754156 // bfdot z22.s, z10.h, z5.h[2]\n"
+ ".inst 0x6476415a // bfdot z26.s, z10.h, z6.h[2]\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #-6, MUL VL]\n"
+ ".inst 0x64744173 // bfdot z19.s, z11.h, z4.h[2]\n"
+ ".inst 0x64754177 // bfdot z23.s, z11.h, z5.h[2]\n"
+ ".inst 0x6476417b // bfdot z27.s, z11.h, z6.h[2]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #-5, MUL VL]\n"
+ ".inst 0x647c4190 // bfdot z16.s, z12.h, z4.h[3]\n"
+ ".inst 0x647d4194 // bfdot z20.s, z12.h, z5.h[3]\n"
+ ".inst 0x647e4198 // bfdot z24.s, z12.h, z6.h[3]\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #-4, MUL VL]\n"
+ ".inst 0x647c41b1 // bfdot z17.s, z13.h, z4.h[3]\n"
+ ".inst 0x647d41b5 // bfdot z21.s, z13.h, z5.h[3]\n"
+ ".inst 0x647e41b9 // bfdot z25.s, z13.h, z6.h[3]\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #-3, MUL VL]\n"
+ ".inst 0x647c41d2 // bfdot z18.s, z14.h, z4.h[3]\n"
+ ".inst 0x647d41d6 // bfdot z22.s, z14.h, z5.h[3]\n"
+ ".inst 0x647e41da // bfdot z26.s, z14.h, z6.h[3]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #-2, MUL VL]\n"
+ ".inst 0x647c41f3 // bfdot z19.s, z15.h, z4.h[3]\n"
+ ".inst 0x647d41f7 // bfdot z23.s, z15.h, z5.h[3]\n"
+ ".inst 0x647e41fb // bfdot z27.s, z15.h, z6.h[3]\n"
+ "b.ne 3b\n"
+ "2:\n"
+ "cbz %[regs], 4f\n"
+ ".inst 0x64604110 // bfdot z16.s, z8.h, z0.h[0]\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #-1, MUL VL]\n"
+ ".inst 0x64614114 // bfdot z20.s, z8.h, z1.h[0]\n"
+ "ld1rqh z4.h, p7/z, [%[a_ptr0]]\n"
+ ".inst 0x64624118 // bfdot z24.s, z8.h, z2.h[0]\n"
+ "ld1rqh z5.h, p7/z, [a_ptr1]\n"
+ ".inst 0x64604131 // bfdot z17.s, z9.h, z0.h[0]\n"
+ "ld1rqh z6.h, p7/z, [a_ptr2]\n"
+ ".inst 0x64614135 // bfdot z21.s, z9.h, z1.h[0]\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0]]\n"
+ ".inst 0x64624139 // bfdot z25.s, z9.h, z2.h[0]\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x64604152 // bfdot z18.s, z10.h, z0.h[0]\n"
+ ".inst 0x64614156 // bfdot z22.s, z10.h, z1.h[0]\n"
+ ".inst 0x6462415a // bfdot z26.s, z10.h, z2.h[0]\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x64604173 // bfdot z19.s, z11.h, z0.h[0]\n"
+ ".inst 0x64614177 // bfdot z23.s, z11.h, z1.h[0]\n"
+ ".inst 0x6462417b // bfdot z27.s, z11.h, z2.h[0]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x64684190 // bfdot z16.s, z12.h, z0.h[1]\n"
+ ".inst 0x64694194 // bfdot z20.s, z12.h, z1.h[1]\n"
+ ".inst 0x646a4198 // bfdot z24.s, z12.h, z2.h[1]\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ ".inst 0x646841b1 // bfdot z17.s, z13.h, z0.h[1]\n"
+ ".inst 0x646941b5 // bfdot z21.s, z13.h, z1.h[1]\n"
+ ".inst 0x646a41b9 // bfdot z25.s, z13.h, z2.h[1]\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ ".inst 0x646841d2 // bfdot z18.s, z14.h, z0.h[1]\n"
+ ".inst 0x646941d6 // bfdot z22.s, z14.h, z1.h[1]\n"
+ ".inst 0x646a41da // bfdot z26.s, z14.h, z2.h[1]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ ".inst 0x646841f3 // bfdot z19.s, z15.h, z0.h[1]\n"
+ ".inst 0x646941f7 // bfdot z23.s, z15.h, z1.h[1]\n"
+ ".inst 0x646a41fb // bfdot z27.s, z15.h, z2.h[1]\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ ".inst 0x64704110 // bfdot z16.s, z8.h, z0.h[2]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #16\n"
+ ".inst 0x64714114 // bfdot z20.s, z8.h, z1.h[2]\n"
+ ".inst 0x64724118 // bfdot z24.s, z8.h, z2.h[2]\n"
+ ".inst 0x64704131 // bfdot z17.s, z9.h, z0.h[2]\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #-8, MUL VL]\n"
+ ".inst 0x64714135 // bfdot z21.s, z9.h, z1.h[2]\n"
+ ".inst 0x64724139 // bfdot z25.s, z9.h, z2.h[2]\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #-7, MUL VL]\n"
+ ".inst 0x64704152 // bfdot z18.s, z10.h, z0.h[2]\n"
+ ".inst 0x64714156 // bfdot z22.s, z10.h, z1.h[2]\n"
+ ".inst 0x6472415a // bfdot z26.s, z10.h, z2.h[2]\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #-6, MUL VL]\n"
+ ".inst 0x64704173 // bfdot z19.s, z11.h, z0.h[2]\n"
+ ".inst 0x64714177 // bfdot z23.s, z11.h, z1.h[2]\n"
+ ".inst 0x6472417b // bfdot z27.s, z11.h, z2.h[2]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #-5, MUL VL]\n"
+ ".inst 0x64784190 // bfdot z16.s, z12.h, z0.h[3]\n"
+ ".inst 0x64794194 // bfdot z20.s, z12.h, z1.h[3]\n"
+ ".inst 0x647a4198 // bfdot z24.s, z12.h, z2.h[3]\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #-4, MUL VL]\n"
+ ".inst 0x647841b1 // bfdot z17.s, z13.h, z0.h[3]\n"
+ ".inst 0x647941b5 // bfdot z21.s, z13.h, z1.h[3]\n"
+ ".inst 0x647a41b9 // bfdot z25.s, z13.h, z2.h[3]\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #-3, MUL VL]\n"
+ ".inst 0x647841d2 // bfdot z18.s, z14.h, z0.h[3]\n"
+ ".inst 0x647941d6 // bfdot z22.s, z14.h, z1.h[3]\n"
+ ".inst 0x647a41da // bfdot z26.s, z14.h, z2.h[3]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #-2, MUL VL]\n"
+ ".inst 0x647841f3 // bfdot z19.s, z15.h, z0.h[3]\n"
+ "ld1rqh z0.h, p6/z, [%[a_ptr0], #0x10]\n"
+ ".inst 0x647941f7 // bfdot z23.s, z15.h, z1.h[3]\n"
+ "ld1rqh z1.h, p6/z, [a_ptr1, #0x10]\n"
+ ".inst 0x647a41fb // bfdot z27.s, z15.h, z2.h[3]\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #-1, MUL VL]\n"
+ ".inst 0x64644110 // bfdot z16.s, z8.h, z4.h[0]\n"
+ "ld1rqh z2.h, p6/z, [a_ptr2, #0x10]\n"
+ ".inst 0x64654114 // bfdot z20.s, z8.h, z5.h[0]\n"
+ "addvl %[a_ptr0], %[a_ptr0], #2\n"
+ ".inst 0x64664118 // bfdot z24.s, z8.h, z6.h[0]\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0]]\n"
+ ".inst 0x64644131 // bfdot z17.s, z9.h, z4.h[0]\n"
+ "addvl a_ptr1, a_ptr1, #2\n"
+ ".inst 0x64654135 // bfdot z21.s, z9.h, z5.h[0]\n"
+ "addvl a_ptr2, a_ptr2, #2\n"
+ ".inst 0x64664139 // bfdot z25.s, z9.h, z6.h[0]\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x64644152 // bfdot z18.s, z10.h, z4.h[0]\n"
+ ".inst 0x64654156 // bfdot z22.s, z10.h, z5.h[0]\n"
+ ".inst 0x6466415a // bfdot z26.s, z10.h, z6.h[0]\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x64644173 // bfdot z19.s, z11.h, z4.h[0]\n"
+ ".inst 0x64654177 // bfdot z23.s, z11.h, z5.h[0]\n"
+ ".inst 0x6466417b // bfdot z27.s, z11.h, z6.h[0]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x646c4190 // bfdot z16.s, z12.h, z4.h[1]\n"
+ ".inst 0x646d4194 // bfdot z20.s, z12.h, z5.h[1]\n"
+ ".inst 0x646e4198 // bfdot z24.s, z12.h, z6.h[1]\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ ".inst 0x646c41b1 // bfdot z17.s, z13.h, z4.h[1]\n"
+ ".inst 0x646d41b5 // bfdot z21.s, z13.h, z5.h[1]\n"
+ ".inst 0x646e41b9 // bfdot z25.s, z13.h, z6.h[1]\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ ".inst 0x646c41d2 // bfdot z18.s, z14.h, z4.h[1]\n"
+ ".inst 0x646d41d6 // bfdot z22.s, z14.h, z5.h[1]\n"
+ ".inst 0x646e41da // bfdot z26.s, z14.h, z6.h[1]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ ".inst 0x646c41f3 // bfdot z19.s, z15.h, z4.h[1]\n"
+ ".inst 0x646d41f7 // bfdot z23.s, z15.h, z5.h[1]\n"
+ ".inst 0x646e41fb // bfdot z27.s, z15.h, z6.h[1]\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ ".inst 0x64744110 // bfdot z16.s, z8.h, z4.h[2]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ ".inst 0x64754114 // bfdot z20.s, z8.h, z5.h[2]\n"
+ ".inst 0x64764118 // bfdot z24.s, z8.h, z6.h[2]\n"
+ ".inst 0x64744131 // bfdot z17.s, z9.h, z4.h[2]\n"
+ ".inst 0x64754135 // bfdot z21.s, z9.h, z5.h[2]\n"
+ ".inst 0x64764139 // bfdot z25.s, z9.h, z6.h[2]\n"
+ ".inst 0x64744152 // bfdot z18.s, z10.h, z4.h[2]\n"
+ ".inst 0x64754156 // bfdot z22.s, z10.h, z5.h[2]\n"
+ ".inst 0x6476415a // bfdot z26.s, z10.h, z6.h[2]\n"
+ ".inst 0x64744173 // bfdot z19.s, z11.h, z4.h[2]\n"
+ ".inst 0x64754177 // bfdot z23.s, z11.h, z5.h[2]\n"
+ ".inst 0x6476417b // bfdot z27.s, z11.h, z6.h[2]\n"
+ ".inst 0x647c4190 // bfdot z16.s, z12.h, z4.h[3]\n"
+ ".inst 0x647d4194 // bfdot z20.s, z12.h, z5.h[3]\n"
+ ".inst 0x647e4198 // bfdot z24.s, z12.h, z6.h[3]\n"
+ ".inst 0x647c41b1 // bfdot z17.s, z13.h, z4.h[3]\n"
+ ".inst 0x647d41b5 // bfdot z21.s, z13.h, z5.h[3]\n"
+ ".inst 0x647e41b9 // bfdot z25.s, z13.h, z6.h[3]\n"
+ ".inst 0x647c41d2 // bfdot z18.s, z14.h, z4.h[3]\n"
+ ".inst 0x647d41d6 // bfdot z22.s, z14.h, z5.h[3]\n"
+ ".inst 0x647e41da // bfdot z26.s, z14.h, z6.h[3]\n"
+ ".inst 0x647c41f3 // bfdot z19.s, z15.h, z4.h[3]\n"
+ ".inst 0x647d41f7 // bfdot z23.s, z15.h, z5.h[3]\n"
+ ".inst 0x647e41fb // bfdot z27.s, z15.h, z6.h[3]\n"
+ "cbz %[blocks], 5f\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0]]\n"
+ "subs %[blocks], %[blocks], #0x1\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x64604110 // bfdot z16.s, z8.h, z0.h[0]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x64614114 // bfdot z20.s, z8.h, z1.h[0]\n"
+ ".inst 0x64624118 // bfdot z24.s, z8.h, z2.h[0]\n"
+ ".inst 0x64604131 // bfdot z17.s, z9.h, z0.h[0]\n"
+ ".inst 0x64614135 // bfdot z21.s, z9.h, z1.h[0]\n"
+ ".inst 0x64624139 // bfdot z25.s, z9.h, z2.h[0]\n"
+ ".inst 0x64604152 // bfdot z18.s, z10.h, z0.h[0]\n"
+ ".inst 0x64614156 // bfdot z22.s, z10.h, z1.h[0]\n"
+ ".inst 0x6462415a // bfdot z26.s, z10.h, z2.h[0]\n"
+ ".inst 0x64604173 // bfdot z19.s, z11.h, z0.h[0]\n"
+ ".inst 0x64614177 // bfdot z23.s, z11.h, z1.h[0]\n"
+ ".inst 0x6462417b // bfdot z27.s, z11.h, z2.h[0]\n"
+ "b.eq 5f\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "subs %[blocks], %[blocks], #0x1\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ ".inst 0x64684190 // bfdot z16.s, z12.h, z0.h[1]\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ ".inst 0x64694194 // bfdot z20.s, z12.h, z1.h[1]\n"
+ ".inst 0x646a4198 // bfdot z24.s, z12.h, z2.h[1]\n"
+ ".inst 0x646841b1 // bfdot z17.s, z13.h, z0.h[1]\n"
+ ".inst 0x646941b5 // bfdot z21.s, z13.h, z1.h[1]\n"
+ ".inst 0x646a41b9 // bfdot z25.s, z13.h, z2.h[1]\n"
+ ".inst 0x646841d2 // bfdot z18.s, z14.h, z0.h[1]\n"
+ ".inst 0x646941d6 // bfdot z22.s, z14.h, z1.h[1]\n"
+ ".inst 0x646a41da // bfdot z26.s, z14.h, z2.h[1]\n"
+ ".inst 0x646841f3 // bfdot z19.s, z15.h, z0.h[1]\n"
+ ".inst 0x646941f7 // bfdot z23.s, z15.h, z1.h[1]\n"
+ ".inst 0x646a41fb // bfdot z27.s, z15.h, z2.h[1]\n"
+ "b.eq 5f\n"
+ "addvl %[b_ptr0], %[b_ptr0], #16\n"
+ "subs %[blocks], %[blocks], #0x1\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #-8, MUL VL]\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #-7, MUL VL]\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #-6, MUL VL]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #-5, MUL VL]\n"
+ ".inst 0x64704110 // bfdot z16.s, z8.h, z0.h[2]\n"
+ ".inst 0x64714114 // bfdot z20.s, z8.h, z1.h[2]\n"
+ ".inst 0x64724118 // bfdot z24.s, z8.h, z2.h[2]\n"
+ ".inst 0x64704131 // bfdot z17.s, z9.h, z0.h[2]\n"
+ ".inst 0x64714135 // bfdot z21.s, z9.h, z1.h[2]\n"
+ ".inst 0x64724139 // bfdot z25.s, z9.h, z2.h[2]\n"
+ ".inst 0x64704152 // bfdot z18.s, z10.h, z0.h[2]\n"
+ ".inst 0x64714156 // bfdot z22.s, z10.h, z1.h[2]\n"
+ ".inst 0x6472415a // bfdot z26.s, z10.h, z2.h[2]\n"
+ ".inst 0x64704173 // bfdot z19.s, z11.h, z0.h[2]\n"
+ ".inst 0x64714177 // bfdot z23.s, z11.h, z1.h[2]\n"
+ ".inst 0x6472417b // bfdot z27.s, z11.h, z2.h[2]\n"
+ "b.eq 5f\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #-4, MUL VL]\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #-3, MUL VL]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #-2, MUL VL]\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #-1, MUL VL]\n"
+ ".inst 0x64784190 // bfdot z16.s, z12.h, z0.h[3]\n"
+ ".inst 0x64794194 // bfdot z20.s, z12.h, z1.h[3]\n"
+ ".inst 0x647a4198 // bfdot z24.s, z12.h, z2.h[3]\n"
+ ".inst 0x647841b1 // bfdot z17.s, z13.h, z0.h[3]\n"
+ ".inst 0x647941b5 // bfdot z21.s, z13.h, z1.h[3]\n"
+ ".inst 0x647a41b9 // bfdot z25.s, z13.h, z2.h[3]\n"
+ ".inst 0x647841d2 // bfdot z18.s, z14.h, z0.h[3]\n"
+ ".inst 0x647941d6 // bfdot z22.s, z14.h, z1.h[3]\n"
+ ".inst 0x647a41da // bfdot z26.s, z14.h, z2.h[3]\n"
+ ".inst 0x647841f3 // bfdot z19.s, z15.h, z0.h[3]\n"
+ ".inst 0x647941f7 // bfdot z23.s, z15.h, z1.h[3]\n"
+ ".inst 0x647a41fb // bfdot z27.s, z15.h, z2.h[3]\n"
+ "b 5f\n"
+ "4:\n"
+ ".inst 0x64604110 // bfdot z16.s, z8.h, z0.h[0]\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #-1, MUL VL]\n"
+ ".inst 0x64614114 // bfdot z20.s, z8.h, z1.h[0]\n"
+ "ld1rqh z4.h, p6/z, [%[a_ptr0]]\n"
+ ".inst 0x64624118 // bfdot z24.s, z8.h, z2.h[0]\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0]]\n"
+ ".inst 0x64604131 // bfdot z17.s, z9.h, z0.h[0]\n"
+ "ld1rqh z5.h, p6/z, [a_ptr1]\n"
+ ".inst 0x64614135 // bfdot z21.s, z9.h, z1.h[0]\n"
+ "ld1rqh z6.h, p6/z, [a_ptr2]\n"
+ ".inst 0x64624139 // bfdot z25.s, z9.h, z2.h[0]\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x64604152 // bfdot z18.s, z10.h, z0.h[0]\n"
+ "addvl %[a_ptr0], %[a_ptr0], #1\n"
+ ".inst 0x64614156 // bfdot z22.s, z10.h, z1.h[0]\n"
+ "addvl a_ptr1, a_ptr1, #1\n"
+ ".inst 0x6462415a // bfdot z26.s, z10.h, z2.h[0]\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x64604173 // bfdot z19.s, z11.h, z0.h[0]\n"
+ "addvl a_ptr2, a_ptr2, #1\n"
+ ".inst 0x64614177 // bfdot z23.s, z11.h, z1.h[0]\n"
+ ".inst 0x6462417b // bfdot z27.s, z11.h, z2.h[0]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x64684190 // bfdot z16.s, z12.h, z0.h[1]\n"
+ ".inst 0x64694194 // bfdot z20.s, z12.h, z1.h[1]\n"
+ ".inst 0x646a4198 // bfdot z24.s, z12.h, z2.h[1]\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ ".inst 0x646841b1 // bfdot z17.s, z13.h, z0.h[1]\n"
+ ".inst 0x646941b5 // bfdot z21.s, z13.h, z1.h[1]\n"
+ ".inst 0x646a41b9 // bfdot z25.s, z13.h, z2.h[1]\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ ".inst 0x646841d2 // bfdot z18.s, z14.h, z0.h[1]\n"
+ ".inst 0x646941d6 // bfdot z22.s, z14.h, z1.h[1]\n"
+ ".inst 0x646a41da // bfdot z26.s, z14.h, z2.h[1]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ ".inst 0x646841f3 // bfdot z19.s, z15.h, z0.h[1]\n"
+ ".inst 0x646941f7 // bfdot z23.s, z15.h, z1.h[1]\n"
+ ".inst 0x646a41fb // bfdot z27.s, z15.h, z2.h[1]\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ ".inst 0x64704110 // bfdot z16.s, z8.h, z0.h[2]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ ".inst 0x64714114 // bfdot z20.s, z8.h, z1.h[2]\n"
+ ".inst 0x64724118 // bfdot z24.s, z8.h, z2.h[2]\n"
+ ".inst 0x64704131 // bfdot z17.s, z9.h, z0.h[2]\n"
+ ".inst 0x64714135 // bfdot z21.s, z9.h, z1.h[2]\n"
+ ".inst 0x64724139 // bfdot z25.s, z9.h, z2.h[2]\n"
+ ".inst 0x64704152 // bfdot z18.s, z10.h, z0.h[2]\n"
+ ".inst 0x64714156 // bfdot z22.s, z10.h, z1.h[2]\n"
+ ".inst 0x6472415a // bfdot z26.s, z10.h, z2.h[2]\n"
+ ".inst 0x64704173 // bfdot z19.s, z11.h, z0.h[2]\n"
+ ".inst 0x64714177 // bfdot z23.s, z11.h, z1.h[2]\n"
+ ".inst 0x6472417b // bfdot z27.s, z11.h, z2.h[2]\n"
+ ".inst 0x64784190 // bfdot z16.s, z12.h, z0.h[3]\n"
+ ".inst 0x64794194 // bfdot z20.s, z12.h, z1.h[3]\n"
+ ".inst 0x647a4198 // bfdot z24.s, z12.h, z2.h[3]\n"
+ ".inst 0x647841b1 // bfdot z17.s, z13.h, z0.h[3]\n"
+ ".inst 0x647941b5 // bfdot z21.s, z13.h, z1.h[3]\n"
+ ".inst 0x647a41b9 // bfdot z25.s, z13.h, z2.h[3]\n"
+ ".inst 0x647841d2 // bfdot z18.s, z14.h, z0.h[3]\n"
+ ".inst 0x647941d6 // bfdot z22.s, z14.h, z1.h[3]\n"
+ ".inst 0x647a41da // bfdot z26.s, z14.h, z2.h[3]\n"
+ ".inst 0x647841f3 // bfdot z19.s, z15.h, z0.h[3]\n"
+ ".inst 0x647941f7 // bfdot z23.s, z15.h, z1.h[3]\n"
+ ".inst 0x647a41fb // bfdot z27.s, z15.h, z2.h[3]\n"
+ "cbz %[blocks], 5f\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0]]\n"
+ "subs %[blocks], %[blocks], #0x1\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x64644110 // bfdot z16.s, z8.h, z4.h[0]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x64654114 // bfdot z20.s, z8.h, z5.h[0]\n"
+ ".inst 0x64664118 // bfdot z24.s, z8.h, z6.h[0]\n"
+ ".inst 0x64644131 // bfdot z17.s, z9.h, z4.h[0]\n"
+ ".inst 0x64654135 // bfdot z21.s, z9.h, z5.h[0]\n"
+ ".inst 0x64664139 // bfdot z25.s, z9.h, z6.h[0]\n"
+ ".inst 0x64644152 // bfdot z18.s, z10.h, z4.h[0]\n"
+ ".inst 0x64654156 // bfdot z22.s, z10.h, z5.h[0]\n"
+ ".inst 0x6466415a // bfdot z26.s, z10.h, z6.h[0]\n"
+ ".inst 0x64644173 // bfdot z19.s, z11.h, z4.h[0]\n"
+ ".inst 0x64654177 // bfdot z23.s, z11.h, z5.h[0]\n"
+ ".inst 0x6466417b // bfdot z27.s, z11.h, z6.h[0]\n"
+ "b.eq 5f\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "subs %[blocks], %[blocks], #0x1\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ ".inst 0x646c4190 // bfdot z16.s, z12.h, z4.h[1]\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ ".inst 0x646d4194 // bfdot z20.s, z12.h, z5.h[1]\n"
+ ".inst 0x646e4198 // bfdot z24.s, z12.h, z6.h[1]\n"
+ ".inst 0x646c41b1 // bfdot z17.s, z13.h, z4.h[1]\n"
+ ".inst 0x646d41b5 // bfdot z21.s, z13.h, z5.h[1]\n"
+ ".inst 0x646e41b9 // bfdot z25.s, z13.h, z6.h[1]\n"
+ ".inst 0x646c41d2 // bfdot z18.s, z14.h, z4.h[1]\n"
+ ".inst 0x646d41d6 // bfdot z22.s, z14.h, z5.h[1]\n"
+ ".inst 0x646e41da // bfdot z26.s, z14.h, z6.h[1]\n"
+ ".inst 0x646c41f3 // bfdot z19.s, z15.h, z4.h[1]\n"
+ ".inst 0x646d41f7 // bfdot z23.s, z15.h, z5.h[1]\n"
+ ".inst 0x646e41fb // bfdot z27.s, z15.h, z6.h[1]\n"
+ "b.eq 5f\n"
+ "addvl %[b_ptr0], %[b_ptr0], #16\n"
+ "subs %[blocks], %[blocks], #0x1\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #-8, MUL VL]\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #-7, MUL VL]\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #-6, MUL VL]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #-5, MUL VL]\n"
+ ".inst 0x64744110 // bfdot z16.s, z8.h, z4.h[2]\n"
+ ".inst 0x64754114 // bfdot z20.s, z8.h, z5.h[2]\n"
+ ".inst 0x64764118 // bfdot z24.s, z8.h, z6.h[2]\n"
+ ".inst 0x64744131 // bfdot z17.s, z9.h, z4.h[2]\n"
+ ".inst 0x64754135 // bfdot z21.s, z9.h, z5.h[2]\n"
+ ".inst 0x64764139 // bfdot z25.s, z9.h, z6.h[2]\n"
+ ".inst 0x64744152 // bfdot z18.s, z10.h, z4.h[2]\n"
+ ".inst 0x64754156 // bfdot z22.s, z10.h, z5.h[2]\n"
+ ".inst 0x6476415a // bfdot z26.s, z10.h, z6.h[2]\n"
+ ".inst 0x64744173 // bfdot z19.s, z11.h, z4.h[2]\n"
+ ".inst 0x64754177 // bfdot z23.s, z11.h, z5.h[2]\n"
+ ".inst 0x6476417b // bfdot z27.s, z11.h, z6.h[2]\n"
+ "b.eq 5f\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #-4, MUL VL]\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #-3, MUL VL]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #-2, MUL VL]\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #-1, MUL VL]\n"
+ ".inst 0x647c4190 // bfdot z16.s, z12.h, z4.h[3]\n"
+ ".inst 0x647d4194 // bfdot z20.s, z12.h, z5.h[3]\n"
+ ".inst 0x647e4198 // bfdot z24.s, z12.h, z6.h[3]\n"
+ ".inst 0x647c41b1 // bfdot z17.s, z13.h, z4.h[3]\n"
+ ".inst 0x647d41b5 // bfdot z21.s, z13.h, z5.h[3]\n"
+ ".inst 0x647e41b9 // bfdot z25.s, z13.h, z6.h[3]\n"
+ ".inst 0x647c41d2 // bfdot z18.s, z14.h, z4.h[3]\n"
+ ".inst 0x647d41d6 // bfdot z22.s, z14.h, z5.h[3]\n"
+ ".inst 0x647e41da // bfdot z26.s, z14.h, z6.h[3]\n"
+ ".inst 0x647c41f3 // bfdot z19.s, z15.h, z4.h[3]\n"
+ ".inst 0x647d41f7 // bfdot z23.s, z15.h, z5.h[3]\n"
+ ".inst 0x647e41fb // bfdot z27.s, z15.h, z6.h[3]\n"
+ "5:\n"
+ "ld1rw z14.s, p7/z, [%[minptr]]\n"
+ "ld1rw z15.s, p7/z, [%[maxptr]]\n"
+ "fmax z16.s, p7/m, z16.s, z14.s\n"
+ "fmax z17.s, p7/m, z17.s, z14.s\n"
+ "fmax z18.s, p7/m, z18.s, z14.s\n"
+ "fmax z19.s, p7/m, z19.s, z14.s\n"
+ "fmin z16.s, p7/m, z16.s, z15.s\n"
+ "fmin z17.s, p7/m, z17.s, z15.s\n"
+ "fmin z18.s, p7/m, z18.s, z15.s\n"
+ "fmin z19.s, p7/m, z19.s, z15.s\n"
+ "st1w z16.s, p0, [%[c_ptr0]]\n"
+ "fmax z20.s, p7/m, z20.s, z14.s\n"
+ "fmax z21.s, p7/m, z21.s, z14.s\n"
+ "fmax z22.s, p7/m, z22.s, z14.s\n"
+ "st1w z17.s, p1, [%[c_ptr0], #1, MUL VL]\n"
+ "fmax z23.s, p7/m, z23.s, z14.s\n"
+ "fmin z20.s, p7/m, z20.s, z15.s\n"
+ "fmin z21.s, p7/m, z21.s, z15.s\n"
+ "st1w z18.s, p2, [%[c_ptr0], #2, MUL VL]\n"
+ "fmin z22.s, p7/m, z22.s, z15.s\n"
+ "fmin z23.s, p7/m, z23.s, z15.s\n"
+ "fmax z24.s, p7/m, z24.s, z14.s\n"
+ "st1w z19.s, p3, [%[c_ptr0], #3, MUL VL]\n"
+ "fmax z25.s, p7/m, z25.s, z14.s\n"
+ "addvl %[c_ptr0], %[c_ptr0], #4\n"
+ "fmax z26.s, p7/m, z26.s, z14.s\n"
+ "st1w z20.s, p0, [c_ptr1]\n"
+ "fmin z24.s, p7/m, z24.s, z15.s\n"
+ "fmin z25.s, p7/m, z25.s, z15.s\n"
+ "fmax z27.s, p7/m, z27.s, z14.s\n"
+ "st1w z21.s, p1, [c_ptr1, #1, MUL VL]\n"
+ "fmin z26.s, p7/m, z26.s, z15.s\n"
+ "fmin z27.s, p7/m, z27.s, z15.s\n"
+ "st1w z22.s, p2, [c_ptr1, #2, MUL VL]\n"
+ "st1w z23.s, p3, [c_ptr1, #3, MUL VL]\n"
+ "st1w z24.s, p0, [c_ptr2]\n"
+ "st1w z25.s, p1, [c_ptr2, #1, MUL VL]\n"
+ "st1w z26.s, p2, [c_ptr2, #2, MUL VL]\n"
+ "st1w z27.s, p3, [c_ptr2, #3, MUL VL]\n"
+ ".unreq a_ptr1\n"
+ ".unreq a_ptr2\n"
+ ".unreq c_ptr1\n"
+ ".unreq c_ptr2\n"
+ : [a_ptr0] "+r" (a_ptr0), [b_ptr0] "+r" (b_ptr0), [c_ptr0] "+r" (c_ptr0), [loops] "+r" (loops), [regs] "+r" (regs), [temp] "+r" (temp), [blocks] "+r" (blocks)
+ : [width] "r" (width), [append] "r" (static_cast<uint64_t>(append)), [lda] "r" (ldab), [ldc] "r" (ldcb), [biasptr] "r" (biasptr), [minptr] "r" (minptr), [maxptr] "r" (maxptr), [leftovers] "r" (leftovers)
+ : "z0", "z1", "z2", "z3", "z4", "z5", "z6", "z7", "z8", "z9", "z10", "z11", "z12", "z13", "z14", "z15", "z16", "z17", "z18", "z19", "z20", "z21", "z22", "z23", "z24", "z25", "z26", "z27", "z28", "z29", "z30", "z31", "x0", "x1", "x2", "x3", "cc", "memory"
+ );
+ break;
+ default:
+ case 4:
+ __asm __volatile (
+ "a_ptr1 .req X0\n"
+ "a_ptr2 .req X1\n"
+ "a_ptr3 .req X2\n"
+ "c_ptr1 .req X3\n"
+ "c_ptr2 .req X4\n"
+ "c_ptr3 .req X5\n"
+ "add a_ptr1, %[a_ptr0], %[lda]\n"
+ "add c_ptr1, %[c_ptr0], %[ldc]\n"
+ "add a_ptr2, a_ptr1, %[lda]\n"
+ "add c_ptr2, c_ptr1, %[ldc]\n"
+ "add a_ptr3, a_ptr2, %[lda]\n"
+ "add c_ptr3, c_ptr2, %[ldc]\n"
+ "whilelt p6.h, %[temp], %[leftovers]\n"
+ "whilelt p0.s, %[temp], %[width]\n"
+ "incw %[temp], all, mul #1\n"
+ "ptrue p7.h\n"
+ "whilelt p1.s, %[temp], %[width]\n"
+ "incw %[temp], all, mul #1\n"
+ "whilelt p2.s, %[temp], %[width]\n"
+ "incw %[temp], all, mul #1\n"
+ "whilelt p3.s, %[temp], %[width]\n"
+ "cbnz %[append], 1f\n"
+ "ld1w z16.s, p0/z, [%[biasptr]]\n"
+ "ld1w z17.s, p1/z, [%[biasptr], #1, MUL VL]\n"
+ "ld1w z18.s, p2/z, [%[biasptr], #2, MUL VL]\n"
+ "ld1w z19.s, p3/z, [%[biasptr], #3, MUL VL]\n"
+ "mov z20.d, z16.d\n"
+ "ld1rqh z0.h, p7/z, [%[a_ptr0]]\n"
+ "mov z21.d, z17.d\n"
+ "ld1rqh z1.h, p7/z, [a_ptr1]\n"
+ "mov z22.d, z18.d\n"
+ "ld1rqh z2.h, p7/z, [a_ptr2]\n"
+ "mov z23.d, z19.d\n"
+ "ld1rqh z3.h, p7/z, [a_ptr3]\n"
+ "mov z24.d, z16.d\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0]]\n"
+ "mov z25.d, z17.d\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "mov z26.d, z18.d\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "mov z27.d, z19.d\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "mov z28.d, z16.d\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "mov z29.d, z17.d\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "mov z30.d, z18.d\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "mov z31.d, z19.d\n"
+ "add %[a_ptr0], %[a_ptr0], #0x10\n"
+ "add a_ptr1, a_ptr1, #0x10\n"
+ "add a_ptr2, a_ptr2, #0x10\n"
+ "add a_ptr3, a_ptr3, #0x10\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "cbz %[loops], 2f\n"
+ "b 3f\n"
+ "1:\n"
+ "ld1w z16.s, p0/z, [%[c_ptr0]]\n"
+ "ld1w z17.s, p1/z, [%[c_ptr0], #1, MUL VL]\n"
+ "ld1w z18.s, p2/z, [%[c_ptr0], #2, MUL VL]\n"
+ "ld1w z19.s, p3/z, [%[c_ptr0], #3, MUL VL]\n"
+ "ld1w z20.s, p0/z, [c_ptr1]\n"
+ "ld1w z21.s, p1/z, [c_ptr1, #1, MUL VL]\n"
+ "ld1w z22.s, p2/z, [c_ptr1, #2, MUL VL]\n"
+ "ld1w z23.s, p3/z, [c_ptr1, #3, MUL VL]\n"
+ "ld1w z24.s, p0/z, [c_ptr2]\n"
+ "ld1w z25.s, p1/z, [c_ptr2, #1, MUL VL]\n"
+ "ld1w z26.s, p2/z, [c_ptr2, #2, MUL VL]\n"
+ "ld1w z27.s, p3/z, [c_ptr2, #3, MUL VL]\n"
+ "ld1w z28.s, p0/z, [c_ptr3]\n"
+ "ld1w z29.s, p1/z, [c_ptr3, #1, MUL VL]\n"
+ "ld1w z30.s, p2/z, [c_ptr3, #2, MUL VL]\n"
+ "ld1w z31.s, p3/z, [c_ptr3, #3, MUL VL]\n"
+ "ld1rqh z0.h, p7/z, [%[a_ptr0]]\n"
+ "add %[a_ptr0], %[a_ptr0], #0x10\n"
+ "ld1rqh z1.h, p7/z, [a_ptr1]\n"
+ "add a_ptr1, a_ptr1, #0x10\n"
+ "ld1rqh z2.h, p7/z, [a_ptr2]\n"
+ "add a_ptr2, a_ptr2, #0x10\n"
+ "ld1rqh z3.h, p7/z, [a_ptr3]\n"
+ "add a_ptr3, a_ptr3, #0x10\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0]]\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "cbz %[loops], 2f\n"
+ "3:\n"
+ ".inst 0x64604110 // bfdot z16.s, z8.h, z0.h[0]\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #-1, MUL VL]\n"
+ ".inst 0x64614114 // bfdot z20.s, z8.h, z1.h[0]\n"
+ "ld1rqh z4.h, p7/z, [%[a_ptr0]]\n"
+ ".inst 0x64624118 // bfdot z24.s, z8.h, z2.h[0]\n"
+ "ld1rqh z5.h, p7/z, [a_ptr1]\n"
+ ".inst 0x6463411c // bfdot z28.s, z8.h, z3.h[0]\n"
+ "ld1rqh z6.h, p7/z, [a_ptr2]\n"
+ ".inst 0x64604131 // bfdot z17.s, z9.h, z0.h[0]\n"
+ "ld1rqh z7.h, p7/z, [a_ptr3]\n"
+ ".inst 0x64614135 // bfdot z21.s, z9.h, z1.h[0]\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0]]\n"
+ ".inst 0x64624139 // bfdot z25.s, z9.h, z2.h[0]\n"
+ "subs %[loops], %[loops], #0x1\n"
+ ".inst 0x6463413d // bfdot z29.s, z9.h, z3.h[0]\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x64604152 // bfdot z18.s, z10.h, z0.h[0]\n"
+ "add %[a_ptr0], %[a_ptr0], #0x20\n"
+ ".inst 0x64614156 // bfdot z22.s, z10.h, z1.h[0]\n"
+ "add a_ptr1, a_ptr1, #0x20\n"
+ ".inst 0x6462415a // bfdot z26.s, z10.h, z2.h[0]\n"
+ "add a_ptr2, a_ptr2, #0x20\n"
+ ".inst 0x6463415e // bfdot z30.s, z10.h, z3.h[0]\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x64604173 // bfdot z19.s, z11.h, z0.h[0]\n"
+ "add a_ptr3, a_ptr3, #0x20\n"
+ ".inst 0x64614177 // bfdot z23.s, z11.h, z1.h[0]\n"
+ ".inst 0x6462417b // bfdot z27.s, z11.h, z2.h[0]\n"
+ ".inst 0x6463417f // bfdot z31.s, z11.h, z3.h[0]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x64684190 // bfdot z16.s, z12.h, z0.h[1]\n"
+ ".inst 0x64694194 // bfdot z20.s, z12.h, z1.h[1]\n"
+ ".inst 0x646a4198 // bfdot z24.s, z12.h, z2.h[1]\n"
+ ".inst 0x646b419c // bfdot z28.s, z12.h, z3.h[1]\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ ".inst 0x646841b1 // bfdot z17.s, z13.h, z0.h[1]\n"
+ ".inst 0x646941b5 // bfdot z21.s, z13.h, z1.h[1]\n"
+ ".inst 0x646a41b9 // bfdot z25.s, z13.h, z2.h[1]\n"
+ ".inst 0x646b41bd // bfdot z29.s, z13.h, z3.h[1]\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ ".inst 0x646841d2 // bfdot z18.s, z14.h, z0.h[1]\n"
+ ".inst 0x646941d6 // bfdot z22.s, z14.h, z1.h[1]\n"
+ ".inst 0x646a41da // bfdot z26.s, z14.h, z2.h[1]\n"
+ ".inst 0x646b41de // bfdot z30.s, z14.h, z3.h[1]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ ".inst 0x646841f3 // bfdot z19.s, z15.h, z0.h[1]\n"
+ ".inst 0x646941f7 // bfdot z23.s, z15.h, z1.h[1]\n"
+ ".inst 0x646a41fb // bfdot z27.s, z15.h, z2.h[1]\n"
+ ".inst 0x646b41ff // bfdot z31.s, z15.h, z3.h[1]\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ ".inst 0x64704110 // bfdot z16.s, z8.h, z0.h[2]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #16\n"
+ ".inst 0x64714114 // bfdot z20.s, z8.h, z1.h[2]\n"
+ ".inst 0x64724118 // bfdot z24.s, z8.h, z2.h[2]\n"
+ ".inst 0x6473411c // bfdot z28.s, z8.h, z3.h[2]\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #-8, MUL VL]\n"
+ ".inst 0x64704131 // bfdot z17.s, z9.h, z0.h[2]\n"
+ ".inst 0x64714135 // bfdot z21.s, z9.h, z1.h[2]\n"
+ ".inst 0x64724139 // bfdot z25.s, z9.h, z2.h[2]\n"
+ ".inst 0x6473413d // bfdot z29.s, z9.h, z3.h[2]\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #-7, MUL VL]\n"
+ ".inst 0x64704152 // bfdot z18.s, z10.h, z0.h[2]\n"
+ ".inst 0x64714156 // bfdot z22.s, z10.h, z1.h[2]\n"
+ ".inst 0x6472415a // bfdot z26.s, z10.h, z2.h[2]\n"
+ ".inst 0x6473415e // bfdot z30.s, z10.h, z3.h[2]\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #-6, MUL VL]\n"
+ ".inst 0x64704173 // bfdot z19.s, z11.h, z0.h[2]\n"
+ ".inst 0x64714177 // bfdot z23.s, z11.h, z1.h[2]\n"
+ ".inst 0x6472417b // bfdot z27.s, z11.h, z2.h[2]\n"
+ ".inst 0x6473417f // bfdot z31.s, z11.h, z3.h[2]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #-5, MUL VL]\n"
+ ".inst 0x64784190 // bfdot z16.s, z12.h, z0.h[3]\n"
+ ".inst 0x64794194 // bfdot z20.s, z12.h, z1.h[3]\n"
+ ".inst 0x647a4198 // bfdot z24.s, z12.h, z2.h[3]\n"
+ ".inst 0x647b419c // bfdot z28.s, z12.h, z3.h[3]\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #-4, MUL VL]\n"
+ ".inst 0x647841b1 // bfdot z17.s, z13.h, z0.h[3]\n"
+ ".inst 0x647941b5 // bfdot z21.s, z13.h, z1.h[3]\n"
+ ".inst 0x647a41b9 // bfdot z25.s, z13.h, z2.h[3]\n"
+ ".inst 0x647b41bd // bfdot z29.s, z13.h, z3.h[3]\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #-3, MUL VL]\n"
+ ".inst 0x647841d2 // bfdot z18.s, z14.h, z0.h[3]\n"
+ ".inst 0x647941d6 // bfdot z22.s, z14.h, z1.h[3]\n"
+ ".inst 0x647a41da // bfdot z26.s, z14.h, z2.h[3]\n"
+ ".inst 0x647b41de // bfdot z30.s, z14.h, z3.h[3]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #-2, MUL VL]\n"
+ ".inst 0x647841f3 // bfdot z19.s, z15.h, z0.h[3]\n"
+ "ld1rqh z0.h, p7/z, [%[a_ptr0], #-0x10]\n"
+ ".inst 0x647941f7 // bfdot z23.s, z15.h, z1.h[3]\n"
+ "ld1rqh z1.h, p7/z, [a_ptr1, #-0x10]\n"
+ ".inst 0x647a41fb // bfdot z27.s, z15.h, z2.h[3]\n"
+ "ld1rqh z2.h, p7/z, [a_ptr2, #-0x10]\n"
+ ".inst 0x647b41ff // bfdot z31.s, z15.h, z3.h[3]\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #-1, MUL VL]\n"
+ ".inst 0x64644110 // bfdot z16.s, z8.h, z4.h[0]\n"
+ "ld1rqh z3.h, p7/z, [a_ptr3, #-0x10]\n"
+ ".inst 0x64654114 // bfdot z20.s, z8.h, z5.h[0]\n"
+ ".inst 0x64664118 // bfdot z24.s, z8.h, z6.h[0]\n"
+ ".inst 0x6467411c // bfdot z28.s, z8.h, z7.h[0]\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0]]\n"
+ ".inst 0x64644131 // bfdot z17.s, z9.h, z4.h[0]\n"
+ ".inst 0x64654135 // bfdot z21.s, z9.h, z5.h[0]\n"
+ ".inst 0x64664139 // bfdot z25.s, z9.h, z6.h[0]\n"
+ ".inst 0x6467413d // bfdot z29.s, z9.h, z7.h[0]\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x64644152 // bfdot z18.s, z10.h, z4.h[0]\n"
+ ".inst 0x64654156 // bfdot z22.s, z10.h, z5.h[0]\n"
+ ".inst 0x6466415a // bfdot z26.s, z10.h, z6.h[0]\n"
+ ".inst 0x6467415e // bfdot z30.s, z10.h, z7.h[0]\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x64644173 // bfdot z19.s, z11.h, z4.h[0]\n"
+ ".inst 0x64654177 // bfdot z23.s, z11.h, z5.h[0]\n"
+ ".inst 0x6466417b // bfdot z27.s, z11.h, z6.h[0]\n"
+ ".inst 0x6467417f // bfdot z31.s, z11.h, z7.h[0]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x646c4190 // bfdot z16.s, z12.h, z4.h[1]\n"
+ ".inst 0x646d4194 // bfdot z20.s, z12.h, z5.h[1]\n"
+ ".inst 0x646e4198 // bfdot z24.s, z12.h, z6.h[1]\n"
+ ".inst 0x646f419c // bfdot z28.s, z12.h, z7.h[1]\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ ".inst 0x646c41b1 // bfdot z17.s, z13.h, z4.h[1]\n"
+ ".inst 0x646d41b5 // bfdot z21.s, z13.h, z5.h[1]\n"
+ ".inst 0x646e41b9 // bfdot z25.s, z13.h, z6.h[1]\n"
+ ".inst 0x646f41bd // bfdot z29.s, z13.h, z7.h[1]\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ ".inst 0x646c41d2 // bfdot z18.s, z14.h, z4.h[1]\n"
+ ".inst 0x646d41d6 // bfdot z22.s, z14.h, z5.h[1]\n"
+ ".inst 0x646e41da // bfdot z26.s, z14.h, z6.h[1]\n"
+ ".inst 0x646f41de // bfdot z30.s, z14.h, z7.h[1]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ ".inst 0x646c41f3 // bfdot z19.s, z15.h, z4.h[1]\n"
+ ".inst 0x646d41f7 // bfdot z23.s, z15.h, z5.h[1]\n"
+ ".inst 0x646e41fb // bfdot z27.s, z15.h, z6.h[1]\n"
+ ".inst 0x646f41ff // bfdot z31.s, z15.h, z7.h[1]\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ ".inst 0x64744110 // bfdot z16.s, z8.h, z4.h[2]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #16\n"
+ ".inst 0x64754114 // bfdot z20.s, z8.h, z5.h[2]\n"
+ ".inst 0x64764118 // bfdot z24.s, z8.h, z6.h[2]\n"
+ ".inst 0x6477411c // bfdot z28.s, z8.h, z7.h[2]\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #-8, MUL VL]\n"
+ ".inst 0x64744131 // bfdot z17.s, z9.h, z4.h[2]\n"
+ ".inst 0x64754135 // bfdot z21.s, z9.h, z5.h[2]\n"
+ ".inst 0x64764139 // bfdot z25.s, z9.h, z6.h[2]\n"
+ ".inst 0x6477413d // bfdot z29.s, z9.h, z7.h[2]\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #-7, MUL VL]\n"
+ ".inst 0x64744152 // bfdot z18.s, z10.h, z4.h[2]\n"
+ ".inst 0x64754156 // bfdot z22.s, z10.h, z5.h[2]\n"
+ ".inst 0x6476415a // bfdot z26.s, z10.h, z6.h[2]\n"
+ ".inst 0x6477415e // bfdot z30.s, z10.h, z7.h[2]\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #-6, MUL VL]\n"
+ ".inst 0x64744173 // bfdot z19.s, z11.h, z4.h[2]\n"
+ ".inst 0x64754177 // bfdot z23.s, z11.h, z5.h[2]\n"
+ ".inst 0x6476417b // bfdot z27.s, z11.h, z6.h[2]\n"
+ ".inst 0x6477417f // bfdot z31.s, z11.h, z7.h[2]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #-5, MUL VL]\n"
+ ".inst 0x647c4190 // bfdot z16.s, z12.h, z4.h[3]\n"
+ ".inst 0x647d4194 // bfdot z20.s, z12.h, z5.h[3]\n"
+ ".inst 0x647e4198 // bfdot z24.s, z12.h, z6.h[3]\n"
+ ".inst 0x647f419c // bfdot z28.s, z12.h, z7.h[3]\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #-4, MUL VL]\n"
+ ".inst 0x647c41b1 // bfdot z17.s, z13.h, z4.h[3]\n"
+ ".inst 0x647d41b5 // bfdot z21.s, z13.h, z5.h[3]\n"
+ ".inst 0x647e41b9 // bfdot z25.s, z13.h, z6.h[3]\n"
+ ".inst 0x647f41bd // bfdot z29.s, z13.h, z7.h[3]\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #-3, MUL VL]\n"
+ ".inst 0x647c41d2 // bfdot z18.s, z14.h, z4.h[3]\n"
+ ".inst 0x647d41d6 // bfdot z22.s, z14.h, z5.h[3]\n"
+ ".inst 0x647e41da // bfdot z26.s, z14.h, z6.h[3]\n"
+ ".inst 0x647f41de // bfdot z30.s, z14.h, z7.h[3]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #-2, MUL VL]\n"
+ ".inst 0x647c41f3 // bfdot z19.s, z15.h, z4.h[3]\n"
+ ".inst 0x647d41f7 // bfdot z23.s, z15.h, z5.h[3]\n"
+ ".inst 0x647e41fb // bfdot z27.s, z15.h, z6.h[3]\n"
+ ".inst 0x647f41ff // bfdot z31.s, z15.h, z7.h[3]\n"
+ "b.ne 3b\n"
+ "2:\n"
+ "cbz %[regs], 4f\n"
+ ".inst 0x64604110 // bfdot z16.s, z8.h, z0.h[0]\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #-1, MUL VL]\n"
+ ".inst 0x64614114 // bfdot z20.s, z8.h, z1.h[0]\n"
+ "ld1rqh z4.h, p7/z, [%[a_ptr0]]\n"
+ ".inst 0x64624118 // bfdot z24.s, z8.h, z2.h[0]\n"
+ "ld1rqh z5.h, p7/z, [a_ptr1]\n"
+ ".inst 0x6463411c // bfdot z28.s, z8.h, z3.h[0]\n"
+ "ld1rqh z6.h, p7/z, [a_ptr2]\n"
+ ".inst 0x64604131 // bfdot z17.s, z9.h, z0.h[0]\n"
+ "ld1rqh z7.h, p7/z, [a_ptr3]\n"
+ ".inst 0x64614135 // bfdot z21.s, z9.h, z1.h[0]\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0]]\n"
+ ".inst 0x64624139 // bfdot z25.s, z9.h, z2.h[0]\n"
+ ".inst 0x6463413d // bfdot z29.s, z9.h, z3.h[0]\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x64604152 // bfdot z18.s, z10.h, z0.h[0]\n"
+ ".inst 0x64614156 // bfdot z22.s, z10.h, z1.h[0]\n"
+ ".inst 0x6462415a // bfdot z26.s, z10.h, z2.h[0]\n"
+ ".inst 0x6463415e // bfdot z30.s, z10.h, z3.h[0]\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x64604173 // bfdot z19.s, z11.h, z0.h[0]\n"
+ ".inst 0x64614177 // bfdot z23.s, z11.h, z1.h[0]\n"
+ ".inst 0x6462417b // bfdot z27.s, z11.h, z2.h[0]\n"
+ ".inst 0x6463417f // bfdot z31.s, z11.h, z3.h[0]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x64684190 // bfdot z16.s, z12.h, z0.h[1]\n"
+ ".inst 0x64694194 // bfdot z20.s, z12.h, z1.h[1]\n"
+ ".inst 0x646a4198 // bfdot z24.s, z12.h, z2.h[1]\n"
+ ".inst 0x646b419c // bfdot z28.s, z12.h, z3.h[1]\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ ".inst 0x646841b1 // bfdot z17.s, z13.h, z0.h[1]\n"
+ ".inst 0x646941b5 // bfdot z21.s, z13.h, z1.h[1]\n"
+ ".inst 0x646a41b9 // bfdot z25.s, z13.h, z2.h[1]\n"
+ ".inst 0x646b41bd // bfdot z29.s, z13.h, z3.h[1]\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ ".inst 0x646841d2 // bfdot z18.s, z14.h, z0.h[1]\n"
+ ".inst 0x646941d6 // bfdot z22.s, z14.h, z1.h[1]\n"
+ ".inst 0x646a41da // bfdot z26.s, z14.h, z2.h[1]\n"
+ ".inst 0x646b41de // bfdot z30.s, z14.h, z3.h[1]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ ".inst 0x646841f3 // bfdot z19.s, z15.h, z0.h[1]\n"
+ ".inst 0x646941f7 // bfdot z23.s, z15.h, z1.h[1]\n"
+ ".inst 0x646a41fb // bfdot z27.s, z15.h, z2.h[1]\n"
+ ".inst 0x646b41ff // bfdot z31.s, z15.h, z3.h[1]\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ ".inst 0x64704110 // bfdot z16.s, z8.h, z0.h[2]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #16\n"
+ ".inst 0x64714114 // bfdot z20.s, z8.h, z1.h[2]\n"
+ ".inst 0x64724118 // bfdot z24.s, z8.h, z2.h[2]\n"
+ ".inst 0x6473411c // bfdot z28.s, z8.h, z3.h[2]\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #-8, MUL VL]\n"
+ ".inst 0x64704131 // bfdot z17.s, z9.h, z0.h[2]\n"
+ ".inst 0x64714135 // bfdot z21.s, z9.h, z1.h[2]\n"
+ ".inst 0x64724139 // bfdot z25.s, z9.h, z2.h[2]\n"
+ ".inst 0x6473413d // bfdot z29.s, z9.h, z3.h[2]\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #-7, MUL VL]\n"
+ ".inst 0x64704152 // bfdot z18.s, z10.h, z0.h[2]\n"
+ ".inst 0x64714156 // bfdot z22.s, z10.h, z1.h[2]\n"
+ ".inst 0x6472415a // bfdot z26.s, z10.h, z2.h[2]\n"
+ ".inst 0x6473415e // bfdot z30.s, z10.h, z3.h[2]\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #-6, MUL VL]\n"
+ ".inst 0x64704173 // bfdot z19.s, z11.h, z0.h[2]\n"
+ ".inst 0x64714177 // bfdot z23.s, z11.h, z1.h[2]\n"
+ ".inst 0x6472417b // bfdot z27.s, z11.h, z2.h[2]\n"
+ ".inst 0x6473417f // bfdot z31.s, z11.h, z3.h[2]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #-5, MUL VL]\n"
+ ".inst 0x64784190 // bfdot z16.s, z12.h, z0.h[3]\n"
+ ".inst 0x64794194 // bfdot z20.s, z12.h, z1.h[3]\n"
+ ".inst 0x647a4198 // bfdot z24.s, z12.h, z2.h[3]\n"
+ ".inst 0x647b419c // bfdot z28.s, z12.h, z3.h[3]\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #-4, MUL VL]\n"
+ ".inst 0x647841b1 // bfdot z17.s, z13.h, z0.h[3]\n"
+ ".inst 0x647941b5 // bfdot z21.s, z13.h, z1.h[3]\n"
+ ".inst 0x647a41b9 // bfdot z25.s, z13.h, z2.h[3]\n"
+ ".inst 0x647b41bd // bfdot z29.s, z13.h, z3.h[3]\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #-3, MUL VL]\n"
+ ".inst 0x647841d2 // bfdot z18.s, z14.h, z0.h[3]\n"
+ ".inst 0x647941d6 // bfdot z22.s, z14.h, z1.h[3]\n"
+ ".inst 0x647a41da // bfdot z26.s, z14.h, z2.h[3]\n"
+ ".inst 0x647b41de // bfdot z30.s, z14.h, z3.h[3]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #-2, MUL VL]\n"
+ ".inst 0x647841f3 // bfdot z19.s, z15.h, z0.h[3]\n"
+ "ld1rqh z0.h, p6/z, [%[a_ptr0], #0x10]\n"
+ ".inst 0x647941f7 // bfdot z23.s, z15.h, z1.h[3]\n"
+ "ld1rqh z1.h, p6/z, [a_ptr1, #0x10]\n"
+ ".inst 0x647a41fb // bfdot z27.s, z15.h, z2.h[3]\n"
+ "ld1rqh z2.h, p6/z, [a_ptr2, #0x10]\n"
+ ".inst 0x647b41ff // bfdot z31.s, z15.h, z3.h[3]\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #-1, MUL VL]\n"
+ ".inst 0x64644110 // bfdot z16.s, z8.h, z4.h[0]\n"
+ "ld1rqh z3.h, p6/z, [a_ptr3, #0x10]\n"
+ ".inst 0x64654114 // bfdot z20.s, z8.h, z5.h[0]\n"
+ "addvl %[a_ptr0], %[a_ptr0], #2\n"
+ ".inst 0x64664118 // bfdot z24.s, z8.h, z6.h[0]\n"
+ "addvl a_ptr1, a_ptr1, #2\n"
+ ".inst 0x6467411c // bfdot z28.s, z8.h, z7.h[0]\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0]]\n"
+ ".inst 0x64644131 // bfdot z17.s, z9.h, z4.h[0]\n"
+ "addvl a_ptr2, a_ptr2, #2\n"
+ ".inst 0x64654135 // bfdot z21.s, z9.h, z5.h[0]\n"
+ "addvl a_ptr3, a_ptr3, #2\n"
+ ".inst 0x64664139 // bfdot z25.s, z9.h, z6.h[0]\n"
+ ".inst 0x6467413d // bfdot z29.s, z9.h, z7.h[0]\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x64644152 // bfdot z18.s, z10.h, z4.h[0]\n"
+ ".inst 0x64654156 // bfdot z22.s, z10.h, z5.h[0]\n"
+ ".inst 0x6466415a // bfdot z26.s, z10.h, z6.h[0]\n"
+ ".inst 0x6467415e // bfdot z30.s, z10.h, z7.h[0]\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x64644173 // bfdot z19.s, z11.h, z4.h[0]\n"
+ ".inst 0x64654177 // bfdot z23.s, z11.h, z5.h[0]\n"
+ ".inst 0x6466417b // bfdot z27.s, z11.h, z6.h[0]\n"
+ ".inst 0x6467417f // bfdot z31.s, z11.h, z7.h[0]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x646c4190 // bfdot z16.s, z12.h, z4.h[1]\n"
+ ".inst 0x646d4194 // bfdot z20.s, z12.h, z5.h[1]\n"
+ ".inst 0x646e4198 // bfdot z24.s, z12.h, z6.h[1]\n"
+ ".inst 0x646f419c // bfdot z28.s, z12.h, z7.h[1]\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ ".inst 0x646c41b1 // bfdot z17.s, z13.h, z4.h[1]\n"
+ ".inst 0x646d41b5 // bfdot z21.s, z13.h, z5.h[1]\n"
+ ".inst 0x646e41b9 // bfdot z25.s, z13.h, z6.h[1]\n"
+ ".inst 0x646f41bd // bfdot z29.s, z13.h, z7.h[1]\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ ".inst 0x646c41d2 // bfdot z18.s, z14.h, z4.h[1]\n"
+ ".inst 0x646d41d6 // bfdot z22.s, z14.h, z5.h[1]\n"
+ ".inst 0x646e41da // bfdot z26.s, z14.h, z6.h[1]\n"
+ ".inst 0x646f41de // bfdot z30.s, z14.h, z7.h[1]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ ".inst 0x646c41f3 // bfdot z19.s, z15.h, z4.h[1]\n"
+ ".inst 0x646d41f7 // bfdot z23.s, z15.h, z5.h[1]\n"
+ ".inst 0x646e41fb // bfdot z27.s, z15.h, z6.h[1]\n"
+ ".inst 0x646f41ff // bfdot z31.s, z15.h, z7.h[1]\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ ".inst 0x64744110 // bfdot z16.s, z8.h, z4.h[2]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ ".inst 0x64754114 // bfdot z20.s, z8.h, z5.h[2]\n"
+ ".inst 0x64764118 // bfdot z24.s, z8.h, z6.h[2]\n"
+ ".inst 0x6477411c // bfdot z28.s, z8.h, z7.h[2]\n"
+ ".inst 0x64744131 // bfdot z17.s, z9.h, z4.h[2]\n"
+ ".inst 0x64754135 // bfdot z21.s, z9.h, z5.h[2]\n"
+ ".inst 0x64764139 // bfdot z25.s, z9.h, z6.h[2]\n"
+ ".inst 0x6477413d // bfdot z29.s, z9.h, z7.h[2]\n"
+ ".inst 0x64744152 // bfdot z18.s, z10.h, z4.h[2]\n"
+ ".inst 0x64754156 // bfdot z22.s, z10.h, z5.h[2]\n"
+ ".inst 0x6476415a // bfdot z26.s, z10.h, z6.h[2]\n"
+ ".inst 0x6477415e // bfdot z30.s, z10.h, z7.h[2]\n"
+ ".inst 0x64744173 // bfdot z19.s, z11.h, z4.h[2]\n"
+ ".inst 0x64754177 // bfdot z23.s, z11.h, z5.h[2]\n"
+ ".inst 0x6476417b // bfdot z27.s, z11.h, z6.h[2]\n"
+ ".inst 0x6477417f // bfdot z31.s, z11.h, z7.h[2]\n"
+ ".inst 0x647c4190 // bfdot z16.s, z12.h, z4.h[3]\n"
+ ".inst 0x647d4194 // bfdot z20.s, z12.h, z5.h[3]\n"
+ ".inst 0x647e4198 // bfdot z24.s, z12.h, z6.h[3]\n"
+ ".inst 0x647f419c // bfdot z28.s, z12.h, z7.h[3]\n"
+ ".inst 0x647c41b1 // bfdot z17.s, z13.h, z4.h[3]\n"
+ ".inst 0x647d41b5 // bfdot z21.s, z13.h, z5.h[3]\n"
+ ".inst 0x647e41b9 // bfdot z25.s, z13.h, z6.h[3]\n"
+ ".inst 0x647f41bd // bfdot z29.s, z13.h, z7.h[3]\n"
+ ".inst 0x647c41d2 // bfdot z18.s, z14.h, z4.h[3]\n"
+ ".inst 0x647d41d6 // bfdot z22.s, z14.h, z5.h[3]\n"
+ ".inst 0x647e41da // bfdot z26.s, z14.h, z6.h[3]\n"
+ ".inst 0x647f41de // bfdot z30.s, z14.h, z7.h[3]\n"
+ ".inst 0x647c41f3 // bfdot z19.s, z15.h, z4.h[3]\n"
+ ".inst 0x647d41f7 // bfdot z23.s, z15.h, z5.h[3]\n"
+ ".inst 0x647e41fb // bfdot z27.s, z15.h, z6.h[3]\n"
+ ".inst 0x647f41ff // bfdot z31.s, z15.h, z7.h[3]\n"
+ "cbz %[blocks], 5f\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0]]\n"
+ "subs %[blocks], %[blocks], #0x1\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x64604110 // bfdot z16.s, z8.h, z0.h[0]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x64614114 // bfdot z20.s, z8.h, z1.h[0]\n"
+ ".inst 0x64624118 // bfdot z24.s, z8.h, z2.h[0]\n"
+ ".inst 0x6463411c // bfdot z28.s, z8.h, z3.h[0]\n"
+ ".inst 0x64604131 // bfdot z17.s, z9.h, z0.h[0]\n"
+ ".inst 0x64614135 // bfdot z21.s, z9.h, z1.h[0]\n"
+ ".inst 0x64624139 // bfdot z25.s, z9.h, z2.h[0]\n"
+ ".inst 0x6463413d // bfdot z29.s, z9.h, z3.h[0]\n"
+ ".inst 0x64604152 // bfdot z18.s, z10.h, z0.h[0]\n"
+ ".inst 0x64614156 // bfdot z22.s, z10.h, z1.h[0]\n"
+ ".inst 0x6462415a // bfdot z26.s, z10.h, z2.h[0]\n"
+ ".inst 0x6463415e // bfdot z30.s, z10.h, z3.h[0]\n"
+ ".inst 0x64604173 // bfdot z19.s, z11.h, z0.h[0]\n"
+ ".inst 0x64614177 // bfdot z23.s, z11.h, z1.h[0]\n"
+ ".inst 0x6462417b // bfdot z27.s, z11.h, z2.h[0]\n"
+ ".inst 0x6463417f // bfdot z31.s, z11.h, z3.h[0]\n"
+ "b.eq 5f\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "subs %[blocks], %[blocks], #0x1\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ ".inst 0x64684190 // bfdot z16.s, z12.h, z0.h[1]\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ ".inst 0x64694194 // bfdot z20.s, z12.h, z1.h[1]\n"
+ ".inst 0x646a4198 // bfdot z24.s, z12.h, z2.h[1]\n"
+ ".inst 0x646b419c // bfdot z28.s, z12.h, z3.h[1]\n"
+ ".inst 0x646841b1 // bfdot z17.s, z13.h, z0.h[1]\n"
+ ".inst 0x646941b5 // bfdot z21.s, z13.h, z1.h[1]\n"
+ ".inst 0x646a41b9 // bfdot z25.s, z13.h, z2.h[1]\n"
+ ".inst 0x646b41bd // bfdot z29.s, z13.h, z3.h[1]\n"
+ ".inst 0x646841d2 // bfdot z18.s, z14.h, z0.h[1]\n"
+ ".inst 0x646941d6 // bfdot z22.s, z14.h, z1.h[1]\n"
+ ".inst 0x646a41da // bfdot z26.s, z14.h, z2.h[1]\n"
+ ".inst 0x646b41de // bfdot z30.s, z14.h, z3.h[1]\n"
+ ".inst 0x646841f3 // bfdot z19.s, z15.h, z0.h[1]\n"
+ ".inst 0x646941f7 // bfdot z23.s, z15.h, z1.h[1]\n"
+ ".inst 0x646a41fb // bfdot z27.s, z15.h, z2.h[1]\n"
+ ".inst 0x646b41ff // bfdot z31.s, z15.h, z3.h[1]\n"
+ "b.eq 5f\n"
+ "addvl %[b_ptr0], %[b_ptr0], #16\n"
+ "subs %[blocks], %[blocks], #0x1\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #-8, MUL VL]\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #-7, MUL VL]\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #-6, MUL VL]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #-5, MUL VL]\n"
+ ".inst 0x64704110 // bfdot z16.s, z8.h, z0.h[2]\n"
+ ".inst 0x64714114 // bfdot z20.s, z8.h, z1.h[2]\n"
+ ".inst 0x64724118 // bfdot z24.s, z8.h, z2.h[2]\n"
+ ".inst 0x6473411c // bfdot z28.s, z8.h, z3.h[2]\n"
+ ".inst 0x64704131 // bfdot z17.s, z9.h, z0.h[2]\n"
+ ".inst 0x64714135 // bfdot z21.s, z9.h, z1.h[2]\n"
+ ".inst 0x64724139 // bfdot z25.s, z9.h, z2.h[2]\n"
+ ".inst 0x6473413d // bfdot z29.s, z9.h, z3.h[2]\n"
+ ".inst 0x64704152 // bfdot z18.s, z10.h, z0.h[2]\n"
+ ".inst 0x64714156 // bfdot z22.s, z10.h, z1.h[2]\n"
+ ".inst 0x6472415a // bfdot z26.s, z10.h, z2.h[2]\n"
+ ".inst 0x6473415e // bfdot z30.s, z10.h, z3.h[2]\n"
+ ".inst 0x64704173 // bfdot z19.s, z11.h, z0.h[2]\n"
+ ".inst 0x64714177 // bfdot z23.s, z11.h, z1.h[2]\n"
+ ".inst 0x6472417b // bfdot z27.s, z11.h, z2.h[2]\n"
+ ".inst 0x6473417f // bfdot z31.s, z11.h, z3.h[2]\n"
+ "b.eq 5f\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #-4, MUL VL]\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #-3, MUL VL]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #-2, MUL VL]\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #-1, MUL VL]\n"
+ ".inst 0x64784190 // bfdot z16.s, z12.h, z0.h[3]\n"
+ ".inst 0x64794194 // bfdot z20.s, z12.h, z1.h[3]\n"
+ ".inst 0x647a4198 // bfdot z24.s, z12.h, z2.h[3]\n"
+ ".inst 0x647b419c // bfdot z28.s, z12.h, z3.h[3]\n"
+ ".inst 0x647841b1 // bfdot z17.s, z13.h, z0.h[3]\n"
+ ".inst 0x647941b5 // bfdot z21.s, z13.h, z1.h[3]\n"
+ ".inst 0x647a41b9 // bfdot z25.s, z13.h, z2.h[3]\n"
+ ".inst 0x647b41bd // bfdot z29.s, z13.h, z3.h[3]\n"
+ ".inst 0x647841d2 // bfdot z18.s, z14.h, z0.h[3]\n"
+ ".inst 0x647941d6 // bfdot z22.s, z14.h, z1.h[3]\n"
+ ".inst 0x647a41da // bfdot z26.s, z14.h, z2.h[3]\n"
+ ".inst 0x647b41de // bfdot z30.s, z14.h, z3.h[3]\n"
+ ".inst 0x647841f3 // bfdot z19.s, z15.h, z0.h[3]\n"
+ ".inst 0x647941f7 // bfdot z23.s, z15.h, z1.h[3]\n"
+ ".inst 0x647a41fb // bfdot z27.s, z15.h, z2.h[3]\n"
+ ".inst 0x647b41ff // bfdot z31.s, z15.h, z3.h[3]\n"
+ "b 5f\n"
+ "4:\n"
+ ".inst 0x64604110 // bfdot z16.s, z8.h, z0.h[0]\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #-1, MUL VL]\n"
+ ".inst 0x64614114 // bfdot z20.s, z8.h, z1.h[0]\n"
+ "ld1rqh z4.h, p6/z, [%[a_ptr0]]\n"
+ ".inst 0x64624118 // bfdot z24.s, z8.h, z2.h[0]\n"
+ "ld1rqh z5.h, p6/z, [a_ptr1]\n"
+ ".inst 0x6463411c // bfdot z28.s, z8.h, z3.h[0]\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0]]\n"
+ ".inst 0x64604131 // bfdot z17.s, z9.h, z0.h[0]\n"
+ "ld1rqh z6.h, p6/z, [a_ptr2]\n"
+ ".inst 0x64614135 // bfdot z21.s, z9.h, z1.h[0]\n"
+ "ld1rqh z7.h, p6/z, [a_ptr3]\n"
+ ".inst 0x64624139 // bfdot z25.s, z9.h, z2.h[0]\n"
+ "addvl %[a_ptr0], %[a_ptr0], #1\n"
+ ".inst 0x6463413d // bfdot z29.s, z9.h, z3.h[0]\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x64604152 // bfdot z18.s, z10.h, z0.h[0]\n"
+ "addvl a_ptr1, a_ptr1, #1\n"
+ ".inst 0x64614156 // bfdot z22.s, z10.h, z1.h[0]\n"
+ "addvl a_ptr2, a_ptr2, #1\n"
+ ".inst 0x6462415a // bfdot z26.s, z10.h, z2.h[0]\n"
+ "addvl a_ptr3, a_ptr3, #1\n"
+ ".inst 0x6463415e // bfdot z30.s, z10.h, z3.h[0]\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x64604173 // bfdot z19.s, z11.h, z0.h[0]\n"
+ ".inst 0x64614177 // bfdot z23.s, z11.h, z1.h[0]\n"
+ ".inst 0x6462417b // bfdot z27.s, z11.h, z2.h[0]\n"
+ ".inst 0x6463417f // bfdot z31.s, z11.h, z3.h[0]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x64684190 // bfdot z16.s, z12.h, z0.h[1]\n"
+ ".inst 0x64694194 // bfdot z20.s, z12.h, z1.h[1]\n"
+ ".inst 0x646a4198 // bfdot z24.s, z12.h, z2.h[1]\n"
+ ".inst 0x646b419c // bfdot z28.s, z12.h, z3.h[1]\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ ".inst 0x646841b1 // bfdot z17.s, z13.h, z0.h[1]\n"
+ ".inst 0x646941b5 // bfdot z21.s, z13.h, z1.h[1]\n"
+ ".inst 0x646a41b9 // bfdot z25.s, z13.h, z2.h[1]\n"
+ ".inst 0x646b41bd // bfdot z29.s, z13.h, z3.h[1]\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ ".inst 0x646841d2 // bfdot z18.s, z14.h, z0.h[1]\n"
+ ".inst 0x646941d6 // bfdot z22.s, z14.h, z1.h[1]\n"
+ ".inst 0x646a41da // bfdot z26.s, z14.h, z2.h[1]\n"
+ ".inst 0x646b41de // bfdot z30.s, z14.h, z3.h[1]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ ".inst 0x646841f3 // bfdot z19.s, z15.h, z0.h[1]\n"
+ ".inst 0x646941f7 // bfdot z23.s, z15.h, z1.h[1]\n"
+ ".inst 0x646a41fb // bfdot z27.s, z15.h, z2.h[1]\n"
+ ".inst 0x646b41ff // bfdot z31.s, z15.h, z3.h[1]\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ ".inst 0x64704110 // bfdot z16.s, z8.h, z0.h[2]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ ".inst 0x64714114 // bfdot z20.s, z8.h, z1.h[2]\n"
+ ".inst 0x64724118 // bfdot z24.s, z8.h, z2.h[2]\n"
+ ".inst 0x6473411c // bfdot z28.s, z8.h, z3.h[2]\n"
+ ".inst 0x64704131 // bfdot z17.s, z9.h, z0.h[2]\n"
+ ".inst 0x64714135 // bfdot z21.s, z9.h, z1.h[2]\n"
+ ".inst 0x64724139 // bfdot z25.s, z9.h, z2.h[2]\n"
+ ".inst 0x6473413d // bfdot z29.s, z9.h, z3.h[2]\n"
+ ".inst 0x64704152 // bfdot z18.s, z10.h, z0.h[2]\n"
+ ".inst 0x64714156 // bfdot z22.s, z10.h, z1.h[2]\n"
+ ".inst 0x6472415a // bfdot z26.s, z10.h, z2.h[2]\n"
+ ".inst 0x6473415e // bfdot z30.s, z10.h, z3.h[2]\n"
+ ".inst 0x64704173 // bfdot z19.s, z11.h, z0.h[2]\n"
+ ".inst 0x64714177 // bfdot z23.s, z11.h, z1.h[2]\n"
+ ".inst 0x6472417b // bfdot z27.s, z11.h, z2.h[2]\n"
+ ".inst 0x6473417f // bfdot z31.s, z11.h, z3.h[2]\n"
+ ".inst 0x64784190 // bfdot z16.s, z12.h, z0.h[3]\n"
+ ".inst 0x64794194 // bfdot z20.s, z12.h, z1.h[3]\n"
+ ".inst 0x647a4198 // bfdot z24.s, z12.h, z2.h[3]\n"
+ ".inst 0x647b419c // bfdot z28.s, z12.h, z3.h[3]\n"
+ ".inst 0x647841b1 // bfdot z17.s, z13.h, z0.h[3]\n"
+ ".inst 0x647941b5 // bfdot z21.s, z13.h, z1.h[3]\n"
+ ".inst 0x647a41b9 // bfdot z25.s, z13.h, z2.h[3]\n"
+ ".inst 0x647b41bd // bfdot z29.s, z13.h, z3.h[3]\n"
+ ".inst 0x647841d2 // bfdot z18.s, z14.h, z0.h[3]\n"
+ ".inst 0x647941d6 // bfdot z22.s, z14.h, z1.h[3]\n"
+ ".inst 0x647a41da // bfdot z26.s, z14.h, z2.h[3]\n"
+ ".inst 0x647b41de // bfdot z30.s, z14.h, z3.h[3]\n"
+ ".inst 0x647841f3 // bfdot z19.s, z15.h, z0.h[3]\n"
+ ".inst 0x647941f7 // bfdot z23.s, z15.h, z1.h[3]\n"
+ ".inst 0x647a41fb // bfdot z27.s, z15.h, z2.h[3]\n"
+ ".inst 0x647b41ff // bfdot z31.s, z15.h, z3.h[3]\n"
+ "cbz %[blocks], 5f\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0]]\n"
+ "subs %[blocks], %[blocks], #0x1\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x64644110 // bfdot z16.s, z8.h, z4.h[0]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x64654114 // bfdot z20.s, z8.h, z5.h[0]\n"
+ ".inst 0x64664118 // bfdot z24.s, z8.h, z6.h[0]\n"
+ ".inst 0x6467411c // bfdot z28.s, z8.h, z7.h[0]\n"
+ ".inst 0x64644131 // bfdot z17.s, z9.h, z4.h[0]\n"
+ ".inst 0x64654135 // bfdot z21.s, z9.h, z5.h[0]\n"
+ ".inst 0x64664139 // bfdot z25.s, z9.h, z6.h[0]\n"
+ ".inst 0x6467413d // bfdot z29.s, z9.h, z7.h[0]\n"
+ ".inst 0x64644152 // bfdot z18.s, z10.h, z4.h[0]\n"
+ ".inst 0x64654156 // bfdot z22.s, z10.h, z5.h[0]\n"
+ ".inst 0x6466415a // bfdot z26.s, z10.h, z6.h[0]\n"
+ ".inst 0x6467415e // bfdot z30.s, z10.h, z7.h[0]\n"
+ ".inst 0x64644173 // bfdot z19.s, z11.h, z4.h[0]\n"
+ ".inst 0x64654177 // bfdot z23.s, z11.h, z5.h[0]\n"
+ ".inst 0x6466417b // bfdot z27.s, z11.h, z6.h[0]\n"
+ ".inst 0x6467417f // bfdot z31.s, z11.h, z7.h[0]\n"
+ "b.eq 5f\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "subs %[blocks], %[blocks], #0x1\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ ".inst 0x646c4190 // bfdot z16.s, z12.h, z4.h[1]\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ ".inst 0x646d4194 // bfdot z20.s, z12.h, z5.h[1]\n"
+ ".inst 0x646e4198 // bfdot z24.s, z12.h, z6.h[1]\n"
+ ".inst 0x646f419c // bfdot z28.s, z12.h, z7.h[1]\n"
+ ".inst 0x646c41b1 // bfdot z17.s, z13.h, z4.h[1]\n"
+ ".inst 0x646d41b5 // bfdot z21.s, z13.h, z5.h[1]\n"
+ ".inst 0x646e41b9 // bfdot z25.s, z13.h, z6.h[1]\n"
+ ".inst 0x646f41bd // bfdot z29.s, z13.h, z7.h[1]\n"
+ ".inst 0x646c41d2 // bfdot z18.s, z14.h, z4.h[1]\n"
+ ".inst 0x646d41d6 // bfdot z22.s, z14.h, z5.h[1]\n"
+ ".inst 0x646e41da // bfdot z26.s, z14.h, z6.h[1]\n"
+ ".inst 0x646f41de // bfdot z30.s, z14.h, z7.h[1]\n"
+ ".inst 0x646c41f3 // bfdot z19.s, z15.h, z4.h[1]\n"
+ ".inst 0x646d41f7 // bfdot z23.s, z15.h, z5.h[1]\n"
+ ".inst 0x646e41fb // bfdot z27.s, z15.h, z6.h[1]\n"
+ ".inst 0x646f41ff // bfdot z31.s, z15.h, z7.h[1]\n"
+ "b.eq 5f\n"
+ "addvl %[b_ptr0], %[b_ptr0], #16\n"
+ "subs %[blocks], %[blocks], #0x1\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #-8, MUL VL]\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #-7, MUL VL]\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #-6, MUL VL]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #-5, MUL VL]\n"
+ ".inst 0x64744110 // bfdot z16.s, z8.h, z4.h[2]\n"
+ ".inst 0x64754114 // bfdot z20.s, z8.h, z5.h[2]\n"
+ ".inst 0x64764118 // bfdot z24.s, z8.h, z6.h[2]\n"
+ ".inst 0x6477411c // bfdot z28.s, z8.h, z7.h[2]\n"
+ ".inst 0x64744131 // bfdot z17.s, z9.h, z4.h[2]\n"
+ ".inst 0x64754135 // bfdot z21.s, z9.h, z5.h[2]\n"
+ ".inst 0x64764139 // bfdot z25.s, z9.h, z6.h[2]\n"
+ ".inst 0x6477413d // bfdot z29.s, z9.h, z7.h[2]\n"
+ ".inst 0x64744152 // bfdot z18.s, z10.h, z4.h[2]\n"
+ ".inst 0x64754156 // bfdot z22.s, z10.h, z5.h[2]\n"
+ ".inst 0x6476415a // bfdot z26.s, z10.h, z6.h[2]\n"
+ ".inst 0x6477415e // bfdot z30.s, z10.h, z7.h[2]\n"
+ ".inst 0x64744173 // bfdot z19.s, z11.h, z4.h[2]\n"
+ ".inst 0x64754177 // bfdot z23.s, z11.h, z5.h[2]\n"
+ ".inst 0x6476417b // bfdot z27.s, z11.h, z6.h[2]\n"
+ ".inst 0x6477417f // bfdot z31.s, z11.h, z7.h[2]\n"
+ "b.eq 5f\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #-4, MUL VL]\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #-3, MUL VL]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #-2, MUL VL]\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #-1, MUL VL]\n"
+ ".inst 0x647c4190 // bfdot z16.s, z12.h, z4.h[3]\n"
+ ".inst 0x647d4194 // bfdot z20.s, z12.h, z5.h[3]\n"
+ ".inst 0x647e4198 // bfdot z24.s, z12.h, z6.h[3]\n"
+ ".inst 0x647f419c // bfdot z28.s, z12.h, z7.h[3]\n"
+ ".inst 0x647c41b1 // bfdot z17.s, z13.h, z4.h[3]\n"
+ ".inst 0x647d41b5 // bfdot z21.s, z13.h, z5.h[3]\n"
+ ".inst 0x647e41b9 // bfdot z25.s, z13.h, z6.h[3]\n"
+ ".inst 0x647f41bd // bfdot z29.s, z13.h, z7.h[3]\n"
+ ".inst 0x647c41d2 // bfdot z18.s, z14.h, z4.h[3]\n"
+ ".inst 0x647d41d6 // bfdot z22.s, z14.h, z5.h[3]\n"
+ ".inst 0x647e41da // bfdot z26.s, z14.h, z6.h[3]\n"
+ ".inst 0x647f41de // bfdot z30.s, z14.h, z7.h[3]\n"
+ ".inst 0x647c41f3 // bfdot z19.s, z15.h, z4.h[3]\n"
+ ".inst 0x647d41f7 // bfdot z23.s, z15.h, z5.h[3]\n"
+ ".inst 0x647e41fb // bfdot z27.s, z15.h, z6.h[3]\n"
+ ".inst 0x647f41ff // bfdot z31.s, z15.h, z7.h[3]\n"
+ "5:\n"
+ "ld1rw z14.s, p7/z, [%[minptr]]\n"
+ "ld1rw z15.s, p7/z, [%[maxptr]]\n"
+ "fmax z16.s, p7/m, z16.s, z14.s\n"
+ "fmax z17.s, p7/m, z17.s, z14.s\n"
+ "fmax z18.s, p7/m, z18.s, z14.s\n"
+ "fmax z19.s, p7/m, z19.s, z14.s\n"
+ "fmin z16.s, p7/m, z16.s, z15.s\n"
+ "fmin z17.s, p7/m, z17.s, z15.s\n"
+ "fmin z18.s, p7/m, z18.s, z15.s\n"
+ "fmin z19.s, p7/m, z19.s, z15.s\n"
+ "st1w z16.s, p0, [%[c_ptr0]]\n"
+ "fmax z20.s, p7/m, z20.s, z14.s\n"
+ "fmax z21.s, p7/m, z21.s, z14.s\n"
+ "fmax z22.s, p7/m, z22.s, z14.s\n"
+ "st1w z17.s, p1, [%[c_ptr0], #1, MUL VL]\n"
+ "fmax z23.s, p7/m, z23.s, z14.s\n"
+ "fmin z20.s, p7/m, z20.s, z15.s\n"
+ "fmin z21.s, p7/m, z21.s, z15.s\n"
+ "st1w z18.s, p2, [%[c_ptr0], #2, MUL VL]\n"
+ "fmin z22.s, p7/m, z22.s, z15.s\n"
+ "fmin z23.s, p7/m, z23.s, z15.s\n"
+ "fmax z24.s, p7/m, z24.s, z14.s\n"
+ "st1w z19.s, p3, [%[c_ptr0], #3, MUL VL]\n"
+ "fmax z25.s, p7/m, z25.s, z14.s\n"
+ "addvl %[c_ptr0], %[c_ptr0], #4\n"
+ "fmax z26.s, p7/m, z26.s, z14.s\n"
+ "st1w z20.s, p0, [c_ptr1]\n"
+ "fmin z24.s, p7/m, z24.s, z15.s\n"
+ "fmin z25.s, p7/m, z25.s, z15.s\n"
+ "fmax z27.s, p7/m, z27.s, z14.s\n"
+ "st1w z21.s, p1, [c_ptr1, #1, MUL VL]\n"
+ "fmin z26.s, p7/m, z26.s, z15.s\n"
+ "fmax z28.s, p7/m, z28.s, z14.s\n"
+ "fmax z29.s, p7/m, z29.s, z14.s\n"
+ "st1w z22.s, p2, [c_ptr1, #2, MUL VL]\n"
+ "fmin z27.s, p7/m, z27.s, z15.s\n"
+ "fmax z30.s, p7/m, z30.s, z14.s\n"
+ "fmin z28.s, p7/m, z28.s, z15.s\n"
+ "st1w z23.s, p3, [c_ptr1, #3, MUL VL]\n"
+ "fmin z29.s, p7/m, z29.s, z15.s\n"
+ "fmax z31.s, p7/m, z31.s, z14.s\n"
+ "fmin z30.s, p7/m, z30.s, z15.s\n"
+ "st1w z24.s, p0, [c_ptr2]\n"
+ "fmin z31.s, p7/m, z31.s, z15.s\n"
+ "st1w z25.s, p1, [c_ptr2, #1, MUL VL]\n"
+ "st1w z26.s, p2, [c_ptr2, #2, MUL VL]\n"
+ "st1w z27.s, p3, [c_ptr2, #3, MUL VL]\n"
+ "st1w z28.s, p0, [c_ptr3]\n"
+ "st1w z29.s, p1, [c_ptr3, #1, MUL VL]\n"
+ "st1w z30.s, p2, [c_ptr3, #2, MUL VL]\n"
+ "st1w z31.s, p3, [c_ptr3, #3, MUL VL]\n"
+ ".unreq a_ptr1\n"
+ ".unreq a_ptr2\n"
+ ".unreq a_ptr3\n"
+ ".unreq c_ptr1\n"
+ ".unreq c_ptr2\n"
+ ".unreq c_ptr3\n"
+ : [a_ptr0] "+r" (a_ptr0), [b_ptr0] "+r" (b_ptr0), [c_ptr0] "+r" (c_ptr0), [loops] "+r" (loops), [regs] "+r" (regs), [temp] "+r" (temp), [blocks] "+r" (blocks)
+ : [width] "r" (width), [append] "r" (static_cast<uint64_t>(append)), [lda] "r" (ldab), [ldc] "r" (ldcb), [biasptr] "r" (biasptr), [minptr] "r" (minptr), [maxptr] "r" (maxptr), [leftovers] "r" (leftovers)
+ : "z0", "z1", "z2", "z3", "z4", "z5", "z6", "z7", "z8", "z9", "z10", "z11", "z12", "z13", "z14", "z15", "z16", "z17", "z18", "z19", "z20", "z21", "z22", "z23", "z24", "z25", "z26", "z27", "z28", "z29", "z30", "z31", "x0", "x1", "x2", "x3", "x4", "x5", "cc", "memory"
+ );
+ break;
+ }
+
+ }
+ }
+}
+
+} // namespace arm_gemm
+
+#endif // __ARM_FEATURE_SVE
diff --git a/src/core/NEON/kernels/arm_gemm/kernels/sve_hybrid_bf16fp32_mmla_4VLx4.hpp b/src/core/NEON/kernels/arm_gemm/kernels/sve_hybrid_bf16fp32_mmla_4VLx4.hpp
new file mode 100644
index 000000000..d889f99f8
--- /dev/null
+++ b/src/core/NEON/kernels/arm_gemm/kernels/sve_hybrid_bf16fp32_mmla_4VLx4.hpp
@@ -0,0 +1,86 @@
+/*
+ * Copyright (c) 2018-2019 Arm Limited.
+ *
+ * SPDX-License-Identifier: MIT
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+#pragma once
+
+#ifdef __ARM_FEATURE_SVE
+
+#include "../bfloat.hpp"
+#include "../std_transforms_sve.hpp"
+
+namespace arm_gemm
+{
+
+// Actual kernel implementations
+void sve_hybrid_bf16fp32_mmla_4VLx4(const bfloat16 *, int, const bfloat16 *, float *, int, int, int, int, const float *, Activation, bool);
+
+class hybrid_bf16fp32_mmla_4VLx4
+{
+public:
+ typedef bfloat16 operand_type;
+ typedef float result_type;
+
+ typedef void (*kern_type)(const bfloat16 *, int, const bfloat16 *, float *, int, int, int, int, const float *, Activation, bool);
+
+ /* Kernel blocking parameters */
+ static constexpr unsigned int out_height()
+ {
+ return 8;
+ }
+
+ static unsigned int out_width()
+ {
+ return get_vector_length<float>() * 2;
+ }
+
+ static constexpr unsigned int k_unroll()
+ {
+ return 4;
+ }
+
+ static constexpr bool supports_append()
+ {
+ return true;
+ }
+
+ static constexpr bool supports_bias()
+ {
+ return true;
+ }
+
+ static constexpr bool supports_activation()
+ {
+ return true;
+ }
+
+ StdTransformsSVE<operand_type, result_type, 4, 4, 4> transforms = {};
+
+ // Default to the generic kernel
+ kern_type kernel=sve_hybrid_bf16fp32_mmla_4VLx4;
+
+ hybrid_bf16fp32_mmla_4VLx4(const CPUInfo *ci) { UNUSED(ci); }
+};
+
+} // namespace arm_gemm
+
+#endif // __ARM_FEATURE_SVE
diff --git a/src/core/NEON/kernels/arm_gemm/kernels/sve_hybrid_bf16fp32_mmla_4VLx4/generic.cpp b/src/core/NEON/kernels/arm_gemm/kernels/sve_hybrid_bf16fp32_mmla_4VLx4/generic.cpp
new file mode 100644
index 000000000..e3debe508
--- /dev/null
+++ b/src/core/NEON/kernels/arm_gemm/kernels/sve_hybrid_bf16fp32_mmla_4VLx4/generic.cpp
@@ -0,0 +1,3448 @@
+/*
+ * Copyright (c) 2018-2019 Arm Limited.
+ *
+ * SPDX-License-Identifier: MIT
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+#ifdef __ARM_FEATURE_SVE
+
+#include <algorithm>
+
+#include "arm_gemm.hpp"
+#include "../../bfloat.hpp"
+#include "../../asmlib.hpp"
+#include "../../utils.hpp"
+
+namespace arm_gemm {
+
+void sve_hybrid_bf16fp32_mmla_4VLx4(const bfloat16 *A, int lda, const bfloat16 *B, float *C, int ldc, int M, int N, int K, const float *bias, Activation act, bool append) {
+ const int K_stride = ((K + 3) / 4) * 4;
+ const long loops_count = ((K + 8) / 16) - 1;
+ K -= loops_count * 16;
+ const long regs_count = (K / 8) - 1;
+ K -= (regs_count + 1) * 8;
+ const long leftovers = K;
+ const long blocks_count = (K + 3) / 4;
+ float nullbias[128];
+ if (!append && !bias) {
+ memset(nullbias, 0, (2 * get_vector_length<float>() * sizeof(float)));
+ }
+ float minval = - static_cast<float>(std::numeric_limits<float>::infinity());
+ float maxval = static_cast<float>(std::numeric_limits<float>::infinity());
+ const float * const minptr = &minval;
+ const float * const maxptr = &maxval;
+
+ switch(act.type)
+ {
+ default:
+ case Activation::Type::None:
+ break;
+ case Activation::Type::BoundedReLU:
+ maxval = static_cast<float>(act.param1);
+ /* fall through */
+ case Activation::Type::ReLU:
+ minval = 0.0f;
+ break;
+ }
+
+ for (int y=0; y<M; y+=8) {
+ const bfloat16 * const a_ptr0_base = A + (y * lda);
+ const unsigned long ldab = lda * sizeof(bfloat16);
+
+ float *c_ptr0 = C + (y * ldc);
+
+ for (int x0=0; x0<N; x0+=(2 * get_vector_length<float>())) {
+ const long width = std::min((unsigned long)N-x0, (2 * get_vector_length<float>()));
+ long loops = loops_count;
+ long regs = regs_count;
+ long temp = 0;
+ long blocks = blocks_count;
+ const bfloat16 *a_ptr0 = a_ptr0_base;
+ const bfloat16 *b_ptr0 = B + (K_stride * x0);
+ const unsigned long ldcb = ldc * sizeof(float);
+ const float *biasptr = bias ? bias+x0 : nullbias;
+
+ switch(M-y) {
+ case 1:
+ __asm __volatile (
+ "whilelt p6.h, %[temp], %[leftovers]\n"
+ "whilelt p0.s, %[temp], %[width]\n"
+ "incw %[temp], all, mul #1\n"
+ "ptrue p7.h\n"
+ "whilelt p1.s, %[temp], %[width]\n"
+ "cbnz %[append], 1f\n"
+ "mov z1.h, #0\n"
+ "ld1w z15.s, p0/z, [%[biasptr]]\n"
+ "ld1rqh z0.h, p7/z, [%[a_ptr0]]\n"
+ "add %[a_ptr0], %[a_ptr0], #0x10\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0]]\n"
+ "zip1 z16.s, z15.s, z15.s\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "zip2 z17.s, z15.s, z15.s\n"
+ "ld1w z15.s, p1/z, [%[biasptr], #1, MUL VL]\n"
+ "trn1 z8.d, z0.d, z1.d\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "zip1 z18.s, z15.s, z15.s\n"
+ "zip2 z19.s, z15.s, z15.s\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #4\n"
+ "cbz %[loops], 2f\n"
+ "b 3f\n"
+ "1:\n"
+ "mov z14.s, #0\n"
+ "ld1w z13.s, p0/z, [%[c_ptr0]]\n"
+ "mov z1.h, #0\n"
+ "ld1rqh z0.h, p7/z, [%[a_ptr0]]\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0]]\n"
+ "add %[a_ptr0], %[a_ptr0], #0x10\n"
+ "zip1 z16.s, z13.s, z14.s\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "zip2 z17.s, z13.s, z14.s\n"
+ "ld1w z13.s, p1/z, [%[c_ptr0], #1, MUL VL]\n"
+ "trn1 z8.d, z0.d, z1.d\n"
+ "mov z14.s, #0\n"
+ "zip1 z18.s, z13.s, z14.s\n"
+ "zip2 z19.s, z13.s, z14.s\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #4\n"
+ "cbz %[loops], 2f\n"
+ "3:\n"
+ "trn2 z0.d, z0.d, z1.d\n"
+ "ld1rqh z4.h, p7/z, [%[a_ptr0]]\n"
+ ".inst 0x6468e590 // bfmmla z16.s, z12.h, z8.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0]]\n"
+ ".inst 0x6468e5b1 // bfmmla z17.s, z13.h, z8.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x6468e5d2 // bfmmla z18.s, z14.h, z8.h\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x6468e5f3 // bfmmla z19.s, z15.h, z8.h\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "mov z5.h, #0\n"
+ "subs %[loops], %[loops], #0x1\n"
+ ".inst 0x6460e590 // bfmmla z16.s, z12.h, z0.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ ".inst 0x6460e5b1 // bfmmla z17.s, z13.h, z0.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "trn2 z8.d, z4.d, z5.d\n"
+ "add %[a_ptr0], %[a_ptr0], #0x20\n"
+ ".inst 0x6460e5d2 // bfmmla z18.s, z14.h, z0.h\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ ".inst 0x6460e5f3 // bfmmla z19.s, z15.h, z0.h\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "trn1 z0.d, z4.d, z5.d\n"
+ "addvl %[b_ptr0], %[b_ptr0], #16\n"
+ "mov z1.h, #0\n"
+ ".inst 0x6460e590 // bfmmla z16.s, z12.h, z0.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #-8, MUL VL]\n"
+ ".inst 0x6460e5b1 // bfmmla z17.s, z13.h, z0.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #-7, MUL VL]\n"
+ ".inst 0x6460e5d2 // bfmmla z18.s, z14.h, z0.h\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #-6, MUL VL]\n"
+ ".inst 0x6460e5f3 // bfmmla z19.s, z15.h, z0.h\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #-5, MUL VL]\n"
+ ".inst 0x6468e590 // bfmmla z16.s, z12.h, z8.h\n"
+ "ld1rqh z0.h, p7/z, [%[a_ptr0], #-0x10]\n"
+ ".inst 0x6468e5b1 // bfmmla z17.s, z13.h, z8.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #-4, MUL VL]\n"
+ ".inst 0x6468e5d2 // bfmmla z18.s, z14.h, z8.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #-3, MUL VL]\n"
+ ".inst 0x6468e5f3 // bfmmla z19.s, z15.h, z8.h\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #-2, MUL VL]\n"
+ "trn1 z8.d, z0.d, z1.d\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #-1, MUL VL]\n"
+ "b.ne 3b\n"
+ "2:\n"
+ "cbz %[regs], 4f\n"
+ "trn2 z0.d, z0.d, z1.d\n"
+ "ld1rqh z4.h, p7/z, [%[a_ptr0]]\n"
+ ".inst 0x6468e590 // bfmmla z16.s, z12.h, z8.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0]]\n"
+ ".inst 0x6468e5b1 // bfmmla z17.s, z13.h, z8.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x6468e5d2 // bfmmla z18.s, z14.h, z8.h\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x6468e5f3 // bfmmla z19.s, z15.h, z8.h\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "mov z5.h, #0\n"
+ ".inst 0x6460e590 // bfmmla z16.s, z12.h, z0.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ ".inst 0x6460e5b1 // bfmmla z17.s, z13.h, z0.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ ".inst 0x6460e5d2 // bfmmla z18.s, z14.h, z0.h\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "trn2 z8.d, z4.d, z5.d\n"
+ ".inst 0x6460e5f3 // bfmmla z19.s, z15.h, z0.h\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "trn1 z0.d, z4.d, z5.d\n"
+ "addvl %[b_ptr0], %[b_ptr0], #16\n"
+ "mov z1.h, #0\n"
+ ".inst 0x6460e590 // bfmmla z16.s, z12.h, z0.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #-8, MUL VL]\n"
+ ".inst 0x6460e5b1 // bfmmla z17.s, z13.h, z0.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #-7, MUL VL]\n"
+ ".inst 0x6460e5d2 // bfmmla z18.s, z14.h, z0.h\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #-6, MUL VL]\n"
+ ".inst 0x6460e5f3 // bfmmla z19.s, z15.h, z0.h\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #-5, MUL VL]\n"
+ ".inst 0x6468e590 // bfmmla z16.s, z12.h, z8.h\n"
+ "ld1rqh z0.h, p6/z, [%[a_ptr0], #0x10]\n"
+ ".inst 0x6468e5b1 // bfmmla z17.s, z13.h, z8.h\n"
+ "addvl %[b_ptr0], %[b_ptr0], #-4\n"
+ ".inst 0x6468e5d2 // bfmmla z18.s, z14.h, z8.h\n"
+ "addvl %[a_ptr0], %[a_ptr0], #2\n"
+ ".inst 0x6468e5f3 // bfmmla z19.s, z15.h, z8.h\n"
+ "trn1 z8.d, z0.d, z1.d\n"
+ "cbz %[blocks], 5f\n"
+ "trn2 z0.d, z0.d, z1.d\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0]]\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "subs %[blocks], %[blocks], #0x1\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x6468e590 // bfmmla z16.s, z12.h, z8.h\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x6468e5b1 // bfmmla z17.s, z13.h, z8.h\n"
+ ".inst 0x6468e5d2 // bfmmla z18.s, z14.h, z8.h\n"
+ ".inst 0x6468e5f3 // bfmmla z19.s, z15.h, z8.h\n"
+ "b.eq 5f\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ ".inst 0x6460e590 // bfmmla z16.s, z12.h, z0.h\n"
+ ".inst 0x6460e5b1 // bfmmla z17.s, z13.h, z0.h\n"
+ ".inst 0x6460e5d2 // bfmmla z18.s, z14.h, z0.h\n"
+ ".inst 0x6460e5f3 // bfmmla z19.s, z15.h, z0.h\n"
+ "b 5f\n"
+ "4:\n"
+ "trn2 z0.d, z0.d, z1.d\n"
+ "ld1rqh z4.h, p6/z, [%[a_ptr0]]\n"
+ ".inst 0x6468e590 // bfmmla z16.s, z12.h, z8.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0]]\n"
+ ".inst 0x6468e5b1 // bfmmla z17.s, z13.h, z8.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x6468e5d2 // bfmmla z18.s, z14.h, z8.h\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x6468e5f3 // bfmmla z19.s, z15.h, z8.h\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "mov z5.h, #0\n"
+ "addvl %[b_ptr0], %[b_ptr0], #4\n"
+ ".inst 0x6460e590 // bfmmla z16.s, z12.h, z0.h\n"
+ "addvl %[a_ptr0], %[a_ptr0], #1\n"
+ ".inst 0x6460e5b1 // bfmmla z17.s, z13.h, z0.h\n"
+ ".inst 0x6460e5d2 // bfmmla z18.s, z14.h, z0.h\n"
+ ".inst 0x6460e5f3 // bfmmla z19.s, z15.h, z0.h\n"
+ "trn1 z0.d, z4.d, z5.d\n"
+ "cbz %[blocks], 5f\n"
+ "trn2 z8.d, z4.d, z5.d\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0]]\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "subs %[blocks], %[blocks], #0x1\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x6460e590 // bfmmla z16.s, z12.h, z0.h\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x6460e5b1 // bfmmla z17.s, z13.h, z0.h\n"
+ ".inst 0x6460e5d2 // bfmmla z18.s, z14.h, z0.h\n"
+ ".inst 0x6460e5f3 // bfmmla z19.s, z15.h, z0.h\n"
+ "b.eq 5f\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ ".inst 0x6468e590 // bfmmla z16.s, z12.h, z8.h\n"
+ ".inst 0x6468e5b1 // bfmmla z17.s, z13.h, z8.h\n"
+ ".inst 0x6468e5d2 // bfmmla z18.s, z14.h, z8.h\n"
+ ".inst 0x6468e5f3 // bfmmla z19.s, z15.h, z8.h\n"
+ "5:\n"
+ "ld1rw z14.s, p7/z, [%[minptr]]\n"
+ "ld1rw z15.s, p7/z, [%[maxptr]]\n"
+ "fmax z16.s, p7/m, z16.s, z14.s\n"
+ "fmax z17.s, p7/m, z17.s, z14.s\n"
+ "fmax z18.s, p7/m, z18.s, z14.s\n"
+ "fmax z19.s, p7/m, z19.s, z14.s\n"
+ "fmin z16.s, p7/m, z16.s, z15.s\n"
+ "fmin z17.s, p7/m, z17.s, z15.s\n"
+ "fmin z18.s, p7/m, z18.s, z15.s\n"
+ "fmin z19.s, p7/m, z19.s, z15.s\n"
+ "uzp1 z0.s, z16.s, z17.s\n"
+ "uzp1 z1.s, z18.s, z19.s\n"
+ "st1w z0.s, p0, [%[c_ptr0]]\n"
+ "st1w z1.s, p1, [%[c_ptr0], #1, MUL VL]\n"
+ "addvl %[c_ptr0], %[c_ptr0], #2\n"
+ : [a_ptr0] "+r" (a_ptr0), [b_ptr0] "+r" (b_ptr0), [c_ptr0] "+r" (c_ptr0), [loops] "+r" (loops), [regs] "+r" (regs), [temp] "+r" (temp), [blocks] "+r" (blocks)
+ : [width] "r" (width), [append] "r" (static_cast<uint64_t>(append)), [lda] "r" (ldab), [ldc] "r" (ldcb), [biasptr] "r" (biasptr), [minptr] "r" (minptr), [maxptr] "r" (maxptr), [leftovers] "r" (leftovers)
+ : "z0", "z1", "z2", "z3", "z4", "z5", "z6", "z7", "z8", "z9", "z10", "z11", "z12", "z13", "z14", "z15", "z16", "z17", "z18", "z19", "z20", "z21", "z22", "z23", "z24", "z25", "z26", "z27", "z28", "z29", "z30", "z31", "cc", "memory"
+ );
+ break;
+ case 2:
+ __asm __volatile (
+ "a_ptr1 .req X0\n"
+ "c_ptr1 .req X1\n"
+ "add a_ptr1, %[a_ptr0], %[lda]\n"
+ "add c_ptr1, %[c_ptr0], %[ldc]\n"
+ "whilelt p6.h, %[temp], %[leftovers]\n"
+ "whilelt p0.s, %[temp], %[width]\n"
+ "incw %[temp], all, mul #1\n"
+ "ptrue p7.h\n"
+ "whilelt p1.s, %[temp], %[width]\n"
+ "cbnz %[append], 1f\n"
+ "ld1w z15.s, p0/z, [%[biasptr]]\n"
+ "ld1rqh z0.h, p7/z, [%[a_ptr0]]\n"
+ "add %[a_ptr0], %[a_ptr0], #0x10\n"
+ "ld1rqh z1.h, p7/z, [a_ptr1]\n"
+ "add a_ptr1, a_ptr1, #0x10\n"
+ "zip1 z16.s, z15.s, z15.s\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0]]\n"
+ "zip2 z17.s, z15.s, z15.s\n"
+ "ld1w z15.s, p1/z, [%[biasptr], #1, MUL VL]\n"
+ "trn1 z8.d, z0.d, z1.d\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "zip1 z18.s, z15.s, z15.s\n"
+ "zip2 z19.s, z15.s, z15.s\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #4\n"
+ "cbz %[loops], 2f\n"
+ "b 3f\n"
+ "1:\n"
+ "ld1w z13.s, p0/z, [%[c_ptr0]]\n"
+ "ld1w z14.s, p0/z, [c_ptr1]\n"
+ "ld1rqh z0.h, p7/z, [%[a_ptr0]]\n"
+ "add %[a_ptr0], %[a_ptr0], #0x10\n"
+ "ld1rqh z1.h, p7/z, [a_ptr1]\n"
+ "add a_ptr1, a_ptr1, #0x10\n"
+ "zip1 z16.s, z13.s, z14.s\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0]]\n"
+ "zip2 z17.s, z13.s, z14.s\n"
+ "ld1w z13.s, p1/z, [%[c_ptr0], #1, MUL VL]\n"
+ "trn1 z8.d, z0.d, z1.d\n"
+ "ld1w z14.s, p1/z, [c_ptr1, #1, MUL VL]\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "zip1 z18.s, z13.s, z14.s\n"
+ "zip2 z19.s, z13.s, z14.s\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #4\n"
+ "cbz %[loops], 2f\n"
+ "3:\n"
+ "trn2 z0.d, z0.d, z1.d\n"
+ "ld1rqh z4.h, p7/z, [%[a_ptr0]]\n"
+ ".inst 0x6468e590 // bfmmla z16.s, z12.h, z8.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0]]\n"
+ ".inst 0x6468e5b1 // bfmmla z17.s, z13.h, z8.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x6468e5d2 // bfmmla z18.s, z14.h, z8.h\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x6468e5f3 // bfmmla z19.s, z15.h, z8.h\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x6460e590 // bfmmla z16.s, z12.h, z0.h\n"
+ "ld1rqh z5.h, p7/z, [a_ptr1]\n"
+ ".inst 0x6460e5b1 // bfmmla z17.s, z13.h, z0.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ ".inst 0x6460e5d2 // bfmmla z18.s, z14.h, z0.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ ".inst 0x6460e5f3 // bfmmla z19.s, z15.h, z0.h\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "trn1 z0.d, z4.d, z5.d\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "trn2 z8.d, z4.d, z5.d\n"
+ "subs %[loops], %[loops], #0x1\n"
+ "add %[a_ptr0], %[a_ptr0], #0x20\n"
+ ".inst 0x6460e590 // bfmmla z16.s, z12.h, z0.h\n"
+ "add a_ptr1, a_ptr1, #0x20\n"
+ ".inst 0x6460e5b1 // bfmmla z17.s, z13.h, z0.h\n"
+ "ld1rqh z1.h, p7/z, [a_ptr1, #-0x10]\n"
+ ".inst 0x6460e5d2 // bfmmla z18.s, z14.h, z0.h\n"
+ "addvl %[b_ptr0], %[b_ptr0], #16\n"
+ ".inst 0x6460e5f3 // bfmmla z19.s, z15.h, z0.h\n"
+ "ld1rqh z0.h, p7/z, [%[a_ptr0], #-0x10]\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #-8, MUL VL]\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #-7, MUL VL]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #-6, MUL VL]\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #-5, MUL VL]\n"
+ ".inst 0x6468e590 // bfmmla z16.s, z12.h, z8.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #-4, MUL VL]\n"
+ ".inst 0x6468e5b1 // bfmmla z17.s, z13.h, z8.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #-3, MUL VL]\n"
+ ".inst 0x6468e5d2 // bfmmla z18.s, z14.h, z8.h\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #-2, MUL VL]\n"
+ ".inst 0x6468e5f3 // bfmmla z19.s, z15.h, z8.h\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #-1, MUL VL]\n"
+ "trn1 z8.d, z0.d, z1.d\n"
+ "b.ne 3b\n"
+ "2:\n"
+ "cbz %[regs], 4f\n"
+ "trn2 z0.d, z0.d, z1.d\n"
+ "ld1rqh z4.h, p7/z, [%[a_ptr0]]\n"
+ ".inst 0x6468e590 // bfmmla z16.s, z12.h, z8.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0]]\n"
+ ".inst 0x6468e5b1 // bfmmla z17.s, z13.h, z8.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x6468e5d2 // bfmmla z18.s, z14.h, z8.h\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x6468e5f3 // bfmmla z19.s, z15.h, z8.h\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x6460e590 // bfmmla z16.s, z12.h, z0.h\n"
+ "ld1rqh z5.h, p7/z, [a_ptr1]\n"
+ ".inst 0x6460e5b1 // bfmmla z17.s, z13.h, z0.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ ".inst 0x6460e5d2 // bfmmla z18.s, z14.h, z0.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ ".inst 0x6460e5f3 // bfmmla z19.s, z15.h, z0.h\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "trn1 z0.d, z4.d, z5.d\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "trn2 z8.d, z4.d, z5.d\n"
+ "ld1rqh z1.h, p6/z, [a_ptr1, #0x10]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #16\n"
+ "addvl a_ptr1, a_ptr1, #2\n"
+ ".inst 0x6460e590 // bfmmla z16.s, z12.h, z0.h\n"
+ ".inst 0x6460e5b1 // bfmmla z17.s, z13.h, z0.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #-8, MUL VL]\n"
+ ".inst 0x6460e5d2 // bfmmla z18.s, z14.h, z0.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #-7, MUL VL]\n"
+ ".inst 0x6460e5f3 // bfmmla z19.s, z15.h, z0.h\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #-6, MUL VL]\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #-5, MUL VL]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #-4\n"
+ ".inst 0x6468e590 // bfmmla z16.s, z12.h, z8.h\n"
+ "ld1rqh z0.h, p6/z, [%[a_ptr0], #0x10]\n"
+ ".inst 0x6468e5b1 // bfmmla z17.s, z13.h, z8.h\n"
+ "addvl %[a_ptr0], %[a_ptr0], #2\n"
+ ".inst 0x6468e5d2 // bfmmla z18.s, z14.h, z8.h\n"
+ ".inst 0x6468e5f3 // bfmmla z19.s, z15.h, z8.h\n"
+ "trn1 z8.d, z0.d, z1.d\n"
+ "cbz %[blocks], 5f\n"
+ "trn2 z0.d, z0.d, z1.d\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0]]\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "subs %[blocks], %[blocks], #0x1\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x6468e590 // bfmmla z16.s, z12.h, z8.h\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x6468e5b1 // bfmmla z17.s, z13.h, z8.h\n"
+ ".inst 0x6468e5d2 // bfmmla z18.s, z14.h, z8.h\n"
+ ".inst 0x6468e5f3 // bfmmla z19.s, z15.h, z8.h\n"
+ "b.eq 5f\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ ".inst 0x6460e590 // bfmmla z16.s, z12.h, z0.h\n"
+ ".inst 0x6460e5b1 // bfmmla z17.s, z13.h, z0.h\n"
+ ".inst 0x6460e5d2 // bfmmla z18.s, z14.h, z0.h\n"
+ ".inst 0x6460e5f3 // bfmmla z19.s, z15.h, z0.h\n"
+ "b 5f\n"
+ "4:\n"
+ "trn2 z0.d, z0.d, z1.d\n"
+ "ld1rqh z4.h, p6/z, [%[a_ptr0]]\n"
+ ".inst 0x6468e590 // bfmmla z16.s, z12.h, z8.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0]]\n"
+ ".inst 0x6468e5b1 // bfmmla z17.s, z13.h, z8.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x6468e5d2 // bfmmla z18.s, z14.h, z8.h\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x6468e5f3 // bfmmla z19.s, z15.h, z8.h\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x6460e590 // bfmmla z16.s, z12.h, z0.h\n"
+ "ld1rqh z5.h, p6/z, [a_ptr1]\n"
+ ".inst 0x6460e5b1 // bfmmla z17.s, z13.h, z0.h\n"
+ "addvl %[b_ptr0], %[b_ptr0], #4\n"
+ ".inst 0x6460e5d2 // bfmmla z18.s, z14.h, z0.h\n"
+ "addvl %[a_ptr0], %[a_ptr0], #1\n"
+ ".inst 0x6460e5f3 // bfmmla z19.s, z15.h, z0.h\n"
+ "addvl a_ptr1, a_ptr1, #1\n"
+ "trn1 z0.d, z4.d, z5.d\n"
+ "cbz %[blocks], 5f\n"
+ "trn2 z8.d, z4.d, z5.d\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0]]\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "subs %[blocks], %[blocks], #0x1\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x6460e590 // bfmmla z16.s, z12.h, z0.h\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x6460e5b1 // bfmmla z17.s, z13.h, z0.h\n"
+ ".inst 0x6460e5d2 // bfmmla z18.s, z14.h, z0.h\n"
+ ".inst 0x6460e5f3 // bfmmla z19.s, z15.h, z0.h\n"
+ "b.eq 5f\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ ".inst 0x6468e590 // bfmmla z16.s, z12.h, z8.h\n"
+ ".inst 0x6468e5b1 // bfmmla z17.s, z13.h, z8.h\n"
+ ".inst 0x6468e5d2 // bfmmla z18.s, z14.h, z8.h\n"
+ ".inst 0x6468e5f3 // bfmmla z19.s, z15.h, z8.h\n"
+ "5:\n"
+ "ld1rw z14.s, p7/z, [%[minptr]]\n"
+ "ld1rw z15.s, p7/z, [%[maxptr]]\n"
+ "fmax z16.s, p7/m, z16.s, z14.s\n"
+ "fmax z17.s, p7/m, z17.s, z14.s\n"
+ "fmax z18.s, p7/m, z18.s, z14.s\n"
+ "fmax z19.s, p7/m, z19.s, z14.s\n"
+ "fmin z16.s, p7/m, z16.s, z15.s\n"
+ "fmin z17.s, p7/m, z17.s, z15.s\n"
+ "fmin z18.s, p7/m, z18.s, z15.s\n"
+ "fmin z19.s, p7/m, z19.s, z15.s\n"
+ "uzp1 z0.s, z16.s, z17.s\n"
+ "uzp2 z1.s, z16.s, z17.s\n"
+ "uzp1 z2.s, z18.s, z19.s\n"
+ "uzp2 z3.s, z18.s, z19.s\n"
+ "st1w z0.s, p0, [%[c_ptr0]]\n"
+ "st1w z1.s, p0, [c_ptr1]\n"
+ "st1w z2.s, p1, [%[c_ptr0], #1, MUL VL]\n"
+ "addvl %[c_ptr0], %[c_ptr0], #2\n"
+ "st1w z3.s, p1, [c_ptr1, #1, MUL VL]\n"
+ ".unreq a_ptr1\n"
+ ".unreq c_ptr1\n"
+ : [a_ptr0] "+r" (a_ptr0), [b_ptr0] "+r" (b_ptr0), [c_ptr0] "+r" (c_ptr0), [loops] "+r" (loops), [regs] "+r" (regs), [temp] "+r" (temp), [blocks] "+r" (blocks)
+ : [width] "r" (width), [append] "r" (static_cast<uint64_t>(append)), [lda] "r" (ldab), [ldc] "r" (ldcb), [biasptr] "r" (biasptr), [minptr] "r" (minptr), [maxptr] "r" (maxptr), [leftovers] "r" (leftovers)
+ : "z0", "z1", "z2", "z3", "z4", "z5", "z6", "z7", "z8", "z9", "z10", "z11", "z12", "z13", "z14", "z15", "z16", "z17", "z18", "z19", "z20", "z21", "z22", "z23", "z24", "z25", "z26", "z27", "z28", "z29", "z30", "z31", "x0", "x1", "cc", "memory"
+ );
+ break;
+ case 3:
+ __asm __volatile (
+ "a_ptr1 .req X0\n"
+ "a_ptr2 .req X1\n"
+ "c_ptr1 .req X2\n"
+ "c_ptr2 .req X3\n"
+ "add a_ptr1, %[a_ptr0], %[lda]\n"
+ "add c_ptr1, %[c_ptr0], %[ldc]\n"
+ "add a_ptr2, a_ptr1, %[lda]\n"
+ "add c_ptr2, c_ptr1, %[ldc]\n"
+ "whilelt p6.h, %[temp], %[leftovers]\n"
+ "whilelt p0.s, %[temp], %[width]\n"
+ "incw %[temp], all, mul #1\n"
+ "ptrue p7.h\n"
+ "whilelt p1.s, %[temp], %[width]\n"
+ "cbnz %[append], 1f\n"
+ "mov z3.h, #0\n"
+ "ld1w z15.s, p0/z, [%[biasptr]]\n"
+ "ld1rqh z0.h, p7/z, [%[a_ptr0]]\n"
+ "add %[a_ptr0], %[a_ptr0], #0x10\n"
+ "ld1rqh z1.h, p7/z, [a_ptr1]\n"
+ "add a_ptr1, a_ptr1, #0x10\n"
+ "zip1 z16.s, z15.s, z15.s\n"
+ "ld1rqh z2.h, p7/z, [a_ptr2]\n"
+ "zip2 z17.s, z15.s, z15.s\n"
+ "ld1w z15.s, p1/z, [%[biasptr], #1, MUL VL]\n"
+ "trn1 z8.d, z0.d, z1.d\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0]]\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "add a_ptr2, a_ptr2, #0x10\n"
+ "zip1 z18.s, z15.s, z15.s\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "zip2 z19.s, z15.s, z15.s\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "trn1 z9.d, z2.d, z3.d\n"
+ "addvl %[b_ptr0], %[b_ptr0], #4\n"
+ "mov z20.d, z16.d\n"
+ "mov z21.d, z17.d\n"
+ "mov z22.d, z18.d\n"
+ "mov z23.d, z19.d\n"
+ "cbz %[loops], 2f\n"
+ "b 3f\n"
+ "1:\n"
+ "mov z3.h, #0\n"
+ "ld1w z13.s, p0/z, [%[c_ptr0]]\n"
+ "ld1w z14.s, p0/z, [c_ptr1]\n"
+ "ld1rqh z0.h, p7/z, [%[a_ptr0]]\n"
+ "add %[a_ptr0], %[a_ptr0], #0x10\n"
+ "ld1rqh z1.h, p7/z, [a_ptr1]\n"
+ "add a_ptr1, a_ptr1, #0x10\n"
+ "zip1 z16.s, z13.s, z14.s\n"
+ "ld1rqh z2.h, p7/z, [a_ptr2]\n"
+ "zip2 z17.s, z13.s, z14.s\n"
+ "ld1w z13.s, p1/z, [%[c_ptr0], #1, MUL VL]\n"
+ "trn1 z8.d, z0.d, z1.d\n"
+ "ld1w z14.s, p1/z, [c_ptr1, #1, MUL VL]\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0]]\n"
+ "add a_ptr2, a_ptr2, #0x10\n"
+ "trn1 z9.d, z2.d, z3.d\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "zip1 z18.s, z13.s, z14.s\n"
+ "zip2 z19.s, z13.s, z14.s\n"
+ "ld1w z13.s, p0/z, [c_ptr2]\n"
+ "mov z14.s, #0\n"
+ "zip1 z20.s, z13.s, z14.s\n"
+ "zip2 z21.s, z13.s, z14.s\n"
+ "ld1w z13.s, p1/z, [c_ptr2, #1, MUL VL]\n"
+ "mov z14.s, #0\n"
+ "zip1 z22.s, z13.s, z14.s\n"
+ "zip2 z23.s, z13.s, z14.s\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #4\n"
+ "cbz %[loops], 2f\n"
+ "3:\n"
+ "trn2 z0.d, z0.d, z1.d\n"
+ "ld1rqh z4.h, p7/z, [%[a_ptr0]]\n"
+ "trn2 z1.d, z2.d, z3.d\n"
+ "ld1rqh z5.h, p7/z, [a_ptr1]\n"
+ ".inst 0x6468e590 // bfmmla z16.s, z12.h, z8.h\n"
+ "ld1rqh z6.h, p7/z, [a_ptr2]\n"
+ ".inst 0x6468e5b1 // bfmmla z17.s, z13.h, z8.h\n"
+ "subs %[loops], %[loops], #0x1\n"
+ ".inst 0x6468e5d2 // bfmmla z18.s, z14.h, z8.h\n"
+ "add %[a_ptr0], %[a_ptr0], #0x20\n"
+ ".inst 0x6468e5f3 // bfmmla z19.s, z15.h, z8.h\n"
+ "add a_ptr1, a_ptr1, #0x20\n"
+ "trn2 z8.d, z4.d, z5.d\n"
+ "add a_ptr2, a_ptr2, #0x20\n"
+ ".inst 0x6469e594 // bfmmla z20.s, z12.h, z9.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0]]\n"
+ ".inst 0x6469e5b5 // bfmmla z21.s, z13.h, z9.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x6469e5d6 // bfmmla z22.s, z14.h, z9.h\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x6469e5f7 // bfmmla z23.s, z15.h, z9.h\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "mov z7.h, #0\n"
+ "ld1rqh z2.h, p7/z, [a_ptr2, #-0x10]\n"
+ ".inst 0x6460e590 // bfmmla z16.s, z12.h, z0.h\n"
+ ".inst 0x6460e5b1 // bfmmla z17.s, z13.h, z0.h\n"
+ ".inst 0x6460e5d2 // bfmmla z18.s, z14.h, z0.h\n"
+ "trn2 z9.d, z6.d, z7.d\n"
+ ".inst 0x6460e5f3 // bfmmla z19.s, z15.h, z0.h\n"
+ "trn1 z0.d, z4.d, z5.d\n"
+ ".inst 0x6461e594 // bfmmla z20.s, z12.h, z1.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ ".inst 0x6461e5b5 // bfmmla z21.s, z13.h, z1.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ ".inst 0x6461e5d6 // bfmmla z22.s, z14.h, z1.h\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ ".inst 0x6461e5f7 // bfmmla z23.s, z15.h, z1.h\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "trn1 z1.d, z6.d, z7.d\n"
+ "addvl %[b_ptr0], %[b_ptr0], #16\n"
+ ".inst 0x6460e590 // bfmmla z16.s, z12.h, z0.h\n"
+ ".inst 0x6460e5b1 // bfmmla z17.s, z13.h, z0.h\n"
+ ".inst 0x6460e5d2 // bfmmla z18.s, z14.h, z0.h\n"
+ ".inst 0x6460e5f3 // bfmmla z19.s, z15.h, z0.h\n"
+ "ld1rqh z0.h, p7/z, [%[a_ptr0], #-0x10]\n"
+ ".inst 0x6461e594 // bfmmla z20.s, z12.h, z1.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #-8, MUL VL]\n"
+ ".inst 0x6461e5b5 // bfmmla z21.s, z13.h, z1.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #-7, MUL VL]\n"
+ ".inst 0x6461e5d6 // bfmmla z22.s, z14.h, z1.h\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #-6, MUL VL]\n"
+ ".inst 0x6461e5f7 // bfmmla z23.s, z15.h, z1.h\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #-5, MUL VL]\n"
+ "mov z3.h, #0\n"
+ "ld1rqh z1.h, p7/z, [a_ptr1, #-0x10]\n"
+ ".inst 0x6468e590 // bfmmla z16.s, z12.h, z8.h\n"
+ ".inst 0x6468e5b1 // bfmmla z17.s, z13.h, z8.h\n"
+ ".inst 0x6468e5d2 // bfmmla z18.s, z14.h, z8.h\n"
+ ".inst 0x6468e5f3 // bfmmla z19.s, z15.h, z8.h\n"
+ "trn1 z8.d, z0.d, z1.d\n"
+ ".inst 0x6469e594 // bfmmla z20.s, z12.h, z9.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #-4, MUL VL]\n"
+ ".inst 0x6469e5b5 // bfmmla z21.s, z13.h, z9.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #-3, MUL VL]\n"
+ ".inst 0x6469e5d6 // bfmmla z22.s, z14.h, z9.h\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #-2, MUL VL]\n"
+ ".inst 0x6469e5f7 // bfmmla z23.s, z15.h, z9.h\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #-1, MUL VL]\n"
+ "trn1 z9.d, z2.d, z3.d\n"
+ "b.ne 3b\n"
+ "2:\n"
+ "cbz %[regs], 4f\n"
+ "trn2 z0.d, z0.d, z1.d\n"
+ "ld1rqh z4.h, p7/z, [%[a_ptr0]]\n"
+ "trn2 z1.d, z2.d, z3.d\n"
+ "ld1rqh z5.h, p7/z, [a_ptr1]\n"
+ ".inst 0x6468e590 // bfmmla z16.s, z12.h, z8.h\n"
+ "ld1rqh z6.h, p7/z, [a_ptr2]\n"
+ ".inst 0x6468e5b1 // bfmmla z17.s, z13.h, z8.h\n"
+ "ld1rqh z2.h, p6/z, [a_ptr2, #0x10]\n"
+ ".inst 0x6468e5d2 // bfmmla z18.s, z14.h, z8.h\n"
+ "addvl a_ptr2, a_ptr2, #2\n"
+ ".inst 0x6468e5f3 // bfmmla z19.s, z15.h, z8.h\n"
+ "trn2 z8.d, z4.d, z5.d\n"
+ ".inst 0x6469e594 // bfmmla z20.s, z12.h, z9.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0]]\n"
+ ".inst 0x6469e5b5 // bfmmla z21.s, z13.h, z9.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x6469e5d6 // bfmmla z22.s, z14.h, z9.h\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x6469e5f7 // bfmmla z23.s, z15.h, z9.h\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "mov z7.h, #0\n"
+ ".inst 0x6460e590 // bfmmla z16.s, z12.h, z0.h\n"
+ ".inst 0x6460e5b1 // bfmmla z17.s, z13.h, z0.h\n"
+ ".inst 0x6460e5d2 // bfmmla z18.s, z14.h, z0.h\n"
+ "trn2 z9.d, z6.d, z7.d\n"
+ ".inst 0x6460e5f3 // bfmmla z19.s, z15.h, z0.h\n"
+ "trn1 z0.d, z4.d, z5.d\n"
+ ".inst 0x6461e594 // bfmmla z20.s, z12.h, z1.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ ".inst 0x6461e5b5 // bfmmla z21.s, z13.h, z1.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ ".inst 0x6461e5d6 // bfmmla z22.s, z14.h, z1.h\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ ".inst 0x6461e5f7 // bfmmla z23.s, z15.h, z1.h\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "trn1 z1.d, z6.d, z7.d\n"
+ "addvl %[b_ptr0], %[b_ptr0], #16\n"
+ ".inst 0x6460e590 // bfmmla z16.s, z12.h, z0.h\n"
+ ".inst 0x6460e5b1 // bfmmla z17.s, z13.h, z0.h\n"
+ ".inst 0x6460e5d2 // bfmmla z18.s, z14.h, z0.h\n"
+ ".inst 0x6460e5f3 // bfmmla z19.s, z15.h, z0.h\n"
+ "ld1rqh z0.h, p6/z, [%[a_ptr0], #0x10]\n"
+ ".inst 0x6461e594 // bfmmla z20.s, z12.h, z1.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #-8, MUL VL]\n"
+ ".inst 0x6461e5b5 // bfmmla z21.s, z13.h, z1.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #-7, MUL VL]\n"
+ ".inst 0x6461e5d6 // bfmmla z22.s, z14.h, z1.h\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #-6, MUL VL]\n"
+ ".inst 0x6461e5f7 // bfmmla z23.s, z15.h, z1.h\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #-5, MUL VL]\n"
+ "mov z3.h, #0\n"
+ "ld1rqh z1.h, p6/z, [a_ptr1, #0x10]\n"
+ ".inst 0x6468e590 // bfmmla z16.s, z12.h, z8.h\n"
+ "addvl %[b_ptr0], %[b_ptr0], #-4\n"
+ ".inst 0x6468e5b1 // bfmmla z17.s, z13.h, z8.h\n"
+ "addvl %[a_ptr0], %[a_ptr0], #2\n"
+ ".inst 0x6468e5d2 // bfmmla z18.s, z14.h, z8.h\n"
+ "addvl a_ptr1, a_ptr1, #2\n"
+ ".inst 0x6468e5f3 // bfmmla z19.s, z15.h, z8.h\n"
+ "trn1 z8.d, z0.d, z1.d\n"
+ ".inst 0x6469e594 // bfmmla z20.s, z12.h, z9.h\n"
+ ".inst 0x6469e5b5 // bfmmla z21.s, z13.h, z9.h\n"
+ ".inst 0x6469e5d6 // bfmmla z22.s, z14.h, z9.h\n"
+ ".inst 0x6469e5f7 // bfmmla z23.s, z15.h, z9.h\n"
+ "trn1 z9.d, z2.d, z3.d\n"
+ "cbz %[blocks], 5f\n"
+ "trn2 z0.d, z0.d, z1.d\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0]]\n"
+ "trn2 z1.d, z2.d, z3.d\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "subs %[blocks], %[blocks], #0x1\n"
+ ".inst 0x6468e590 // bfmmla z16.s, z12.h, z8.h\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x6468e5b1 // bfmmla z17.s, z13.h, z8.h\n"
+ ".inst 0x6468e5d2 // bfmmla z18.s, z14.h, z8.h\n"
+ ".inst 0x6469e594 // bfmmla z20.s, z12.h, z9.h\n"
+ ".inst 0x6468e5f3 // bfmmla z19.s, z15.h, z8.h\n"
+ ".inst 0x6469e5b5 // bfmmla z21.s, z13.h, z9.h\n"
+ ".inst 0x6469e5d6 // bfmmla z22.s, z14.h, z9.h\n"
+ ".inst 0x6469e5f7 // bfmmla z23.s, z15.h, z9.h\n"
+ "b.eq 5f\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ ".inst 0x6460e590 // bfmmla z16.s, z12.h, z0.h\n"
+ ".inst 0x6460e5b1 // bfmmla z17.s, z13.h, z0.h\n"
+ ".inst 0x6460e5d2 // bfmmla z18.s, z14.h, z0.h\n"
+ ".inst 0x6460e5f3 // bfmmla z19.s, z15.h, z0.h\n"
+ ".inst 0x6461e594 // bfmmla z20.s, z12.h, z1.h\n"
+ ".inst 0x6461e5b5 // bfmmla z21.s, z13.h, z1.h\n"
+ ".inst 0x6461e5d6 // bfmmla z22.s, z14.h, z1.h\n"
+ ".inst 0x6461e5f7 // bfmmla z23.s, z15.h, z1.h\n"
+ "b 5f\n"
+ "4:\n"
+ "trn2 z0.d, z0.d, z1.d\n"
+ "ld1rqh z4.h, p6/z, [%[a_ptr0]]\n"
+ "trn2 z1.d, z2.d, z3.d\n"
+ "ld1rqh z5.h, p6/z, [a_ptr1]\n"
+ ".inst 0x6468e590 // bfmmla z16.s, z12.h, z8.h\n"
+ "ld1rqh z6.h, p6/z, [a_ptr2]\n"
+ ".inst 0x6468e5b1 // bfmmla z17.s, z13.h, z8.h\n"
+ "addvl %[a_ptr0], %[a_ptr0], #1\n"
+ ".inst 0x6468e5d2 // bfmmla z18.s, z14.h, z8.h\n"
+ "addvl a_ptr1, a_ptr1, #1\n"
+ ".inst 0x6468e5f3 // bfmmla z19.s, z15.h, z8.h\n"
+ "addvl a_ptr2, a_ptr2, #1\n"
+ ".inst 0x6469e594 // bfmmla z20.s, z12.h, z9.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0]]\n"
+ ".inst 0x6469e5b5 // bfmmla z21.s, z13.h, z9.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x6469e5d6 // bfmmla z22.s, z14.h, z9.h\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x6469e5f7 // bfmmla z23.s, z15.h, z9.h\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "mov z7.h, #0\n"
+ "addvl %[b_ptr0], %[b_ptr0], #4\n"
+ ".inst 0x6460e590 // bfmmla z16.s, z12.h, z0.h\n"
+ ".inst 0x6460e5b1 // bfmmla z17.s, z13.h, z0.h\n"
+ ".inst 0x6460e5d2 // bfmmla z18.s, z14.h, z0.h\n"
+ ".inst 0x6460e5f3 // bfmmla z19.s, z15.h, z0.h\n"
+ "trn1 z0.d, z4.d, z5.d\n"
+ ".inst 0x6461e594 // bfmmla z20.s, z12.h, z1.h\n"
+ ".inst 0x6461e5b5 // bfmmla z21.s, z13.h, z1.h\n"
+ ".inst 0x6461e5d6 // bfmmla z22.s, z14.h, z1.h\n"
+ ".inst 0x6461e5f7 // bfmmla z23.s, z15.h, z1.h\n"
+ "trn1 z1.d, z6.d, z7.d\n"
+ "cbz %[blocks], 5f\n"
+ "trn2 z9.d, z6.d, z7.d\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0]]\n"
+ "trn2 z8.d, z4.d, z5.d\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "subs %[blocks], %[blocks], #0x1\n"
+ ".inst 0x6460e590 // bfmmla z16.s, z12.h, z0.h\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x6460e5b1 // bfmmla z17.s, z13.h, z0.h\n"
+ ".inst 0x6460e5d2 // bfmmla z18.s, z14.h, z0.h\n"
+ ".inst 0x6461e594 // bfmmla z20.s, z12.h, z1.h\n"
+ ".inst 0x6460e5f3 // bfmmla z19.s, z15.h, z0.h\n"
+ ".inst 0x6461e5b5 // bfmmla z21.s, z13.h, z1.h\n"
+ ".inst 0x6461e5d6 // bfmmla z22.s, z14.h, z1.h\n"
+ ".inst 0x6461e5f7 // bfmmla z23.s, z15.h, z1.h\n"
+ "b.eq 5f\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ ".inst 0x6468e590 // bfmmla z16.s, z12.h, z8.h\n"
+ ".inst 0x6468e5b1 // bfmmla z17.s, z13.h, z8.h\n"
+ ".inst 0x6468e5d2 // bfmmla z18.s, z14.h, z8.h\n"
+ ".inst 0x6468e5f3 // bfmmla z19.s, z15.h, z8.h\n"
+ ".inst 0x6469e594 // bfmmla z20.s, z12.h, z9.h\n"
+ ".inst 0x6469e5b5 // bfmmla z21.s, z13.h, z9.h\n"
+ ".inst 0x6469e5d6 // bfmmla z22.s, z14.h, z9.h\n"
+ ".inst 0x6469e5f7 // bfmmla z23.s, z15.h, z9.h\n"
+ "5:\n"
+ "ld1rw z14.s, p7/z, [%[minptr]]\n"
+ "ld1rw z15.s, p7/z, [%[maxptr]]\n"
+ "fmax z16.s, p7/m, z16.s, z14.s\n"
+ "fmax z17.s, p7/m, z17.s, z14.s\n"
+ "fmax z18.s, p7/m, z18.s, z14.s\n"
+ "fmax z19.s, p7/m, z19.s, z14.s\n"
+ "fmin z16.s, p7/m, z16.s, z15.s\n"
+ "fmin z17.s, p7/m, z17.s, z15.s\n"
+ "fmin z18.s, p7/m, z18.s, z15.s\n"
+ "fmin z19.s, p7/m, z19.s, z15.s\n"
+ "fmax z20.s, p7/m, z20.s, z14.s\n"
+ "uzp1 z0.s, z16.s, z17.s\n"
+ "uzp2 z1.s, z16.s, z17.s\n"
+ "uzp1 z2.s, z18.s, z19.s\n"
+ "uzp2 z3.s, z18.s, z19.s\n"
+ "st1w z0.s, p0, [%[c_ptr0]]\n"
+ "fmin z20.s, p7/m, z20.s, z15.s\n"
+ "fmax z21.s, p7/m, z21.s, z14.s\n"
+ "fmax z22.s, p7/m, z22.s, z14.s\n"
+ "st1w z1.s, p0, [c_ptr1]\n"
+ "fmax z23.s, p7/m, z23.s, z14.s\n"
+ "fmin z21.s, p7/m, z21.s, z15.s\n"
+ "st1w z2.s, p1, [%[c_ptr0], #1, MUL VL]\n"
+ "fmin z22.s, p7/m, z22.s, z15.s\n"
+ "addvl %[c_ptr0], %[c_ptr0], #2\n"
+ "fmin z23.s, p7/m, z23.s, z15.s\n"
+ "st1w z3.s, p1, [c_ptr1, #1, MUL VL]\n"
+ "uzp1 z4.s, z20.s, z21.s\n"
+ "uzp1 z5.s, z22.s, z23.s\n"
+ "st1w z4.s, p0, [c_ptr2]\n"
+ "st1w z5.s, p1, [c_ptr2, #1, MUL VL]\n"
+ ".unreq a_ptr1\n"
+ ".unreq a_ptr2\n"
+ ".unreq c_ptr1\n"
+ ".unreq c_ptr2\n"
+ : [a_ptr0] "+r" (a_ptr0), [b_ptr0] "+r" (b_ptr0), [c_ptr0] "+r" (c_ptr0), [loops] "+r" (loops), [regs] "+r" (regs), [temp] "+r" (temp), [blocks] "+r" (blocks)
+ : [width] "r" (width), [append] "r" (static_cast<uint64_t>(append)), [lda] "r" (ldab), [ldc] "r" (ldcb), [biasptr] "r" (biasptr), [minptr] "r" (minptr), [maxptr] "r" (maxptr), [leftovers] "r" (leftovers)
+ : "z0", "z1", "z2", "z3", "z4", "z5", "z6", "z7", "z8", "z9", "z10", "z11", "z12", "z13", "z14", "z15", "z16", "z17", "z18", "z19", "z20", "z21", "z22", "z23", "z24", "z25", "z26", "z27", "z28", "z29", "z30", "z31", "x0", "x1", "x2", "x3", "cc", "memory"
+ );
+ break;
+ case 4:
+ __asm __volatile (
+ "a_ptr1 .req X0\n"
+ "a_ptr2 .req X1\n"
+ "a_ptr3 .req X2\n"
+ "c_ptr1 .req X3\n"
+ "c_ptr2 .req X4\n"
+ "c_ptr3 .req X5\n"
+ "add a_ptr1, %[a_ptr0], %[lda]\n"
+ "add c_ptr1, %[c_ptr0], %[ldc]\n"
+ "add a_ptr2, a_ptr1, %[lda]\n"
+ "add c_ptr2, c_ptr1, %[ldc]\n"
+ "add a_ptr3, a_ptr2, %[lda]\n"
+ "add c_ptr3, c_ptr2, %[ldc]\n"
+ "whilelt p6.h, %[temp], %[leftovers]\n"
+ "whilelt p0.s, %[temp], %[width]\n"
+ "incw %[temp], all, mul #1\n"
+ "ptrue p7.h\n"
+ "whilelt p1.s, %[temp], %[width]\n"
+ "cbnz %[append], 1f\n"
+ "ld1w z15.s, p0/z, [%[biasptr]]\n"
+ "ld1rqh z0.h, p7/z, [%[a_ptr0]]\n"
+ "add %[a_ptr0], %[a_ptr0], #0x10\n"
+ "ld1rqh z1.h, p7/z, [a_ptr1]\n"
+ "add a_ptr1, a_ptr1, #0x10\n"
+ "zip1 z16.s, z15.s, z15.s\n"
+ "ld1rqh z2.h, p7/z, [a_ptr2]\n"
+ "zip2 z17.s, z15.s, z15.s\n"
+ "ld1w z15.s, p1/z, [%[biasptr], #1, MUL VL]\n"
+ "trn1 z8.d, z0.d, z1.d\n"
+ "ld1rqh z3.h, p7/z, [a_ptr3]\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0]]\n"
+ "add a_ptr2, a_ptr2, #0x10\n"
+ "zip1 z18.s, z15.s, z15.s\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "zip2 z19.s, z15.s, z15.s\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "trn1 z9.d, z2.d, z3.d\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "mov z20.d, z16.d\n"
+ "add a_ptr3, a_ptr3, #0x10\n"
+ "mov z21.d, z17.d\n"
+ "addvl %[b_ptr0], %[b_ptr0], #4\n"
+ "mov z22.d, z18.d\n"
+ "mov z23.d, z19.d\n"
+ "cbz %[loops], 2f\n"
+ "b 3f\n"
+ "1:\n"
+ "ld1w z13.s, p0/z, [%[c_ptr0]]\n"
+ "ld1w z14.s, p0/z, [c_ptr1]\n"
+ "ld1rqh z0.h, p7/z, [%[a_ptr0]]\n"
+ "add %[a_ptr0], %[a_ptr0], #0x10\n"
+ "ld1rqh z1.h, p7/z, [a_ptr1]\n"
+ "add a_ptr1, a_ptr1, #0x10\n"
+ "zip1 z16.s, z13.s, z14.s\n"
+ "ld1rqh z2.h, p7/z, [a_ptr2]\n"
+ "zip2 z17.s, z13.s, z14.s\n"
+ "ld1w z13.s, p1/z, [%[c_ptr0], #1, MUL VL]\n"
+ "trn1 z8.d, z0.d, z1.d\n"
+ "ld1w z14.s, p1/z, [c_ptr1, #1, MUL VL]\n"
+ "ld1rqh z3.h, p7/z, [a_ptr3]\n"
+ "add a_ptr2, a_ptr2, #0x10\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0]]\n"
+ "add a_ptr3, a_ptr3, #0x10\n"
+ "zip1 z18.s, z13.s, z14.s\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "zip2 z19.s, z13.s, z14.s\n"
+ "ld1w z13.s, p0/z, [c_ptr2]\n"
+ "trn1 z9.d, z2.d, z3.d\n"
+ "ld1w z14.s, p0/z, [c_ptr3]\n"
+ "zip1 z20.s, z13.s, z14.s\n"
+ "zip2 z21.s, z13.s, z14.s\n"
+ "ld1w z13.s, p1/z, [c_ptr2, #1, MUL VL]\n"
+ "ld1w z14.s, p1/z, [c_ptr3, #1, MUL VL]\n"
+ "zip1 z22.s, z13.s, z14.s\n"
+ "zip2 z23.s, z13.s, z14.s\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #4\n"
+ "cbz %[loops], 2f\n"
+ "3:\n"
+ "trn2 z0.d, z0.d, z1.d\n"
+ "ld1rqh z4.h, p7/z, [%[a_ptr0]]\n"
+ "trn2 z1.d, z2.d, z3.d\n"
+ "ld1rqh z5.h, p7/z, [a_ptr1]\n"
+ ".inst 0x6468e590 // bfmmla z16.s, z12.h, z8.h\n"
+ "ld1rqh z6.h, p7/z, [a_ptr2]\n"
+ ".inst 0x6468e5b1 // bfmmla z17.s, z13.h, z8.h\n"
+ "ld1rqh z7.h, p7/z, [a_ptr3]\n"
+ ".inst 0x6468e5d2 // bfmmla z18.s, z14.h, z8.h\n"
+ "subs %[loops], %[loops], #0x1\n"
+ ".inst 0x6468e5f3 // bfmmla z19.s, z15.h, z8.h\n"
+ "add %[a_ptr0], %[a_ptr0], #0x20\n"
+ "trn2 z8.d, z4.d, z5.d\n"
+ "add a_ptr1, a_ptr1, #0x20\n"
+ ".inst 0x6469e594 // bfmmla z20.s, z12.h, z9.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0]]\n"
+ ".inst 0x6469e5b5 // bfmmla z21.s, z13.h, z9.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x6469e5d6 // bfmmla z22.s, z14.h, z9.h\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x6469e5f7 // bfmmla z23.s, z15.h, z9.h\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "trn2 z9.d, z6.d, z7.d\n"
+ "add a_ptr2, a_ptr2, #0x20\n"
+ ".inst 0x6460e590 // bfmmla z16.s, z12.h, z0.h\n"
+ "ld1rqh z2.h, p7/z, [a_ptr2, #-0x10]\n"
+ ".inst 0x6460e5b1 // bfmmla z17.s, z13.h, z0.h\n"
+ "add a_ptr3, a_ptr3, #0x20\n"
+ ".inst 0x6460e5d2 // bfmmla z18.s, z14.h, z0.h\n"
+ "ld1rqh z3.h, p7/z, [a_ptr3, #-0x10]\n"
+ ".inst 0x6460e5f3 // bfmmla z19.s, z15.h, z0.h\n"
+ "trn1 z0.d, z4.d, z5.d\n"
+ ".inst 0x6461e594 // bfmmla z20.s, z12.h, z1.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ ".inst 0x6461e5b5 // bfmmla z21.s, z13.h, z1.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ ".inst 0x6461e5d6 // bfmmla z22.s, z14.h, z1.h\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ ".inst 0x6461e5f7 // bfmmla z23.s, z15.h, z1.h\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "trn1 z1.d, z6.d, z7.d\n"
+ "addvl %[b_ptr0], %[b_ptr0], #16\n"
+ ".inst 0x6460e590 // bfmmla z16.s, z12.h, z0.h\n"
+ ".inst 0x6460e5b1 // bfmmla z17.s, z13.h, z0.h\n"
+ ".inst 0x6460e5d2 // bfmmla z18.s, z14.h, z0.h\n"
+ ".inst 0x6460e5f3 // bfmmla z19.s, z15.h, z0.h\n"
+ "ld1rqh z0.h, p7/z, [%[a_ptr0], #-0x10]\n"
+ ".inst 0x6461e594 // bfmmla z20.s, z12.h, z1.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #-8, MUL VL]\n"
+ ".inst 0x6461e5b5 // bfmmla z21.s, z13.h, z1.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #-7, MUL VL]\n"
+ ".inst 0x6461e5d6 // bfmmla z22.s, z14.h, z1.h\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #-6, MUL VL]\n"
+ ".inst 0x6461e5f7 // bfmmla z23.s, z15.h, z1.h\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #-5, MUL VL]\n"
+ ".inst 0x6468e590 // bfmmla z16.s, z12.h, z8.h\n"
+ "ld1rqh z1.h, p7/z, [a_ptr1, #-0x10]\n"
+ ".inst 0x6468e5b1 // bfmmla z17.s, z13.h, z8.h\n"
+ ".inst 0x6468e5d2 // bfmmla z18.s, z14.h, z8.h\n"
+ ".inst 0x6468e5f3 // bfmmla z19.s, z15.h, z8.h\n"
+ "trn1 z8.d, z0.d, z1.d\n"
+ ".inst 0x6469e594 // bfmmla z20.s, z12.h, z9.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #-4, MUL VL]\n"
+ ".inst 0x6469e5b5 // bfmmla z21.s, z13.h, z9.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #-3, MUL VL]\n"
+ ".inst 0x6469e5d6 // bfmmla z22.s, z14.h, z9.h\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #-2, MUL VL]\n"
+ ".inst 0x6469e5f7 // bfmmla z23.s, z15.h, z9.h\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #-1, MUL VL]\n"
+ "trn1 z9.d, z2.d, z3.d\n"
+ "b.ne 3b\n"
+ "2:\n"
+ "cbz %[regs], 4f\n"
+ "trn2 z0.d, z0.d, z1.d\n"
+ "ld1rqh z4.h, p7/z, [%[a_ptr0]]\n"
+ "trn2 z1.d, z2.d, z3.d\n"
+ "ld1rqh z5.h, p7/z, [a_ptr1]\n"
+ ".inst 0x6468e590 // bfmmla z16.s, z12.h, z8.h\n"
+ "ld1rqh z6.h, p7/z, [a_ptr2]\n"
+ ".inst 0x6468e5b1 // bfmmla z17.s, z13.h, z8.h\n"
+ "ld1rqh z7.h, p7/z, [a_ptr3]\n"
+ ".inst 0x6468e5d2 // bfmmla z18.s, z14.h, z8.h\n"
+ "ld1rqh z2.h, p6/z, [a_ptr2, #0x10]\n"
+ ".inst 0x6468e5f3 // bfmmla z19.s, z15.h, z8.h\n"
+ "ld1rqh z3.h, p6/z, [a_ptr3, #0x10]\n"
+ "trn2 z8.d, z4.d, z5.d\n"
+ "addvl a_ptr2, a_ptr2, #2\n"
+ ".inst 0x6469e594 // bfmmla z20.s, z12.h, z9.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0]]\n"
+ ".inst 0x6469e5b5 // bfmmla z21.s, z13.h, z9.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x6469e5d6 // bfmmla z22.s, z14.h, z9.h\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x6469e5f7 // bfmmla z23.s, z15.h, z9.h\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "trn2 z9.d, z6.d, z7.d\n"
+ "addvl a_ptr3, a_ptr3, #2\n"
+ ".inst 0x6460e590 // bfmmla z16.s, z12.h, z0.h\n"
+ ".inst 0x6460e5b1 // bfmmla z17.s, z13.h, z0.h\n"
+ ".inst 0x6460e5d2 // bfmmla z18.s, z14.h, z0.h\n"
+ ".inst 0x6460e5f3 // bfmmla z19.s, z15.h, z0.h\n"
+ "trn1 z0.d, z4.d, z5.d\n"
+ ".inst 0x6461e594 // bfmmla z20.s, z12.h, z1.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ ".inst 0x6461e5b5 // bfmmla z21.s, z13.h, z1.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ ".inst 0x6461e5d6 // bfmmla z22.s, z14.h, z1.h\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ ".inst 0x6461e5f7 // bfmmla z23.s, z15.h, z1.h\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "trn1 z1.d, z6.d, z7.d\n"
+ "addvl %[b_ptr0], %[b_ptr0], #16\n"
+ ".inst 0x6460e590 // bfmmla z16.s, z12.h, z0.h\n"
+ ".inst 0x6460e5b1 // bfmmla z17.s, z13.h, z0.h\n"
+ ".inst 0x6460e5d2 // bfmmla z18.s, z14.h, z0.h\n"
+ ".inst 0x6460e5f3 // bfmmla z19.s, z15.h, z0.h\n"
+ "ld1rqh z0.h, p6/z, [%[a_ptr0], #0x10]\n"
+ ".inst 0x6461e594 // bfmmla z20.s, z12.h, z1.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #-8, MUL VL]\n"
+ ".inst 0x6461e5b5 // bfmmla z21.s, z13.h, z1.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #-7, MUL VL]\n"
+ ".inst 0x6461e5d6 // bfmmla z22.s, z14.h, z1.h\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #-6, MUL VL]\n"
+ ".inst 0x6461e5f7 // bfmmla z23.s, z15.h, z1.h\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #-5, MUL VL]\n"
+ ".inst 0x6468e590 // bfmmla z16.s, z12.h, z8.h\n"
+ "ld1rqh z1.h, p6/z, [a_ptr1, #0x10]\n"
+ ".inst 0x6468e5b1 // bfmmla z17.s, z13.h, z8.h\n"
+ "addvl %[b_ptr0], %[b_ptr0], #-4\n"
+ ".inst 0x6468e5d2 // bfmmla z18.s, z14.h, z8.h\n"
+ "addvl %[a_ptr0], %[a_ptr0], #2\n"
+ ".inst 0x6468e5f3 // bfmmla z19.s, z15.h, z8.h\n"
+ "addvl a_ptr1, a_ptr1, #2\n"
+ "trn1 z8.d, z0.d, z1.d\n"
+ ".inst 0x6469e594 // bfmmla z20.s, z12.h, z9.h\n"
+ ".inst 0x6469e5b5 // bfmmla z21.s, z13.h, z9.h\n"
+ ".inst 0x6469e5d6 // bfmmla z22.s, z14.h, z9.h\n"
+ ".inst 0x6469e5f7 // bfmmla z23.s, z15.h, z9.h\n"
+ "trn1 z9.d, z2.d, z3.d\n"
+ "cbz %[blocks], 5f\n"
+ "trn2 z0.d, z0.d, z1.d\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0]]\n"
+ "trn2 z1.d, z2.d, z3.d\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "subs %[blocks], %[blocks], #0x1\n"
+ ".inst 0x6468e590 // bfmmla z16.s, z12.h, z8.h\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x6468e5b1 // bfmmla z17.s, z13.h, z8.h\n"
+ ".inst 0x6468e5d2 // bfmmla z18.s, z14.h, z8.h\n"
+ ".inst 0x6469e594 // bfmmla z20.s, z12.h, z9.h\n"
+ ".inst 0x6468e5f3 // bfmmla z19.s, z15.h, z8.h\n"
+ ".inst 0x6469e5b5 // bfmmla z21.s, z13.h, z9.h\n"
+ ".inst 0x6469e5d6 // bfmmla z22.s, z14.h, z9.h\n"
+ ".inst 0x6469e5f7 // bfmmla z23.s, z15.h, z9.h\n"
+ "b.eq 5f\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ ".inst 0x6460e590 // bfmmla z16.s, z12.h, z0.h\n"
+ ".inst 0x6460e5b1 // bfmmla z17.s, z13.h, z0.h\n"
+ ".inst 0x6460e5d2 // bfmmla z18.s, z14.h, z0.h\n"
+ ".inst 0x6460e5f3 // bfmmla z19.s, z15.h, z0.h\n"
+ ".inst 0x6461e594 // bfmmla z20.s, z12.h, z1.h\n"
+ ".inst 0x6461e5b5 // bfmmla z21.s, z13.h, z1.h\n"
+ ".inst 0x6461e5d6 // bfmmla z22.s, z14.h, z1.h\n"
+ ".inst 0x6461e5f7 // bfmmla z23.s, z15.h, z1.h\n"
+ "b 5f\n"
+ "4:\n"
+ "trn2 z0.d, z0.d, z1.d\n"
+ "ld1rqh z4.h, p6/z, [%[a_ptr0]]\n"
+ "trn2 z1.d, z2.d, z3.d\n"
+ "ld1rqh z5.h, p6/z, [a_ptr1]\n"
+ ".inst 0x6468e590 // bfmmla z16.s, z12.h, z8.h\n"
+ "ld1rqh z6.h, p6/z, [a_ptr2]\n"
+ ".inst 0x6468e5b1 // bfmmla z17.s, z13.h, z8.h\n"
+ "ld1rqh z7.h, p6/z, [a_ptr3]\n"
+ ".inst 0x6468e5d2 // bfmmla z18.s, z14.h, z8.h\n"
+ "addvl %[a_ptr0], %[a_ptr0], #1\n"
+ ".inst 0x6468e5f3 // bfmmla z19.s, z15.h, z8.h\n"
+ "addvl a_ptr1, a_ptr1, #1\n"
+ ".inst 0x6469e594 // bfmmla z20.s, z12.h, z9.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0]]\n"
+ ".inst 0x6469e5b5 // bfmmla z21.s, z13.h, z9.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x6469e5d6 // bfmmla z22.s, z14.h, z9.h\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x6469e5f7 // bfmmla z23.s, z15.h, z9.h\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x6460e590 // bfmmla z16.s, z12.h, z0.h\n"
+ "addvl %[b_ptr0], %[b_ptr0], #4\n"
+ ".inst 0x6460e5b1 // bfmmla z17.s, z13.h, z0.h\n"
+ "addvl a_ptr2, a_ptr2, #1\n"
+ ".inst 0x6460e5d2 // bfmmla z18.s, z14.h, z0.h\n"
+ "addvl a_ptr3, a_ptr3, #1\n"
+ ".inst 0x6460e5f3 // bfmmla z19.s, z15.h, z0.h\n"
+ "trn1 z0.d, z4.d, z5.d\n"
+ ".inst 0x6461e594 // bfmmla z20.s, z12.h, z1.h\n"
+ ".inst 0x6461e5b5 // bfmmla z21.s, z13.h, z1.h\n"
+ ".inst 0x6461e5d6 // bfmmla z22.s, z14.h, z1.h\n"
+ ".inst 0x6461e5f7 // bfmmla z23.s, z15.h, z1.h\n"
+ "trn1 z1.d, z6.d, z7.d\n"
+ "cbz %[blocks], 5f\n"
+ "trn2 z9.d, z6.d, z7.d\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0]]\n"
+ "trn2 z8.d, z4.d, z5.d\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "subs %[blocks], %[blocks], #0x1\n"
+ ".inst 0x6460e590 // bfmmla z16.s, z12.h, z0.h\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x6460e5b1 // bfmmla z17.s, z13.h, z0.h\n"
+ ".inst 0x6460e5d2 // bfmmla z18.s, z14.h, z0.h\n"
+ ".inst 0x6461e594 // bfmmla z20.s, z12.h, z1.h\n"
+ ".inst 0x6460e5f3 // bfmmla z19.s, z15.h, z0.h\n"
+ ".inst 0x6461e5b5 // bfmmla z21.s, z13.h, z1.h\n"
+ ".inst 0x6461e5d6 // bfmmla z22.s, z14.h, z1.h\n"
+ ".inst 0x6461e5f7 // bfmmla z23.s, z15.h, z1.h\n"
+ "b.eq 5f\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ ".inst 0x6468e590 // bfmmla z16.s, z12.h, z8.h\n"
+ ".inst 0x6468e5b1 // bfmmla z17.s, z13.h, z8.h\n"
+ ".inst 0x6468e5d2 // bfmmla z18.s, z14.h, z8.h\n"
+ ".inst 0x6468e5f3 // bfmmla z19.s, z15.h, z8.h\n"
+ ".inst 0x6469e594 // bfmmla z20.s, z12.h, z9.h\n"
+ ".inst 0x6469e5b5 // bfmmla z21.s, z13.h, z9.h\n"
+ ".inst 0x6469e5d6 // bfmmla z22.s, z14.h, z9.h\n"
+ ".inst 0x6469e5f7 // bfmmla z23.s, z15.h, z9.h\n"
+ "5:\n"
+ "ld1rw z14.s, p7/z, [%[minptr]]\n"
+ "ld1rw z15.s, p7/z, [%[maxptr]]\n"
+ "fmax z16.s, p7/m, z16.s, z14.s\n"
+ "fmax z17.s, p7/m, z17.s, z14.s\n"
+ "fmax z18.s, p7/m, z18.s, z14.s\n"
+ "fmax z19.s, p7/m, z19.s, z14.s\n"
+ "fmin z16.s, p7/m, z16.s, z15.s\n"
+ "fmin z17.s, p7/m, z17.s, z15.s\n"
+ "fmin z18.s, p7/m, z18.s, z15.s\n"
+ "fmin z19.s, p7/m, z19.s, z15.s\n"
+ "fmax z20.s, p7/m, z20.s, z14.s\n"
+ "uzp1 z0.s, z16.s, z17.s\n"
+ "uzp2 z1.s, z16.s, z17.s\n"
+ "uzp1 z2.s, z18.s, z19.s\n"
+ "uzp2 z3.s, z18.s, z19.s\n"
+ "st1w z0.s, p0, [%[c_ptr0]]\n"
+ "fmin z20.s, p7/m, z20.s, z15.s\n"
+ "fmax z21.s, p7/m, z21.s, z14.s\n"
+ "fmax z22.s, p7/m, z22.s, z14.s\n"
+ "st1w z1.s, p0, [c_ptr1]\n"
+ "fmax z23.s, p7/m, z23.s, z14.s\n"
+ "fmin z21.s, p7/m, z21.s, z15.s\n"
+ "st1w z2.s, p1, [%[c_ptr0], #1, MUL VL]\n"
+ "fmin z22.s, p7/m, z22.s, z15.s\n"
+ "addvl %[c_ptr0], %[c_ptr0], #2\n"
+ "fmin z23.s, p7/m, z23.s, z15.s\n"
+ "st1w z3.s, p1, [c_ptr1, #1, MUL VL]\n"
+ "uzp1 z4.s, z20.s, z21.s\n"
+ "uzp2 z5.s, z20.s, z21.s\n"
+ "uzp1 z6.s, z22.s, z23.s\n"
+ "st1w z4.s, p0, [c_ptr2]\n"
+ "uzp2 z7.s, z22.s, z23.s\n"
+ "st1w z5.s, p0, [c_ptr3]\n"
+ "st1w z6.s, p1, [c_ptr2, #1, MUL VL]\n"
+ "st1w z7.s, p1, [c_ptr3, #1, MUL VL]\n"
+ ".unreq a_ptr1\n"
+ ".unreq a_ptr2\n"
+ ".unreq a_ptr3\n"
+ ".unreq c_ptr1\n"
+ ".unreq c_ptr2\n"
+ ".unreq c_ptr3\n"
+ : [a_ptr0] "+r" (a_ptr0), [b_ptr0] "+r" (b_ptr0), [c_ptr0] "+r" (c_ptr0), [loops] "+r" (loops), [regs] "+r" (regs), [temp] "+r" (temp), [blocks] "+r" (blocks)
+ : [width] "r" (width), [append] "r" (static_cast<uint64_t>(append)), [lda] "r" (ldab), [ldc] "r" (ldcb), [biasptr] "r" (biasptr), [minptr] "r" (minptr), [maxptr] "r" (maxptr), [leftovers] "r" (leftovers)
+ : "z0", "z1", "z2", "z3", "z4", "z5", "z6", "z7", "z8", "z9", "z10", "z11", "z12", "z13", "z14", "z15", "z16", "z17", "z18", "z19", "z20", "z21", "z22", "z23", "z24", "z25", "z26", "z27", "z28", "z29", "z30", "z31", "x0", "x1", "x2", "x3", "x4", "x5", "cc", "memory"
+ );
+ break;
+ case 5:
+ __asm __volatile (
+ "a_ptr1 .req X0\n"
+ "a_ptr2 .req X1\n"
+ "a_ptr3 .req X2\n"
+ "a_ptr4 .req X3\n"
+ "c_ptr1 .req X4\n"
+ "c_ptr2 .req X5\n"
+ "c_ptr3 .req X6\n"
+ "c_ptr4 .req X7\n"
+ "add a_ptr1, %[a_ptr0], %[lda]\n"
+ "add c_ptr1, %[c_ptr0], %[ldc]\n"
+ "add a_ptr2, a_ptr1, %[lda]\n"
+ "add c_ptr2, c_ptr1, %[ldc]\n"
+ "add a_ptr3, a_ptr2, %[lda]\n"
+ "add c_ptr3, c_ptr2, %[ldc]\n"
+ "add a_ptr4, a_ptr3, %[lda]\n"
+ "add c_ptr4, c_ptr3, %[ldc]\n"
+ "whilelt p6.h, %[temp], %[leftovers]\n"
+ "whilelt p0.s, %[temp], %[width]\n"
+ "incw %[temp], all, mul #1\n"
+ "ptrue p7.h\n"
+ "whilelt p1.s, %[temp], %[width]\n"
+ "cbnz %[append], 1f\n"
+ "mov z5.h, #0\n"
+ "ld1w z15.s, p0/z, [%[biasptr]]\n"
+ "ld1rqh z0.h, p7/z, [%[a_ptr0]]\n"
+ "add %[a_ptr0], %[a_ptr0], #0x10\n"
+ "ld1rqh z1.h, p7/z, [a_ptr1]\n"
+ "add a_ptr1, a_ptr1, #0x10\n"
+ "zip1 z16.s, z15.s, z15.s\n"
+ "ld1rqh z2.h, p7/z, [a_ptr2]\n"
+ "zip2 z17.s, z15.s, z15.s\n"
+ "ld1w z15.s, p1/z, [%[biasptr], #1, MUL VL]\n"
+ "trn1 z8.d, z0.d, z1.d\n"
+ "ld1rqh z3.h, p7/z, [a_ptr3]\n"
+ "ld1rqh z4.h, p7/z, [a_ptr4]\n"
+ "add a_ptr2, a_ptr2, #0x10\n"
+ "zip1 z18.s, z15.s, z15.s\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0]]\n"
+ "zip2 z19.s, z15.s, z15.s\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "trn1 z9.d, z2.d, z3.d\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "trn1 z10.d, z4.d, z5.d\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "mov z20.d, z16.d\n"
+ "add a_ptr3, a_ptr3, #0x10\n"
+ "mov z21.d, z17.d\n"
+ "add a_ptr4, a_ptr4, #0x10\n"
+ "mov z22.d, z18.d\n"
+ "addvl %[b_ptr0], %[b_ptr0], #4\n"
+ "mov z23.d, z19.d\n"
+ "mov z24.d, z16.d\n"
+ "mov z25.d, z17.d\n"
+ "mov z26.d, z18.d\n"
+ "mov z27.d, z19.d\n"
+ "cbz %[loops], 2f\n"
+ "b 3f\n"
+ "1:\n"
+ "mov z5.h, #0\n"
+ "ld1w z13.s, p0/z, [%[c_ptr0]]\n"
+ "ld1w z14.s, p0/z, [c_ptr1]\n"
+ "ld1rqh z0.h, p7/z, [%[a_ptr0]]\n"
+ "add %[a_ptr0], %[a_ptr0], #0x10\n"
+ "ld1rqh z1.h, p7/z, [a_ptr1]\n"
+ "add a_ptr1, a_ptr1, #0x10\n"
+ "zip1 z16.s, z13.s, z14.s\n"
+ "ld1rqh z2.h, p7/z, [a_ptr2]\n"
+ "zip2 z17.s, z13.s, z14.s\n"
+ "ld1w z13.s, p1/z, [%[c_ptr0], #1, MUL VL]\n"
+ "trn1 z8.d, z0.d, z1.d\n"
+ "ld1w z14.s, p1/z, [c_ptr1, #1, MUL VL]\n"
+ "ld1rqh z3.h, p7/z, [a_ptr3]\n"
+ "add a_ptr2, a_ptr2, #0x10\n"
+ "ld1rqh z4.h, p7/z, [a_ptr4]\n"
+ "add a_ptr3, a_ptr3, #0x10\n"
+ "zip1 z18.s, z13.s, z14.s\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0]]\n"
+ "zip2 z19.s, z13.s, z14.s\n"
+ "ld1w z13.s, p0/z, [c_ptr2]\n"
+ "trn1 z9.d, z2.d, z3.d\n"
+ "ld1w z14.s, p0/z, [c_ptr3]\n"
+ "trn1 z10.d, z4.d, z5.d\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "add a_ptr4, a_ptr4, #0x10\n"
+ "zip1 z20.s, z13.s, z14.s\n"
+ "zip2 z21.s, z13.s, z14.s\n"
+ "ld1w z13.s, p1/z, [c_ptr2, #1, MUL VL]\n"
+ "ld1w z14.s, p1/z, [c_ptr3, #1, MUL VL]\n"
+ "zip1 z22.s, z13.s, z14.s\n"
+ "zip2 z23.s, z13.s, z14.s\n"
+ "ld1w z13.s, p0/z, [c_ptr4]\n"
+ "mov z14.s, #0\n"
+ "zip1 z24.s, z13.s, z14.s\n"
+ "zip2 z25.s, z13.s, z14.s\n"
+ "ld1w z13.s, p1/z, [c_ptr4, #1, MUL VL]\n"
+ "mov z14.s, #0\n"
+ "zip1 z26.s, z13.s, z14.s\n"
+ "zip2 z27.s, z13.s, z14.s\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #4\n"
+ "cbz %[loops], 2f\n"
+ "3:\n"
+ "trn2 z0.d, z0.d, z1.d\n"
+ "ld1rqh z6.h, p7/z, [a_ptr2]\n"
+ "trn2 z1.d, z2.d, z3.d\n"
+ "ld1rqh z7.h, p7/z, [a_ptr3]\n"
+ "trn2 z2.d, z4.d, z5.d\n"
+ "ld1rqh z4.h, p7/z, [%[a_ptr0]]\n"
+ ".inst 0x6468e590 // bfmmla z16.s, z12.h, z8.h\n"
+ "ld1rqh z5.h, p7/z, [a_ptr1]\n"
+ ".inst 0x6468e5b1 // bfmmla z17.s, z13.h, z8.h\n"
+ "subs %[loops], %[loops], #0x1\n"
+ ".inst 0x6468e5d2 // bfmmla z18.s, z14.h, z8.h\n"
+ "add %[a_ptr0], %[a_ptr0], #0x20\n"
+ ".inst 0x6468e5f3 // bfmmla z19.s, z15.h, z8.h\n"
+ "ld1rqh z8.h, p7/z, [a_ptr4]\n"
+ ".inst 0x6469e594 // bfmmla z20.s, z12.h, z9.h\n"
+ "add a_ptr1, a_ptr1, #0x20\n"
+ ".inst 0x6469e5b5 // bfmmla z21.s, z13.h, z9.h\n"
+ "add a_ptr2, a_ptr2, #0x20\n"
+ ".inst 0x6469e5d6 // bfmmla z22.s, z14.h, z9.h\n"
+ "add a_ptr3, a_ptr3, #0x20\n"
+ ".inst 0x6469e5f7 // bfmmla z23.s, z15.h, z9.h\n"
+ "ld1rqh z3.h, p7/z, [a_ptr3, #-0x10]\n"
+ ".inst 0x646ae598 // bfmmla z24.s, z12.h, z10.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0]]\n"
+ ".inst 0x646ae5b9 // bfmmla z25.s, z13.h, z10.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x646ae5da // bfmmla z26.s, z14.h, z10.h\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x646ae5fb // bfmmla z27.s, z15.h, z10.h\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "mov z9.h, #0\n"
+ "add a_ptr4, a_ptr4, #0x20\n"
+ ".inst 0x6460e590 // bfmmla z16.s, z12.h, z0.h\n"
+ ".inst 0x6460e5b1 // bfmmla z17.s, z13.h, z0.h\n"
+ "trn2 z10.d, z8.d, z9.d\n"
+ ".inst 0x6460e5d2 // bfmmla z18.s, z14.h, z0.h\n"
+ ".inst 0x6460e5f3 // bfmmla z19.s, z15.h, z0.h\n"
+ "trn1 z0.d, z4.d, z5.d\n"
+ ".inst 0x6461e594 // bfmmla z20.s, z12.h, z1.h\n"
+ ".inst 0x6461e5b5 // bfmmla z21.s, z13.h, z1.h\n"
+ ".inst 0x6461e5d6 // bfmmla z22.s, z14.h, z1.h\n"
+ ".inst 0x6461e5f7 // bfmmla z23.s, z15.h, z1.h\n"
+ "trn1 z1.d, z6.d, z7.d\n"
+ ".inst 0x6462e598 // bfmmla z24.s, z12.h, z2.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ ".inst 0x6462e5b9 // bfmmla z25.s, z13.h, z2.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ ".inst 0x6462e5da // bfmmla z26.s, z14.h, z2.h\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ ".inst 0x6462e5fb // bfmmla z27.s, z15.h, z2.h\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "trn1 z2.d, z8.d, z9.d\n"
+ "addvl %[b_ptr0], %[b_ptr0], #16\n"
+ "trn2 z9.d, z6.d, z7.d\n"
+ "trn2 z8.d, z4.d, z5.d\n"
+ "ld1rqh z4.h, p7/z, [a_ptr4, #-0x10]\n"
+ ".inst 0x6460e590 // bfmmla z16.s, z12.h, z0.h\n"
+ ".inst 0x6460e5b1 // bfmmla z17.s, z13.h, z0.h\n"
+ ".inst 0x6460e5d2 // bfmmla z18.s, z14.h, z0.h\n"
+ ".inst 0x6460e5f3 // bfmmla z19.s, z15.h, z0.h\n"
+ "ld1rqh z0.h, p7/z, [%[a_ptr0], #-0x10]\n"
+ ".inst 0x6461e594 // bfmmla z20.s, z12.h, z1.h\n"
+ ".inst 0x6461e5b5 // bfmmla z21.s, z13.h, z1.h\n"
+ ".inst 0x6461e5d6 // bfmmla z22.s, z14.h, z1.h\n"
+ ".inst 0x6461e5f7 // bfmmla z23.s, z15.h, z1.h\n"
+ "ld1rqh z1.h, p7/z, [a_ptr1, #-0x10]\n"
+ ".inst 0x6462e598 // bfmmla z24.s, z12.h, z2.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #-8, MUL VL]\n"
+ ".inst 0x6462e5b9 // bfmmla z25.s, z13.h, z2.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #-7, MUL VL]\n"
+ ".inst 0x6462e5da // bfmmla z26.s, z14.h, z2.h\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #-6, MUL VL]\n"
+ ".inst 0x6462e5fb // bfmmla z27.s, z15.h, z2.h\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #-5, MUL VL]\n"
+ "mov z5.h, #0\n"
+ "ld1rqh z2.h, p7/z, [a_ptr2, #-0x10]\n"
+ ".inst 0x6468e590 // bfmmla z16.s, z12.h, z8.h\n"
+ ".inst 0x6468e5b1 // bfmmla z17.s, z13.h, z8.h\n"
+ ".inst 0x6468e5d2 // bfmmla z18.s, z14.h, z8.h\n"
+ ".inst 0x6468e5f3 // bfmmla z19.s, z15.h, z8.h\n"
+ "trn1 z8.d, z0.d, z1.d\n"
+ ".inst 0x6469e594 // bfmmla z20.s, z12.h, z9.h\n"
+ ".inst 0x6469e5b5 // bfmmla z21.s, z13.h, z9.h\n"
+ ".inst 0x6469e5d6 // bfmmla z22.s, z14.h, z9.h\n"
+ ".inst 0x6469e5f7 // bfmmla z23.s, z15.h, z9.h\n"
+ "trn1 z9.d, z2.d, z3.d\n"
+ ".inst 0x646ae598 // bfmmla z24.s, z12.h, z10.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #-4, MUL VL]\n"
+ ".inst 0x646ae5b9 // bfmmla z25.s, z13.h, z10.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #-3, MUL VL]\n"
+ ".inst 0x646ae5da // bfmmla z26.s, z14.h, z10.h\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #-2, MUL VL]\n"
+ ".inst 0x646ae5fb // bfmmla z27.s, z15.h, z10.h\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #-1, MUL VL]\n"
+ "trn1 z10.d, z4.d, z5.d\n"
+ "b.ne 3b\n"
+ "2:\n"
+ "cbz %[regs], 4f\n"
+ "trn2 z0.d, z0.d, z1.d\n"
+ "ld1rqh z6.h, p7/z, [a_ptr2]\n"
+ "trn2 z1.d, z2.d, z3.d\n"
+ "ld1rqh z7.h, p7/z, [a_ptr3]\n"
+ "trn2 z2.d, z4.d, z5.d\n"
+ "ld1rqh z4.h, p7/z, [%[a_ptr0]]\n"
+ ".inst 0x6468e590 // bfmmla z16.s, z12.h, z8.h\n"
+ "ld1rqh z5.h, p7/z, [a_ptr1]\n"
+ ".inst 0x6468e5b1 // bfmmla z17.s, z13.h, z8.h\n"
+ "ld1rqh z3.h, p6/z, [a_ptr3, #0x10]\n"
+ ".inst 0x6468e5d2 // bfmmla z18.s, z14.h, z8.h\n"
+ "addvl a_ptr3, a_ptr3, #2\n"
+ ".inst 0x6468e5f3 // bfmmla z19.s, z15.h, z8.h\n"
+ "ld1rqh z8.h, p7/z, [a_ptr4]\n"
+ ".inst 0x6469e594 // bfmmla z20.s, z12.h, z9.h\n"
+ ".inst 0x6469e5b5 // bfmmla z21.s, z13.h, z9.h\n"
+ ".inst 0x6469e5d6 // bfmmla z22.s, z14.h, z9.h\n"
+ ".inst 0x6469e5f7 // bfmmla z23.s, z15.h, z9.h\n"
+ ".inst 0x646ae598 // bfmmla z24.s, z12.h, z10.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0]]\n"
+ ".inst 0x646ae5b9 // bfmmla z25.s, z13.h, z10.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x646ae5da // bfmmla z26.s, z14.h, z10.h\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x646ae5fb // bfmmla z27.s, z15.h, z10.h\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "mov z9.h, #0\n"
+ ".inst 0x6460e590 // bfmmla z16.s, z12.h, z0.h\n"
+ ".inst 0x6460e5b1 // bfmmla z17.s, z13.h, z0.h\n"
+ ".inst 0x6460e5d2 // bfmmla z18.s, z14.h, z0.h\n"
+ "trn2 z10.d, z8.d, z9.d\n"
+ ".inst 0x6460e5f3 // bfmmla z19.s, z15.h, z0.h\n"
+ "trn1 z0.d, z4.d, z5.d\n"
+ ".inst 0x6461e594 // bfmmla z20.s, z12.h, z1.h\n"
+ ".inst 0x6461e5b5 // bfmmla z21.s, z13.h, z1.h\n"
+ ".inst 0x6461e5d6 // bfmmla z22.s, z14.h, z1.h\n"
+ ".inst 0x6461e5f7 // bfmmla z23.s, z15.h, z1.h\n"
+ "trn1 z1.d, z6.d, z7.d\n"
+ ".inst 0x6462e598 // bfmmla z24.s, z12.h, z2.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ ".inst 0x6462e5b9 // bfmmla z25.s, z13.h, z2.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ ".inst 0x6462e5da // bfmmla z26.s, z14.h, z2.h\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ ".inst 0x6462e5fb // bfmmla z27.s, z15.h, z2.h\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "trn1 z2.d, z8.d, z9.d\n"
+ "addvl %[b_ptr0], %[b_ptr0], #16\n"
+ "trn2 z9.d, z6.d, z7.d\n"
+ "trn2 z8.d, z4.d, z5.d\n"
+ "ld1rqh z4.h, p6/z, [a_ptr4, #0x10]\n"
+ ".inst 0x6460e590 // bfmmla z16.s, z12.h, z0.h\n"
+ "addvl a_ptr4, a_ptr4, #2\n"
+ ".inst 0x6460e5b1 // bfmmla z17.s, z13.h, z0.h\n"
+ ".inst 0x6460e5d2 // bfmmla z18.s, z14.h, z0.h\n"
+ ".inst 0x6460e5f3 // bfmmla z19.s, z15.h, z0.h\n"
+ "ld1rqh z0.h, p6/z, [%[a_ptr0], #0x10]\n"
+ ".inst 0x6461e594 // bfmmla z20.s, z12.h, z1.h\n"
+ "addvl %[a_ptr0], %[a_ptr0], #2\n"
+ ".inst 0x6461e5b5 // bfmmla z21.s, z13.h, z1.h\n"
+ ".inst 0x6461e5d6 // bfmmla z22.s, z14.h, z1.h\n"
+ ".inst 0x6461e5f7 // bfmmla z23.s, z15.h, z1.h\n"
+ "ld1rqh z1.h, p6/z, [a_ptr1, #0x10]\n"
+ ".inst 0x6462e598 // bfmmla z24.s, z12.h, z2.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #-8, MUL VL]\n"
+ ".inst 0x6462e5b9 // bfmmla z25.s, z13.h, z2.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #-7, MUL VL]\n"
+ ".inst 0x6462e5da // bfmmla z26.s, z14.h, z2.h\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #-6, MUL VL]\n"
+ ".inst 0x6462e5fb // bfmmla z27.s, z15.h, z2.h\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #-5, MUL VL]\n"
+ "mov z5.h, #0\n"
+ "ld1rqh z2.h, p6/z, [a_ptr2, #0x10]\n"
+ ".inst 0x6468e590 // bfmmla z16.s, z12.h, z8.h\n"
+ "addvl %[b_ptr0], %[b_ptr0], #-4\n"
+ ".inst 0x6468e5b1 // bfmmla z17.s, z13.h, z8.h\n"
+ "addvl a_ptr1, a_ptr1, #2\n"
+ ".inst 0x6468e5d2 // bfmmla z18.s, z14.h, z8.h\n"
+ "addvl a_ptr2, a_ptr2, #2\n"
+ ".inst 0x6468e5f3 // bfmmla z19.s, z15.h, z8.h\n"
+ "trn1 z8.d, z0.d, z1.d\n"
+ ".inst 0x6469e594 // bfmmla z20.s, z12.h, z9.h\n"
+ ".inst 0x6469e5b5 // bfmmla z21.s, z13.h, z9.h\n"
+ ".inst 0x6469e5d6 // bfmmla z22.s, z14.h, z9.h\n"
+ ".inst 0x6469e5f7 // bfmmla z23.s, z15.h, z9.h\n"
+ "trn1 z9.d, z2.d, z3.d\n"
+ ".inst 0x646ae598 // bfmmla z24.s, z12.h, z10.h\n"
+ ".inst 0x646ae5b9 // bfmmla z25.s, z13.h, z10.h\n"
+ ".inst 0x646ae5da // bfmmla z26.s, z14.h, z10.h\n"
+ ".inst 0x646ae5fb // bfmmla z27.s, z15.h, z10.h\n"
+ "trn1 z10.d, z4.d, z5.d\n"
+ "cbz %[blocks], 5f\n"
+ "trn2 z0.d, z0.d, z1.d\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0]]\n"
+ "trn2 z1.d, z2.d, z3.d\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "trn2 z2.d, z4.d, z5.d\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "subs %[blocks], %[blocks], #0x1\n"
+ ".inst 0x6468e590 // bfmmla z16.s, z12.h, z8.h\n"
+ ".inst 0x6468e5b1 // bfmmla z17.s, z13.h, z8.h\n"
+ ".inst 0x6468e5d2 // bfmmla z18.s, z14.h, z8.h\n"
+ ".inst 0x6468e5f3 // bfmmla z19.s, z15.h, z8.h\n"
+ ".inst 0x6469e594 // bfmmla z20.s, z12.h, z9.h\n"
+ ".inst 0x6469e5b5 // bfmmla z21.s, z13.h, z9.h\n"
+ ".inst 0x6469e5d6 // bfmmla z22.s, z14.h, z9.h\n"
+ ".inst 0x6469e5f7 // bfmmla z23.s, z15.h, z9.h\n"
+ ".inst 0x646ae598 // bfmmla z24.s, z12.h, z10.h\n"
+ ".inst 0x646ae5b9 // bfmmla z25.s, z13.h, z10.h\n"
+ ".inst 0x646ae5da // bfmmla z26.s, z14.h, z10.h\n"
+ ".inst 0x646ae5fb // bfmmla z27.s, z15.h, z10.h\n"
+ "b.eq 5f\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ ".inst 0x6460e590 // bfmmla z16.s, z12.h, z0.h\n"
+ ".inst 0x6460e5b1 // bfmmla z17.s, z13.h, z0.h\n"
+ ".inst 0x6460e5d2 // bfmmla z18.s, z14.h, z0.h\n"
+ ".inst 0x6460e5f3 // bfmmla z19.s, z15.h, z0.h\n"
+ ".inst 0x6461e594 // bfmmla z20.s, z12.h, z1.h\n"
+ ".inst 0x6461e5b5 // bfmmla z21.s, z13.h, z1.h\n"
+ ".inst 0x6461e5d6 // bfmmla z22.s, z14.h, z1.h\n"
+ ".inst 0x6461e5f7 // bfmmla z23.s, z15.h, z1.h\n"
+ ".inst 0x6462e598 // bfmmla z24.s, z12.h, z2.h\n"
+ ".inst 0x6462e5b9 // bfmmla z25.s, z13.h, z2.h\n"
+ ".inst 0x6462e5da // bfmmla z26.s, z14.h, z2.h\n"
+ ".inst 0x6462e5fb // bfmmla z27.s, z15.h, z2.h\n"
+ "b 5f\n"
+ "4:\n"
+ "trn2 z0.d, z0.d, z1.d\n"
+ "ld1rqh z6.h, p6/z, [a_ptr2]\n"
+ "trn2 z1.d, z2.d, z3.d\n"
+ "ld1rqh z7.h, p6/z, [a_ptr3]\n"
+ "trn2 z2.d, z4.d, z5.d\n"
+ "ld1rqh z4.h, p6/z, [%[a_ptr0]]\n"
+ ".inst 0x6468e590 // bfmmla z16.s, z12.h, z8.h\n"
+ "ld1rqh z5.h, p6/z, [a_ptr1]\n"
+ ".inst 0x6468e5b1 // bfmmla z17.s, z13.h, z8.h\n"
+ "addvl %[a_ptr0], %[a_ptr0], #1\n"
+ ".inst 0x6468e5d2 // bfmmla z18.s, z14.h, z8.h\n"
+ "addvl a_ptr1, a_ptr1, #1\n"
+ ".inst 0x6468e5f3 // bfmmla z19.s, z15.h, z8.h\n"
+ "ld1rqh z8.h, p6/z, [a_ptr4]\n"
+ ".inst 0x6469e594 // bfmmla z20.s, z12.h, z9.h\n"
+ "addvl a_ptr2, a_ptr2, #1\n"
+ ".inst 0x6469e5b5 // bfmmla z21.s, z13.h, z9.h\n"
+ "addvl a_ptr3, a_ptr3, #1\n"
+ ".inst 0x6469e5d6 // bfmmla z22.s, z14.h, z9.h\n"
+ "addvl a_ptr4, a_ptr4, #1\n"
+ ".inst 0x6469e5f7 // bfmmla z23.s, z15.h, z9.h\n"
+ ".inst 0x646ae598 // bfmmla z24.s, z12.h, z10.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0]]\n"
+ ".inst 0x646ae5b9 // bfmmla z25.s, z13.h, z10.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x646ae5da // bfmmla z26.s, z14.h, z10.h\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x646ae5fb // bfmmla z27.s, z15.h, z10.h\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "mov z9.h, #0\n"
+ "addvl %[b_ptr0], %[b_ptr0], #4\n"
+ ".inst 0x6460e590 // bfmmla z16.s, z12.h, z0.h\n"
+ ".inst 0x6460e5b1 // bfmmla z17.s, z13.h, z0.h\n"
+ ".inst 0x6460e5d2 // bfmmla z18.s, z14.h, z0.h\n"
+ ".inst 0x6460e5f3 // bfmmla z19.s, z15.h, z0.h\n"
+ "trn1 z0.d, z4.d, z5.d\n"
+ ".inst 0x6461e594 // bfmmla z20.s, z12.h, z1.h\n"
+ ".inst 0x6461e5b5 // bfmmla z21.s, z13.h, z1.h\n"
+ ".inst 0x6461e5d6 // bfmmla z22.s, z14.h, z1.h\n"
+ ".inst 0x6461e5f7 // bfmmla z23.s, z15.h, z1.h\n"
+ "trn1 z1.d, z6.d, z7.d\n"
+ ".inst 0x6462e598 // bfmmla z24.s, z12.h, z2.h\n"
+ ".inst 0x6462e5b9 // bfmmla z25.s, z13.h, z2.h\n"
+ ".inst 0x6462e5da // bfmmla z26.s, z14.h, z2.h\n"
+ ".inst 0x6462e5fb // bfmmla z27.s, z15.h, z2.h\n"
+ "trn1 z2.d, z8.d, z9.d\n"
+ "cbz %[blocks], 5f\n"
+ "trn2 z10.d, z8.d, z9.d\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0]]\n"
+ "trn2 z9.d, z6.d, z7.d\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "trn2 z8.d, z4.d, z5.d\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "subs %[blocks], %[blocks], #0x1\n"
+ ".inst 0x6460e590 // bfmmla z16.s, z12.h, z0.h\n"
+ ".inst 0x6460e5b1 // bfmmla z17.s, z13.h, z0.h\n"
+ ".inst 0x6460e5d2 // bfmmla z18.s, z14.h, z0.h\n"
+ ".inst 0x6460e5f3 // bfmmla z19.s, z15.h, z0.h\n"
+ ".inst 0x6461e594 // bfmmla z20.s, z12.h, z1.h\n"
+ ".inst 0x6461e5b5 // bfmmla z21.s, z13.h, z1.h\n"
+ ".inst 0x6461e5d6 // bfmmla z22.s, z14.h, z1.h\n"
+ ".inst 0x6461e5f7 // bfmmla z23.s, z15.h, z1.h\n"
+ ".inst 0x6462e598 // bfmmla z24.s, z12.h, z2.h\n"
+ ".inst 0x6462e5b9 // bfmmla z25.s, z13.h, z2.h\n"
+ ".inst 0x6462e5da // bfmmla z26.s, z14.h, z2.h\n"
+ ".inst 0x6462e5fb // bfmmla z27.s, z15.h, z2.h\n"
+ "b.eq 5f\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ ".inst 0x6468e590 // bfmmla z16.s, z12.h, z8.h\n"
+ ".inst 0x6468e5b1 // bfmmla z17.s, z13.h, z8.h\n"
+ ".inst 0x6468e5d2 // bfmmla z18.s, z14.h, z8.h\n"
+ ".inst 0x6468e5f3 // bfmmla z19.s, z15.h, z8.h\n"
+ ".inst 0x6469e594 // bfmmla z20.s, z12.h, z9.h\n"
+ ".inst 0x6469e5b5 // bfmmla z21.s, z13.h, z9.h\n"
+ ".inst 0x6469e5d6 // bfmmla z22.s, z14.h, z9.h\n"
+ ".inst 0x6469e5f7 // bfmmla z23.s, z15.h, z9.h\n"
+ ".inst 0x646ae598 // bfmmla z24.s, z12.h, z10.h\n"
+ ".inst 0x646ae5b9 // bfmmla z25.s, z13.h, z10.h\n"
+ ".inst 0x646ae5da // bfmmla z26.s, z14.h, z10.h\n"
+ ".inst 0x646ae5fb // bfmmla z27.s, z15.h, z10.h\n"
+ "5:\n"
+ "ld1rw z14.s, p7/z, [%[minptr]]\n"
+ "ld1rw z15.s, p7/z, [%[maxptr]]\n"
+ "fmax z16.s, p7/m, z16.s, z14.s\n"
+ "fmax z17.s, p7/m, z17.s, z14.s\n"
+ "fmax z18.s, p7/m, z18.s, z14.s\n"
+ "fmax z19.s, p7/m, z19.s, z14.s\n"
+ "fmin z16.s, p7/m, z16.s, z15.s\n"
+ "fmin z17.s, p7/m, z17.s, z15.s\n"
+ "fmin z18.s, p7/m, z18.s, z15.s\n"
+ "fmin z19.s, p7/m, z19.s, z15.s\n"
+ "fmax z20.s, p7/m, z20.s, z14.s\n"
+ "uzp1 z0.s, z16.s, z17.s\n"
+ "uzp2 z1.s, z16.s, z17.s\n"
+ "uzp1 z2.s, z18.s, z19.s\n"
+ "uzp2 z3.s, z18.s, z19.s\n"
+ "st1w z0.s, p0, [%[c_ptr0]]\n"
+ "fmin z20.s, p7/m, z20.s, z15.s\n"
+ "fmax z21.s, p7/m, z21.s, z14.s\n"
+ "fmax z22.s, p7/m, z22.s, z14.s\n"
+ "st1w z1.s, p0, [c_ptr1]\n"
+ "fmax z23.s, p7/m, z23.s, z14.s\n"
+ "fmax z24.s, p7/m, z24.s, z14.s\n"
+ "fmin z21.s, p7/m, z21.s, z15.s\n"
+ "st1w z2.s, p1, [%[c_ptr0], #1, MUL VL]\n"
+ "fmin z22.s, p7/m, z22.s, z15.s\n"
+ "addvl %[c_ptr0], %[c_ptr0], #2\n"
+ "fmin z23.s, p7/m, z23.s, z15.s\n"
+ "st1w z3.s, p1, [c_ptr1, #1, MUL VL]\n"
+ "uzp1 z4.s, z20.s, z21.s\n"
+ "uzp2 z5.s, z20.s, z21.s\n"
+ "fmin z24.s, p7/m, z24.s, z15.s\n"
+ "uzp1 z6.s, z22.s, z23.s\n"
+ "st1w z4.s, p0, [c_ptr2]\n"
+ "uzp2 z7.s, z22.s, z23.s\n"
+ "fmax z25.s, p7/m, z25.s, z14.s\n"
+ "fmax z26.s, p7/m, z26.s, z14.s\n"
+ "st1w z5.s, p0, [c_ptr3]\n"
+ "fmax z27.s, p7/m, z27.s, z14.s\n"
+ "fmin z25.s, p7/m, z25.s, z15.s\n"
+ "st1w z6.s, p1, [c_ptr2, #1, MUL VL]\n"
+ "fmin z26.s, p7/m, z26.s, z15.s\n"
+ "fmin z27.s, p7/m, z27.s, z15.s\n"
+ "uzp1 z8.s, z24.s, z25.s\n"
+ "st1w z7.s, p1, [c_ptr3, #1, MUL VL]\n"
+ "uzp1 z9.s, z26.s, z27.s\n"
+ "st1w z8.s, p0, [c_ptr4]\n"
+ "st1w z9.s, p1, [c_ptr4, #1, MUL VL]\n"
+ ".unreq a_ptr1\n"
+ ".unreq a_ptr2\n"
+ ".unreq a_ptr3\n"
+ ".unreq a_ptr4\n"
+ ".unreq c_ptr1\n"
+ ".unreq c_ptr2\n"
+ ".unreq c_ptr3\n"
+ ".unreq c_ptr4\n"
+ : [a_ptr0] "+r" (a_ptr0), [b_ptr0] "+r" (b_ptr0), [c_ptr0] "+r" (c_ptr0), [loops] "+r" (loops), [regs] "+r" (regs), [temp] "+r" (temp), [blocks] "+r" (blocks)
+ : [width] "r" (width), [append] "r" (static_cast<uint64_t>(append)), [lda] "r" (ldab), [ldc] "r" (ldcb), [biasptr] "r" (biasptr), [minptr] "r" (minptr), [maxptr] "r" (maxptr), [leftovers] "r" (leftovers)
+ : "z0", "z1", "z2", "z3", "z4", "z5", "z6", "z7", "z8", "z9", "z10", "z11", "z12", "z13", "z14", "z15", "z16", "z17", "z18", "z19", "z20", "z21", "z22", "z23", "z24", "z25", "z26", "z27", "z28", "z29", "z30", "z31", "x0", "x1", "x2", "x3", "x4", "x5", "x6", "x7", "cc", "memory"
+ );
+ break;
+ case 6:
+ __asm __volatile (
+ "a_ptr1 .req X0\n"
+ "a_ptr2 .req X1\n"
+ "a_ptr3 .req X2\n"
+ "a_ptr4 .req X3\n"
+ "a_ptr5 .req X4\n"
+ "c_ptr1 .req X5\n"
+ "c_ptr2 .req X6\n"
+ "c_ptr3 .req X7\n"
+ "c_ptr4 .req X8\n"
+ "c_ptr5 .req X9\n"
+ "add a_ptr1, %[a_ptr0], %[lda]\n"
+ "add c_ptr1, %[c_ptr0], %[ldc]\n"
+ "add a_ptr2, a_ptr1, %[lda]\n"
+ "add c_ptr2, c_ptr1, %[ldc]\n"
+ "add a_ptr3, a_ptr2, %[lda]\n"
+ "add c_ptr3, c_ptr2, %[ldc]\n"
+ "add a_ptr4, a_ptr3, %[lda]\n"
+ "add c_ptr4, c_ptr3, %[ldc]\n"
+ "add a_ptr5, a_ptr4, %[lda]\n"
+ "add c_ptr5, c_ptr4, %[ldc]\n"
+ "whilelt p6.h, %[temp], %[leftovers]\n"
+ "whilelt p0.s, %[temp], %[width]\n"
+ "incw %[temp], all, mul #1\n"
+ "ptrue p7.h\n"
+ "whilelt p1.s, %[temp], %[width]\n"
+ "cbnz %[append], 1f\n"
+ "ld1w z15.s, p0/z, [%[biasptr]]\n"
+ "ld1rqh z0.h, p7/z, [%[a_ptr0]]\n"
+ "add %[a_ptr0], %[a_ptr0], #0x10\n"
+ "ld1rqh z1.h, p7/z, [a_ptr1]\n"
+ "add a_ptr1, a_ptr1, #0x10\n"
+ "zip1 z16.s, z15.s, z15.s\n"
+ "ld1rqh z2.h, p7/z, [a_ptr2]\n"
+ "zip2 z17.s, z15.s, z15.s\n"
+ "ld1w z15.s, p1/z, [%[biasptr], #1, MUL VL]\n"
+ "trn1 z8.d, z0.d, z1.d\n"
+ "ld1rqh z3.h, p7/z, [a_ptr3]\n"
+ "ld1rqh z4.h, p7/z, [a_ptr4]\n"
+ "add a_ptr2, a_ptr2, #0x10\n"
+ "zip1 z18.s, z15.s, z15.s\n"
+ "ld1rqh z5.h, p7/z, [a_ptr5]\n"
+ "zip2 z19.s, z15.s, z15.s\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0]]\n"
+ "trn1 z9.d, z2.d, z3.d\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "mov z20.d, z16.d\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "trn1 z10.d, z4.d, z5.d\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "mov z21.d, z17.d\n"
+ "add a_ptr3, a_ptr3, #0x10\n"
+ "mov z22.d, z18.d\n"
+ "add a_ptr4, a_ptr4, #0x10\n"
+ "mov z23.d, z19.d\n"
+ "add a_ptr5, a_ptr5, #0x10\n"
+ "mov z24.d, z16.d\n"
+ "addvl %[b_ptr0], %[b_ptr0], #4\n"
+ "mov z25.d, z17.d\n"
+ "mov z26.d, z18.d\n"
+ "mov z27.d, z19.d\n"
+ "cbz %[loops], 2f\n"
+ "b 3f\n"
+ "1:\n"
+ "ld1w z13.s, p0/z, [%[c_ptr0]]\n"
+ "ld1w z14.s, p0/z, [c_ptr1]\n"
+ "ld1rqh z0.h, p7/z, [%[a_ptr0]]\n"
+ "add %[a_ptr0], %[a_ptr0], #0x10\n"
+ "ld1rqh z1.h, p7/z, [a_ptr1]\n"
+ "add a_ptr1, a_ptr1, #0x10\n"
+ "zip1 z16.s, z13.s, z14.s\n"
+ "ld1rqh z2.h, p7/z, [a_ptr2]\n"
+ "zip2 z17.s, z13.s, z14.s\n"
+ "ld1w z13.s, p1/z, [%[c_ptr0], #1, MUL VL]\n"
+ "trn1 z8.d, z0.d, z1.d\n"
+ "ld1w z14.s, p1/z, [c_ptr1, #1, MUL VL]\n"
+ "ld1rqh z3.h, p7/z, [a_ptr3]\n"
+ "add a_ptr2, a_ptr2, #0x10\n"
+ "ld1rqh z4.h, p7/z, [a_ptr4]\n"
+ "add a_ptr3, a_ptr3, #0x10\n"
+ "zip1 z18.s, z13.s, z14.s\n"
+ "ld1rqh z5.h, p7/z, [a_ptr5]\n"
+ "zip2 z19.s, z13.s, z14.s\n"
+ "ld1w z13.s, p0/z, [c_ptr2]\n"
+ "trn1 z9.d, z2.d, z3.d\n"
+ "ld1w z14.s, p0/z, [c_ptr3]\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0]]\n"
+ "add a_ptr4, a_ptr4, #0x10\n"
+ "trn1 z10.d, z4.d, z5.d\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "zip1 z20.s, z13.s, z14.s\n"
+ "add a_ptr5, a_ptr5, #0x10\n"
+ "zip2 z21.s, z13.s, z14.s\n"
+ "ld1w z13.s, p1/z, [c_ptr2, #1, MUL VL]\n"
+ "ld1w z14.s, p1/z, [c_ptr3, #1, MUL VL]\n"
+ "zip1 z22.s, z13.s, z14.s\n"
+ "zip2 z23.s, z13.s, z14.s\n"
+ "ld1w z13.s, p0/z, [c_ptr4]\n"
+ "ld1w z14.s, p0/z, [c_ptr5]\n"
+ "zip1 z24.s, z13.s, z14.s\n"
+ "zip2 z25.s, z13.s, z14.s\n"
+ "ld1w z13.s, p1/z, [c_ptr4, #1, MUL VL]\n"
+ "ld1w z14.s, p1/z, [c_ptr5, #1, MUL VL]\n"
+ "zip1 z26.s, z13.s, z14.s\n"
+ "zip2 z27.s, z13.s, z14.s\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #4\n"
+ "cbz %[loops], 2f\n"
+ "3:\n"
+ "trn2 z0.d, z0.d, z1.d\n"
+ "ld1rqh z6.h, p7/z, [a_ptr2]\n"
+ "trn2 z1.d, z2.d, z3.d\n"
+ "ld1rqh z7.h, p7/z, [a_ptr3]\n"
+ "trn2 z2.d, z4.d, z5.d\n"
+ "ld1rqh z4.h, p7/z, [%[a_ptr0]]\n"
+ ".inst 0x6468e590 // bfmmla z16.s, z12.h, z8.h\n"
+ "ld1rqh z5.h, p7/z, [a_ptr1]\n"
+ ".inst 0x6468e5b1 // bfmmla z17.s, z13.h, z8.h\n"
+ "subs %[loops], %[loops], #0x1\n"
+ ".inst 0x6468e5d2 // bfmmla z18.s, z14.h, z8.h\n"
+ "add %[a_ptr0], %[a_ptr0], #0x20\n"
+ ".inst 0x6468e5f3 // bfmmla z19.s, z15.h, z8.h\n"
+ "ld1rqh z8.h, p7/z, [a_ptr4]\n"
+ ".inst 0x6469e594 // bfmmla z20.s, z12.h, z9.h\n"
+ "add a_ptr1, a_ptr1, #0x20\n"
+ ".inst 0x6469e5b5 // bfmmla z21.s, z13.h, z9.h\n"
+ "add a_ptr2, a_ptr2, #0x20\n"
+ ".inst 0x6469e5d6 // bfmmla z22.s, z14.h, z9.h\n"
+ "add a_ptr3, a_ptr3, #0x20\n"
+ ".inst 0x6469e5f7 // bfmmla z23.s, z15.h, z9.h\n"
+ "ld1rqh z9.h, p7/z, [a_ptr5]\n"
+ ".inst 0x646ae598 // bfmmla z24.s, z12.h, z10.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0]]\n"
+ ".inst 0x646ae5b9 // bfmmla z25.s, z13.h, z10.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x646ae5da // bfmmla z26.s, z14.h, z10.h\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x646ae5fb // bfmmla z27.s, z15.h, z10.h\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "trn2 z10.d, z8.d, z9.d\n"
+ "ld1rqh z3.h, p7/z, [a_ptr3, #-0x10]\n"
+ ".inst 0x6460e590 // bfmmla z16.s, z12.h, z0.h\n"
+ "add a_ptr4, a_ptr4, #0x20\n"
+ ".inst 0x6460e5b1 // bfmmla z17.s, z13.h, z0.h\n"
+ "add a_ptr5, a_ptr5, #0x20\n"
+ ".inst 0x6460e5d2 // bfmmla z18.s, z14.h, z0.h\n"
+ ".inst 0x6460e5f3 // bfmmla z19.s, z15.h, z0.h\n"
+ "trn1 z0.d, z4.d, z5.d\n"
+ ".inst 0x6461e594 // bfmmla z20.s, z12.h, z1.h\n"
+ ".inst 0x6461e5b5 // bfmmla z21.s, z13.h, z1.h\n"
+ ".inst 0x6461e5d6 // bfmmla z22.s, z14.h, z1.h\n"
+ ".inst 0x6461e5f7 // bfmmla z23.s, z15.h, z1.h\n"
+ "trn1 z1.d, z6.d, z7.d\n"
+ ".inst 0x6462e598 // bfmmla z24.s, z12.h, z2.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ ".inst 0x6462e5b9 // bfmmla z25.s, z13.h, z2.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ ".inst 0x6462e5da // bfmmla z26.s, z14.h, z2.h\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ ".inst 0x6462e5fb // bfmmla z27.s, z15.h, z2.h\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "trn1 z2.d, z8.d, z9.d\n"
+ "addvl %[b_ptr0], %[b_ptr0], #16\n"
+ "trn2 z9.d, z6.d, z7.d\n"
+ "trn2 z8.d, z4.d, z5.d\n"
+ "ld1rqh z4.h, p7/z, [a_ptr4, #-0x10]\n"
+ ".inst 0x6460e590 // bfmmla z16.s, z12.h, z0.h\n"
+ "ld1rqh z5.h, p7/z, [a_ptr5, #-0x10]\n"
+ ".inst 0x6460e5b1 // bfmmla z17.s, z13.h, z0.h\n"
+ ".inst 0x6460e5d2 // bfmmla z18.s, z14.h, z0.h\n"
+ ".inst 0x6460e5f3 // bfmmla z19.s, z15.h, z0.h\n"
+ "ld1rqh z0.h, p7/z, [%[a_ptr0], #-0x10]\n"
+ ".inst 0x6461e594 // bfmmla z20.s, z12.h, z1.h\n"
+ ".inst 0x6461e5b5 // bfmmla z21.s, z13.h, z1.h\n"
+ ".inst 0x6461e5d6 // bfmmla z22.s, z14.h, z1.h\n"
+ ".inst 0x6461e5f7 // bfmmla z23.s, z15.h, z1.h\n"
+ "ld1rqh z1.h, p7/z, [a_ptr1, #-0x10]\n"
+ ".inst 0x6462e598 // bfmmla z24.s, z12.h, z2.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #-8, MUL VL]\n"
+ ".inst 0x6462e5b9 // bfmmla z25.s, z13.h, z2.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #-7, MUL VL]\n"
+ ".inst 0x6462e5da // bfmmla z26.s, z14.h, z2.h\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #-6, MUL VL]\n"
+ ".inst 0x6462e5fb // bfmmla z27.s, z15.h, z2.h\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #-5, MUL VL]\n"
+ ".inst 0x6468e590 // bfmmla z16.s, z12.h, z8.h\n"
+ "ld1rqh z2.h, p7/z, [a_ptr2, #-0x10]\n"
+ ".inst 0x6468e5b1 // bfmmla z17.s, z13.h, z8.h\n"
+ ".inst 0x6468e5d2 // bfmmla z18.s, z14.h, z8.h\n"
+ ".inst 0x6468e5f3 // bfmmla z19.s, z15.h, z8.h\n"
+ "trn1 z8.d, z0.d, z1.d\n"
+ ".inst 0x6469e594 // bfmmla z20.s, z12.h, z9.h\n"
+ ".inst 0x6469e5b5 // bfmmla z21.s, z13.h, z9.h\n"
+ ".inst 0x6469e5d6 // bfmmla z22.s, z14.h, z9.h\n"
+ ".inst 0x6469e5f7 // bfmmla z23.s, z15.h, z9.h\n"
+ "trn1 z9.d, z2.d, z3.d\n"
+ ".inst 0x646ae598 // bfmmla z24.s, z12.h, z10.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #-4, MUL VL]\n"
+ ".inst 0x646ae5b9 // bfmmla z25.s, z13.h, z10.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #-3, MUL VL]\n"
+ ".inst 0x646ae5da // bfmmla z26.s, z14.h, z10.h\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #-2, MUL VL]\n"
+ ".inst 0x646ae5fb // bfmmla z27.s, z15.h, z10.h\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #-1, MUL VL]\n"
+ "trn1 z10.d, z4.d, z5.d\n"
+ "b.ne 3b\n"
+ "2:\n"
+ "cbz %[regs], 4f\n"
+ "trn2 z0.d, z0.d, z1.d\n"
+ "ld1rqh z6.h, p7/z, [a_ptr2]\n"
+ "trn2 z1.d, z2.d, z3.d\n"
+ "ld1rqh z7.h, p7/z, [a_ptr3]\n"
+ "trn2 z2.d, z4.d, z5.d\n"
+ "ld1rqh z4.h, p7/z, [%[a_ptr0]]\n"
+ ".inst 0x6468e590 // bfmmla z16.s, z12.h, z8.h\n"
+ "ld1rqh z5.h, p7/z, [a_ptr1]\n"
+ ".inst 0x6468e5b1 // bfmmla z17.s, z13.h, z8.h\n"
+ "ld1rqh z3.h, p6/z, [a_ptr3, #0x10]\n"
+ ".inst 0x6468e5d2 // bfmmla z18.s, z14.h, z8.h\n"
+ "addvl a_ptr3, a_ptr3, #2\n"
+ ".inst 0x6468e5f3 // bfmmla z19.s, z15.h, z8.h\n"
+ "ld1rqh z8.h, p7/z, [a_ptr4]\n"
+ ".inst 0x6469e594 // bfmmla z20.s, z12.h, z9.h\n"
+ ".inst 0x6469e5b5 // bfmmla z21.s, z13.h, z9.h\n"
+ ".inst 0x6469e5d6 // bfmmla z22.s, z14.h, z9.h\n"
+ ".inst 0x6469e5f7 // bfmmla z23.s, z15.h, z9.h\n"
+ "ld1rqh z9.h, p7/z, [a_ptr5]\n"
+ ".inst 0x646ae598 // bfmmla z24.s, z12.h, z10.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0]]\n"
+ ".inst 0x646ae5b9 // bfmmla z25.s, z13.h, z10.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x646ae5da // bfmmla z26.s, z14.h, z10.h\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x646ae5fb // bfmmla z27.s, z15.h, z10.h\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "trn2 z10.d, z8.d, z9.d\n"
+ ".inst 0x6460e590 // bfmmla z16.s, z12.h, z0.h\n"
+ ".inst 0x6460e5b1 // bfmmla z17.s, z13.h, z0.h\n"
+ ".inst 0x6460e5d2 // bfmmla z18.s, z14.h, z0.h\n"
+ ".inst 0x6460e5f3 // bfmmla z19.s, z15.h, z0.h\n"
+ "trn1 z0.d, z4.d, z5.d\n"
+ ".inst 0x6461e594 // bfmmla z20.s, z12.h, z1.h\n"
+ ".inst 0x6461e5b5 // bfmmla z21.s, z13.h, z1.h\n"
+ ".inst 0x6461e5d6 // bfmmla z22.s, z14.h, z1.h\n"
+ ".inst 0x6461e5f7 // bfmmla z23.s, z15.h, z1.h\n"
+ "trn1 z1.d, z6.d, z7.d\n"
+ ".inst 0x6462e598 // bfmmla z24.s, z12.h, z2.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ ".inst 0x6462e5b9 // bfmmla z25.s, z13.h, z2.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ ".inst 0x6462e5da // bfmmla z26.s, z14.h, z2.h\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ ".inst 0x6462e5fb // bfmmla z27.s, z15.h, z2.h\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "trn1 z2.d, z8.d, z9.d\n"
+ "addvl %[b_ptr0], %[b_ptr0], #16\n"
+ "trn2 z9.d, z6.d, z7.d\n"
+ "trn2 z8.d, z4.d, z5.d\n"
+ "ld1rqh z4.h, p6/z, [a_ptr4, #0x10]\n"
+ ".inst 0x6460e590 // bfmmla z16.s, z12.h, z0.h\n"
+ "ld1rqh z5.h, p6/z, [a_ptr5, #0x10]\n"
+ ".inst 0x6460e5b1 // bfmmla z17.s, z13.h, z0.h\n"
+ "addvl a_ptr4, a_ptr4, #2\n"
+ ".inst 0x6460e5d2 // bfmmla z18.s, z14.h, z0.h\n"
+ "addvl a_ptr5, a_ptr5, #2\n"
+ ".inst 0x6460e5f3 // bfmmla z19.s, z15.h, z0.h\n"
+ "ld1rqh z0.h, p6/z, [%[a_ptr0], #0x10]\n"
+ ".inst 0x6461e594 // bfmmla z20.s, z12.h, z1.h\n"
+ "addvl %[a_ptr0], %[a_ptr0], #2\n"
+ ".inst 0x6461e5b5 // bfmmla z21.s, z13.h, z1.h\n"
+ ".inst 0x6461e5d6 // bfmmla z22.s, z14.h, z1.h\n"
+ ".inst 0x6461e5f7 // bfmmla z23.s, z15.h, z1.h\n"
+ "ld1rqh z1.h, p6/z, [a_ptr1, #0x10]\n"
+ ".inst 0x6462e598 // bfmmla z24.s, z12.h, z2.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #-8, MUL VL]\n"
+ ".inst 0x6462e5b9 // bfmmla z25.s, z13.h, z2.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #-7, MUL VL]\n"
+ ".inst 0x6462e5da // bfmmla z26.s, z14.h, z2.h\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #-6, MUL VL]\n"
+ ".inst 0x6462e5fb // bfmmla z27.s, z15.h, z2.h\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #-5, MUL VL]\n"
+ ".inst 0x6468e590 // bfmmla z16.s, z12.h, z8.h\n"
+ "ld1rqh z2.h, p6/z, [a_ptr2, #0x10]\n"
+ ".inst 0x6468e5b1 // bfmmla z17.s, z13.h, z8.h\n"
+ "addvl %[b_ptr0], %[b_ptr0], #-4\n"
+ ".inst 0x6468e5d2 // bfmmla z18.s, z14.h, z8.h\n"
+ "addvl a_ptr1, a_ptr1, #2\n"
+ ".inst 0x6468e5f3 // bfmmla z19.s, z15.h, z8.h\n"
+ "addvl a_ptr2, a_ptr2, #2\n"
+ "trn1 z8.d, z0.d, z1.d\n"
+ ".inst 0x6469e594 // bfmmla z20.s, z12.h, z9.h\n"
+ ".inst 0x6469e5b5 // bfmmla z21.s, z13.h, z9.h\n"
+ ".inst 0x6469e5d6 // bfmmla z22.s, z14.h, z9.h\n"
+ ".inst 0x6469e5f7 // bfmmla z23.s, z15.h, z9.h\n"
+ "trn1 z9.d, z2.d, z3.d\n"
+ ".inst 0x646ae598 // bfmmla z24.s, z12.h, z10.h\n"
+ ".inst 0x646ae5b9 // bfmmla z25.s, z13.h, z10.h\n"
+ ".inst 0x646ae5da // bfmmla z26.s, z14.h, z10.h\n"
+ ".inst 0x646ae5fb // bfmmla z27.s, z15.h, z10.h\n"
+ "trn1 z10.d, z4.d, z5.d\n"
+ "cbz %[blocks], 5f\n"
+ "trn2 z0.d, z0.d, z1.d\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0]]\n"
+ "trn2 z1.d, z2.d, z3.d\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "trn2 z2.d, z4.d, z5.d\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "subs %[blocks], %[blocks], #0x1\n"
+ ".inst 0x6468e590 // bfmmla z16.s, z12.h, z8.h\n"
+ ".inst 0x6468e5b1 // bfmmla z17.s, z13.h, z8.h\n"
+ ".inst 0x6468e5d2 // bfmmla z18.s, z14.h, z8.h\n"
+ ".inst 0x6468e5f3 // bfmmla z19.s, z15.h, z8.h\n"
+ ".inst 0x6469e594 // bfmmla z20.s, z12.h, z9.h\n"
+ ".inst 0x6469e5b5 // bfmmla z21.s, z13.h, z9.h\n"
+ ".inst 0x6469e5d6 // bfmmla z22.s, z14.h, z9.h\n"
+ ".inst 0x6469e5f7 // bfmmla z23.s, z15.h, z9.h\n"
+ ".inst 0x646ae598 // bfmmla z24.s, z12.h, z10.h\n"
+ ".inst 0x646ae5b9 // bfmmla z25.s, z13.h, z10.h\n"
+ ".inst 0x646ae5da // bfmmla z26.s, z14.h, z10.h\n"
+ ".inst 0x646ae5fb // bfmmla z27.s, z15.h, z10.h\n"
+ "b.eq 5f\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ ".inst 0x6460e590 // bfmmla z16.s, z12.h, z0.h\n"
+ ".inst 0x6460e5b1 // bfmmla z17.s, z13.h, z0.h\n"
+ ".inst 0x6460e5d2 // bfmmla z18.s, z14.h, z0.h\n"
+ ".inst 0x6460e5f3 // bfmmla z19.s, z15.h, z0.h\n"
+ ".inst 0x6461e594 // bfmmla z20.s, z12.h, z1.h\n"
+ ".inst 0x6461e5b5 // bfmmla z21.s, z13.h, z1.h\n"
+ ".inst 0x6461e5d6 // bfmmla z22.s, z14.h, z1.h\n"
+ ".inst 0x6461e5f7 // bfmmla z23.s, z15.h, z1.h\n"
+ ".inst 0x6462e598 // bfmmla z24.s, z12.h, z2.h\n"
+ ".inst 0x6462e5b9 // bfmmla z25.s, z13.h, z2.h\n"
+ ".inst 0x6462e5da // bfmmla z26.s, z14.h, z2.h\n"
+ ".inst 0x6462e5fb // bfmmla z27.s, z15.h, z2.h\n"
+ "b 5f\n"
+ "4:\n"
+ "trn2 z0.d, z0.d, z1.d\n"
+ "ld1rqh z6.h, p6/z, [a_ptr2]\n"
+ "trn2 z1.d, z2.d, z3.d\n"
+ "ld1rqh z7.h, p6/z, [a_ptr3]\n"
+ "trn2 z2.d, z4.d, z5.d\n"
+ "ld1rqh z4.h, p6/z, [%[a_ptr0]]\n"
+ ".inst 0x6468e590 // bfmmla z16.s, z12.h, z8.h\n"
+ "ld1rqh z5.h, p6/z, [a_ptr1]\n"
+ ".inst 0x6468e5b1 // bfmmla z17.s, z13.h, z8.h\n"
+ "addvl %[a_ptr0], %[a_ptr0], #1\n"
+ ".inst 0x6468e5d2 // bfmmla z18.s, z14.h, z8.h\n"
+ "addvl a_ptr1, a_ptr1, #1\n"
+ ".inst 0x6468e5f3 // bfmmla z19.s, z15.h, z8.h\n"
+ "ld1rqh z8.h, p6/z, [a_ptr4]\n"
+ ".inst 0x6469e594 // bfmmla z20.s, z12.h, z9.h\n"
+ "addvl a_ptr2, a_ptr2, #1\n"
+ ".inst 0x6469e5b5 // bfmmla z21.s, z13.h, z9.h\n"
+ "addvl a_ptr3, a_ptr3, #1\n"
+ ".inst 0x6469e5d6 // bfmmla z22.s, z14.h, z9.h\n"
+ "addvl a_ptr4, a_ptr4, #1\n"
+ ".inst 0x6469e5f7 // bfmmla z23.s, z15.h, z9.h\n"
+ "ld1rqh z9.h, p6/z, [a_ptr5]\n"
+ ".inst 0x646ae598 // bfmmla z24.s, z12.h, z10.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0]]\n"
+ ".inst 0x646ae5b9 // bfmmla z25.s, z13.h, z10.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x646ae5da // bfmmla z26.s, z14.h, z10.h\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x646ae5fb // bfmmla z27.s, z15.h, z10.h\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x6460e590 // bfmmla z16.s, z12.h, z0.h\n"
+ "addvl %[b_ptr0], %[b_ptr0], #4\n"
+ ".inst 0x6460e5b1 // bfmmla z17.s, z13.h, z0.h\n"
+ "addvl a_ptr5, a_ptr5, #1\n"
+ ".inst 0x6460e5d2 // bfmmla z18.s, z14.h, z0.h\n"
+ ".inst 0x6460e5f3 // bfmmla z19.s, z15.h, z0.h\n"
+ "trn1 z0.d, z4.d, z5.d\n"
+ ".inst 0x6461e594 // bfmmla z20.s, z12.h, z1.h\n"
+ ".inst 0x6461e5b5 // bfmmla z21.s, z13.h, z1.h\n"
+ ".inst 0x6461e5d6 // bfmmla z22.s, z14.h, z1.h\n"
+ ".inst 0x6461e5f7 // bfmmla z23.s, z15.h, z1.h\n"
+ "trn1 z1.d, z6.d, z7.d\n"
+ ".inst 0x6462e598 // bfmmla z24.s, z12.h, z2.h\n"
+ ".inst 0x6462e5b9 // bfmmla z25.s, z13.h, z2.h\n"
+ ".inst 0x6462e5da // bfmmla z26.s, z14.h, z2.h\n"
+ ".inst 0x6462e5fb // bfmmla z27.s, z15.h, z2.h\n"
+ "trn1 z2.d, z8.d, z9.d\n"
+ "cbz %[blocks], 5f\n"
+ "trn2 z10.d, z8.d, z9.d\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0]]\n"
+ "trn2 z9.d, z6.d, z7.d\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "trn2 z8.d, z4.d, z5.d\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "subs %[blocks], %[blocks], #0x1\n"
+ ".inst 0x6460e590 // bfmmla z16.s, z12.h, z0.h\n"
+ ".inst 0x6460e5b1 // bfmmla z17.s, z13.h, z0.h\n"
+ ".inst 0x6460e5d2 // bfmmla z18.s, z14.h, z0.h\n"
+ ".inst 0x6460e5f3 // bfmmla z19.s, z15.h, z0.h\n"
+ ".inst 0x6461e594 // bfmmla z20.s, z12.h, z1.h\n"
+ ".inst 0x6461e5b5 // bfmmla z21.s, z13.h, z1.h\n"
+ ".inst 0x6461e5d6 // bfmmla z22.s, z14.h, z1.h\n"
+ ".inst 0x6461e5f7 // bfmmla z23.s, z15.h, z1.h\n"
+ ".inst 0x6462e598 // bfmmla z24.s, z12.h, z2.h\n"
+ ".inst 0x6462e5b9 // bfmmla z25.s, z13.h, z2.h\n"
+ ".inst 0x6462e5da // bfmmla z26.s, z14.h, z2.h\n"
+ ".inst 0x6462e5fb // bfmmla z27.s, z15.h, z2.h\n"
+ "b.eq 5f\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ ".inst 0x6468e590 // bfmmla z16.s, z12.h, z8.h\n"
+ ".inst 0x6468e5b1 // bfmmla z17.s, z13.h, z8.h\n"
+ ".inst 0x6468e5d2 // bfmmla z18.s, z14.h, z8.h\n"
+ ".inst 0x6468e5f3 // bfmmla z19.s, z15.h, z8.h\n"
+ ".inst 0x6469e594 // bfmmla z20.s, z12.h, z9.h\n"
+ ".inst 0x6469e5b5 // bfmmla z21.s, z13.h, z9.h\n"
+ ".inst 0x6469e5d6 // bfmmla z22.s, z14.h, z9.h\n"
+ ".inst 0x6469e5f7 // bfmmla z23.s, z15.h, z9.h\n"
+ ".inst 0x646ae598 // bfmmla z24.s, z12.h, z10.h\n"
+ ".inst 0x646ae5b9 // bfmmla z25.s, z13.h, z10.h\n"
+ ".inst 0x646ae5da // bfmmla z26.s, z14.h, z10.h\n"
+ ".inst 0x646ae5fb // bfmmla z27.s, z15.h, z10.h\n"
+ "5:\n"
+ "ld1rw z14.s, p7/z, [%[minptr]]\n"
+ "ld1rw z15.s, p7/z, [%[maxptr]]\n"
+ "fmax z16.s, p7/m, z16.s, z14.s\n"
+ "fmax z17.s, p7/m, z17.s, z14.s\n"
+ "fmax z18.s, p7/m, z18.s, z14.s\n"
+ "fmax z19.s, p7/m, z19.s, z14.s\n"
+ "fmin z16.s, p7/m, z16.s, z15.s\n"
+ "fmin z17.s, p7/m, z17.s, z15.s\n"
+ "fmin z18.s, p7/m, z18.s, z15.s\n"
+ "fmin z19.s, p7/m, z19.s, z15.s\n"
+ "fmax z20.s, p7/m, z20.s, z14.s\n"
+ "uzp1 z0.s, z16.s, z17.s\n"
+ "uzp2 z1.s, z16.s, z17.s\n"
+ "uzp1 z2.s, z18.s, z19.s\n"
+ "uzp2 z3.s, z18.s, z19.s\n"
+ "st1w z0.s, p0, [%[c_ptr0]]\n"
+ "fmin z20.s, p7/m, z20.s, z15.s\n"
+ "fmax z21.s, p7/m, z21.s, z14.s\n"
+ "fmax z22.s, p7/m, z22.s, z14.s\n"
+ "st1w z1.s, p0, [c_ptr1]\n"
+ "fmax z23.s, p7/m, z23.s, z14.s\n"
+ "fmax z24.s, p7/m, z24.s, z14.s\n"
+ "fmin z21.s, p7/m, z21.s, z15.s\n"
+ "st1w z2.s, p1, [%[c_ptr0], #1, MUL VL]\n"
+ "fmin z22.s, p7/m, z22.s, z15.s\n"
+ "addvl %[c_ptr0], %[c_ptr0], #2\n"
+ "fmin z23.s, p7/m, z23.s, z15.s\n"
+ "st1w z3.s, p1, [c_ptr1, #1, MUL VL]\n"
+ "uzp1 z4.s, z20.s, z21.s\n"
+ "uzp2 z5.s, z20.s, z21.s\n"
+ "fmin z24.s, p7/m, z24.s, z15.s\n"
+ "uzp1 z6.s, z22.s, z23.s\n"
+ "st1w z4.s, p0, [c_ptr2]\n"
+ "uzp2 z7.s, z22.s, z23.s\n"
+ "fmax z25.s, p7/m, z25.s, z14.s\n"
+ "fmax z26.s, p7/m, z26.s, z14.s\n"
+ "st1w z5.s, p0, [c_ptr3]\n"
+ "fmax z27.s, p7/m, z27.s, z14.s\n"
+ "fmin z25.s, p7/m, z25.s, z15.s\n"
+ "st1w z6.s, p1, [c_ptr2, #1, MUL VL]\n"
+ "fmin z26.s, p7/m, z26.s, z15.s\n"
+ "fmin z27.s, p7/m, z27.s, z15.s\n"
+ "uzp1 z8.s, z24.s, z25.s\n"
+ "st1w z7.s, p1, [c_ptr3, #1, MUL VL]\n"
+ "uzp2 z9.s, z24.s, z25.s\n"
+ "uzp1 z10.s, z26.s, z27.s\n"
+ "uzp2 z11.s, z26.s, z27.s\n"
+ "st1w z8.s, p0, [c_ptr4]\n"
+ "st1w z9.s, p0, [c_ptr5]\n"
+ "st1w z10.s, p1, [c_ptr4, #1, MUL VL]\n"
+ "st1w z11.s, p1, [c_ptr5, #1, MUL VL]\n"
+ ".unreq a_ptr1\n"
+ ".unreq a_ptr2\n"
+ ".unreq a_ptr3\n"
+ ".unreq a_ptr4\n"
+ ".unreq a_ptr5\n"
+ ".unreq c_ptr1\n"
+ ".unreq c_ptr2\n"
+ ".unreq c_ptr3\n"
+ ".unreq c_ptr4\n"
+ ".unreq c_ptr5\n"
+ : [a_ptr0] "+r" (a_ptr0), [b_ptr0] "+r" (b_ptr0), [c_ptr0] "+r" (c_ptr0), [loops] "+r" (loops), [regs] "+r" (regs), [temp] "+r" (temp), [blocks] "+r" (blocks)
+ : [width] "r" (width), [append] "r" (static_cast<uint64_t>(append)), [lda] "r" (ldab), [ldc] "r" (ldcb), [biasptr] "r" (biasptr), [minptr] "r" (minptr), [maxptr] "r" (maxptr), [leftovers] "r" (leftovers)
+ : "z0", "z1", "z2", "z3", "z4", "z5", "z6", "z7", "z8", "z9", "z10", "z11", "z12", "z13", "z14", "z15", "z16", "z17", "z18", "z19", "z20", "z21", "z22", "z23", "z24", "z25", "z26", "z27", "z28", "z29", "z30", "z31", "x0", "x1", "x2", "x3", "x4", "x5", "x6", "x7", "x8", "x9", "cc", "memory"
+ );
+ break;
+ case 7:
+ __asm __volatile (
+ "a_ptr1 .req X0\n"
+ "a_ptr2 .req X1\n"
+ "a_ptr3 .req X2\n"
+ "a_ptr4 .req X3\n"
+ "a_ptr5 .req X4\n"
+ "a_ptr6 .req X5\n"
+ "c_ptr1 .req X6\n"
+ "c_ptr2 .req X7\n"
+ "c_ptr3 .req X8\n"
+ "c_ptr4 .req X9\n"
+ "c_ptr5 .req X10\n"
+ "c_ptr6 .req X11\n"
+ "add a_ptr1, %[a_ptr0], %[lda]\n"
+ "add c_ptr1, %[c_ptr0], %[ldc]\n"
+ "add a_ptr2, a_ptr1, %[lda]\n"
+ "add c_ptr2, c_ptr1, %[ldc]\n"
+ "add a_ptr3, a_ptr2, %[lda]\n"
+ "add c_ptr3, c_ptr2, %[ldc]\n"
+ "add a_ptr4, a_ptr3, %[lda]\n"
+ "add c_ptr4, c_ptr3, %[ldc]\n"
+ "add a_ptr5, a_ptr4, %[lda]\n"
+ "add c_ptr5, c_ptr4, %[ldc]\n"
+ "add a_ptr6, a_ptr5, %[lda]\n"
+ "add c_ptr6, c_ptr5, %[ldc]\n"
+ "whilelt p6.h, %[temp], %[leftovers]\n"
+ "whilelt p0.s, %[temp], %[width]\n"
+ "incw %[temp], all, mul #1\n"
+ "ptrue p7.h\n"
+ "whilelt p1.s, %[temp], %[width]\n"
+ "cbnz %[append], 1f\n"
+ "mov z7.h, #0\n"
+ "ld1w z15.s, p0/z, [%[biasptr]]\n"
+ "ld1rqh z0.h, p7/z, [%[a_ptr0]]\n"
+ "add %[a_ptr0], %[a_ptr0], #0x10\n"
+ "ld1rqh z1.h, p7/z, [a_ptr1]\n"
+ "add a_ptr1, a_ptr1, #0x10\n"
+ "zip1 z16.s, z15.s, z15.s\n"
+ "ld1rqh z2.h, p7/z, [a_ptr2]\n"
+ "zip2 z17.s, z15.s, z15.s\n"
+ "ld1w z15.s, p1/z, [%[biasptr], #1, MUL VL]\n"
+ "trn1 z8.d, z0.d, z1.d\n"
+ "ld1rqh z3.h, p7/z, [a_ptr3]\n"
+ "ld1rqh z4.h, p7/z, [a_ptr4]\n"
+ "add a_ptr2, a_ptr2, #0x10\n"
+ "zip1 z18.s, z15.s, z15.s\n"
+ "ld1rqh z5.h, p7/z, [a_ptr5]\n"
+ "zip2 z19.s, z15.s, z15.s\n"
+ "ld1rqh z6.h, p7/z, [a_ptr6]\n"
+ "trn1 z9.d, z2.d, z3.d\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0]]\n"
+ "mov z20.d, z16.d\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "trn1 z10.d, z4.d, z5.d\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "trn1 z11.d, z6.d, z7.d\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "mov z21.d, z17.d\n"
+ "add a_ptr3, a_ptr3, #0x10\n"
+ "mov z22.d, z18.d\n"
+ "add a_ptr4, a_ptr4, #0x10\n"
+ "mov z23.d, z19.d\n"
+ "add a_ptr5, a_ptr5, #0x10\n"
+ "mov z24.d, z16.d\n"
+ "add a_ptr6, a_ptr6, #0x10\n"
+ "mov z25.d, z17.d\n"
+ "addvl %[b_ptr0], %[b_ptr0], #4\n"
+ "mov z26.d, z18.d\n"
+ "mov z27.d, z19.d\n"
+ "mov z28.d, z16.d\n"
+ "mov z29.d, z17.d\n"
+ "mov z30.d, z18.d\n"
+ "mov z31.d, z19.d\n"
+ "cbz %[loops], 2f\n"
+ "b 3f\n"
+ "1:\n"
+ "mov z7.h, #0\n"
+ "ld1w z13.s, p0/z, [%[c_ptr0]]\n"
+ "ld1w z14.s, p0/z, [c_ptr1]\n"
+ "ld1rqh z0.h, p7/z, [%[a_ptr0]]\n"
+ "add %[a_ptr0], %[a_ptr0], #0x10\n"
+ "ld1rqh z1.h, p7/z, [a_ptr1]\n"
+ "add a_ptr1, a_ptr1, #0x10\n"
+ "zip1 z16.s, z13.s, z14.s\n"
+ "ld1rqh z2.h, p7/z, [a_ptr2]\n"
+ "zip2 z17.s, z13.s, z14.s\n"
+ "ld1w z13.s, p1/z, [%[c_ptr0], #1, MUL VL]\n"
+ "trn1 z8.d, z0.d, z1.d\n"
+ "ld1w z14.s, p1/z, [c_ptr1, #1, MUL VL]\n"
+ "ld1rqh z3.h, p7/z, [a_ptr3]\n"
+ "add a_ptr2, a_ptr2, #0x10\n"
+ "ld1rqh z4.h, p7/z, [a_ptr4]\n"
+ "add a_ptr3, a_ptr3, #0x10\n"
+ "zip1 z18.s, z13.s, z14.s\n"
+ "ld1rqh z5.h, p7/z, [a_ptr5]\n"
+ "zip2 z19.s, z13.s, z14.s\n"
+ "ld1w z13.s, p0/z, [c_ptr2]\n"
+ "trn1 z9.d, z2.d, z3.d\n"
+ "ld1w z14.s, p0/z, [c_ptr3]\n"
+ "ld1rqh z6.h, p7/z, [a_ptr6]\n"
+ "add a_ptr4, a_ptr4, #0x10\n"
+ "trn1 z10.d, z4.d, z5.d\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0]]\n"
+ "zip1 z20.s, z13.s, z14.s\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "zip2 z21.s, z13.s, z14.s\n"
+ "ld1w z13.s, p1/z, [c_ptr2, #1, MUL VL]\n"
+ "trn1 z11.d, z6.d, z7.d\n"
+ "ld1w z14.s, p1/z, [c_ptr3, #1, MUL VL]\n"
+ "add a_ptr5, a_ptr5, #0x10\n"
+ "add a_ptr6, a_ptr6, #0x10\n"
+ "zip1 z22.s, z13.s, z14.s\n"
+ "zip2 z23.s, z13.s, z14.s\n"
+ "ld1w z13.s, p0/z, [c_ptr4]\n"
+ "ld1w z14.s, p0/z, [c_ptr5]\n"
+ "zip1 z24.s, z13.s, z14.s\n"
+ "zip2 z25.s, z13.s, z14.s\n"
+ "ld1w z13.s, p1/z, [c_ptr4, #1, MUL VL]\n"
+ "ld1w z14.s, p1/z, [c_ptr5, #1, MUL VL]\n"
+ "zip1 z26.s, z13.s, z14.s\n"
+ "zip2 z27.s, z13.s, z14.s\n"
+ "ld1w z13.s, p0/z, [c_ptr6]\n"
+ "mov z14.s, #0\n"
+ "zip1 z28.s, z13.s, z14.s\n"
+ "zip2 z29.s, z13.s, z14.s\n"
+ "ld1w z13.s, p1/z, [c_ptr6, #1, MUL VL]\n"
+ "mov z14.s, #0\n"
+ "zip1 z30.s, z13.s, z14.s\n"
+ "zip2 z31.s, z13.s, z14.s\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #4\n"
+ "cbz %[loops], 2f\n"
+ "3:\n"
+ "trn2 z0.d, z0.d, z1.d\n"
+ "subs %[loops], %[loops], #0x1\n"
+ "trn2 z1.d, z2.d, z3.d\n"
+ "trn2 z2.d, z4.d, z5.d\n"
+ "ld1rqh z4.h, p7/z, [%[a_ptr0]]\n"
+ "trn2 z3.d, z6.d, z7.d\n"
+ "ld1rqh z5.h, p7/z, [a_ptr1]\n"
+ ".inst 0x6468e590 // bfmmla z16.s, z12.h, z8.h\n"
+ "ld1rqh z6.h, p7/z, [a_ptr2]\n"
+ ".inst 0x6468e5b1 // bfmmla z17.s, z13.h, z8.h\n"
+ "ld1rqh z7.h, p7/z, [a_ptr3]\n"
+ ".inst 0x6468e5d2 // bfmmla z18.s, z14.h, z8.h\n"
+ "add %[a_ptr0], %[a_ptr0], #0x20\n"
+ ".inst 0x6468e5f3 // bfmmla z19.s, z15.h, z8.h\n"
+ "ld1rqh z8.h, p7/z, [a_ptr4]\n"
+ ".inst 0x6469e594 // bfmmla z20.s, z12.h, z9.h\n"
+ "add a_ptr1, a_ptr1, #0x20\n"
+ ".inst 0x6469e5b5 // bfmmla z21.s, z13.h, z9.h\n"
+ "add a_ptr2, a_ptr2, #0x20\n"
+ ".inst 0x6469e5d6 // bfmmla z22.s, z14.h, z9.h\n"
+ "add a_ptr3, a_ptr3, #0x20\n"
+ ".inst 0x6469e5f7 // bfmmla z23.s, z15.h, z9.h\n"
+ "ld1rqh z9.h, p7/z, [a_ptr5]\n"
+ ".inst 0x646ae598 // bfmmla z24.s, z12.h, z10.h\n"
+ "add a_ptr4, a_ptr4, #0x20\n"
+ ".inst 0x646ae5b9 // bfmmla z25.s, z13.h, z10.h\n"
+ "add a_ptr5, a_ptr5, #0x20\n"
+ ".inst 0x646ae5da // bfmmla z26.s, z14.h, z10.h\n"
+ ".inst 0x646ae5fb // bfmmla z27.s, z15.h, z10.h\n"
+ "ld1rqh z10.h, p7/z, [a_ptr6]\n"
+ ".inst 0x646be59c // bfmmla z28.s, z12.h, z11.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0]]\n"
+ ".inst 0x646be5bd // bfmmla z29.s, z13.h, z11.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x646be5de // bfmmla z30.s, z14.h, z11.h\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x646be5ff // bfmmla z31.s, z15.h, z11.h\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "mov z11.h, #0\n"
+ "add a_ptr6, a_ptr6, #0x20\n"
+ ".inst 0x6460e590 // bfmmla z16.s, z12.h, z0.h\n"
+ ".inst 0x6460e5b1 // bfmmla z17.s, z13.h, z0.h\n"
+ ".inst 0x6460e5d2 // bfmmla z18.s, z14.h, z0.h\n"
+ ".inst 0x6460e5f3 // bfmmla z19.s, z15.h, z0.h\n"
+ "trn1 z0.d, z4.d, z5.d\n"
+ ".inst 0x6461e594 // bfmmla z20.s, z12.h, z1.h\n"
+ ".inst 0x6461e5b5 // bfmmla z21.s, z13.h, z1.h\n"
+ ".inst 0x6461e5d6 // bfmmla z22.s, z14.h, z1.h\n"
+ ".inst 0x6461e5f7 // bfmmla z23.s, z15.h, z1.h\n"
+ "trn1 z1.d, z6.d, z7.d\n"
+ ".inst 0x6462e598 // bfmmla z24.s, z12.h, z2.h\n"
+ ".inst 0x6462e5b9 // bfmmla z25.s, z13.h, z2.h\n"
+ ".inst 0x6462e5da // bfmmla z26.s, z14.h, z2.h\n"
+ ".inst 0x6462e5fb // bfmmla z27.s, z15.h, z2.h\n"
+ "trn1 z2.d, z8.d, z9.d\n"
+ ".inst 0x6463e59c // bfmmla z28.s, z12.h, z3.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ ".inst 0x6463e5bd // bfmmla z29.s, z13.h, z3.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ ".inst 0x6463e5de // bfmmla z30.s, z14.h, z3.h\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ ".inst 0x6463e5ff // bfmmla z31.s, z15.h, z3.h\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "trn1 z3.d, z10.d, z11.d\n"
+ "addvl %[b_ptr0], %[b_ptr0], #16\n"
+ "trn2 z11.d, z10.d, z11.d\n"
+ "trn2 z10.d, z8.d, z9.d\n"
+ "trn2 z9.d, z6.d, z7.d\n"
+ "ld1rqh z6.h, p7/z, [a_ptr6, #-0x10]\n"
+ "trn2 z8.d, z4.d, z5.d\n"
+ "ld1rqh z4.h, p7/z, [a_ptr4, #-0x10]\n"
+ ".inst 0x6460e590 // bfmmla z16.s, z12.h, z0.h\n"
+ "ld1rqh z5.h, p7/z, [a_ptr5, #-0x10]\n"
+ ".inst 0x6460e5b1 // bfmmla z17.s, z13.h, z0.h\n"
+ ".inst 0x6460e5d2 // bfmmla z18.s, z14.h, z0.h\n"
+ ".inst 0x6460e5f3 // bfmmla z19.s, z15.h, z0.h\n"
+ "ld1rqh z0.h, p7/z, [%[a_ptr0], #-0x10]\n"
+ ".inst 0x6461e594 // bfmmla z20.s, z12.h, z1.h\n"
+ ".inst 0x6461e5b5 // bfmmla z21.s, z13.h, z1.h\n"
+ ".inst 0x6461e5d6 // bfmmla z22.s, z14.h, z1.h\n"
+ ".inst 0x6461e5f7 // bfmmla z23.s, z15.h, z1.h\n"
+ "ld1rqh z1.h, p7/z, [a_ptr1, #-0x10]\n"
+ ".inst 0x6462e598 // bfmmla z24.s, z12.h, z2.h\n"
+ ".inst 0x6462e5b9 // bfmmla z25.s, z13.h, z2.h\n"
+ ".inst 0x6462e5da // bfmmla z26.s, z14.h, z2.h\n"
+ ".inst 0x6462e5fb // bfmmla z27.s, z15.h, z2.h\n"
+ "ld1rqh z2.h, p7/z, [a_ptr2, #-0x10]\n"
+ ".inst 0x6463e59c // bfmmla z28.s, z12.h, z3.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #-8, MUL VL]\n"
+ ".inst 0x6463e5bd // bfmmla z29.s, z13.h, z3.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #-7, MUL VL]\n"
+ ".inst 0x6463e5de // bfmmla z30.s, z14.h, z3.h\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #-6, MUL VL]\n"
+ ".inst 0x6463e5ff // bfmmla z31.s, z15.h, z3.h\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #-5, MUL VL]\n"
+ "mov z7.h, #0\n"
+ "ld1rqh z3.h, p7/z, [a_ptr3, #-0x10]\n"
+ ".inst 0x6468e590 // bfmmla z16.s, z12.h, z8.h\n"
+ ".inst 0x6468e5b1 // bfmmla z17.s, z13.h, z8.h\n"
+ ".inst 0x6468e5d2 // bfmmla z18.s, z14.h, z8.h\n"
+ ".inst 0x6468e5f3 // bfmmla z19.s, z15.h, z8.h\n"
+ "trn1 z8.d, z0.d, z1.d\n"
+ ".inst 0x6469e594 // bfmmla z20.s, z12.h, z9.h\n"
+ ".inst 0x6469e5b5 // bfmmla z21.s, z13.h, z9.h\n"
+ ".inst 0x6469e5d6 // bfmmla z22.s, z14.h, z9.h\n"
+ ".inst 0x6469e5f7 // bfmmla z23.s, z15.h, z9.h\n"
+ "trn1 z9.d, z2.d, z3.d\n"
+ ".inst 0x646ae598 // bfmmla z24.s, z12.h, z10.h\n"
+ ".inst 0x646ae5b9 // bfmmla z25.s, z13.h, z10.h\n"
+ ".inst 0x646ae5da // bfmmla z26.s, z14.h, z10.h\n"
+ ".inst 0x646ae5fb // bfmmla z27.s, z15.h, z10.h\n"
+ "trn1 z10.d, z4.d, z5.d\n"
+ ".inst 0x646be59c // bfmmla z28.s, z12.h, z11.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #-4, MUL VL]\n"
+ ".inst 0x646be5bd // bfmmla z29.s, z13.h, z11.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #-3, MUL VL]\n"
+ ".inst 0x646be5de // bfmmla z30.s, z14.h, z11.h\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #-2, MUL VL]\n"
+ ".inst 0x646be5ff // bfmmla z31.s, z15.h, z11.h\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #-1, MUL VL]\n"
+ "trn1 z11.d, z6.d, z7.d\n"
+ "b.ne 3b\n"
+ "2:\n"
+ "cbz %[regs], 4f\n"
+ "trn2 z0.d, z0.d, z1.d\n"
+ "trn2 z1.d, z2.d, z3.d\n"
+ "trn2 z2.d, z4.d, z5.d\n"
+ "ld1rqh z4.h, p7/z, [%[a_ptr0]]\n"
+ "trn2 z3.d, z6.d, z7.d\n"
+ "ld1rqh z5.h, p7/z, [a_ptr1]\n"
+ ".inst 0x6468e590 // bfmmla z16.s, z12.h, z8.h\n"
+ "ld1rqh z6.h, p7/z, [a_ptr2]\n"
+ ".inst 0x6468e5b1 // bfmmla z17.s, z13.h, z8.h\n"
+ "ld1rqh z7.h, p7/z, [a_ptr3]\n"
+ ".inst 0x6468e5d2 // bfmmla z18.s, z14.h, z8.h\n"
+ ".inst 0x6468e5f3 // bfmmla z19.s, z15.h, z8.h\n"
+ "ld1rqh z8.h, p7/z, [a_ptr4]\n"
+ ".inst 0x6469e594 // bfmmla z20.s, z12.h, z9.h\n"
+ ".inst 0x6469e5b5 // bfmmla z21.s, z13.h, z9.h\n"
+ ".inst 0x6469e5d6 // bfmmla z22.s, z14.h, z9.h\n"
+ ".inst 0x6469e5f7 // bfmmla z23.s, z15.h, z9.h\n"
+ "ld1rqh z9.h, p7/z, [a_ptr5]\n"
+ ".inst 0x646ae598 // bfmmla z24.s, z12.h, z10.h\n"
+ ".inst 0x646ae5b9 // bfmmla z25.s, z13.h, z10.h\n"
+ ".inst 0x646ae5da // bfmmla z26.s, z14.h, z10.h\n"
+ ".inst 0x646ae5fb // bfmmla z27.s, z15.h, z10.h\n"
+ "ld1rqh z10.h, p7/z, [a_ptr6]\n"
+ ".inst 0x646be59c // bfmmla z28.s, z12.h, z11.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0]]\n"
+ ".inst 0x646be5bd // bfmmla z29.s, z13.h, z11.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x646be5de // bfmmla z30.s, z14.h, z11.h\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x646be5ff // bfmmla z31.s, z15.h, z11.h\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "mov z11.h, #0\n"
+ ".inst 0x6460e590 // bfmmla z16.s, z12.h, z0.h\n"
+ ".inst 0x6460e5b1 // bfmmla z17.s, z13.h, z0.h\n"
+ ".inst 0x6460e5d2 // bfmmla z18.s, z14.h, z0.h\n"
+ ".inst 0x6460e5f3 // bfmmla z19.s, z15.h, z0.h\n"
+ "trn1 z0.d, z4.d, z5.d\n"
+ ".inst 0x6461e594 // bfmmla z20.s, z12.h, z1.h\n"
+ ".inst 0x6461e5b5 // bfmmla z21.s, z13.h, z1.h\n"
+ ".inst 0x6461e5d6 // bfmmla z22.s, z14.h, z1.h\n"
+ ".inst 0x6461e5f7 // bfmmla z23.s, z15.h, z1.h\n"
+ "trn1 z1.d, z6.d, z7.d\n"
+ ".inst 0x6462e598 // bfmmla z24.s, z12.h, z2.h\n"
+ ".inst 0x6462e5b9 // bfmmla z25.s, z13.h, z2.h\n"
+ ".inst 0x6462e5da // bfmmla z26.s, z14.h, z2.h\n"
+ ".inst 0x6462e5fb // bfmmla z27.s, z15.h, z2.h\n"
+ "trn1 z2.d, z8.d, z9.d\n"
+ ".inst 0x6463e59c // bfmmla z28.s, z12.h, z3.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ ".inst 0x6463e5bd // bfmmla z29.s, z13.h, z3.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ ".inst 0x6463e5de // bfmmla z30.s, z14.h, z3.h\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ ".inst 0x6463e5ff // bfmmla z31.s, z15.h, z3.h\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "trn1 z3.d, z10.d, z11.d\n"
+ "addvl %[b_ptr0], %[b_ptr0], #16\n"
+ "trn2 z11.d, z10.d, z11.d\n"
+ "trn2 z10.d, z8.d, z9.d\n"
+ "trn2 z9.d, z6.d, z7.d\n"
+ "ld1rqh z6.h, p6/z, [a_ptr6, #0x10]\n"
+ "trn2 z8.d, z4.d, z5.d\n"
+ "ld1rqh z4.h, p6/z, [a_ptr4, #0x10]\n"
+ ".inst 0x6460e590 // bfmmla z16.s, z12.h, z0.h\n"
+ "ld1rqh z5.h, p6/z, [a_ptr5, #0x10]\n"
+ ".inst 0x6460e5b1 // bfmmla z17.s, z13.h, z0.h\n"
+ "addvl a_ptr4, a_ptr4, #2\n"
+ ".inst 0x6460e5d2 // bfmmla z18.s, z14.h, z0.h\n"
+ "addvl a_ptr5, a_ptr5, #2\n"
+ ".inst 0x6460e5f3 // bfmmla z19.s, z15.h, z0.h\n"
+ "ld1rqh z0.h, p6/z, [%[a_ptr0], #0x10]\n"
+ ".inst 0x6461e594 // bfmmla z20.s, z12.h, z1.h\n"
+ "addvl %[a_ptr0], %[a_ptr0], #2\n"
+ ".inst 0x6461e5b5 // bfmmla z21.s, z13.h, z1.h\n"
+ "addvl a_ptr6, a_ptr6, #2\n"
+ ".inst 0x6461e5d6 // bfmmla z22.s, z14.h, z1.h\n"
+ ".inst 0x6461e5f7 // bfmmla z23.s, z15.h, z1.h\n"
+ "ld1rqh z1.h, p6/z, [a_ptr1, #0x10]\n"
+ ".inst 0x6462e598 // bfmmla z24.s, z12.h, z2.h\n"
+ "addvl a_ptr1, a_ptr1, #2\n"
+ ".inst 0x6462e5b9 // bfmmla z25.s, z13.h, z2.h\n"
+ ".inst 0x6462e5da // bfmmla z26.s, z14.h, z2.h\n"
+ ".inst 0x6462e5fb // bfmmla z27.s, z15.h, z2.h\n"
+ "ld1rqh z2.h, p6/z, [a_ptr2, #0x10]\n"
+ ".inst 0x6463e59c // bfmmla z28.s, z12.h, z3.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #-8, MUL VL]\n"
+ ".inst 0x6463e5bd // bfmmla z29.s, z13.h, z3.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #-7, MUL VL]\n"
+ ".inst 0x6463e5de // bfmmla z30.s, z14.h, z3.h\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #-6, MUL VL]\n"
+ ".inst 0x6463e5ff // bfmmla z31.s, z15.h, z3.h\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #-5, MUL VL]\n"
+ "mov z7.h, #0\n"
+ "ld1rqh z3.h, p6/z, [a_ptr3, #0x10]\n"
+ ".inst 0x6468e590 // bfmmla z16.s, z12.h, z8.h\n"
+ "addvl %[b_ptr0], %[b_ptr0], #-4\n"
+ ".inst 0x6468e5b1 // bfmmla z17.s, z13.h, z8.h\n"
+ "addvl a_ptr2, a_ptr2, #2\n"
+ ".inst 0x6468e5d2 // bfmmla z18.s, z14.h, z8.h\n"
+ "addvl a_ptr3, a_ptr3, #2\n"
+ ".inst 0x6468e5f3 // bfmmla z19.s, z15.h, z8.h\n"
+ "trn1 z8.d, z0.d, z1.d\n"
+ ".inst 0x6469e594 // bfmmla z20.s, z12.h, z9.h\n"
+ ".inst 0x6469e5b5 // bfmmla z21.s, z13.h, z9.h\n"
+ ".inst 0x6469e5d6 // bfmmla z22.s, z14.h, z9.h\n"
+ ".inst 0x6469e5f7 // bfmmla z23.s, z15.h, z9.h\n"
+ "trn1 z9.d, z2.d, z3.d\n"
+ ".inst 0x646ae598 // bfmmla z24.s, z12.h, z10.h\n"
+ ".inst 0x646ae5b9 // bfmmla z25.s, z13.h, z10.h\n"
+ ".inst 0x646ae5da // bfmmla z26.s, z14.h, z10.h\n"
+ ".inst 0x646ae5fb // bfmmla z27.s, z15.h, z10.h\n"
+ "trn1 z10.d, z4.d, z5.d\n"
+ ".inst 0x646be59c // bfmmla z28.s, z12.h, z11.h\n"
+ ".inst 0x646be5bd // bfmmla z29.s, z13.h, z11.h\n"
+ ".inst 0x646be5de // bfmmla z30.s, z14.h, z11.h\n"
+ ".inst 0x646be5ff // bfmmla z31.s, z15.h, z11.h\n"
+ "trn1 z11.d, z6.d, z7.d\n"
+ "cbz %[blocks], 5f\n"
+ "trn2 z0.d, z0.d, z1.d\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0]]\n"
+ "trn2 z1.d, z2.d, z3.d\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "trn2 z2.d, z4.d, z5.d\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "trn2 z3.d, z6.d, z7.d\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x6468e590 // bfmmla z16.s, z12.h, z8.h\n"
+ "subs %[blocks], %[blocks], #0x1\n"
+ ".inst 0x6468e5b1 // bfmmla z17.s, z13.h, z8.h\n"
+ ".inst 0x6468e5d2 // bfmmla z18.s, z14.h, z8.h\n"
+ ".inst 0x6468e5f3 // bfmmla z19.s, z15.h, z8.h\n"
+ ".inst 0x6469e594 // bfmmla z20.s, z12.h, z9.h\n"
+ ".inst 0x6469e5b5 // bfmmla z21.s, z13.h, z9.h\n"
+ ".inst 0x6469e5d6 // bfmmla z22.s, z14.h, z9.h\n"
+ ".inst 0x6469e5f7 // bfmmla z23.s, z15.h, z9.h\n"
+ ".inst 0x646ae598 // bfmmla z24.s, z12.h, z10.h\n"
+ ".inst 0x646ae5b9 // bfmmla z25.s, z13.h, z10.h\n"
+ ".inst 0x646ae5da // bfmmla z26.s, z14.h, z10.h\n"
+ ".inst 0x646ae5fb // bfmmla z27.s, z15.h, z10.h\n"
+ ".inst 0x646be59c // bfmmla z28.s, z12.h, z11.h\n"
+ ".inst 0x646be5bd // bfmmla z29.s, z13.h, z11.h\n"
+ ".inst 0x646be5de // bfmmla z30.s, z14.h, z11.h\n"
+ ".inst 0x646be5ff // bfmmla z31.s, z15.h, z11.h\n"
+ "b.eq 5f\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ ".inst 0x6460e590 // bfmmla z16.s, z12.h, z0.h\n"
+ ".inst 0x6460e5b1 // bfmmla z17.s, z13.h, z0.h\n"
+ ".inst 0x6460e5d2 // bfmmla z18.s, z14.h, z0.h\n"
+ ".inst 0x6460e5f3 // bfmmla z19.s, z15.h, z0.h\n"
+ ".inst 0x6461e594 // bfmmla z20.s, z12.h, z1.h\n"
+ ".inst 0x6461e5b5 // bfmmla z21.s, z13.h, z1.h\n"
+ ".inst 0x6461e5d6 // bfmmla z22.s, z14.h, z1.h\n"
+ ".inst 0x6461e5f7 // bfmmla z23.s, z15.h, z1.h\n"
+ ".inst 0x6462e598 // bfmmla z24.s, z12.h, z2.h\n"
+ ".inst 0x6462e5b9 // bfmmla z25.s, z13.h, z2.h\n"
+ ".inst 0x6462e5da // bfmmla z26.s, z14.h, z2.h\n"
+ ".inst 0x6462e5fb // bfmmla z27.s, z15.h, z2.h\n"
+ ".inst 0x6463e59c // bfmmla z28.s, z12.h, z3.h\n"
+ ".inst 0x6463e5bd // bfmmla z29.s, z13.h, z3.h\n"
+ ".inst 0x6463e5de // bfmmla z30.s, z14.h, z3.h\n"
+ ".inst 0x6463e5ff // bfmmla z31.s, z15.h, z3.h\n"
+ "b 5f\n"
+ "4:\n"
+ "trn2 z0.d, z0.d, z1.d\n"
+ "trn2 z1.d, z2.d, z3.d\n"
+ "trn2 z2.d, z4.d, z5.d\n"
+ "ld1rqh z4.h, p6/z, [%[a_ptr0]]\n"
+ "trn2 z3.d, z6.d, z7.d\n"
+ "ld1rqh z5.h, p6/z, [a_ptr1]\n"
+ ".inst 0x6468e590 // bfmmla z16.s, z12.h, z8.h\n"
+ "ld1rqh z6.h, p6/z, [a_ptr2]\n"
+ ".inst 0x6468e5b1 // bfmmla z17.s, z13.h, z8.h\n"
+ "ld1rqh z7.h, p6/z, [a_ptr3]\n"
+ ".inst 0x6468e5d2 // bfmmla z18.s, z14.h, z8.h\n"
+ "addvl %[a_ptr0], %[a_ptr0], #1\n"
+ ".inst 0x6468e5f3 // bfmmla z19.s, z15.h, z8.h\n"
+ "ld1rqh z8.h, p6/z, [a_ptr4]\n"
+ ".inst 0x6469e594 // bfmmla z20.s, z12.h, z9.h\n"
+ "addvl a_ptr1, a_ptr1, #1\n"
+ ".inst 0x6469e5b5 // bfmmla z21.s, z13.h, z9.h\n"
+ "addvl a_ptr2, a_ptr2, #1\n"
+ ".inst 0x6469e5d6 // bfmmla z22.s, z14.h, z9.h\n"
+ "addvl a_ptr3, a_ptr3, #1\n"
+ ".inst 0x6469e5f7 // bfmmla z23.s, z15.h, z9.h\n"
+ "ld1rqh z9.h, p6/z, [a_ptr5]\n"
+ ".inst 0x646ae598 // bfmmla z24.s, z12.h, z10.h\n"
+ "addvl a_ptr4, a_ptr4, #1\n"
+ ".inst 0x646ae5b9 // bfmmla z25.s, z13.h, z10.h\n"
+ "addvl a_ptr5, a_ptr5, #1\n"
+ ".inst 0x646ae5da // bfmmla z26.s, z14.h, z10.h\n"
+ ".inst 0x646ae5fb // bfmmla z27.s, z15.h, z10.h\n"
+ "ld1rqh z10.h, p6/z, [a_ptr6]\n"
+ ".inst 0x646be59c // bfmmla z28.s, z12.h, z11.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0]]\n"
+ ".inst 0x646be5bd // bfmmla z29.s, z13.h, z11.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x646be5de // bfmmla z30.s, z14.h, z11.h\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x646be5ff // bfmmla z31.s, z15.h, z11.h\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "mov z11.h, #0\n"
+ "addvl %[b_ptr0], %[b_ptr0], #4\n"
+ ".inst 0x6460e590 // bfmmla z16.s, z12.h, z0.h\n"
+ "addvl a_ptr6, a_ptr6, #1\n"
+ ".inst 0x6460e5b1 // bfmmla z17.s, z13.h, z0.h\n"
+ ".inst 0x6460e5d2 // bfmmla z18.s, z14.h, z0.h\n"
+ ".inst 0x6460e5f3 // bfmmla z19.s, z15.h, z0.h\n"
+ "trn1 z0.d, z4.d, z5.d\n"
+ ".inst 0x6461e594 // bfmmla z20.s, z12.h, z1.h\n"
+ ".inst 0x6461e5b5 // bfmmla z21.s, z13.h, z1.h\n"
+ ".inst 0x6461e5d6 // bfmmla z22.s, z14.h, z1.h\n"
+ ".inst 0x6461e5f7 // bfmmla z23.s, z15.h, z1.h\n"
+ "trn1 z1.d, z6.d, z7.d\n"
+ ".inst 0x6462e598 // bfmmla z24.s, z12.h, z2.h\n"
+ ".inst 0x6462e5b9 // bfmmla z25.s, z13.h, z2.h\n"
+ ".inst 0x6462e5da // bfmmla z26.s, z14.h, z2.h\n"
+ ".inst 0x6462e5fb // bfmmla z27.s, z15.h, z2.h\n"
+ "trn1 z2.d, z8.d, z9.d\n"
+ ".inst 0x6463e59c // bfmmla z28.s, z12.h, z3.h\n"
+ ".inst 0x6463e5bd // bfmmla z29.s, z13.h, z3.h\n"
+ ".inst 0x6463e5de // bfmmla z30.s, z14.h, z3.h\n"
+ ".inst 0x6463e5ff // bfmmla z31.s, z15.h, z3.h\n"
+ "trn1 z3.d, z10.d, z11.d\n"
+ "cbz %[blocks], 5f\n"
+ "trn2 z11.d, z10.d, z11.d\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0]]\n"
+ "trn2 z10.d, z8.d, z9.d\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "trn2 z9.d, z6.d, z7.d\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "trn2 z8.d, z4.d, z5.d\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x6460e590 // bfmmla z16.s, z12.h, z0.h\n"
+ "subs %[blocks], %[blocks], #0x1\n"
+ ".inst 0x6460e5b1 // bfmmla z17.s, z13.h, z0.h\n"
+ ".inst 0x6460e5d2 // bfmmla z18.s, z14.h, z0.h\n"
+ ".inst 0x6460e5f3 // bfmmla z19.s, z15.h, z0.h\n"
+ ".inst 0x6461e594 // bfmmla z20.s, z12.h, z1.h\n"
+ ".inst 0x6461e5b5 // bfmmla z21.s, z13.h, z1.h\n"
+ ".inst 0x6461e5d6 // bfmmla z22.s, z14.h, z1.h\n"
+ ".inst 0x6461e5f7 // bfmmla z23.s, z15.h, z1.h\n"
+ ".inst 0x6462e598 // bfmmla z24.s, z12.h, z2.h\n"
+ ".inst 0x6462e5b9 // bfmmla z25.s, z13.h, z2.h\n"
+ ".inst 0x6462e5da // bfmmla z26.s, z14.h, z2.h\n"
+ ".inst 0x6462e5fb // bfmmla z27.s, z15.h, z2.h\n"
+ ".inst 0x6463e59c // bfmmla z28.s, z12.h, z3.h\n"
+ ".inst 0x6463e5bd // bfmmla z29.s, z13.h, z3.h\n"
+ ".inst 0x6463e5de // bfmmla z30.s, z14.h, z3.h\n"
+ ".inst 0x6463e5ff // bfmmla z31.s, z15.h, z3.h\n"
+ "b.eq 5f\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ ".inst 0x6468e590 // bfmmla z16.s, z12.h, z8.h\n"
+ ".inst 0x6468e5b1 // bfmmla z17.s, z13.h, z8.h\n"
+ ".inst 0x6468e5d2 // bfmmla z18.s, z14.h, z8.h\n"
+ ".inst 0x6468e5f3 // bfmmla z19.s, z15.h, z8.h\n"
+ ".inst 0x6469e594 // bfmmla z20.s, z12.h, z9.h\n"
+ ".inst 0x6469e5b5 // bfmmla z21.s, z13.h, z9.h\n"
+ ".inst 0x6469e5d6 // bfmmla z22.s, z14.h, z9.h\n"
+ ".inst 0x6469e5f7 // bfmmla z23.s, z15.h, z9.h\n"
+ ".inst 0x646ae598 // bfmmla z24.s, z12.h, z10.h\n"
+ ".inst 0x646ae5b9 // bfmmla z25.s, z13.h, z10.h\n"
+ ".inst 0x646ae5da // bfmmla z26.s, z14.h, z10.h\n"
+ ".inst 0x646ae5fb // bfmmla z27.s, z15.h, z10.h\n"
+ ".inst 0x646be59c // bfmmla z28.s, z12.h, z11.h\n"
+ ".inst 0x646be5bd // bfmmla z29.s, z13.h, z11.h\n"
+ ".inst 0x646be5de // bfmmla z30.s, z14.h, z11.h\n"
+ ".inst 0x646be5ff // bfmmla z31.s, z15.h, z11.h\n"
+ "5:\n"
+ "ld1rw z14.s, p7/z, [%[minptr]]\n"
+ "ld1rw z15.s, p7/z, [%[maxptr]]\n"
+ "fmax z16.s, p7/m, z16.s, z14.s\n"
+ "fmax z17.s, p7/m, z17.s, z14.s\n"
+ "fmax z18.s, p7/m, z18.s, z14.s\n"
+ "fmax z19.s, p7/m, z19.s, z14.s\n"
+ "fmin z16.s, p7/m, z16.s, z15.s\n"
+ "fmin z17.s, p7/m, z17.s, z15.s\n"
+ "fmin z18.s, p7/m, z18.s, z15.s\n"
+ "fmin z19.s, p7/m, z19.s, z15.s\n"
+ "fmax z20.s, p7/m, z20.s, z14.s\n"
+ "uzp1 z0.s, z16.s, z17.s\n"
+ "uzp2 z1.s, z16.s, z17.s\n"
+ "uzp1 z2.s, z18.s, z19.s\n"
+ "uzp2 z3.s, z18.s, z19.s\n"
+ "st1w z0.s, p0, [%[c_ptr0]]\n"
+ "fmin z20.s, p7/m, z20.s, z15.s\n"
+ "fmax z21.s, p7/m, z21.s, z14.s\n"
+ "fmax z22.s, p7/m, z22.s, z14.s\n"
+ "st1w z1.s, p0, [c_ptr1]\n"
+ "fmax z23.s, p7/m, z23.s, z14.s\n"
+ "fmax z24.s, p7/m, z24.s, z14.s\n"
+ "fmin z21.s, p7/m, z21.s, z15.s\n"
+ "st1w z2.s, p1, [%[c_ptr0], #1, MUL VL]\n"
+ "fmin z22.s, p7/m, z22.s, z15.s\n"
+ "addvl %[c_ptr0], %[c_ptr0], #2\n"
+ "fmin z23.s, p7/m, z23.s, z15.s\n"
+ "st1w z3.s, p1, [c_ptr1, #1, MUL VL]\n"
+ "uzp1 z4.s, z20.s, z21.s\n"
+ "uzp2 z5.s, z20.s, z21.s\n"
+ "fmin z24.s, p7/m, z24.s, z15.s\n"
+ "uzp1 z6.s, z22.s, z23.s\n"
+ "st1w z4.s, p0, [c_ptr2]\n"
+ "uzp2 z7.s, z22.s, z23.s\n"
+ "fmax z25.s, p7/m, z25.s, z14.s\n"
+ "fmax z26.s, p7/m, z26.s, z14.s\n"
+ "st1w z5.s, p0, [c_ptr3]\n"
+ "fmax z27.s, p7/m, z27.s, z14.s\n"
+ "fmax z28.s, p7/m, z28.s, z14.s\n"
+ "fmin z25.s, p7/m, z25.s, z15.s\n"
+ "st1w z6.s, p1, [c_ptr2, #1, MUL VL]\n"
+ "fmin z26.s, p7/m, z26.s, z15.s\n"
+ "fmin z27.s, p7/m, z27.s, z15.s\n"
+ "fmin z28.s, p7/m, z28.s, z15.s\n"
+ "st1w z7.s, p1, [c_ptr3, #1, MUL VL]\n"
+ "uzp1 z8.s, z24.s, z25.s\n"
+ "uzp2 z9.s, z24.s, z25.s\n"
+ "uzp1 z10.s, z26.s, z27.s\n"
+ "uzp2 z11.s, z26.s, z27.s\n"
+ "st1w z8.s, p0, [c_ptr4]\n"
+ "fmax z29.s, p7/m, z29.s, z14.s\n"
+ "fmax z30.s, p7/m, z30.s, z14.s\n"
+ "fmax z31.s, p7/m, z31.s, z14.s\n"
+ "st1w z9.s, p0, [c_ptr5]\n"
+ "fmin z29.s, p7/m, z29.s, z15.s\n"
+ "fmin z30.s, p7/m, z30.s, z15.s\n"
+ "st1w z10.s, p1, [c_ptr4, #1, MUL VL]\n"
+ "fmin z31.s, p7/m, z31.s, z15.s\n"
+ "uzp1 z12.s, z28.s, z29.s\n"
+ "st1w z11.s, p1, [c_ptr5, #1, MUL VL]\n"
+ "uzp1 z13.s, z30.s, z31.s\n"
+ "st1w z12.s, p0, [c_ptr6]\n"
+ "st1w z13.s, p1, [c_ptr6, #1, MUL VL]\n"
+ ".unreq a_ptr1\n"
+ ".unreq a_ptr2\n"
+ ".unreq a_ptr3\n"
+ ".unreq a_ptr4\n"
+ ".unreq a_ptr5\n"
+ ".unreq a_ptr6\n"
+ ".unreq c_ptr1\n"
+ ".unreq c_ptr2\n"
+ ".unreq c_ptr3\n"
+ ".unreq c_ptr4\n"
+ ".unreq c_ptr5\n"
+ ".unreq c_ptr6\n"
+ : [a_ptr0] "+r" (a_ptr0), [b_ptr0] "+r" (b_ptr0), [c_ptr0] "+r" (c_ptr0), [loops] "+r" (loops), [regs] "+r" (regs), [temp] "+r" (temp), [blocks] "+r" (blocks)
+ : [width] "r" (width), [append] "r" (static_cast<uint64_t>(append)), [lda] "r" (ldab), [ldc] "r" (ldcb), [biasptr] "r" (biasptr), [minptr] "r" (minptr), [maxptr] "r" (maxptr), [leftovers] "r" (leftovers)
+ : "z0", "z1", "z2", "z3", "z4", "z5", "z6", "z7", "z8", "z9", "z10", "z11", "z12", "z13", "z14", "z15", "z16", "z17", "z18", "z19", "z20", "z21", "z22", "z23", "z24", "z25", "z26", "z27", "z28", "z29", "z30", "z31", "x0", "x1", "x2", "x3", "x4", "x5", "x6", "x7", "x8", "x9", "x10", "x11", "cc", "memory"
+ );
+ break;
+ default:
+ case 8:
+ __asm __volatile (
+ "a_ptr1 .req X0\n"
+ "a_ptr2 .req X1\n"
+ "a_ptr3 .req X2\n"
+ "a_ptr4 .req X3\n"
+ "a_ptr5 .req X4\n"
+ "a_ptr6 .req X5\n"
+ "a_ptr7 .req X6\n"
+ "c_ptr1 .req X7\n"
+ "c_ptr2 .req X8\n"
+ "c_ptr3 .req X9\n"
+ "c_ptr4 .req X10\n"
+ "c_ptr5 .req X11\n"
+ "c_ptr6 .req X12\n"
+ "c_ptr7 .req X13\n"
+ "add a_ptr1, %[a_ptr0], %[lda]\n"
+ "add c_ptr1, %[c_ptr0], %[ldc]\n"
+ "add a_ptr2, a_ptr1, %[lda]\n"
+ "add c_ptr2, c_ptr1, %[ldc]\n"
+ "add a_ptr3, a_ptr2, %[lda]\n"
+ "add c_ptr3, c_ptr2, %[ldc]\n"
+ "add a_ptr4, a_ptr3, %[lda]\n"
+ "add c_ptr4, c_ptr3, %[ldc]\n"
+ "add a_ptr5, a_ptr4, %[lda]\n"
+ "add c_ptr5, c_ptr4, %[ldc]\n"
+ "add a_ptr6, a_ptr5, %[lda]\n"
+ "add c_ptr6, c_ptr5, %[ldc]\n"
+ "add a_ptr7, a_ptr6, %[lda]\n"
+ "add c_ptr7, c_ptr6, %[ldc]\n"
+ "whilelt p6.h, %[temp], %[leftovers]\n"
+ "whilelt p0.s, %[temp], %[width]\n"
+ "incw %[temp], all, mul #1\n"
+ "ptrue p7.h\n"
+ "whilelt p1.s, %[temp], %[width]\n"
+ "cbnz %[append], 1f\n"
+ "ld1w z15.s, p0/z, [%[biasptr]]\n"
+ "ld1rqh z0.h, p7/z, [%[a_ptr0]]\n"
+ "add %[a_ptr0], %[a_ptr0], #0x10\n"
+ "ld1rqh z1.h, p7/z, [a_ptr1]\n"
+ "add a_ptr1, a_ptr1, #0x10\n"
+ "zip1 z16.s, z15.s, z15.s\n"
+ "ld1rqh z2.h, p7/z, [a_ptr2]\n"
+ "zip2 z17.s, z15.s, z15.s\n"
+ "ld1w z15.s, p1/z, [%[biasptr], #1, MUL VL]\n"
+ "trn1 z8.d, z0.d, z1.d\n"
+ "ld1rqh z3.h, p7/z, [a_ptr3]\n"
+ "ld1rqh z4.h, p7/z, [a_ptr4]\n"
+ "add a_ptr2, a_ptr2, #0x10\n"
+ "zip1 z18.s, z15.s, z15.s\n"
+ "ld1rqh z5.h, p7/z, [a_ptr5]\n"
+ "zip2 z19.s, z15.s, z15.s\n"
+ "ld1rqh z6.h, p7/z, [a_ptr6]\n"
+ "trn1 z9.d, z2.d, z3.d\n"
+ "ld1rqh z7.h, p7/z, [a_ptr7]\n"
+ "mov z20.d, z16.d\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0]]\n"
+ "trn1 z10.d, z4.d, z5.d\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "mov z21.d, z17.d\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "trn1 z11.d, z6.d, z7.d\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "mov z22.d, z18.d\n"
+ "add a_ptr3, a_ptr3, #0x10\n"
+ "mov z23.d, z19.d\n"
+ "add a_ptr4, a_ptr4, #0x10\n"
+ "mov z24.d, z16.d\n"
+ "add a_ptr5, a_ptr5, #0x10\n"
+ "mov z25.d, z17.d\n"
+ "add a_ptr6, a_ptr6, #0x10\n"
+ "mov z26.d, z18.d\n"
+ "add a_ptr7, a_ptr7, #0x10\n"
+ "mov z27.d, z19.d\n"
+ "addvl %[b_ptr0], %[b_ptr0], #4\n"
+ "mov z28.d, z16.d\n"
+ "mov z29.d, z17.d\n"
+ "mov z30.d, z18.d\n"
+ "mov z31.d, z19.d\n"
+ "cbz %[loops], 2f\n"
+ "b 3f\n"
+ "1:\n"
+ "ld1w z13.s, p0/z, [%[c_ptr0]]\n"
+ "ld1w z14.s, p0/z, [c_ptr1]\n"
+ "ld1rqh z0.h, p7/z, [%[a_ptr0]]\n"
+ "add %[a_ptr0], %[a_ptr0], #0x10\n"
+ "ld1rqh z1.h, p7/z, [a_ptr1]\n"
+ "add a_ptr1, a_ptr1, #0x10\n"
+ "zip1 z16.s, z13.s, z14.s\n"
+ "ld1rqh z2.h, p7/z, [a_ptr2]\n"
+ "zip2 z17.s, z13.s, z14.s\n"
+ "ld1w z13.s, p1/z, [%[c_ptr0], #1, MUL VL]\n"
+ "trn1 z8.d, z0.d, z1.d\n"
+ "ld1w z14.s, p1/z, [c_ptr1, #1, MUL VL]\n"
+ "ld1rqh z3.h, p7/z, [a_ptr3]\n"
+ "add a_ptr2, a_ptr2, #0x10\n"
+ "ld1rqh z4.h, p7/z, [a_ptr4]\n"
+ "add a_ptr3, a_ptr3, #0x10\n"
+ "zip1 z18.s, z13.s, z14.s\n"
+ "ld1rqh z5.h, p7/z, [a_ptr5]\n"
+ "zip2 z19.s, z13.s, z14.s\n"
+ "ld1w z13.s, p0/z, [c_ptr2]\n"
+ "trn1 z9.d, z2.d, z3.d\n"
+ "ld1w z14.s, p0/z, [c_ptr3]\n"
+ "ld1rqh z6.h, p7/z, [a_ptr6]\n"
+ "add a_ptr4, a_ptr4, #0x10\n"
+ "trn1 z10.d, z4.d, z5.d\n"
+ "ld1rqh z7.h, p7/z, [a_ptr7]\n"
+ "zip1 z20.s, z13.s, z14.s\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0]]\n"
+ "zip2 z21.s, z13.s, z14.s\n"
+ "ld1w z13.s, p1/z, [c_ptr2, #1, MUL VL]\n"
+ "ld1w z14.s, p1/z, [c_ptr3, #1, MUL VL]\n"
+ "add a_ptr5, a_ptr5, #0x10\n"
+ "trn1 z11.d, z6.d, z7.d\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "add a_ptr6, a_ptr6, #0x10\n"
+ "zip1 z22.s, z13.s, z14.s\n"
+ "add a_ptr7, a_ptr7, #0x10\n"
+ "zip2 z23.s, z13.s, z14.s\n"
+ "ld1w z13.s, p0/z, [c_ptr4]\n"
+ "ld1w z14.s, p0/z, [c_ptr5]\n"
+ "zip1 z24.s, z13.s, z14.s\n"
+ "zip2 z25.s, z13.s, z14.s\n"
+ "ld1w z13.s, p1/z, [c_ptr4, #1, MUL VL]\n"
+ "ld1w z14.s, p1/z, [c_ptr5, #1, MUL VL]\n"
+ "zip1 z26.s, z13.s, z14.s\n"
+ "zip2 z27.s, z13.s, z14.s\n"
+ "ld1w z13.s, p0/z, [c_ptr6]\n"
+ "ld1w z14.s, p0/z, [c_ptr7]\n"
+ "zip1 z28.s, z13.s, z14.s\n"
+ "zip2 z29.s, z13.s, z14.s\n"
+ "ld1w z13.s, p1/z, [c_ptr6, #1, MUL VL]\n"
+ "ld1w z14.s, p1/z, [c_ptr7, #1, MUL VL]\n"
+ "zip1 z30.s, z13.s, z14.s\n"
+ "zip2 z31.s, z13.s, z14.s\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #4\n"
+ "cbz %[loops], 2f\n"
+ "3:\n"
+ "trn2 z0.d, z0.d, z1.d\n"
+ "subs %[loops], %[loops], #0x1\n"
+ "trn2 z1.d, z2.d, z3.d\n"
+ "trn2 z2.d, z4.d, z5.d\n"
+ "ld1rqh z4.h, p7/z, [%[a_ptr0]]\n"
+ "trn2 z3.d, z6.d, z7.d\n"
+ "ld1rqh z5.h, p7/z, [a_ptr1]\n"
+ ".inst 0x6468e590 // bfmmla z16.s, z12.h, z8.h\n"
+ "ld1rqh z6.h, p7/z, [a_ptr2]\n"
+ ".inst 0x6468e5b1 // bfmmla z17.s, z13.h, z8.h\n"
+ "ld1rqh z7.h, p7/z, [a_ptr3]\n"
+ ".inst 0x6468e5d2 // bfmmla z18.s, z14.h, z8.h\n"
+ "add %[a_ptr0], %[a_ptr0], #0x20\n"
+ ".inst 0x6468e5f3 // bfmmla z19.s, z15.h, z8.h\n"
+ "ld1rqh z8.h, p7/z, [a_ptr4]\n"
+ ".inst 0x6469e594 // bfmmla z20.s, z12.h, z9.h\n"
+ "add a_ptr1, a_ptr1, #0x20\n"
+ ".inst 0x6469e5b5 // bfmmla z21.s, z13.h, z9.h\n"
+ "add a_ptr2, a_ptr2, #0x20\n"
+ ".inst 0x6469e5d6 // bfmmla z22.s, z14.h, z9.h\n"
+ "add a_ptr3, a_ptr3, #0x20\n"
+ ".inst 0x6469e5f7 // bfmmla z23.s, z15.h, z9.h\n"
+ "ld1rqh z9.h, p7/z, [a_ptr5]\n"
+ ".inst 0x646ae598 // bfmmla z24.s, z12.h, z10.h\n"
+ "add a_ptr4, a_ptr4, #0x20\n"
+ ".inst 0x646ae5b9 // bfmmla z25.s, z13.h, z10.h\n"
+ "add a_ptr5, a_ptr5, #0x20\n"
+ ".inst 0x646ae5da // bfmmla z26.s, z14.h, z10.h\n"
+ ".inst 0x646ae5fb // bfmmla z27.s, z15.h, z10.h\n"
+ "ld1rqh z10.h, p7/z, [a_ptr6]\n"
+ ".inst 0x646be59c // bfmmla z28.s, z12.h, z11.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0]]\n"
+ ".inst 0x646be5bd // bfmmla z29.s, z13.h, z11.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x646be5de // bfmmla z30.s, z14.h, z11.h\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x646be5ff // bfmmla z31.s, z15.h, z11.h\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x6460e590 // bfmmla z16.s, z12.h, z0.h\n"
+ "ld1rqh z11.h, p7/z, [a_ptr7]\n"
+ ".inst 0x6460e5b1 // bfmmla z17.s, z13.h, z0.h\n"
+ "add a_ptr6, a_ptr6, #0x20\n"
+ ".inst 0x6460e5d2 // bfmmla z18.s, z14.h, z0.h\n"
+ "add a_ptr7, a_ptr7, #0x20\n"
+ ".inst 0x6460e5f3 // bfmmla z19.s, z15.h, z0.h\n"
+ "trn1 z0.d, z4.d, z5.d\n"
+ ".inst 0x6461e594 // bfmmla z20.s, z12.h, z1.h\n"
+ ".inst 0x6461e5b5 // bfmmla z21.s, z13.h, z1.h\n"
+ ".inst 0x6461e5d6 // bfmmla z22.s, z14.h, z1.h\n"
+ ".inst 0x6461e5f7 // bfmmla z23.s, z15.h, z1.h\n"
+ "trn1 z1.d, z6.d, z7.d\n"
+ ".inst 0x6462e598 // bfmmla z24.s, z12.h, z2.h\n"
+ ".inst 0x6462e5b9 // bfmmla z25.s, z13.h, z2.h\n"
+ ".inst 0x6462e5da // bfmmla z26.s, z14.h, z2.h\n"
+ ".inst 0x6462e5fb // bfmmla z27.s, z15.h, z2.h\n"
+ "trn1 z2.d, z8.d, z9.d\n"
+ ".inst 0x6463e59c // bfmmla z28.s, z12.h, z3.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ ".inst 0x6463e5bd // bfmmla z29.s, z13.h, z3.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ ".inst 0x6463e5de // bfmmla z30.s, z14.h, z3.h\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ ".inst 0x6463e5ff // bfmmla z31.s, z15.h, z3.h\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "trn1 z3.d, z10.d, z11.d\n"
+ "addvl %[b_ptr0], %[b_ptr0], #16\n"
+ "trn2 z11.d, z10.d, z11.d\n"
+ "trn2 z10.d, z8.d, z9.d\n"
+ "trn2 z9.d, z6.d, z7.d\n"
+ "ld1rqh z6.h, p7/z, [a_ptr6, #-0x10]\n"
+ "trn2 z8.d, z4.d, z5.d\n"
+ "ld1rqh z4.h, p7/z, [a_ptr4, #-0x10]\n"
+ ".inst 0x6460e590 // bfmmla z16.s, z12.h, z0.h\n"
+ "ld1rqh z5.h, p7/z, [a_ptr5, #-0x10]\n"
+ ".inst 0x6460e5b1 // bfmmla z17.s, z13.h, z0.h\n"
+ "ld1rqh z7.h, p7/z, [a_ptr7, #-0x10]\n"
+ ".inst 0x6460e5d2 // bfmmla z18.s, z14.h, z0.h\n"
+ ".inst 0x6460e5f3 // bfmmla z19.s, z15.h, z0.h\n"
+ "ld1rqh z0.h, p7/z, [%[a_ptr0], #-0x10]\n"
+ ".inst 0x6461e594 // bfmmla z20.s, z12.h, z1.h\n"
+ ".inst 0x6461e5b5 // bfmmla z21.s, z13.h, z1.h\n"
+ ".inst 0x6461e5d6 // bfmmla z22.s, z14.h, z1.h\n"
+ ".inst 0x6461e5f7 // bfmmla z23.s, z15.h, z1.h\n"
+ "ld1rqh z1.h, p7/z, [a_ptr1, #-0x10]\n"
+ ".inst 0x6462e598 // bfmmla z24.s, z12.h, z2.h\n"
+ ".inst 0x6462e5b9 // bfmmla z25.s, z13.h, z2.h\n"
+ ".inst 0x6462e5da // bfmmla z26.s, z14.h, z2.h\n"
+ ".inst 0x6462e5fb // bfmmla z27.s, z15.h, z2.h\n"
+ "ld1rqh z2.h, p7/z, [a_ptr2, #-0x10]\n"
+ ".inst 0x6463e59c // bfmmla z28.s, z12.h, z3.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #-8, MUL VL]\n"
+ ".inst 0x6463e5bd // bfmmla z29.s, z13.h, z3.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #-7, MUL VL]\n"
+ ".inst 0x6463e5de // bfmmla z30.s, z14.h, z3.h\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #-6, MUL VL]\n"
+ ".inst 0x6463e5ff // bfmmla z31.s, z15.h, z3.h\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #-5, MUL VL]\n"
+ ".inst 0x6468e590 // bfmmla z16.s, z12.h, z8.h\n"
+ "ld1rqh z3.h, p7/z, [a_ptr3, #-0x10]\n"
+ ".inst 0x6468e5b1 // bfmmla z17.s, z13.h, z8.h\n"
+ ".inst 0x6468e5d2 // bfmmla z18.s, z14.h, z8.h\n"
+ ".inst 0x6468e5f3 // bfmmla z19.s, z15.h, z8.h\n"
+ "trn1 z8.d, z0.d, z1.d\n"
+ ".inst 0x6469e594 // bfmmla z20.s, z12.h, z9.h\n"
+ ".inst 0x6469e5b5 // bfmmla z21.s, z13.h, z9.h\n"
+ ".inst 0x6469e5d6 // bfmmla z22.s, z14.h, z9.h\n"
+ ".inst 0x6469e5f7 // bfmmla z23.s, z15.h, z9.h\n"
+ "trn1 z9.d, z2.d, z3.d\n"
+ ".inst 0x646ae598 // bfmmla z24.s, z12.h, z10.h\n"
+ ".inst 0x646ae5b9 // bfmmla z25.s, z13.h, z10.h\n"
+ ".inst 0x646ae5da // bfmmla z26.s, z14.h, z10.h\n"
+ ".inst 0x646ae5fb // bfmmla z27.s, z15.h, z10.h\n"
+ "trn1 z10.d, z4.d, z5.d\n"
+ ".inst 0x646be59c // bfmmla z28.s, z12.h, z11.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #-4, MUL VL]\n"
+ ".inst 0x646be5bd // bfmmla z29.s, z13.h, z11.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #-3, MUL VL]\n"
+ ".inst 0x646be5de // bfmmla z30.s, z14.h, z11.h\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #-2, MUL VL]\n"
+ ".inst 0x646be5ff // bfmmla z31.s, z15.h, z11.h\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #-1, MUL VL]\n"
+ "trn1 z11.d, z6.d, z7.d\n"
+ "b.ne 3b\n"
+ "2:\n"
+ "cbz %[regs], 4f\n"
+ "trn2 z0.d, z0.d, z1.d\n"
+ "trn2 z1.d, z2.d, z3.d\n"
+ "trn2 z2.d, z4.d, z5.d\n"
+ "ld1rqh z4.h, p7/z, [%[a_ptr0]]\n"
+ "trn2 z3.d, z6.d, z7.d\n"
+ "ld1rqh z5.h, p7/z, [a_ptr1]\n"
+ ".inst 0x6468e590 // bfmmla z16.s, z12.h, z8.h\n"
+ "ld1rqh z6.h, p7/z, [a_ptr2]\n"
+ ".inst 0x6468e5b1 // bfmmla z17.s, z13.h, z8.h\n"
+ "ld1rqh z7.h, p7/z, [a_ptr3]\n"
+ ".inst 0x6468e5d2 // bfmmla z18.s, z14.h, z8.h\n"
+ ".inst 0x6468e5f3 // bfmmla z19.s, z15.h, z8.h\n"
+ "ld1rqh z8.h, p7/z, [a_ptr4]\n"
+ ".inst 0x6469e594 // bfmmla z20.s, z12.h, z9.h\n"
+ ".inst 0x6469e5b5 // bfmmla z21.s, z13.h, z9.h\n"
+ ".inst 0x6469e5d6 // bfmmla z22.s, z14.h, z9.h\n"
+ ".inst 0x6469e5f7 // bfmmla z23.s, z15.h, z9.h\n"
+ "ld1rqh z9.h, p7/z, [a_ptr5]\n"
+ ".inst 0x646ae598 // bfmmla z24.s, z12.h, z10.h\n"
+ ".inst 0x646ae5b9 // bfmmla z25.s, z13.h, z10.h\n"
+ ".inst 0x646ae5da // bfmmla z26.s, z14.h, z10.h\n"
+ ".inst 0x646ae5fb // bfmmla z27.s, z15.h, z10.h\n"
+ "ld1rqh z10.h, p7/z, [a_ptr6]\n"
+ ".inst 0x646be59c // bfmmla z28.s, z12.h, z11.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0]]\n"
+ ".inst 0x646be5bd // bfmmla z29.s, z13.h, z11.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x646be5de // bfmmla z30.s, z14.h, z11.h\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x646be5ff // bfmmla z31.s, z15.h, z11.h\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x6460e590 // bfmmla z16.s, z12.h, z0.h\n"
+ "ld1rqh z11.h, p7/z, [a_ptr7]\n"
+ ".inst 0x6460e5b1 // bfmmla z17.s, z13.h, z0.h\n"
+ ".inst 0x6460e5d2 // bfmmla z18.s, z14.h, z0.h\n"
+ ".inst 0x6460e5f3 // bfmmla z19.s, z15.h, z0.h\n"
+ "trn1 z0.d, z4.d, z5.d\n"
+ ".inst 0x6461e594 // bfmmla z20.s, z12.h, z1.h\n"
+ ".inst 0x6461e5b5 // bfmmla z21.s, z13.h, z1.h\n"
+ ".inst 0x6461e5d6 // bfmmla z22.s, z14.h, z1.h\n"
+ ".inst 0x6461e5f7 // bfmmla z23.s, z15.h, z1.h\n"
+ "trn1 z1.d, z6.d, z7.d\n"
+ ".inst 0x6462e598 // bfmmla z24.s, z12.h, z2.h\n"
+ ".inst 0x6462e5b9 // bfmmla z25.s, z13.h, z2.h\n"
+ ".inst 0x6462e5da // bfmmla z26.s, z14.h, z2.h\n"
+ ".inst 0x6462e5fb // bfmmla z27.s, z15.h, z2.h\n"
+ "trn1 z2.d, z8.d, z9.d\n"
+ ".inst 0x6463e59c // bfmmla z28.s, z12.h, z3.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ ".inst 0x6463e5bd // bfmmla z29.s, z13.h, z3.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ ".inst 0x6463e5de // bfmmla z30.s, z14.h, z3.h\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ ".inst 0x6463e5ff // bfmmla z31.s, z15.h, z3.h\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "trn1 z3.d, z10.d, z11.d\n"
+ "addvl %[b_ptr0], %[b_ptr0], #16\n"
+ "trn2 z11.d, z10.d, z11.d\n"
+ "trn2 z10.d, z8.d, z9.d\n"
+ "trn2 z9.d, z6.d, z7.d\n"
+ "ld1rqh z6.h, p6/z, [a_ptr6, #0x10]\n"
+ "trn2 z8.d, z4.d, z5.d\n"
+ "ld1rqh z4.h, p6/z, [a_ptr4, #0x10]\n"
+ ".inst 0x6460e590 // bfmmla z16.s, z12.h, z0.h\n"
+ "ld1rqh z5.h, p6/z, [a_ptr5, #0x10]\n"
+ ".inst 0x6460e5b1 // bfmmla z17.s, z13.h, z0.h\n"
+ "ld1rqh z7.h, p6/z, [a_ptr7, #0x10]\n"
+ ".inst 0x6460e5d2 // bfmmla z18.s, z14.h, z0.h\n"
+ "addvl a_ptr4, a_ptr4, #2\n"
+ ".inst 0x6460e5f3 // bfmmla z19.s, z15.h, z0.h\n"
+ "ld1rqh z0.h, p6/z, [%[a_ptr0], #0x10]\n"
+ ".inst 0x6461e594 // bfmmla z20.s, z12.h, z1.h\n"
+ "addvl %[a_ptr0], %[a_ptr0], #2\n"
+ ".inst 0x6461e5b5 // bfmmla z21.s, z13.h, z1.h\n"
+ "addvl a_ptr5, a_ptr5, #2\n"
+ ".inst 0x6461e5d6 // bfmmla z22.s, z14.h, z1.h\n"
+ "addvl a_ptr6, a_ptr6, #2\n"
+ ".inst 0x6461e5f7 // bfmmla z23.s, z15.h, z1.h\n"
+ "ld1rqh z1.h, p6/z, [a_ptr1, #0x10]\n"
+ ".inst 0x6462e598 // bfmmla z24.s, z12.h, z2.h\n"
+ "addvl a_ptr1, a_ptr1, #2\n"
+ ".inst 0x6462e5b9 // bfmmla z25.s, z13.h, z2.h\n"
+ "addvl a_ptr7, a_ptr7, #2\n"
+ ".inst 0x6462e5da // bfmmla z26.s, z14.h, z2.h\n"
+ ".inst 0x6462e5fb // bfmmla z27.s, z15.h, z2.h\n"
+ "ld1rqh z2.h, p6/z, [a_ptr2, #0x10]\n"
+ ".inst 0x6463e59c // bfmmla z28.s, z12.h, z3.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #-8, MUL VL]\n"
+ ".inst 0x6463e5bd // bfmmla z29.s, z13.h, z3.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #-7, MUL VL]\n"
+ ".inst 0x6463e5de // bfmmla z30.s, z14.h, z3.h\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #-6, MUL VL]\n"
+ ".inst 0x6463e5ff // bfmmla z31.s, z15.h, z3.h\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #-5, MUL VL]\n"
+ ".inst 0x6468e590 // bfmmla z16.s, z12.h, z8.h\n"
+ "ld1rqh z3.h, p6/z, [a_ptr3, #0x10]\n"
+ ".inst 0x6468e5b1 // bfmmla z17.s, z13.h, z8.h\n"
+ "addvl %[b_ptr0], %[b_ptr0], #-4\n"
+ ".inst 0x6468e5d2 // bfmmla z18.s, z14.h, z8.h\n"
+ "addvl a_ptr2, a_ptr2, #2\n"
+ ".inst 0x6468e5f3 // bfmmla z19.s, z15.h, z8.h\n"
+ "addvl a_ptr3, a_ptr3, #2\n"
+ "trn1 z8.d, z0.d, z1.d\n"
+ ".inst 0x6469e594 // bfmmla z20.s, z12.h, z9.h\n"
+ ".inst 0x6469e5b5 // bfmmla z21.s, z13.h, z9.h\n"
+ ".inst 0x6469e5d6 // bfmmla z22.s, z14.h, z9.h\n"
+ ".inst 0x6469e5f7 // bfmmla z23.s, z15.h, z9.h\n"
+ "trn1 z9.d, z2.d, z3.d\n"
+ ".inst 0x646ae598 // bfmmla z24.s, z12.h, z10.h\n"
+ ".inst 0x646ae5b9 // bfmmla z25.s, z13.h, z10.h\n"
+ ".inst 0x646ae5da // bfmmla z26.s, z14.h, z10.h\n"
+ ".inst 0x646ae5fb // bfmmla z27.s, z15.h, z10.h\n"
+ "trn1 z10.d, z4.d, z5.d\n"
+ ".inst 0x646be59c // bfmmla z28.s, z12.h, z11.h\n"
+ ".inst 0x646be5bd // bfmmla z29.s, z13.h, z11.h\n"
+ ".inst 0x646be5de // bfmmla z30.s, z14.h, z11.h\n"
+ ".inst 0x646be5ff // bfmmla z31.s, z15.h, z11.h\n"
+ "trn1 z11.d, z6.d, z7.d\n"
+ "cbz %[blocks], 5f\n"
+ "trn2 z0.d, z0.d, z1.d\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0]]\n"
+ "trn2 z1.d, z2.d, z3.d\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "trn2 z2.d, z4.d, z5.d\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "trn2 z3.d, z6.d, z7.d\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x6468e590 // bfmmla z16.s, z12.h, z8.h\n"
+ "subs %[blocks], %[blocks], #0x1\n"
+ ".inst 0x6468e5b1 // bfmmla z17.s, z13.h, z8.h\n"
+ ".inst 0x6468e5d2 // bfmmla z18.s, z14.h, z8.h\n"
+ ".inst 0x6468e5f3 // bfmmla z19.s, z15.h, z8.h\n"
+ ".inst 0x6469e594 // bfmmla z20.s, z12.h, z9.h\n"
+ ".inst 0x6469e5b5 // bfmmla z21.s, z13.h, z9.h\n"
+ ".inst 0x6469e5d6 // bfmmla z22.s, z14.h, z9.h\n"
+ ".inst 0x6469e5f7 // bfmmla z23.s, z15.h, z9.h\n"
+ ".inst 0x646ae598 // bfmmla z24.s, z12.h, z10.h\n"
+ ".inst 0x646ae5b9 // bfmmla z25.s, z13.h, z10.h\n"
+ ".inst 0x646ae5da // bfmmla z26.s, z14.h, z10.h\n"
+ ".inst 0x646ae5fb // bfmmla z27.s, z15.h, z10.h\n"
+ ".inst 0x646be59c // bfmmla z28.s, z12.h, z11.h\n"
+ ".inst 0x646be5bd // bfmmla z29.s, z13.h, z11.h\n"
+ ".inst 0x646be5de // bfmmla z30.s, z14.h, z11.h\n"
+ ".inst 0x646be5ff // bfmmla z31.s, z15.h, z11.h\n"
+ "b.eq 5f\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ ".inst 0x6460e590 // bfmmla z16.s, z12.h, z0.h\n"
+ ".inst 0x6460e5b1 // bfmmla z17.s, z13.h, z0.h\n"
+ ".inst 0x6460e5d2 // bfmmla z18.s, z14.h, z0.h\n"
+ ".inst 0x6460e5f3 // bfmmla z19.s, z15.h, z0.h\n"
+ ".inst 0x6461e594 // bfmmla z20.s, z12.h, z1.h\n"
+ ".inst 0x6461e5b5 // bfmmla z21.s, z13.h, z1.h\n"
+ ".inst 0x6461e5d6 // bfmmla z22.s, z14.h, z1.h\n"
+ ".inst 0x6461e5f7 // bfmmla z23.s, z15.h, z1.h\n"
+ ".inst 0x6462e598 // bfmmla z24.s, z12.h, z2.h\n"
+ ".inst 0x6462e5b9 // bfmmla z25.s, z13.h, z2.h\n"
+ ".inst 0x6462e5da // bfmmla z26.s, z14.h, z2.h\n"
+ ".inst 0x6462e5fb // bfmmla z27.s, z15.h, z2.h\n"
+ ".inst 0x6463e59c // bfmmla z28.s, z12.h, z3.h\n"
+ ".inst 0x6463e5bd // bfmmla z29.s, z13.h, z3.h\n"
+ ".inst 0x6463e5de // bfmmla z30.s, z14.h, z3.h\n"
+ ".inst 0x6463e5ff // bfmmla z31.s, z15.h, z3.h\n"
+ "b 5f\n"
+ "4:\n"
+ "trn2 z0.d, z0.d, z1.d\n"
+ "trn2 z1.d, z2.d, z3.d\n"
+ "trn2 z2.d, z4.d, z5.d\n"
+ "ld1rqh z4.h, p6/z, [%[a_ptr0]]\n"
+ "trn2 z3.d, z6.d, z7.d\n"
+ "ld1rqh z5.h, p6/z, [a_ptr1]\n"
+ ".inst 0x6468e590 // bfmmla z16.s, z12.h, z8.h\n"
+ "ld1rqh z6.h, p6/z, [a_ptr2]\n"
+ ".inst 0x6468e5b1 // bfmmla z17.s, z13.h, z8.h\n"
+ "ld1rqh z7.h, p6/z, [a_ptr3]\n"
+ ".inst 0x6468e5d2 // bfmmla z18.s, z14.h, z8.h\n"
+ "addvl %[a_ptr0], %[a_ptr0], #1\n"
+ ".inst 0x6468e5f3 // bfmmla z19.s, z15.h, z8.h\n"
+ "ld1rqh z8.h, p6/z, [a_ptr4]\n"
+ ".inst 0x6469e594 // bfmmla z20.s, z12.h, z9.h\n"
+ "addvl a_ptr1, a_ptr1, #1\n"
+ ".inst 0x6469e5b5 // bfmmla z21.s, z13.h, z9.h\n"
+ "addvl a_ptr2, a_ptr2, #1\n"
+ ".inst 0x6469e5d6 // bfmmla z22.s, z14.h, z9.h\n"
+ "addvl a_ptr3, a_ptr3, #1\n"
+ ".inst 0x6469e5f7 // bfmmla z23.s, z15.h, z9.h\n"
+ "ld1rqh z9.h, p6/z, [a_ptr5]\n"
+ ".inst 0x646ae598 // bfmmla z24.s, z12.h, z10.h\n"
+ "addvl a_ptr4, a_ptr4, #1\n"
+ ".inst 0x646ae5b9 // bfmmla z25.s, z13.h, z10.h\n"
+ "addvl a_ptr5, a_ptr5, #1\n"
+ ".inst 0x646ae5da // bfmmla z26.s, z14.h, z10.h\n"
+ ".inst 0x646ae5fb // bfmmla z27.s, z15.h, z10.h\n"
+ "ld1rqh z10.h, p6/z, [a_ptr6]\n"
+ ".inst 0x646be59c // bfmmla z28.s, z12.h, z11.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0]]\n"
+ ".inst 0x646be5bd // bfmmla z29.s, z13.h, z11.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x646be5de // bfmmla z30.s, z14.h, z11.h\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x646be5ff // bfmmla z31.s, z15.h, z11.h\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x6460e590 // bfmmla z16.s, z12.h, z0.h\n"
+ "ld1rqh z11.h, p6/z, [a_ptr7]\n"
+ ".inst 0x6460e5b1 // bfmmla z17.s, z13.h, z0.h\n"
+ "addvl %[b_ptr0], %[b_ptr0], #4\n"
+ ".inst 0x6460e5d2 // bfmmla z18.s, z14.h, z0.h\n"
+ "addvl a_ptr6, a_ptr6, #1\n"
+ ".inst 0x6460e5f3 // bfmmla z19.s, z15.h, z0.h\n"
+ "addvl a_ptr7, a_ptr7, #1\n"
+ "trn1 z0.d, z4.d, z5.d\n"
+ ".inst 0x6461e594 // bfmmla z20.s, z12.h, z1.h\n"
+ ".inst 0x6461e5b5 // bfmmla z21.s, z13.h, z1.h\n"
+ ".inst 0x6461e5d6 // bfmmla z22.s, z14.h, z1.h\n"
+ ".inst 0x6461e5f7 // bfmmla z23.s, z15.h, z1.h\n"
+ "trn1 z1.d, z6.d, z7.d\n"
+ ".inst 0x6462e598 // bfmmla z24.s, z12.h, z2.h\n"
+ ".inst 0x6462e5b9 // bfmmla z25.s, z13.h, z2.h\n"
+ ".inst 0x6462e5da // bfmmla z26.s, z14.h, z2.h\n"
+ ".inst 0x6462e5fb // bfmmla z27.s, z15.h, z2.h\n"
+ "trn1 z2.d, z8.d, z9.d\n"
+ ".inst 0x6463e59c // bfmmla z28.s, z12.h, z3.h\n"
+ ".inst 0x6463e5bd // bfmmla z29.s, z13.h, z3.h\n"
+ ".inst 0x6463e5de // bfmmla z30.s, z14.h, z3.h\n"
+ ".inst 0x6463e5ff // bfmmla z31.s, z15.h, z3.h\n"
+ "trn1 z3.d, z10.d, z11.d\n"
+ "cbz %[blocks], 5f\n"
+ "trn2 z11.d, z10.d, z11.d\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0]]\n"
+ "trn2 z10.d, z8.d, z9.d\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "trn2 z9.d, z6.d, z7.d\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "trn2 z8.d, z4.d, z5.d\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x6460e590 // bfmmla z16.s, z12.h, z0.h\n"
+ "subs %[blocks], %[blocks], #0x1\n"
+ ".inst 0x6460e5b1 // bfmmla z17.s, z13.h, z0.h\n"
+ ".inst 0x6460e5d2 // bfmmla z18.s, z14.h, z0.h\n"
+ ".inst 0x6460e5f3 // bfmmla z19.s, z15.h, z0.h\n"
+ ".inst 0x6461e594 // bfmmla z20.s, z12.h, z1.h\n"
+ ".inst 0x6461e5b5 // bfmmla z21.s, z13.h, z1.h\n"
+ ".inst 0x6461e5d6 // bfmmla z22.s, z14.h, z1.h\n"
+ ".inst 0x6461e5f7 // bfmmla z23.s, z15.h, z1.h\n"
+ ".inst 0x6462e598 // bfmmla z24.s, z12.h, z2.h\n"
+ ".inst 0x6462e5b9 // bfmmla z25.s, z13.h, z2.h\n"
+ ".inst 0x6462e5da // bfmmla z26.s, z14.h, z2.h\n"
+ ".inst 0x6462e5fb // bfmmla z27.s, z15.h, z2.h\n"
+ ".inst 0x6463e59c // bfmmla z28.s, z12.h, z3.h\n"
+ ".inst 0x6463e5bd // bfmmla z29.s, z13.h, z3.h\n"
+ ".inst 0x6463e5de // bfmmla z30.s, z14.h, z3.h\n"
+ ".inst 0x6463e5ff // bfmmla z31.s, z15.h, z3.h\n"
+ "b.eq 5f\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "ld1h z14.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "ld1h z15.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ ".inst 0x6468e590 // bfmmla z16.s, z12.h, z8.h\n"
+ ".inst 0x6468e5b1 // bfmmla z17.s, z13.h, z8.h\n"
+ ".inst 0x6468e5d2 // bfmmla z18.s, z14.h, z8.h\n"
+ ".inst 0x6468e5f3 // bfmmla z19.s, z15.h, z8.h\n"
+ ".inst 0x6469e594 // bfmmla z20.s, z12.h, z9.h\n"
+ ".inst 0x6469e5b5 // bfmmla z21.s, z13.h, z9.h\n"
+ ".inst 0x6469e5d6 // bfmmla z22.s, z14.h, z9.h\n"
+ ".inst 0x6469e5f7 // bfmmla z23.s, z15.h, z9.h\n"
+ ".inst 0x646ae598 // bfmmla z24.s, z12.h, z10.h\n"
+ ".inst 0x646ae5b9 // bfmmla z25.s, z13.h, z10.h\n"
+ ".inst 0x646ae5da // bfmmla z26.s, z14.h, z10.h\n"
+ ".inst 0x646ae5fb // bfmmla z27.s, z15.h, z10.h\n"
+ ".inst 0x646be59c // bfmmla z28.s, z12.h, z11.h\n"
+ ".inst 0x646be5bd // bfmmla z29.s, z13.h, z11.h\n"
+ ".inst 0x646be5de // bfmmla z30.s, z14.h, z11.h\n"
+ ".inst 0x646be5ff // bfmmla z31.s, z15.h, z11.h\n"
+ "5:\n"
+ "ld1rw z14.s, p7/z, [%[minptr]]\n"
+ "ld1rw z15.s, p7/z, [%[maxptr]]\n"
+ "fmax z16.s, p7/m, z16.s, z14.s\n"
+ "fmax z17.s, p7/m, z17.s, z14.s\n"
+ "fmax z18.s, p7/m, z18.s, z14.s\n"
+ "fmax z19.s, p7/m, z19.s, z14.s\n"
+ "fmin z16.s, p7/m, z16.s, z15.s\n"
+ "fmin z17.s, p7/m, z17.s, z15.s\n"
+ "fmin z18.s, p7/m, z18.s, z15.s\n"
+ "fmin z19.s, p7/m, z19.s, z15.s\n"
+ "fmax z20.s, p7/m, z20.s, z14.s\n"
+ "uzp1 z0.s, z16.s, z17.s\n"
+ "uzp2 z1.s, z16.s, z17.s\n"
+ "uzp1 z2.s, z18.s, z19.s\n"
+ "uzp2 z3.s, z18.s, z19.s\n"
+ "st1w z0.s, p0, [%[c_ptr0]]\n"
+ "fmin z20.s, p7/m, z20.s, z15.s\n"
+ "fmax z21.s, p7/m, z21.s, z14.s\n"
+ "fmax z22.s, p7/m, z22.s, z14.s\n"
+ "st1w z1.s, p0, [c_ptr1]\n"
+ "fmax z23.s, p7/m, z23.s, z14.s\n"
+ "fmax z24.s, p7/m, z24.s, z14.s\n"
+ "fmin z21.s, p7/m, z21.s, z15.s\n"
+ "st1w z2.s, p1, [%[c_ptr0], #1, MUL VL]\n"
+ "fmin z22.s, p7/m, z22.s, z15.s\n"
+ "addvl %[c_ptr0], %[c_ptr0], #2\n"
+ "fmin z23.s, p7/m, z23.s, z15.s\n"
+ "st1w z3.s, p1, [c_ptr1, #1, MUL VL]\n"
+ "uzp1 z4.s, z20.s, z21.s\n"
+ "uzp2 z5.s, z20.s, z21.s\n"
+ "fmin z24.s, p7/m, z24.s, z15.s\n"
+ "uzp1 z6.s, z22.s, z23.s\n"
+ "st1w z4.s, p0, [c_ptr2]\n"
+ "uzp2 z7.s, z22.s, z23.s\n"
+ "fmax z25.s, p7/m, z25.s, z14.s\n"
+ "fmax z26.s, p7/m, z26.s, z14.s\n"
+ "st1w z5.s, p0, [c_ptr3]\n"
+ "fmax z27.s, p7/m, z27.s, z14.s\n"
+ "fmax z28.s, p7/m, z28.s, z14.s\n"
+ "fmin z25.s, p7/m, z25.s, z15.s\n"
+ "st1w z6.s, p1, [c_ptr2, #1, MUL VL]\n"
+ "fmin z26.s, p7/m, z26.s, z15.s\n"
+ "fmin z27.s, p7/m, z27.s, z15.s\n"
+ "fmin z28.s, p7/m, z28.s, z15.s\n"
+ "st1w z7.s, p1, [c_ptr3, #1, MUL VL]\n"
+ "uzp1 z8.s, z24.s, z25.s\n"
+ "uzp2 z9.s, z24.s, z25.s\n"
+ "uzp1 z10.s, z26.s, z27.s\n"
+ "uzp2 z11.s, z26.s, z27.s\n"
+ "st1w z8.s, p0, [c_ptr4]\n"
+ "fmax z29.s, p7/m, z29.s, z14.s\n"
+ "fmax z30.s, p7/m, z30.s, z14.s\n"
+ "fmax z31.s, p7/m, z31.s, z14.s\n"
+ "st1w z9.s, p0, [c_ptr5]\n"
+ "fmin z29.s, p7/m, z29.s, z15.s\n"
+ "fmin z30.s, p7/m, z30.s, z15.s\n"
+ "st1w z10.s, p1, [c_ptr4, #1, MUL VL]\n"
+ "fmin z31.s, p7/m, z31.s, z15.s\n"
+ "uzp1 z12.s, z28.s, z29.s\n"
+ "st1w z11.s, p1, [c_ptr5, #1, MUL VL]\n"
+ "uzp2 z13.s, z28.s, z29.s\n"
+ "uzp1 z14.s, z30.s, z31.s\n"
+ "uzp2 z15.s, z30.s, z31.s\n"
+ "st1w z12.s, p0, [c_ptr6]\n"
+ "st1w z13.s, p0, [c_ptr7]\n"
+ "st1w z14.s, p1, [c_ptr6, #1, MUL VL]\n"
+ "st1w z15.s, p1, [c_ptr7, #1, MUL VL]\n"
+ ".unreq a_ptr1\n"
+ ".unreq a_ptr2\n"
+ ".unreq a_ptr3\n"
+ ".unreq a_ptr4\n"
+ ".unreq a_ptr5\n"
+ ".unreq a_ptr6\n"
+ ".unreq a_ptr7\n"
+ ".unreq c_ptr1\n"
+ ".unreq c_ptr2\n"
+ ".unreq c_ptr3\n"
+ ".unreq c_ptr4\n"
+ ".unreq c_ptr5\n"
+ ".unreq c_ptr6\n"
+ ".unreq c_ptr7\n"
+ : [a_ptr0] "+r" (a_ptr0), [b_ptr0] "+r" (b_ptr0), [c_ptr0] "+r" (c_ptr0), [loops] "+r" (loops), [regs] "+r" (regs), [temp] "+r" (temp), [blocks] "+r" (blocks)
+ : [width] "r" (width), [append] "r" (static_cast<uint64_t>(append)), [lda] "r" (ldab), [ldc] "r" (ldcb), [biasptr] "r" (biasptr), [minptr] "r" (minptr), [maxptr] "r" (maxptr), [leftovers] "r" (leftovers)
+ : "z0", "z1", "z2", "z3", "z4", "z5", "z6", "z7", "z8", "z9", "z10", "z11", "z12", "z13", "z14", "z15", "z16", "z17", "z18", "z19", "z20", "z21", "z22", "z23", "z24", "z25", "z26", "z27", "z28", "z29", "z30", "z31", "x0", "x1", "x2", "x3", "x4", "x5", "x6", "x7", "x8", "x9", "x10", "x11", "x12", "x13", "cc", "memory"
+ );
+ break;
+ }
+
+ }
+ }
+}
+
+} // namespace arm_gemm
+
+#endif // __ARM_FEATURE_SVE
diff --git a/src/core/NEON/kernels/arm_gemm/kernels/sve_hybrid_bf16fp32_mmla_6VLx2.hpp b/src/core/NEON/kernels/arm_gemm/kernels/sve_hybrid_bf16fp32_mmla_6VLx2.hpp
new file mode 100644
index 000000000..affcafe4a
--- /dev/null
+++ b/src/core/NEON/kernels/arm_gemm/kernels/sve_hybrid_bf16fp32_mmla_6VLx2.hpp
@@ -0,0 +1,86 @@
+/*
+ * Copyright (c) 2018-2019 Arm Limited.
+ *
+ * SPDX-License-Identifier: MIT
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+#pragma once
+
+#ifdef __ARM_FEATURE_SVE
+
+#include "../bfloat.hpp"
+#include "../std_transforms_sve.hpp"
+
+namespace arm_gemm
+{
+
+// Actual kernel implementations
+void sve_hybrid_bf16fp32_mmla_6VLx2(const bfloat16 *, int, const bfloat16 *, float *, int, int, int, int, const float *, Activation, bool);
+
+class hybrid_bf16fp32_mmla_6VLx2
+{
+public:
+ typedef bfloat16 operand_type;
+ typedef float result_type;
+
+ typedef void (*kern_type)(const bfloat16 *, int, const bfloat16 *, float *, int, int, int, int, const float *, Activation, bool);
+
+ /* Kernel blocking parameters */
+ static constexpr unsigned int out_height()
+ {
+ return 4;
+ }
+
+ static unsigned int out_width()
+ {
+ return get_vector_length<float>() * 3;
+ }
+
+ static constexpr unsigned int k_unroll()
+ {
+ return 4;
+ }
+
+ static constexpr bool supports_append()
+ {
+ return true;
+ }
+
+ static constexpr bool supports_bias()
+ {
+ return true;
+ }
+
+ static constexpr bool supports_activation()
+ {
+ return true;
+ }
+
+ StdTransformsSVE<operand_type, result_type, 2, 6, 4> transforms = {};
+
+ // Default to the generic kernel
+ kern_type kernel=sve_hybrid_bf16fp32_mmla_6VLx2;
+
+ hybrid_bf16fp32_mmla_6VLx2(const CPUInfo *ci) { UNUSED(ci); }
+};
+
+} // namespace arm_gemm
+
+#endif // __ARM_FEATURE_SVE
diff --git a/src/core/NEON/kernels/arm_gemm/kernels/sve_hybrid_bf16fp32_mmla_6VLx2/generic.cpp b/src/core/NEON/kernels/arm_gemm/kernels/sve_hybrid_bf16fp32_mmla_6VLx2/generic.cpp
new file mode 100644
index 000000000..07ecbf35c
--- /dev/null
+++ b/src/core/NEON/kernels/arm_gemm/kernels/sve_hybrid_bf16fp32_mmla_6VLx2/generic.cpp
@@ -0,0 +1,1622 @@
+/*
+ * Copyright (c) 2018-2019 Arm Limited.
+ *
+ * SPDX-License-Identifier: MIT
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+#ifdef __ARM_FEATURE_SVE
+
+#include <algorithm>
+
+#include "arm_gemm.hpp"
+#include "../../bfloat.hpp"
+#include "../../asmlib.hpp"
+#include "../../utils.hpp"
+
+namespace arm_gemm {
+
+void sve_hybrid_bf16fp32_mmla_6VLx2(const bfloat16 *A, int lda, const bfloat16 *B, float *C, int ldc, int M, int N, int K, const float *bias, Activation act, bool append) {
+ const int K_stride = ((K + 3) / 4) * 4;
+ const long loops_count = ((K + 8) / 16) - 1;
+ K -= loops_count * 16;
+ const long regs_count = (K / 8) - 1;
+ K -= (regs_count + 1) * 8;
+ const long leftovers = K;
+ const long blocks_count = (K + 3) / 4;
+ float nullbias[192];
+ if (!append && !bias) {
+ memset(nullbias, 0, (3 * get_vector_length<float>() * sizeof(float)));
+ }
+ float minval = - static_cast<float>(std::numeric_limits<float>::infinity());
+ float maxval = static_cast<float>(std::numeric_limits<float>::infinity());
+ const float * const minptr = &minval;
+ const float * const maxptr = &maxval;
+
+ switch(act.type)
+ {
+ default:
+ case Activation::Type::None:
+ break;
+ case Activation::Type::BoundedReLU:
+ maxval = static_cast<float>(act.param1);
+ /* fall through */
+ case Activation::Type::ReLU:
+ minval = 0.0f;
+ break;
+ }
+
+ for (int y=0; y<M; y+=4) {
+ const bfloat16 * const a_ptr0_base = A + (y * lda);
+ const unsigned long ldab = lda * sizeof(bfloat16);
+
+ float *c_ptr0 = C + (y * ldc);
+
+ for (int x0=0; x0<N; x0+=(3 * get_vector_length<float>())) {
+ const long width = std::min((unsigned long)N-x0, (3 * get_vector_length<float>()));
+ long loops = loops_count;
+ long regs = regs_count;
+ long temp = 0;
+ long blocks = blocks_count;
+ const bfloat16 *a_ptr0 = a_ptr0_base;
+ const bfloat16 *b_ptr0 = B + (K_stride * x0);
+ const unsigned long ldcb = ldc * sizeof(float);
+ const float *biasptr = bias ? bias+x0 : nullbias;
+
+ switch(M-y) {
+ case 1:
+ __asm __volatile (
+ "whilelt p6.h, %[temp], %[leftovers]\n"
+ "whilelt p0.s, %[temp], %[width]\n"
+ "incw %[temp], all, mul #1\n"
+ "ptrue p7.h\n"
+ "whilelt p1.s, %[temp], %[width]\n"
+ "incw %[temp], all, mul #1\n"
+ "whilelt p2.s, %[temp], %[width]\n"
+ "cbnz %[append], 1f\n"
+ "mov z1.h, #0\n"
+ "ld1w z19.s, p0/z, [%[biasptr]]\n"
+ "ld1rqh z0.h, p7/z, [%[a_ptr0]]\n"
+ "add %[a_ptr0], %[a_ptr0], #0x10\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0]]\n"
+ "zip1 z20.s, z19.s, z19.s\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "zip2 z21.s, z19.s, z19.s\n"
+ "ld1w z19.s, p1/z, [%[biasptr], #1, MUL VL]\n"
+ "trn1 z4.d, z0.d, z1.d\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "zip1 z22.s, z19.s, z19.s\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "zip2 z23.s, z19.s, z19.s\n"
+ "ld1w z19.s, p2/z, [%[biasptr], #2, MUL VL]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #6\n"
+ "zip1 z24.s, z19.s, z19.s\n"
+ "zip2 z25.s, z19.s, z19.s\n"
+ "cbz %[loops], 2f\n"
+ "b 3f\n"
+ "1:\n"
+ "mov z18.s, #0\n"
+ "ld1w z17.s, p0/z, [%[c_ptr0]]\n"
+ "mov z1.h, #0\n"
+ "ld1rqh z0.h, p7/z, [%[a_ptr0]]\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0]]\n"
+ "add %[a_ptr0], %[a_ptr0], #0x10\n"
+ "zip1 z20.s, z17.s, z18.s\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "zip2 z21.s, z17.s, z18.s\n"
+ "ld1w z17.s, p1/z, [%[c_ptr0], #1, MUL VL]\n"
+ "trn1 z4.d, z0.d, z1.d\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "mov z18.s, #0\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #6\n"
+ "zip1 z22.s, z17.s, z18.s\n"
+ "zip2 z23.s, z17.s, z18.s\n"
+ "ld1w z17.s, p2/z, [%[c_ptr0], #2, MUL VL]\n"
+ "mov z18.s, #0\n"
+ "zip1 z24.s, z17.s, z18.s\n"
+ "zip2 z25.s, z17.s, z18.s\n"
+ "cbz %[loops], 2f\n"
+ "3:\n"
+ "trn2 z0.d, z0.d, z1.d\n"
+ "ld1rqh z2.h, p7/z, [%[a_ptr0]]\n"
+ ".inst 0x6464e4d4 // bfmmla z20.s, z6.h, z4.h\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0]]\n"
+ ".inst 0x6464e4f5 // bfmmla z21.s, z7.h, z4.h\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x6464e516 // bfmmla z22.s, z8.h, z4.h\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x6464e537 // bfmmla z23.s, z9.h, z4.h\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x6464e558 // bfmmla z24.s, z10.h, z4.h\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ ".inst 0x6464e579 // bfmmla z25.s, z11.h, z4.h\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "mov z3.h, #0\n"
+ "subs %[loops], %[loops], #0x1\n"
+ ".inst 0x6460e4d4 // bfmmla z20.s, z6.h, z0.h\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ ".inst 0x6460e4f5 // bfmmla z21.s, z7.h, z0.h\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "trn2 z4.d, z2.d, z3.d\n"
+ "add %[a_ptr0], %[a_ptr0], #0x20\n"
+ ".inst 0x6460e516 // bfmmla z22.s, z8.h, z0.h\n"
+ "addvl %[b_ptr0], %[b_ptr0], #16\n"
+ ".inst 0x6460e537 // bfmmla z23.s, z9.h, z0.h\n"
+ ".inst 0x6460e558 // bfmmla z24.s, z10.h, z0.h\n"
+ ".inst 0x6460e579 // bfmmla z25.s, z11.h, z0.h\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #-8, MUL VL]\n"
+ "trn1 z0.d, z2.d, z3.d\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #-7, MUL VL]\n"
+ "mov z1.h, #0\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #-6, MUL VL]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #-5, MUL VL]\n"
+ ".inst 0x6460e4d4 // bfmmla z20.s, z6.h, z0.h\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0], #-4, MUL VL]\n"
+ ".inst 0x6460e4f5 // bfmmla z21.s, z7.h, z0.h\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #-3, MUL VL]\n"
+ ".inst 0x6460e516 // bfmmla z22.s, z8.h, z0.h\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #-2, MUL VL]\n"
+ ".inst 0x6460e537 // bfmmla z23.s, z9.h, z0.h\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #-1, MUL VL]\n"
+ ".inst 0x6460e558 // bfmmla z24.s, z10.h, z0.h\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0]]\n"
+ ".inst 0x6460e579 // bfmmla z25.s, z11.h, z0.h\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x6464e4d4 // bfmmla z20.s, z6.h, z4.h\n"
+ "ld1rqh z0.h, p7/z, [%[a_ptr0], #-0x10]\n"
+ ".inst 0x6464e4f5 // bfmmla z21.s, z7.h, z4.h\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ ".inst 0x6464e516 // bfmmla z22.s, z8.h, z4.h\n"
+ ".inst 0x6464e537 // bfmmla z23.s, z9.h, z4.h\n"
+ ".inst 0x6464e558 // bfmmla z24.s, z10.h, z4.h\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0], #-6, MUL VL]\n"
+ ".inst 0x6464e579 // bfmmla z25.s, z11.h, z4.h\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #-5, MUL VL]\n"
+ "trn1 z4.d, z0.d, z1.d\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #-4, MUL VL]\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #-3, MUL VL]\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #-2, MUL VL]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #-1, MUL VL]\n"
+ "b.ne 3b\n"
+ "2:\n"
+ "cbz %[regs], 4f\n"
+ "trn2 z0.d, z0.d, z1.d\n"
+ "ld1rqh z2.h, p7/z, [%[a_ptr0]]\n"
+ ".inst 0x6464e4d4 // bfmmla z20.s, z6.h, z4.h\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0]]\n"
+ ".inst 0x6464e4f5 // bfmmla z21.s, z7.h, z4.h\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x6464e516 // bfmmla z22.s, z8.h, z4.h\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x6464e537 // bfmmla z23.s, z9.h, z4.h\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x6464e558 // bfmmla z24.s, z10.h, z4.h\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ ".inst 0x6464e579 // bfmmla z25.s, z11.h, z4.h\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "mov z3.h, #0\n"
+ ".inst 0x6460e4d4 // bfmmla z20.s, z6.h, z0.h\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ ".inst 0x6460e4f5 // bfmmla z21.s, z7.h, z0.h\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ ".inst 0x6460e516 // bfmmla z22.s, z8.h, z0.h\n"
+ "addvl %[b_ptr0], %[b_ptr0], #6\n"
+ "trn2 z4.d, z2.d, z3.d\n"
+ ".inst 0x6460e537 // bfmmla z23.s, z9.h, z0.h\n"
+ ".inst 0x6460e558 // bfmmla z24.s, z10.h, z0.h\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x6460e579 // bfmmla z25.s, z11.h, z0.h\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "trn1 z0.d, z2.d, z3.d\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "mov z1.h, #0\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ ".inst 0x6460e4d4 // bfmmla z20.s, z6.h, z0.h\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ ".inst 0x6460e4f5 // bfmmla z21.s, z7.h, z0.h\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ ".inst 0x6460e516 // bfmmla z22.s, z8.h, z0.h\n"
+ "addvl %[b_ptr0], %[b_ptr0], #16\n"
+ ".inst 0x6460e537 // bfmmla z23.s, z9.h, z0.h\n"
+ ".inst 0x6460e558 // bfmmla z24.s, z10.h, z0.h\n"
+ ".inst 0x6460e579 // bfmmla z25.s, z11.h, z0.h\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #-8, MUL VL]\n"
+ ".inst 0x6464e4d4 // bfmmla z20.s, z6.h, z4.h\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #-7, MUL VL]\n"
+ ".inst 0x6464e4f5 // bfmmla z21.s, z7.h, z4.h\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #-6, MUL VL]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #-5, MUL VL]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #-4\n"
+ ".inst 0x6464e516 // bfmmla z22.s, z8.h, z4.h\n"
+ "ld1rqh z0.h, p6/z, [%[a_ptr0], #0x10]\n"
+ ".inst 0x6464e537 // bfmmla z23.s, z9.h, z4.h\n"
+ "addvl %[a_ptr0], %[a_ptr0], #2\n"
+ ".inst 0x6464e558 // bfmmla z24.s, z10.h, z4.h\n"
+ ".inst 0x6464e579 // bfmmla z25.s, z11.h, z4.h\n"
+ "trn1 z4.d, z0.d, z1.d\n"
+ "cbz %[blocks], 5f\n"
+ "trn2 z0.d, z0.d, z1.d\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0]]\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "subs %[blocks], %[blocks], #0x1\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x6464e4d4 // bfmmla z20.s, z6.h, z4.h\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x6464e4f5 // bfmmla z21.s, z7.h, z4.h\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ ".inst 0x6464e516 // bfmmla z22.s, z8.h, z4.h\n"
+ ".inst 0x6464e537 // bfmmla z23.s, z9.h, z4.h\n"
+ ".inst 0x6464e558 // bfmmla z24.s, z10.h, z4.h\n"
+ ".inst 0x6464e579 // bfmmla z25.s, z11.h, z4.h\n"
+ "b.eq 5f\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #12\n"
+ ".inst 0x6460e4d4 // bfmmla z20.s, z6.h, z0.h\n"
+ ".inst 0x6460e4f5 // bfmmla z21.s, z7.h, z0.h\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #-4, MUL VL]\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #-3, MUL VL]\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #-2, MUL VL]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #-1, MUL VL]\n"
+ ".inst 0x6460e516 // bfmmla z22.s, z8.h, z0.h\n"
+ ".inst 0x6460e537 // bfmmla z23.s, z9.h, z0.h\n"
+ ".inst 0x6460e558 // bfmmla z24.s, z10.h, z0.h\n"
+ ".inst 0x6460e579 // bfmmla z25.s, z11.h, z0.h\n"
+ "b 5f\n"
+ "4:\n"
+ "trn2 z0.d, z0.d, z1.d\n"
+ "ld1rqh z2.h, p6/z, [%[a_ptr0]]\n"
+ ".inst 0x6464e4d4 // bfmmla z20.s, z6.h, z4.h\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0]]\n"
+ ".inst 0x6464e4f5 // bfmmla z21.s, z7.h, z4.h\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x6464e516 // bfmmla z22.s, z8.h, z4.h\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x6464e537 // bfmmla z23.s, z9.h, z4.h\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x6464e558 // bfmmla z24.s, z10.h, z4.h\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ ".inst 0x6464e579 // bfmmla z25.s, z11.h, z4.h\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "mov z3.h, #0\n"
+ "addvl %[b_ptr0], %[b_ptr0], #6\n"
+ ".inst 0x6460e4d4 // bfmmla z20.s, z6.h, z0.h\n"
+ "addvl %[a_ptr0], %[a_ptr0], #1\n"
+ ".inst 0x6460e4f5 // bfmmla z21.s, z7.h, z0.h\n"
+ ".inst 0x6460e516 // bfmmla z22.s, z8.h, z0.h\n"
+ ".inst 0x6460e537 // bfmmla z23.s, z9.h, z0.h\n"
+ ".inst 0x6460e558 // bfmmla z24.s, z10.h, z0.h\n"
+ ".inst 0x6460e579 // bfmmla z25.s, z11.h, z0.h\n"
+ "trn1 z0.d, z2.d, z3.d\n"
+ "cbz %[blocks], 5f\n"
+ "trn2 z4.d, z2.d, z3.d\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0]]\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "subs %[blocks], %[blocks], #0x1\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x6460e4d4 // bfmmla z20.s, z6.h, z0.h\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x6460e4f5 // bfmmla z21.s, z7.h, z0.h\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ ".inst 0x6460e516 // bfmmla z22.s, z8.h, z0.h\n"
+ ".inst 0x6460e537 // bfmmla z23.s, z9.h, z0.h\n"
+ ".inst 0x6460e558 // bfmmla z24.s, z10.h, z0.h\n"
+ ".inst 0x6460e579 // bfmmla z25.s, z11.h, z0.h\n"
+ "b.eq 5f\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #16\n"
+ ".inst 0x6464e4d4 // bfmmla z20.s, z6.h, z4.h\n"
+ ".inst 0x6464e4f5 // bfmmla z21.s, z7.h, z4.h\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #-8, MUL VL]\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #-7, MUL VL]\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #-6, MUL VL]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #-5, MUL VL]\n"
+ ".inst 0x6464e516 // bfmmla z22.s, z8.h, z4.h\n"
+ ".inst 0x6464e537 // bfmmla z23.s, z9.h, z4.h\n"
+ ".inst 0x6464e558 // bfmmla z24.s, z10.h, z4.h\n"
+ ".inst 0x6464e579 // bfmmla z25.s, z11.h, z4.h\n"
+ "5:\n"
+ "ld1rw z18.s, p7/z, [%[minptr]]\n"
+ "ld1rw z19.s, p7/z, [%[maxptr]]\n"
+ "fmax z20.s, p7/m, z20.s, z18.s\n"
+ "fmax z21.s, p7/m, z21.s, z18.s\n"
+ "fmax z22.s, p7/m, z22.s, z18.s\n"
+ "fmax z23.s, p7/m, z23.s, z18.s\n"
+ "fmin z20.s, p7/m, z20.s, z19.s\n"
+ "fmin z21.s, p7/m, z21.s, z19.s\n"
+ "fmin z22.s, p7/m, z22.s, z19.s\n"
+ "fmin z23.s, p7/m, z23.s, z19.s\n"
+ "fmax z24.s, p7/m, z24.s, z18.s\n"
+ "uzp1 z0.s, z20.s, z21.s\n"
+ "fmax z25.s, p7/m, z25.s, z18.s\n"
+ "uzp1 z1.s, z22.s, z23.s\n"
+ "fmin z24.s, p7/m, z24.s, z19.s\n"
+ "st1w z0.s, p0, [%[c_ptr0]]\n"
+ "fmin z25.s, p7/m, z25.s, z19.s\n"
+ "st1w z1.s, p1, [%[c_ptr0], #1, MUL VL]\n"
+ "uzp1 z2.s, z24.s, z25.s\n"
+ "st1w z2.s, p2, [%[c_ptr0], #2, MUL VL]\n"
+ "addvl %[c_ptr0], %[c_ptr0], #3\n"
+ : [a_ptr0] "+r" (a_ptr0), [b_ptr0] "+r" (b_ptr0), [c_ptr0] "+r" (c_ptr0), [loops] "+r" (loops), [regs] "+r" (regs), [temp] "+r" (temp), [blocks] "+r" (blocks)
+ : [width] "r" (width), [append] "r" (static_cast<uint64_t>(append)), [lda] "r" (ldab), [ldc] "r" (ldcb), [biasptr] "r" (biasptr), [minptr] "r" (minptr), [maxptr] "r" (maxptr), [leftovers] "r" (leftovers)
+ : "z0", "z1", "z2", "z3", "z4", "z5", "z6", "z7", "z8", "z9", "z10", "z11", "z12", "z13", "z14", "z15", "z16", "z17", "z18", "z19", "z20", "z21", "z22", "z23", "z24", "z25", "z26", "z27", "z28", "z29", "z30", "z31", "cc", "memory"
+ );
+ break;
+ case 2:
+ __asm __volatile (
+ "a_ptr1 .req X0\n"
+ "c_ptr1 .req X1\n"
+ "add a_ptr1, %[a_ptr0], %[lda]\n"
+ "add c_ptr1, %[c_ptr0], %[ldc]\n"
+ "whilelt p6.h, %[temp], %[leftovers]\n"
+ "whilelt p0.s, %[temp], %[width]\n"
+ "incw %[temp], all, mul #1\n"
+ "ptrue p7.h\n"
+ "whilelt p1.s, %[temp], %[width]\n"
+ "incw %[temp], all, mul #1\n"
+ "whilelt p2.s, %[temp], %[width]\n"
+ "cbnz %[append], 1f\n"
+ "ld1w z19.s, p0/z, [%[biasptr]]\n"
+ "ld1rqh z0.h, p7/z, [%[a_ptr0]]\n"
+ "add %[a_ptr0], %[a_ptr0], #0x10\n"
+ "ld1rqh z1.h, p7/z, [a_ptr1]\n"
+ "add a_ptr1, a_ptr1, #0x10\n"
+ "zip1 z20.s, z19.s, z19.s\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0]]\n"
+ "zip2 z21.s, z19.s, z19.s\n"
+ "ld1w z19.s, p1/z, [%[biasptr], #1, MUL VL]\n"
+ "trn1 z4.d, z0.d, z1.d\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "zip1 z22.s, z19.s, z19.s\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "zip2 z23.s, z19.s, z19.s\n"
+ "ld1w z19.s, p2/z, [%[biasptr], #2, MUL VL]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #6\n"
+ "zip1 z24.s, z19.s, z19.s\n"
+ "zip2 z25.s, z19.s, z19.s\n"
+ "cbz %[loops], 2f\n"
+ "b 3f\n"
+ "1:\n"
+ "ld1w z17.s, p0/z, [%[c_ptr0]]\n"
+ "ld1w z18.s, p0/z, [c_ptr1]\n"
+ "ld1rqh z0.h, p7/z, [%[a_ptr0]]\n"
+ "add %[a_ptr0], %[a_ptr0], #0x10\n"
+ "ld1rqh z1.h, p7/z, [a_ptr1]\n"
+ "add a_ptr1, a_ptr1, #0x10\n"
+ "zip1 z20.s, z17.s, z18.s\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0]]\n"
+ "zip2 z21.s, z17.s, z18.s\n"
+ "ld1w z17.s, p1/z, [%[c_ptr0], #1, MUL VL]\n"
+ "trn1 z4.d, z0.d, z1.d\n"
+ "ld1w z18.s, p1/z, [c_ptr1, #1, MUL VL]\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "zip1 z22.s, z17.s, z18.s\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "zip2 z23.s, z17.s, z18.s\n"
+ "ld1w z17.s, p2/z, [%[c_ptr0], #2, MUL VL]\n"
+ "ld1w z18.s, p2/z, [c_ptr1, #2, MUL VL]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #6\n"
+ "zip1 z24.s, z17.s, z18.s\n"
+ "zip2 z25.s, z17.s, z18.s\n"
+ "cbz %[loops], 2f\n"
+ "3:\n"
+ "trn2 z0.d, z0.d, z1.d\n"
+ "ld1rqh z2.h, p7/z, [%[a_ptr0]]\n"
+ ".inst 0x6464e4d4 // bfmmla z20.s, z6.h, z4.h\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0]]\n"
+ ".inst 0x6464e4f5 // bfmmla z21.s, z7.h, z4.h\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x6464e516 // bfmmla z22.s, z8.h, z4.h\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x6464e537 // bfmmla z23.s, z9.h, z4.h\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x6464e558 // bfmmla z24.s, z10.h, z4.h\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ ".inst 0x6464e579 // bfmmla z25.s, z11.h, z4.h\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ ".inst 0x6460e4d4 // bfmmla z20.s, z6.h, z0.h\n"
+ "ld1rqh z3.h, p7/z, [a_ptr1]\n"
+ ".inst 0x6460e4f5 // bfmmla z21.s, z7.h, z0.h\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ ".inst 0x6460e516 // bfmmla z22.s, z8.h, z0.h\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ ".inst 0x6460e537 // bfmmla z23.s, z9.h, z0.h\n"
+ "subs %[loops], %[loops], #0x1\n"
+ "trn2 z4.d, z2.d, z3.d\n"
+ "add %[a_ptr0], %[a_ptr0], #0x20\n"
+ ".inst 0x6460e558 // bfmmla z24.s, z10.h, z0.h\n"
+ "add a_ptr1, a_ptr1, #0x20\n"
+ ".inst 0x6460e579 // bfmmla z25.s, z11.h, z0.h\n"
+ "ld1rqh z1.h, p7/z, [a_ptr1, #-0x10]\n"
+ "trn1 z0.d, z2.d, z3.d\n"
+ "addvl %[b_ptr0], %[b_ptr0], #16\n"
+ ".inst 0x6460e4d4 // bfmmla z20.s, z6.h, z0.h\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #-8, MUL VL]\n"
+ ".inst 0x6460e4f5 // bfmmla z21.s, z7.h, z0.h\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #-7, MUL VL]\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #-6, MUL VL]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #-5, MUL VL]\n"
+ ".inst 0x6460e516 // bfmmla z22.s, z8.h, z0.h\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0], #-4, MUL VL]\n"
+ ".inst 0x6460e537 // bfmmla z23.s, z9.h, z0.h\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #-3, MUL VL]\n"
+ ".inst 0x6460e558 // bfmmla z24.s, z10.h, z0.h\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #-2, MUL VL]\n"
+ ".inst 0x6460e579 // bfmmla z25.s, z11.h, z0.h\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #-1, MUL VL]\n"
+ ".inst 0x6464e4d4 // bfmmla z20.s, z6.h, z4.h\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0]]\n"
+ ".inst 0x6464e4f5 // bfmmla z21.s, z7.h, z4.h\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x6464e516 // bfmmla z22.s, z8.h, z4.h\n"
+ "ld1rqh z0.h, p7/z, [%[a_ptr0], #-0x10]\n"
+ ".inst 0x6464e537 // bfmmla z23.s, z9.h, z4.h\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ ".inst 0x6464e558 // bfmmla z24.s, z10.h, z4.h\n"
+ ".inst 0x6464e579 // bfmmla z25.s, z11.h, z4.h\n"
+ "trn1 z4.d, z0.d, z1.d\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0], #-6, MUL VL]\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #-5, MUL VL]\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #-4, MUL VL]\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #-3, MUL VL]\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #-2, MUL VL]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #-1, MUL VL]\n"
+ "b.ne 3b\n"
+ "2:\n"
+ "cbz %[regs], 4f\n"
+ "trn2 z0.d, z0.d, z1.d\n"
+ "ld1rqh z2.h, p7/z, [%[a_ptr0]]\n"
+ ".inst 0x6464e4d4 // bfmmla z20.s, z6.h, z4.h\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0]]\n"
+ ".inst 0x6464e4f5 // bfmmla z21.s, z7.h, z4.h\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x6464e516 // bfmmla z22.s, z8.h, z4.h\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x6464e537 // bfmmla z23.s, z9.h, z4.h\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x6464e558 // bfmmla z24.s, z10.h, z4.h\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ ".inst 0x6464e579 // bfmmla z25.s, z11.h, z4.h\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ ".inst 0x6460e4d4 // bfmmla z20.s, z6.h, z0.h\n"
+ "ld1rqh z3.h, p7/z, [a_ptr1]\n"
+ ".inst 0x6460e4f5 // bfmmla z21.s, z7.h, z0.h\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ ".inst 0x6460e516 // bfmmla z22.s, z8.h, z0.h\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ ".inst 0x6460e537 // bfmmla z23.s, z9.h, z0.h\n"
+ "ld1rqh z1.h, p6/z, [a_ptr1, #0x10]\n"
+ "trn2 z4.d, z2.d, z3.d\n"
+ "addvl %[b_ptr0], %[b_ptr0], #6\n"
+ ".inst 0x6460e558 // bfmmla z24.s, z10.h, z0.h\n"
+ "addvl a_ptr1, a_ptr1, #2\n"
+ ".inst 0x6460e579 // bfmmla z25.s, z11.h, z0.h\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "trn1 z0.d, z2.d, z3.d\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ ".inst 0x6460e4d4 // bfmmla z20.s, z6.h, z0.h\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ ".inst 0x6460e4f5 // bfmmla z21.s, z7.h, z0.h\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ ".inst 0x6460e516 // bfmmla z22.s, z8.h, z0.h\n"
+ "addvl %[b_ptr0], %[b_ptr0], #16\n"
+ ".inst 0x6460e537 // bfmmla z23.s, z9.h, z0.h\n"
+ ".inst 0x6460e558 // bfmmla z24.s, z10.h, z0.h\n"
+ ".inst 0x6460e579 // bfmmla z25.s, z11.h, z0.h\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #-8, MUL VL]\n"
+ ".inst 0x6464e4d4 // bfmmla z20.s, z6.h, z4.h\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #-7, MUL VL]\n"
+ ".inst 0x6464e4f5 // bfmmla z21.s, z7.h, z4.h\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #-6, MUL VL]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #-5, MUL VL]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #-4\n"
+ ".inst 0x6464e516 // bfmmla z22.s, z8.h, z4.h\n"
+ "ld1rqh z0.h, p6/z, [%[a_ptr0], #0x10]\n"
+ ".inst 0x6464e537 // bfmmla z23.s, z9.h, z4.h\n"
+ "addvl %[a_ptr0], %[a_ptr0], #2\n"
+ ".inst 0x6464e558 // bfmmla z24.s, z10.h, z4.h\n"
+ ".inst 0x6464e579 // bfmmla z25.s, z11.h, z4.h\n"
+ "trn1 z4.d, z0.d, z1.d\n"
+ "cbz %[blocks], 5f\n"
+ "trn2 z0.d, z0.d, z1.d\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0]]\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "subs %[blocks], %[blocks], #0x1\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x6464e4d4 // bfmmla z20.s, z6.h, z4.h\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x6464e4f5 // bfmmla z21.s, z7.h, z4.h\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ ".inst 0x6464e516 // bfmmla z22.s, z8.h, z4.h\n"
+ ".inst 0x6464e537 // bfmmla z23.s, z9.h, z4.h\n"
+ ".inst 0x6464e558 // bfmmla z24.s, z10.h, z4.h\n"
+ ".inst 0x6464e579 // bfmmla z25.s, z11.h, z4.h\n"
+ "b.eq 5f\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #12\n"
+ ".inst 0x6460e4d4 // bfmmla z20.s, z6.h, z0.h\n"
+ ".inst 0x6460e4f5 // bfmmla z21.s, z7.h, z0.h\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #-4, MUL VL]\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #-3, MUL VL]\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #-2, MUL VL]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #-1, MUL VL]\n"
+ ".inst 0x6460e516 // bfmmla z22.s, z8.h, z0.h\n"
+ ".inst 0x6460e537 // bfmmla z23.s, z9.h, z0.h\n"
+ ".inst 0x6460e558 // bfmmla z24.s, z10.h, z0.h\n"
+ ".inst 0x6460e579 // bfmmla z25.s, z11.h, z0.h\n"
+ "b 5f\n"
+ "4:\n"
+ "trn2 z0.d, z0.d, z1.d\n"
+ "ld1rqh z2.h, p6/z, [%[a_ptr0]]\n"
+ ".inst 0x6464e4d4 // bfmmla z20.s, z6.h, z4.h\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0]]\n"
+ ".inst 0x6464e4f5 // bfmmla z21.s, z7.h, z4.h\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x6464e516 // bfmmla z22.s, z8.h, z4.h\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x6464e537 // bfmmla z23.s, z9.h, z4.h\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x6464e558 // bfmmla z24.s, z10.h, z4.h\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ ".inst 0x6464e579 // bfmmla z25.s, z11.h, z4.h\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ ".inst 0x6460e4d4 // bfmmla z20.s, z6.h, z0.h\n"
+ "ld1rqh z3.h, p6/z, [a_ptr1]\n"
+ ".inst 0x6460e4f5 // bfmmla z21.s, z7.h, z0.h\n"
+ "addvl %[b_ptr0], %[b_ptr0], #6\n"
+ ".inst 0x6460e516 // bfmmla z22.s, z8.h, z0.h\n"
+ "addvl %[a_ptr0], %[a_ptr0], #1\n"
+ ".inst 0x6460e537 // bfmmla z23.s, z9.h, z0.h\n"
+ "addvl a_ptr1, a_ptr1, #1\n"
+ ".inst 0x6460e558 // bfmmla z24.s, z10.h, z0.h\n"
+ ".inst 0x6460e579 // bfmmla z25.s, z11.h, z0.h\n"
+ "trn1 z0.d, z2.d, z3.d\n"
+ "cbz %[blocks], 5f\n"
+ "trn2 z4.d, z2.d, z3.d\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0]]\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "subs %[blocks], %[blocks], #0x1\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x6460e4d4 // bfmmla z20.s, z6.h, z0.h\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x6460e4f5 // bfmmla z21.s, z7.h, z0.h\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ ".inst 0x6460e516 // bfmmla z22.s, z8.h, z0.h\n"
+ ".inst 0x6460e537 // bfmmla z23.s, z9.h, z0.h\n"
+ ".inst 0x6460e558 // bfmmla z24.s, z10.h, z0.h\n"
+ ".inst 0x6460e579 // bfmmla z25.s, z11.h, z0.h\n"
+ "b.eq 5f\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #16\n"
+ ".inst 0x6464e4d4 // bfmmla z20.s, z6.h, z4.h\n"
+ ".inst 0x6464e4f5 // bfmmla z21.s, z7.h, z4.h\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #-8, MUL VL]\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #-7, MUL VL]\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #-6, MUL VL]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #-5, MUL VL]\n"
+ ".inst 0x6464e516 // bfmmla z22.s, z8.h, z4.h\n"
+ ".inst 0x6464e537 // bfmmla z23.s, z9.h, z4.h\n"
+ ".inst 0x6464e558 // bfmmla z24.s, z10.h, z4.h\n"
+ ".inst 0x6464e579 // bfmmla z25.s, z11.h, z4.h\n"
+ "5:\n"
+ "ld1rw z18.s, p7/z, [%[minptr]]\n"
+ "ld1rw z19.s, p7/z, [%[maxptr]]\n"
+ "fmax z20.s, p7/m, z20.s, z18.s\n"
+ "fmax z21.s, p7/m, z21.s, z18.s\n"
+ "fmax z22.s, p7/m, z22.s, z18.s\n"
+ "fmax z23.s, p7/m, z23.s, z18.s\n"
+ "fmin z20.s, p7/m, z20.s, z19.s\n"
+ "fmin z21.s, p7/m, z21.s, z19.s\n"
+ "fmin z22.s, p7/m, z22.s, z19.s\n"
+ "fmin z23.s, p7/m, z23.s, z19.s\n"
+ "fmax z24.s, p7/m, z24.s, z18.s\n"
+ "uzp1 z0.s, z20.s, z21.s\n"
+ "uzp2 z1.s, z20.s, z21.s\n"
+ "uzp1 z2.s, z22.s, z23.s\n"
+ "uzp2 z3.s, z22.s, z23.s\n"
+ "st1w z0.s, p0, [%[c_ptr0]]\n"
+ "fmin z24.s, p7/m, z24.s, z19.s\n"
+ "fmax z25.s, p7/m, z25.s, z18.s\n"
+ "st1w z1.s, p0, [c_ptr1]\n"
+ "fmin z25.s, p7/m, z25.s, z19.s\n"
+ "st1w z2.s, p1, [%[c_ptr0], #1, MUL VL]\n"
+ "uzp1 z4.s, z24.s, z25.s\n"
+ "uzp2 z5.s, z24.s, z25.s\n"
+ "st1w z3.s, p1, [c_ptr1, #1, MUL VL]\n"
+ "st1w z4.s, p2, [%[c_ptr0], #2, MUL VL]\n"
+ "addvl %[c_ptr0], %[c_ptr0], #3\n"
+ "st1w z5.s, p2, [c_ptr1, #2, MUL VL]\n"
+ ".unreq a_ptr1\n"
+ ".unreq c_ptr1\n"
+ : [a_ptr0] "+r" (a_ptr0), [b_ptr0] "+r" (b_ptr0), [c_ptr0] "+r" (c_ptr0), [loops] "+r" (loops), [regs] "+r" (regs), [temp] "+r" (temp), [blocks] "+r" (blocks)
+ : [width] "r" (width), [append] "r" (static_cast<uint64_t>(append)), [lda] "r" (ldab), [ldc] "r" (ldcb), [biasptr] "r" (biasptr), [minptr] "r" (minptr), [maxptr] "r" (maxptr), [leftovers] "r" (leftovers)
+ : "z0", "z1", "z2", "z3", "z4", "z5", "z6", "z7", "z8", "z9", "z10", "z11", "z12", "z13", "z14", "z15", "z16", "z17", "z18", "z19", "z20", "z21", "z22", "z23", "z24", "z25", "z26", "z27", "z28", "z29", "z30", "z31", "x0", "x1", "cc", "memory"
+ );
+ break;
+ case 3:
+ __asm __volatile (
+ "a_ptr1 .req X0\n"
+ "a_ptr2 .req X1\n"
+ "c_ptr1 .req X2\n"
+ "c_ptr2 .req X3\n"
+ "add a_ptr1, %[a_ptr0], %[lda]\n"
+ "add c_ptr1, %[c_ptr0], %[ldc]\n"
+ "add a_ptr2, a_ptr1, %[lda]\n"
+ "add c_ptr2, c_ptr1, %[ldc]\n"
+ "whilelt p6.h, %[temp], %[leftovers]\n"
+ "whilelt p0.s, %[temp], %[width]\n"
+ "incw %[temp], all, mul #1\n"
+ "ptrue p7.h\n"
+ "whilelt p1.s, %[temp], %[width]\n"
+ "incw %[temp], all, mul #1\n"
+ "whilelt p2.s, %[temp], %[width]\n"
+ "cbnz %[append], 1f\n"
+ "mov z3.h, #0\n"
+ "ld1w z19.s, p0/z, [%[biasptr]]\n"
+ "ld1rqh z0.h, p7/z, [%[a_ptr0]]\n"
+ "add %[a_ptr0], %[a_ptr0], #0x10\n"
+ "ld1rqh z1.h, p7/z, [a_ptr1]\n"
+ "add a_ptr1, a_ptr1, #0x10\n"
+ "zip1 z20.s, z19.s, z19.s\n"
+ "ld1rqh z2.h, p7/z, [a_ptr2]\n"
+ "zip2 z21.s, z19.s, z19.s\n"
+ "ld1w z19.s, p1/z, [%[biasptr], #1, MUL VL]\n"
+ "trn1 z4.d, z0.d, z1.d\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0]]\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "add a_ptr2, a_ptr2, #0x10\n"
+ "zip1 z22.s, z19.s, z19.s\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "zip2 z23.s, z19.s, z19.s\n"
+ "ld1w z19.s, p2/z, [%[biasptr], #2, MUL VL]\n"
+ "trn1 z5.d, z2.d, z3.d\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "mov z26.d, z20.d\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "mov z27.d, z21.d\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "zip1 z24.s, z19.s, z19.s\n"
+ "addvl %[b_ptr0], %[b_ptr0], #6\n"
+ "zip2 z25.s, z19.s, z19.s\n"
+ "mov z28.d, z22.d\n"
+ "mov z29.d, z23.d\n"
+ "mov z30.d, z24.d\n"
+ "mov z31.d, z25.d\n"
+ "cbz %[loops], 2f\n"
+ "b 3f\n"
+ "1:\n"
+ "mov z3.h, #0\n"
+ "ld1w z17.s, p0/z, [%[c_ptr0]]\n"
+ "ld1w z18.s, p0/z, [c_ptr1]\n"
+ "ld1rqh z0.h, p7/z, [%[a_ptr0]]\n"
+ "add %[a_ptr0], %[a_ptr0], #0x10\n"
+ "ld1rqh z1.h, p7/z, [a_ptr1]\n"
+ "add a_ptr1, a_ptr1, #0x10\n"
+ "zip1 z20.s, z17.s, z18.s\n"
+ "ld1rqh z2.h, p7/z, [a_ptr2]\n"
+ "zip2 z21.s, z17.s, z18.s\n"
+ "ld1w z17.s, p1/z, [%[c_ptr0], #1, MUL VL]\n"
+ "trn1 z4.d, z0.d, z1.d\n"
+ "ld1w z18.s, p1/z, [c_ptr1, #1, MUL VL]\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0]]\n"
+ "add a_ptr2, a_ptr2, #0x10\n"
+ "trn1 z5.d, z2.d, z3.d\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "zip1 z22.s, z17.s, z18.s\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "zip2 z23.s, z17.s, z18.s\n"
+ "ld1w z17.s, p2/z, [%[c_ptr0], #2, MUL VL]\n"
+ "ld1w z18.s, p2/z, [c_ptr1, #2, MUL VL]\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #6\n"
+ "zip1 z24.s, z17.s, z18.s\n"
+ "zip2 z25.s, z17.s, z18.s\n"
+ "ld1w z17.s, p0/z, [c_ptr2]\n"
+ "mov z18.s, #0\n"
+ "zip1 z26.s, z17.s, z18.s\n"
+ "zip2 z27.s, z17.s, z18.s\n"
+ "ld1w z17.s, p1/z, [c_ptr2, #1, MUL VL]\n"
+ "mov z18.s, #0\n"
+ "zip1 z28.s, z17.s, z18.s\n"
+ "zip2 z29.s, z17.s, z18.s\n"
+ "ld1w z17.s, p2/z, [c_ptr2, #2, MUL VL]\n"
+ "mov z18.s, #0\n"
+ "zip1 z30.s, z17.s, z18.s\n"
+ "zip2 z31.s, z17.s, z18.s\n"
+ "cbz %[loops], 2f\n"
+ "3:\n"
+ "trn2 z0.d, z0.d, z1.d\n"
+ "subs %[loops], %[loops], #0x1\n"
+ "trn2 z1.d, z2.d, z3.d\n"
+ "ld1rqh z2.h, p7/z, [%[a_ptr0]]\n"
+ ".inst 0x6464e4d4 // bfmmla z20.s, z6.h, z4.h\n"
+ "ld1rqh z3.h, p7/z, [a_ptr1]\n"
+ ".inst 0x6464e4f5 // bfmmla z21.s, z7.h, z4.h\n"
+ "add %[a_ptr0], %[a_ptr0], #0x20\n"
+ ".inst 0x6464e516 // bfmmla z22.s, z8.h, z4.h\n"
+ "add a_ptr1, a_ptr1, #0x20\n"
+ ".inst 0x6464e537 // bfmmla z23.s, z9.h, z4.h\n"
+ ".inst 0x6464e558 // bfmmla z24.s, z10.h, z4.h\n"
+ ".inst 0x6464e579 // bfmmla z25.s, z11.h, z4.h\n"
+ "ld1rqh z4.h, p7/z, [a_ptr2]\n"
+ ".inst 0x6465e4da // bfmmla z26.s, z6.h, z5.h\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0]]\n"
+ ".inst 0x6465e4fb // bfmmla z27.s, z7.h, z5.h\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x6465e51c // bfmmla z28.s, z8.h, z5.h\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x6465e53d // bfmmla z29.s, z9.h, z5.h\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x6465e55e // bfmmla z30.s, z10.h, z5.h\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ ".inst 0x6465e57f // bfmmla z31.s, z11.h, z5.h\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "mov z5.h, #0\n"
+ "add a_ptr2, a_ptr2, #0x20\n"
+ ".inst 0x6460e4d4 // bfmmla z20.s, z6.h, z0.h\n"
+ ".inst 0x6460e4f5 // bfmmla z21.s, z7.h, z0.h\n"
+ ".inst 0x6460e516 // bfmmla z22.s, z8.h, z0.h\n"
+ ".inst 0x6460e537 // bfmmla z23.s, z9.h, z0.h\n"
+ ".inst 0x6460e558 // bfmmla z24.s, z10.h, z0.h\n"
+ ".inst 0x6460e579 // bfmmla z25.s, z11.h, z0.h\n"
+ "trn1 z0.d, z2.d, z3.d\n"
+ ".inst 0x6461e4da // bfmmla z26.s, z6.h, z1.h\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ ".inst 0x6461e4fb // bfmmla z27.s, z7.h, z1.h\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ ".inst 0x6461e51c // bfmmla z28.s, z8.h, z1.h\n"
+ "addvl %[b_ptr0], %[b_ptr0], #16\n"
+ ".inst 0x6461e53d // bfmmla z29.s, z9.h, z1.h\n"
+ ".inst 0x6461e55e // bfmmla z30.s, z10.h, z1.h\n"
+ ".inst 0x6461e57f // bfmmla z31.s, z11.h, z1.h\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #-8, MUL VL]\n"
+ "trn1 z1.d, z4.d, z5.d\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #-7, MUL VL]\n"
+ "trn2 z5.d, z4.d, z5.d\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #-6, MUL VL]\n"
+ "trn2 z4.d, z2.d, z3.d\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #-5, MUL VL]\n"
+ ".inst 0x6460e4d4 // bfmmla z20.s, z6.h, z0.h\n"
+ "ld1rqh z2.h, p7/z, [a_ptr2, #-0x10]\n"
+ ".inst 0x6460e4f5 // bfmmla z21.s, z7.h, z0.h\n"
+ ".inst 0x6460e516 // bfmmla z22.s, z8.h, z0.h\n"
+ ".inst 0x6460e537 // bfmmla z23.s, z9.h, z0.h\n"
+ ".inst 0x6460e558 // bfmmla z24.s, z10.h, z0.h\n"
+ ".inst 0x6460e579 // bfmmla z25.s, z11.h, z0.h\n"
+ "ld1rqh z0.h, p7/z, [%[a_ptr0], #-0x10]\n"
+ ".inst 0x6461e4da // bfmmla z26.s, z6.h, z1.h\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0], #-4, MUL VL]\n"
+ ".inst 0x6461e4fb // bfmmla z27.s, z7.h, z1.h\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #-3, MUL VL]\n"
+ ".inst 0x6461e51c // bfmmla z28.s, z8.h, z1.h\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #-2, MUL VL]\n"
+ ".inst 0x6461e53d // bfmmla z29.s, z9.h, z1.h\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #-1, MUL VL]\n"
+ ".inst 0x6461e55e // bfmmla z30.s, z10.h, z1.h\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0]]\n"
+ ".inst 0x6461e57f // bfmmla z31.s, z11.h, z1.h\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "mov z3.h, #0\n"
+ "ld1rqh z1.h, p7/z, [a_ptr1, #-0x10]\n"
+ ".inst 0x6464e4d4 // bfmmla z20.s, z6.h, z4.h\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ ".inst 0x6464e4f5 // bfmmla z21.s, z7.h, z4.h\n"
+ ".inst 0x6464e516 // bfmmla z22.s, z8.h, z4.h\n"
+ ".inst 0x6464e537 // bfmmla z23.s, z9.h, z4.h\n"
+ ".inst 0x6464e558 // bfmmla z24.s, z10.h, z4.h\n"
+ ".inst 0x6464e579 // bfmmla z25.s, z11.h, z4.h\n"
+ "trn1 z4.d, z0.d, z1.d\n"
+ ".inst 0x6465e4da // bfmmla z26.s, z6.h, z5.h\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0], #-6, MUL VL]\n"
+ ".inst 0x6465e4fb // bfmmla z27.s, z7.h, z5.h\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #-5, MUL VL]\n"
+ ".inst 0x6465e51c // bfmmla z28.s, z8.h, z5.h\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #-4, MUL VL]\n"
+ ".inst 0x6465e53d // bfmmla z29.s, z9.h, z5.h\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #-3, MUL VL]\n"
+ ".inst 0x6465e55e // bfmmla z30.s, z10.h, z5.h\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #-2, MUL VL]\n"
+ ".inst 0x6465e57f // bfmmla z31.s, z11.h, z5.h\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #-1, MUL VL]\n"
+ "trn1 z5.d, z2.d, z3.d\n"
+ "b.ne 3b\n"
+ "2:\n"
+ "cbz %[regs], 4f\n"
+ "trn2 z0.d, z0.d, z1.d\n"
+ "trn2 z1.d, z2.d, z3.d\n"
+ "ld1rqh z2.h, p7/z, [%[a_ptr0]]\n"
+ ".inst 0x6464e4d4 // bfmmla z20.s, z6.h, z4.h\n"
+ "ld1rqh z3.h, p7/z, [a_ptr1]\n"
+ ".inst 0x6464e4f5 // bfmmla z21.s, z7.h, z4.h\n"
+ ".inst 0x6464e516 // bfmmla z22.s, z8.h, z4.h\n"
+ ".inst 0x6464e537 // bfmmla z23.s, z9.h, z4.h\n"
+ ".inst 0x6464e558 // bfmmla z24.s, z10.h, z4.h\n"
+ ".inst 0x6464e579 // bfmmla z25.s, z11.h, z4.h\n"
+ "ld1rqh z4.h, p7/z, [a_ptr2]\n"
+ ".inst 0x6465e4da // bfmmla z26.s, z6.h, z5.h\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0]]\n"
+ ".inst 0x6465e4fb // bfmmla z27.s, z7.h, z5.h\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x6465e51c // bfmmla z28.s, z8.h, z5.h\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x6465e53d // bfmmla z29.s, z9.h, z5.h\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x6465e55e // bfmmla z30.s, z10.h, z5.h\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ ".inst 0x6465e57f // bfmmla z31.s, z11.h, z5.h\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "mov z5.h, #0\n"
+ ".inst 0x6460e4d4 // bfmmla z20.s, z6.h, z0.h\n"
+ ".inst 0x6460e4f5 // bfmmla z21.s, z7.h, z0.h\n"
+ ".inst 0x6460e516 // bfmmla z22.s, z8.h, z0.h\n"
+ ".inst 0x6460e537 // bfmmla z23.s, z9.h, z0.h\n"
+ ".inst 0x6460e558 // bfmmla z24.s, z10.h, z0.h\n"
+ ".inst 0x6460e579 // bfmmla z25.s, z11.h, z0.h\n"
+ "trn1 z0.d, z2.d, z3.d\n"
+ ".inst 0x6461e4da // bfmmla z26.s, z6.h, z1.h\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ ".inst 0x6461e4fb // bfmmla z27.s, z7.h, z1.h\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ ".inst 0x6461e51c // bfmmla z28.s, z8.h, z1.h\n"
+ "addvl %[b_ptr0], %[b_ptr0], #6\n"
+ ".inst 0x6461e53d // bfmmla z29.s, z9.h, z1.h\n"
+ ".inst 0x6461e55e // bfmmla z30.s, z10.h, z1.h\n"
+ ".inst 0x6461e57f // bfmmla z31.s, z11.h, z1.h\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "trn1 z1.d, z4.d, z5.d\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "trn2 z5.d, z4.d, z5.d\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "trn2 z4.d, z2.d, z3.d\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ ".inst 0x6460e4d4 // bfmmla z20.s, z6.h, z0.h\n"
+ "ld1rqh z2.h, p6/z, [a_ptr2, #0x10]\n"
+ ".inst 0x6460e4f5 // bfmmla z21.s, z7.h, z0.h\n"
+ "addvl a_ptr2, a_ptr2, #2\n"
+ ".inst 0x6460e516 // bfmmla z22.s, z8.h, z0.h\n"
+ ".inst 0x6460e537 // bfmmla z23.s, z9.h, z0.h\n"
+ ".inst 0x6460e558 // bfmmla z24.s, z10.h, z0.h\n"
+ ".inst 0x6460e579 // bfmmla z25.s, z11.h, z0.h\n"
+ "ld1rqh z0.h, p6/z, [%[a_ptr0], #0x10]\n"
+ ".inst 0x6461e4da // bfmmla z26.s, z6.h, z1.h\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ ".inst 0x6461e4fb // bfmmla z27.s, z7.h, z1.h\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ ".inst 0x6461e51c // bfmmla z28.s, z8.h, z1.h\n"
+ "addvl %[b_ptr0], %[b_ptr0], #16\n"
+ ".inst 0x6461e53d // bfmmla z29.s, z9.h, z1.h\n"
+ "addvl %[a_ptr0], %[a_ptr0], #2\n"
+ ".inst 0x6461e55e // bfmmla z30.s, z10.h, z1.h\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #-8, MUL VL]\n"
+ ".inst 0x6461e57f // bfmmla z31.s, z11.h, z1.h\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #-7, MUL VL]\n"
+ "mov z3.h, #0\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #-6, MUL VL]\n"
+ ".inst 0x6464e4d4 // bfmmla z20.s, z6.h, z4.h\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #-5, MUL VL]\n"
+ ".inst 0x6464e4f5 // bfmmla z21.s, z7.h, z4.h\n"
+ "ld1rqh z1.h, p6/z, [a_ptr1, #0x10]\n"
+ ".inst 0x6464e516 // bfmmla z22.s, z8.h, z4.h\n"
+ "addvl %[b_ptr0], %[b_ptr0], #-4\n"
+ ".inst 0x6464e537 // bfmmla z23.s, z9.h, z4.h\n"
+ "addvl a_ptr1, a_ptr1, #2\n"
+ ".inst 0x6464e558 // bfmmla z24.s, z10.h, z4.h\n"
+ ".inst 0x6464e579 // bfmmla z25.s, z11.h, z4.h\n"
+ "trn1 z4.d, z0.d, z1.d\n"
+ ".inst 0x6465e4da // bfmmla z26.s, z6.h, z5.h\n"
+ ".inst 0x6465e4fb // bfmmla z27.s, z7.h, z5.h\n"
+ ".inst 0x6465e51c // bfmmla z28.s, z8.h, z5.h\n"
+ ".inst 0x6465e53d // bfmmla z29.s, z9.h, z5.h\n"
+ ".inst 0x6465e55e // bfmmla z30.s, z10.h, z5.h\n"
+ ".inst 0x6465e57f // bfmmla z31.s, z11.h, z5.h\n"
+ "trn1 z5.d, z2.d, z3.d\n"
+ "cbz %[blocks], 5f\n"
+ "trn2 z0.d, z0.d, z1.d\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0]]\n"
+ "trn2 z1.d, z2.d, z3.d\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "subs %[blocks], %[blocks], #0x1\n"
+ ".inst 0x6464e4d4 // bfmmla z20.s, z6.h, z4.h\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x6464e4f5 // bfmmla z21.s, z7.h, z4.h\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ ".inst 0x6464e516 // bfmmla z22.s, z8.h, z4.h\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ ".inst 0x6465e4da // bfmmla z26.s, z6.h, z5.h\n"
+ ".inst 0x6464e537 // bfmmla z23.s, z9.h, z4.h\n"
+ ".inst 0x6464e558 // bfmmla z24.s, z10.h, z4.h\n"
+ ".inst 0x6464e579 // bfmmla z25.s, z11.h, z4.h\n"
+ ".inst 0x6465e4fb // bfmmla z27.s, z7.h, z5.h\n"
+ ".inst 0x6465e51c // bfmmla z28.s, z8.h, z5.h\n"
+ ".inst 0x6465e53d // bfmmla z29.s, z9.h, z5.h\n"
+ ".inst 0x6465e55e // bfmmla z30.s, z10.h, z5.h\n"
+ ".inst 0x6465e57f // bfmmla z31.s, z11.h, z5.h\n"
+ "b.eq 5f\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #12\n"
+ ".inst 0x6460e4d4 // bfmmla z20.s, z6.h, z0.h\n"
+ ".inst 0x6460e4f5 // bfmmla z21.s, z7.h, z0.h\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #-4, MUL VL]\n"
+ ".inst 0x6461e4da // bfmmla z26.s, z6.h, z1.h\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #-3, MUL VL]\n"
+ ".inst 0x6461e4fb // bfmmla z27.s, z7.h, z1.h\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #-2, MUL VL]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #-1, MUL VL]\n"
+ ".inst 0x6460e516 // bfmmla z22.s, z8.h, z0.h\n"
+ ".inst 0x6460e537 // bfmmla z23.s, z9.h, z0.h\n"
+ ".inst 0x6460e558 // bfmmla z24.s, z10.h, z0.h\n"
+ ".inst 0x6460e579 // bfmmla z25.s, z11.h, z0.h\n"
+ ".inst 0x6461e51c // bfmmla z28.s, z8.h, z1.h\n"
+ ".inst 0x6461e53d // bfmmla z29.s, z9.h, z1.h\n"
+ ".inst 0x6461e55e // bfmmla z30.s, z10.h, z1.h\n"
+ ".inst 0x6461e57f // bfmmla z31.s, z11.h, z1.h\n"
+ "b 5f\n"
+ "4:\n"
+ "trn2 z0.d, z0.d, z1.d\n"
+ "trn2 z1.d, z2.d, z3.d\n"
+ "ld1rqh z2.h, p6/z, [%[a_ptr0]]\n"
+ ".inst 0x6464e4d4 // bfmmla z20.s, z6.h, z4.h\n"
+ "ld1rqh z3.h, p6/z, [a_ptr1]\n"
+ ".inst 0x6464e4f5 // bfmmla z21.s, z7.h, z4.h\n"
+ "addvl %[a_ptr0], %[a_ptr0], #1\n"
+ ".inst 0x6464e516 // bfmmla z22.s, z8.h, z4.h\n"
+ "addvl a_ptr1, a_ptr1, #1\n"
+ ".inst 0x6464e537 // bfmmla z23.s, z9.h, z4.h\n"
+ ".inst 0x6464e558 // bfmmla z24.s, z10.h, z4.h\n"
+ ".inst 0x6464e579 // bfmmla z25.s, z11.h, z4.h\n"
+ "ld1rqh z4.h, p6/z, [a_ptr2]\n"
+ ".inst 0x6465e4da // bfmmla z26.s, z6.h, z5.h\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0]]\n"
+ ".inst 0x6465e4fb // bfmmla z27.s, z7.h, z5.h\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x6465e51c // bfmmla z28.s, z8.h, z5.h\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x6465e53d // bfmmla z29.s, z9.h, z5.h\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x6465e55e // bfmmla z30.s, z10.h, z5.h\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ ".inst 0x6465e57f // bfmmla z31.s, z11.h, z5.h\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "mov z5.h, #0\n"
+ "addvl %[b_ptr0], %[b_ptr0], #6\n"
+ ".inst 0x6460e4d4 // bfmmla z20.s, z6.h, z0.h\n"
+ "addvl a_ptr2, a_ptr2, #1\n"
+ ".inst 0x6460e4f5 // bfmmla z21.s, z7.h, z0.h\n"
+ ".inst 0x6460e516 // bfmmla z22.s, z8.h, z0.h\n"
+ ".inst 0x6460e537 // bfmmla z23.s, z9.h, z0.h\n"
+ ".inst 0x6460e558 // bfmmla z24.s, z10.h, z0.h\n"
+ ".inst 0x6460e579 // bfmmla z25.s, z11.h, z0.h\n"
+ "trn1 z0.d, z2.d, z3.d\n"
+ ".inst 0x6461e4da // bfmmla z26.s, z6.h, z1.h\n"
+ ".inst 0x6461e4fb // bfmmla z27.s, z7.h, z1.h\n"
+ ".inst 0x6461e51c // bfmmla z28.s, z8.h, z1.h\n"
+ ".inst 0x6461e53d // bfmmla z29.s, z9.h, z1.h\n"
+ ".inst 0x6461e55e // bfmmla z30.s, z10.h, z1.h\n"
+ ".inst 0x6461e57f // bfmmla z31.s, z11.h, z1.h\n"
+ "trn1 z1.d, z4.d, z5.d\n"
+ "cbz %[blocks], 5f\n"
+ "trn2 z5.d, z4.d, z5.d\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0]]\n"
+ "trn2 z4.d, z2.d, z3.d\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "subs %[blocks], %[blocks], #0x1\n"
+ ".inst 0x6460e4d4 // bfmmla z20.s, z6.h, z0.h\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x6460e4f5 // bfmmla z21.s, z7.h, z0.h\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ ".inst 0x6460e516 // bfmmla z22.s, z8.h, z0.h\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ ".inst 0x6461e4da // bfmmla z26.s, z6.h, z1.h\n"
+ ".inst 0x6460e537 // bfmmla z23.s, z9.h, z0.h\n"
+ ".inst 0x6460e558 // bfmmla z24.s, z10.h, z0.h\n"
+ ".inst 0x6460e579 // bfmmla z25.s, z11.h, z0.h\n"
+ ".inst 0x6461e4fb // bfmmla z27.s, z7.h, z1.h\n"
+ ".inst 0x6461e51c // bfmmla z28.s, z8.h, z1.h\n"
+ ".inst 0x6461e53d // bfmmla z29.s, z9.h, z1.h\n"
+ ".inst 0x6461e55e // bfmmla z30.s, z10.h, z1.h\n"
+ ".inst 0x6461e57f // bfmmla z31.s, z11.h, z1.h\n"
+ "b.eq 5f\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #16\n"
+ ".inst 0x6464e4d4 // bfmmla z20.s, z6.h, z4.h\n"
+ ".inst 0x6464e4f5 // bfmmla z21.s, z7.h, z4.h\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #-8, MUL VL]\n"
+ ".inst 0x6465e4da // bfmmla z26.s, z6.h, z5.h\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #-7, MUL VL]\n"
+ ".inst 0x6465e4fb // bfmmla z27.s, z7.h, z5.h\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #-6, MUL VL]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #-5, MUL VL]\n"
+ ".inst 0x6464e516 // bfmmla z22.s, z8.h, z4.h\n"
+ ".inst 0x6464e537 // bfmmla z23.s, z9.h, z4.h\n"
+ ".inst 0x6464e558 // bfmmla z24.s, z10.h, z4.h\n"
+ ".inst 0x6464e579 // bfmmla z25.s, z11.h, z4.h\n"
+ ".inst 0x6465e51c // bfmmla z28.s, z8.h, z5.h\n"
+ ".inst 0x6465e53d // bfmmla z29.s, z9.h, z5.h\n"
+ ".inst 0x6465e55e // bfmmla z30.s, z10.h, z5.h\n"
+ ".inst 0x6465e57f // bfmmla z31.s, z11.h, z5.h\n"
+ "5:\n"
+ "ld1rw z18.s, p7/z, [%[minptr]]\n"
+ "ld1rw z19.s, p7/z, [%[maxptr]]\n"
+ "fmax z20.s, p7/m, z20.s, z18.s\n"
+ "fmax z21.s, p7/m, z21.s, z18.s\n"
+ "fmax z22.s, p7/m, z22.s, z18.s\n"
+ "fmax z23.s, p7/m, z23.s, z18.s\n"
+ "fmin z20.s, p7/m, z20.s, z19.s\n"
+ "fmin z21.s, p7/m, z21.s, z19.s\n"
+ "fmin z22.s, p7/m, z22.s, z19.s\n"
+ "fmin z23.s, p7/m, z23.s, z19.s\n"
+ "fmax z24.s, p7/m, z24.s, z18.s\n"
+ "uzp1 z0.s, z20.s, z21.s\n"
+ "uzp2 z1.s, z20.s, z21.s\n"
+ "uzp1 z2.s, z22.s, z23.s\n"
+ "uzp2 z3.s, z22.s, z23.s\n"
+ "st1w z0.s, p0, [%[c_ptr0]]\n"
+ "fmin z24.s, p7/m, z24.s, z19.s\n"
+ "fmax z25.s, p7/m, z25.s, z18.s\n"
+ "fmax z26.s, p7/m, z26.s, z18.s\n"
+ "st1w z1.s, p0, [c_ptr1]\n"
+ "fmax z27.s, p7/m, z27.s, z18.s\n"
+ "fmax z28.s, p7/m, z28.s, z18.s\n"
+ "fmin z25.s, p7/m, z25.s, z19.s\n"
+ "st1w z2.s, p1, [%[c_ptr0], #1, MUL VL]\n"
+ "fmin z26.s, p7/m, z26.s, z19.s\n"
+ "fmin z27.s, p7/m, z27.s, z19.s\n"
+ "fmin z28.s, p7/m, z28.s, z19.s\n"
+ "st1w z3.s, p1, [c_ptr1, #1, MUL VL]\n"
+ "uzp1 z4.s, z24.s, z25.s\n"
+ "uzp2 z5.s, z24.s, z25.s\n"
+ "uzp1 z6.s, z26.s, z27.s\n"
+ "fmax z29.s, p7/m, z29.s, z18.s\n"
+ "st1w z4.s, p2, [%[c_ptr0], #2, MUL VL]\n"
+ "fmax z30.s, p7/m, z30.s, z18.s\n"
+ "addvl %[c_ptr0], %[c_ptr0], #3\n"
+ "fmax z31.s, p7/m, z31.s, z18.s\n"
+ "st1w z5.s, p2, [c_ptr1, #2, MUL VL]\n"
+ "fmin z29.s, p7/m, z29.s, z19.s\n"
+ "fmin z30.s, p7/m, z30.s, z19.s\n"
+ "fmin z31.s, p7/m, z31.s, z19.s\n"
+ "st1w z6.s, p0, [c_ptr2]\n"
+ "uzp1 z7.s, z28.s, z29.s\n"
+ "uzp1 z8.s, z30.s, z31.s\n"
+ "st1w z7.s, p1, [c_ptr2, #1, MUL VL]\n"
+ "st1w z8.s, p2, [c_ptr2, #2, MUL VL]\n"
+ ".unreq a_ptr1\n"
+ ".unreq a_ptr2\n"
+ ".unreq c_ptr1\n"
+ ".unreq c_ptr2\n"
+ : [a_ptr0] "+r" (a_ptr0), [b_ptr0] "+r" (b_ptr0), [c_ptr0] "+r" (c_ptr0), [loops] "+r" (loops), [regs] "+r" (regs), [temp] "+r" (temp), [blocks] "+r" (blocks)
+ : [width] "r" (width), [append] "r" (static_cast<uint64_t>(append)), [lda] "r" (ldab), [ldc] "r" (ldcb), [biasptr] "r" (biasptr), [minptr] "r" (minptr), [maxptr] "r" (maxptr), [leftovers] "r" (leftovers)
+ : "z0", "z1", "z2", "z3", "z4", "z5", "z6", "z7", "z8", "z9", "z10", "z11", "z12", "z13", "z14", "z15", "z16", "z17", "z18", "z19", "z20", "z21", "z22", "z23", "z24", "z25", "z26", "z27", "z28", "z29", "z30", "z31", "x0", "x1", "x2", "x3", "cc", "memory"
+ );
+ break;
+ default:
+ case 4:
+ __asm __volatile (
+ "a_ptr1 .req X0\n"
+ "a_ptr2 .req X1\n"
+ "a_ptr3 .req X2\n"
+ "c_ptr1 .req X3\n"
+ "c_ptr2 .req X4\n"
+ "c_ptr3 .req X5\n"
+ "add a_ptr1, %[a_ptr0], %[lda]\n"
+ "add c_ptr1, %[c_ptr0], %[ldc]\n"
+ "add a_ptr2, a_ptr1, %[lda]\n"
+ "add c_ptr2, c_ptr1, %[ldc]\n"
+ "add a_ptr3, a_ptr2, %[lda]\n"
+ "add c_ptr3, c_ptr2, %[ldc]\n"
+ "whilelt p6.h, %[temp], %[leftovers]\n"
+ "whilelt p0.s, %[temp], %[width]\n"
+ "incw %[temp], all, mul #1\n"
+ "ptrue p7.h\n"
+ "whilelt p1.s, %[temp], %[width]\n"
+ "incw %[temp], all, mul #1\n"
+ "whilelt p2.s, %[temp], %[width]\n"
+ "cbnz %[append], 1f\n"
+ "ld1w z19.s, p0/z, [%[biasptr]]\n"
+ "ld1rqh z0.h, p7/z, [%[a_ptr0]]\n"
+ "add %[a_ptr0], %[a_ptr0], #0x10\n"
+ "ld1rqh z1.h, p7/z, [a_ptr1]\n"
+ "add a_ptr1, a_ptr1, #0x10\n"
+ "zip1 z20.s, z19.s, z19.s\n"
+ "ld1rqh z2.h, p7/z, [a_ptr2]\n"
+ "zip2 z21.s, z19.s, z19.s\n"
+ "ld1w z19.s, p1/z, [%[biasptr], #1, MUL VL]\n"
+ "trn1 z4.d, z0.d, z1.d\n"
+ "ld1rqh z3.h, p7/z, [a_ptr3]\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0]]\n"
+ "add a_ptr2, a_ptr2, #0x10\n"
+ "zip1 z22.s, z19.s, z19.s\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "zip2 z23.s, z19.s, z19.s\n"
+ "ld1w z19.s, p2/z, [%[biasptr], #2, MUL VL]\n"
+ "trn1 z5.d, z2.d, z3.d\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "mov z26.d, z20.d\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "mov z27.d, z21.d\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "zip1 z24.s, z19.s, z19.s\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "zip2 z25.s, z19.s, z19.s\n"
+ "add a_ptr3, a_ptr3, #0x10\n"
+ "mov z28.d, z22.d\n"
+ "addvl %[b_ptr0], %[b_ptr0], #6\n"
+ "mov z29.d, z23.d\n"
+ "mov z30.d, z24.d\n"
+ "mov z31.d, z25.d\n"
+ "cbz %[loops], 2f\n"
+ "b 3f\n"
+ "1:\n"
+ "ld1w z17.s, p0/z, [%[c_ptr0]]\n"
+ "ld1w z18.s, p0/z, [c_ptr1]\n"
+ "ld1rqh z0.h, p7/z, [%[a_ptr0]]\n"
+ "add %[a_ptr0], %[a_ptr0], #0x10\n"
+ "ld1rqh z1.h, p7/z, [a_ptr1]\n"
+ "add a_ptr1, a_ptr1, #0x10\n"
+ "zip1 z20.s, z17.s, z18.s\n"
+ "ld1rqh z2.h, p7/z, [a_ptr2]\n"
+ "zip2 z21.s, z17.s, z18.s\n"
+ "ld1w z17.s, p1/z, [%[c_ptr0], #1, MUL VL]\n"
+ "trn1 z4.d, z0.d, z1.d\n"
+ "ld1w z18.s, p1/z, [c_ptr1, #1, MUL VL]\n"
+ "ld1rqh z3.h, p7/z, [a_ptr3]\n"
+ "add a_ptr2, a_ptr2, #0x10\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0]]\n"
+ "add a_ptr3, a_ptr3, #0x10\n"
+ "zip1 z22.s, z17.s, z18.s\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "zip2 z23.s, z17.s, z18.s\n"
+ "ld1w z17.s, p2/z, [%[c_ptr0], #2, MUL VL]\n"
+ "trn1 z5.d, z2.d, z3.d\n"
+ "ld1w z18.s, p2/z, [c_ptr1, #2, MUL VL]\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "zip1 z24.s, z17.s, z18.s\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "zip2 z25.s, z17.s, z18.s\n"
+ "ld1w z17.s, p0/z, [c_ptr2]\n"
+ "ld1w z18.s, p0/z, [c_ptr3]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #6\n"
+ "zip1 z26.s, z17.s, z18.s\n"
+ "zip2 z27.s, z17.s, z18.s\n"
+ "ld1w z17.s, p1/z, [c_ptr2, #1, MUL VL]\n"
+ "ld1w z18.s, p1/z, [c_ptr3, #1, MUL VL]\n"
+ "zip1 z28.s, z17.s, z18.s\n"
+ "zip2 z29.s, z17.s, z18.s\n"
+ "ld1w z17.s, p2/z, [c_ptr2, #2, MUL VL]\n"
+ "ld1w z18.s, p2/z, [c_ptr3, #2, MUL VL]\n"
+ "zip1 z30.s, z17.s, z18.s\n"
+ "zip2 z31.s, z17.s, z18.s\n"
+ "cbz %[loops], 2f\n"
+ "3:\n"
+ "trn2 z0.d, z0.d, z1.d\n"
+ "subs %[loops], %[loops], #0x1\n"
+ "trn2 z1.d, z2.d, z3.d\n"
+ "ld1rqh z2.h, p7/z, [%[a_ptr0]]\n"
+ ".inst 0x6464e4d4 // bfmmla z20.s, z6.h, z4.h\n"
+ "ld1rqh z3.h, p7/z, [a_ptr1]\n"
+ ".inst 0x6464e4f5 // bfmmla z21.s, z7.h, z4.h\n"
+ "add %[a_ptr0], %[a_ptr0], #0x20\n"
+ ".inst 0x6464e516 // bfmmla z22.s, z8.h, z4.h\n"
+ "add a_ptr1, a_ptr1, #0x20\n"
+ ".inst 0x6464e537 // bfmmla z23.s, z9.h, z4.h\n"
+ ".inst 0x6464e558 // bfmmla z24.s, z10.h, z4.h\n"
+ ".inst 0x6464e579 // bfmmla z25.s, z11.h, z4.h\n"
+ "ld1rqh z4.h, p7/z, [a_ptr2]\n"
+ ".inst 0x6465e4da // bfmmla z26.s, z6.h, z5.h\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0]]\n"
+ ".inst 0x6465e4fb // bfmmla z27.s, z7.h, z5.h\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x6465e51c // bfmmla z28.s, z8.h, z5.h\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x6465e53d // bfmmla z29.s, z9.h, z5.h\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x6465e55e // bfmmla z30.s, z10.h, z5.h\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ ".inst 0x6465e57f // bfmmla z31.s, z11.h, z5.h\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ ".inst 0x6460e4d4 // bfmmla z20.s, z6.h, z0.h\n"
+ "ld1rqh z5.h, p7/z, [a_ptr3]\n"
+ ".inst 0x6460e4f5 // bfmmla z21.s, z7.h, z0.h\n"
+ "add a_ptr2, a_ptr2, #0x20\n"
+ ".inst 0x6460e516 // bfmmla z22.s, z8.h, z0.h\n"
+ "add a_ptr3, a_ptr3, #0x20\n"
+ ".inst 0x6460e537 // bfmmla z23.s, z9.h, z0.h\n"
+ ".inst 0x6460e558 // bfmmla z24.s, z10.h, z0.h\n"
+ ".inst 0x6460e579 // bfmmla z25.s, z11.h, z0.h\n"
+ "trn1 z0.d, z2.d, z3.d\n"
+ ".inst 0x6461e4da // bfmmla z26.s, z6.h, z1.h\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ ".inst 0x6461e4fb // bfmmla z27.s, z7.h, z1.h\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ ".inst 0x6461e51c // bfmmla z28.s, z8.h, z1.h\n"
+ "addvl %[b_ptr0], %[b_ptr0], #16\n"
+ ".inst 0x6461e53d // bfmmla z29.s, z9.h, z1.h\n"
+ ".inst 0x6461e55e // bfmmla z30.s, z10.h, z1.h\n"
+ ".inst 0x6461e57f // bfmmla z31.s, z11.h, z1.h\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #-8, MUL VL]\n"
+ "trn1 z1.d, z4.d, z5.d\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #-7, MUL VL]\n"
+ "trn2 z5.d, z4.d, z5.d\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #-6, MUL VL]\n"
+ "trn2 z4.d, z2.d, z3.d\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #-5, MUL VL]\n"
+ ".inst 0x6460e4d4 // bfmmla z20.s, z6.h, z0.h\n"
+ "ld1rqh z2.h, p7/z, [a_ptr2, #-0x10]\n"
+ ".inst 0x6460e4f5 // bfmmla z21.s, z7.h, z0.h\n"
+ "ld1rqh z3.h, p7/z, [a_ptr3, #-0x10]\n"
+ ".inst 0x6460e516 // bfmmla z22.s, z8.h, z0.h\n"
+ ".inst 0x6460e537 // bfmmla z23.s, z9.h, z0.h\n"
+ ".inst 0x6460e558 // bfmmla z24.s, z10.h, z0.h\n"
+ ".inst 0x6460e579 // bfmmla z25.s, z11.h, z0.h\n"
+ "ld1rqh z0.h, p7/z, [%[a_ptr0], #-0x10]\n"
+ ".inst 0x6461e4da // bfmmla z26.s, z6.h, z1.h\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0], #-4, MUL VL]\n"
+ ".inst 0x6461e4fb // bfmmla z27.s, z7.h, z1.h\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #-3, MUL VL]\n"
+ ".inst 0x6461e51c // bfmmla z28.s, z8.h, z1.h\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #-2, MUL VL]\n"
+ ".inst 0x6461e53d // bfmmla z29.s, z9.h, z1.h\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #-1, MUL VL]\n"
+ ".inst 0x6461e55e // bfmmla z30.s, z10.h, z1.h\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0]]\n"
+ ".inst 0x6461e57f // bfmmla z31.s, z11.h, z1.h\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x6464e4d4 // bfmmla z20.s, z6.h, z4.h\n"
+ "ld1rqh z1.h, p7/z, [a_ptr1, #-0x10]\n"
+ ".inst 0x6464e4f5 // bfmmla z21.s, z7.h, z4.h\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ ".inst 0x6464e516 // bfmmla z22.s, z8.h, z4.h\n"
+ ".inst 0x6464e537 // bfmmla z23.s, z9.h, z4.h\n"
+ ".inst 0x6464e558 // bfmmla z24.s, z10.h, z4.h\n"
+ ".inst 0x6464e579 // bfmmla z25.s, z11.h, z4.h\n"
+ "trn1 z4.d, z0.d, z1.d\n"
+ ".inst 0x6465e4da // bfmmla z26.s, z6.h, z5.h\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0], #-6, MUL VL]\n"
+ ".inst 0x6465e4fb // bfmmla z27.s, z7.h, z5.h\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #-5, MUL VL]\n"
+ ".inst 0x6465e51c // bfmmla z28.s, z8.h, z5.h\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #-4, MUL VL]\n"
+ ".inst 0x6465e53d // bfmmla z29.s, z9.h, z5.h\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #-3, MUL VL]\n"
+ ".inst 0x6465e55e // bfmmla z30.s, z10.h, z5.h\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #-2, MUL VL]\n"
+ ".inst 0x6465e57f // bfmmla z31.s, z11.h, z5.h\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #-1, MUL VL]\n"
+ "trn1 z5.d, z2.d, z3.d\n"
+ "b.ne 3b\n"
+ "2:\n"
+ "cbz %[regs], 4f\n"
+ "trn2 z0.d, z0.d, z1.d\n"
+ "trn2 z1.d, z2.d, z3.d\n"
+ "ld1rqh z2.h, p7/z, [%[a_ptr0]]\n"
+ ".inst 0x6464e4d4 // bfmmla z20.s, z6.h, z4.h\n"
+ "ld1rqh z3.h, p7/z, [a_ptr1]\n"
+ ".inst 0x6464e4f5 // bfmmla z21.s, z7.h, z4.h\n"
+ ".inst 0x6464e516 // bfmmla z22.s, z8.h, z4.h\n"
+ ".inst 0x6464e537 // bfmmla z23.s, z9.h, z4.h\n"
+ ".inst 0x6464e558 // bfmmla z24.s, z10.h, z4.h\n"
+ ".inst 0x6464e579 // bfmmla z25.s, z11.h, z4.h\n"
+ "ld1rqh z4.h, p7/z, [a_ptr2]\n"
+ ".inst 0x6465e4da // bfmmla z26.s, z6.h, z5.h\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0]]\n"
+ ".inst 0x6465e4fb // bfmmla z27.s, z7.h, z5.h\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x6465e51c // bfmmla z28.s, z8.h, z5.h\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x6465e53d // bfmmla z29.s, z9.h, z5.h\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x6465e55e // bfmmla z30.s, z10.h, z5.h\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ ".inst 0x6465e57f // bfmmla z31.s, z11.h, z5.h\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ ".inst 0x6460e4d4 // bfmmla z20.s, z6.h, z0.h\n"
+ "ld1rqh z5.h, p7/z, [a_ptr3]\n"
+ ".inst 0x6460e4f5 // bfmmla z21.s, z7.h, z0.h\n"
+ ".inst 0x6460e516 // bfmmla z22.s, z8.h, z0.h\n"
+ ".inst 0x6460e537 // bfmmla z23.s, z9.h, z0.h\n"
+ ".inst 0x6460e558 // bfmmla z24.s, z10.h, z0.h\n"
+ ".inst 0x6460e579 // bfmmla z25.s, z11.h, z0.h\n"
+ "trn1 z0.d, z2.d, z3.d\n"
+ ".inst 0x6461e4da // bfmmla z26.s, z6.h, z1.h\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ ".inst 0x6461e4fb // bfmmla z27.s, z7.h, z1.h\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ ".inst 0x6461e51c // bfmmla z28.s, z8.h, z1.h\n"
+ "addvl %[b_ptr0], %[b_ptr0], #6\n"
+ ".inst 0x6461e53d // bfmmla z29.s, z9.h, z1.h\n"
+ ".inst 0x6461e55e // bfmmla z30.s, z10.h, z1.h\n"
+ ".inst 0x6461e57f // bfmmla z31.s, z11.h, z1.h\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "trn1 z1.d, z4.d, z5.d\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "trn2 z5.d, z4.d, z5.d\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "trn2 z4.d, z2.d, z3.d\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ ".inst 0x6460e4d4 // bfmmla z20.s, z6.h, z0.h\n"
+ "ld1rqh z2.h, p6/z, [a_ptr2, #0x10]\n"
+ ".inst 0x6460e4f5 // bfmmla z21.s, z7.h, z0.h\n"
+ "ld1rqh z3.h, p6/z, [a_ptr3, #0x10]\n"
+ ".inst 0x6460e516 // bfmmla z22.s, z8.h, z0.h\n"
+ "addvl a_ptr2, a_ptr2, #2\n"
+ ".inst 0x6460e537 // bfmmla z23.s, z9.h, z0.h\n"
+ "addvl a_ptr3, a_ptr3, #2\n"
+ ".inst 0x6460e558 // bfmmla z24.s, z10.h, z0.h\n"
+ ".inst 0x6460e579 // bfmmla z25.s, z11.h, z0.h\n"
+ "ld1rqh z0.h, p6/z, [%[a_ptr0], #0x10]\n"
+ ".inst 0x6461e4da // bfmmla z26.s, z6.h, z1.h\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ ".inst 0x6461e4fb // bfmmla z27.s, z7.h, z1.h\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ ".inst 0x6461e51c // bfmmla z28.s, z8.h, z1.h\n"
+ "addvl %[b_ptr0], %[b_ptr0], #16\n"
+ ".inst 0x6461e53d // bfmmla z29.s, z9.h, z1.h\n"
+ "addvl %[a_ptr0], %[a_ptr0], #2\n"
+ ".inst 0x6461e55e // bfmmla z30.s, z10.h, z1.h\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #-8, MUL VL]\n"
+ ".inst 0x6461e57f // bfmmla z31.s, z11.h, z1.h\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #-7, MUL VL]\n"
+ ".inst 0x6464e4d4 // bfmmla z20.s, z6.h, z4.h\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #-6, MUL VL]\n"
+ ".inst 0x6464e4f5 // bfmmla z21.s, z7.h, z4.h\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #-5, MUL VL]\n"
+ ".inst 0x6464e516 // bfmmla z22.s, z8.h, z4.h\n"
+ "ld1rqh z1.h, p6/z, [a_ptr1, #0x10]\n"
+ ".inst 0x6464e537 // bfmmla z23.s, z9.h, z4.h\n"
+ "addvl %[b_ptr0], %[b_ptr0], #-4\n"
+ ".inst 0x6464e558 // bfmmla z24.s, z10.h, z4.h\n"
+ "addvl a_ptr1, a_ptr1, #2\n"
+ ".inst 0x6464e579 // bfmmla z25.s, z11.h, z4.h\n"
+ "trn1 z4.d, z0.d, z1.d\n"
+ ".inst 0x6465e4da // bfmmla z26.s, z6.h, z5.h\n"
+ ".inst 0x6465e4fb // bfmmla z27.s, z7.h, z5.h\n"
+ ".inst 0x6465e51c // bfmmla z28.s, z8.h, z5.h\n"
+ ".inst 0x6465e53d // bfmmla z29.s, z9.h, z5.h\n"
+ ".inst 0x6465e55e // bfmmla z30.s, z10.h, z5.h\n"
+ ".inst 0x6465e57f // bfmmla z31.s, z11.h, z5.h\n"
+ "trn1 z5.d, z2.d, z3.d\n"
+ "cbz %[blocks], 5f\n"
+ "trn2 z0.d, z0.d, z1.d\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0]]\n"
+ "trn2 z1.d, z2.d, z3.d\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "subs %[blocks], %[blocks], #0x1\n"
+ ".inst 0x6464e4d4 // bfmmla z20.s, z6.h, z4.h\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x6464e4f5 // bfmmla z21.s, z7.h, z4.h\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ ".inst 0x6464e516 // bfmmla z22.s, z8.h, z4.h\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ ".inst 0x6465e4da // bfmmla z26.s, z6.h, z5.h\n"
+ ".inst 0x6464e537 // bfmmla z23.s, z9.h, z4.h\n"
+ ".inst 0x6464e558 // bfmmla z24.s, z10.h, z4.h\n"
+ ".inst 0x6464e579 // bfmmla z25.s, z11.h, z4.h\n"
+ ".inst 0x6465e4fb // bfmmla z27.s, z7.h, z5.h\n"
+ ".inst 0x6465e51c // bfmmla z28.s, z8.h, z5.h\n"
+ ".inst 0x6465e53d // bfmmla z29.s, z9.h, z5.h\n"
+ ".inst 0x6465e55e // bfmmla z30.s, z10.h, z5.h\n"
+ ".inst 0x6465e57f // bfmmla z31.s, z11.h, z5.h\n"
+ "b.eq 5f\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #12\n"
+ ".inst 0x6460e4d4 // bfmmla z20.s, z6.h, z0.h\n"
+ ".inst 0x6460e4f5 // bfmmla z21.s, z7.h, z0.h\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #-4, MUL VL]\n"
+ ".inst 0x6461e4da // bfmmla z26.s, z6.h, z1.h\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #-3, MUL VL]\n"
+ ".inst 0x6461e4fb // bfmmla z27.s, z7.h, z1.h\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #-2, MUL VL]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #-1, MUL VL]\n"
+ ".inst 0x6460e516 // bfmmla z22.s, z8.h, z0.h\n"
+ ".inst 0x6460e537 // bfmmla z23.s, z9.h, z0.h\n"
+ ".inst 0x6460e558 // bfmmla z24.s, z10.h, z0.h\n"
+ ".inst 0x6460e579 // bfmmla z25.s, z11.h, z0.h\n"
+ ".inst 0x6461e51c // bfmmla z28.s, z8.h, z1.h\n"
+ ".inst 0x6461e53d // bfmmla z29.s, z9.h, z1.h\n"
+ ".inst 0x6461e55e // bfmmla z30.s, z10.h, z1.h\n"
+ ".inst 0x6461e57f // bfmmla z31.s, z11.h, z1.h\n"
+ "b 5f\n"
+ "4:\n"
+ "trn2 z0.d, z0.d, z1.d\n"
+ "trn2 z1.d, z2.d, z3.d\n"
+ "ld1rqh z2.h, p6/z, [%[a_ptr0]]\n"
+ ".inst 0x6464e4d4 // bfmmla z20.s, z6.h, z4.h\n"
+ "ld1rqh z3.h, p6/z, [a_ptr1]\n"
+ ".inst 0x6464e4f5 // bfmmla z21.s, z7.h, z4.h\n"
+ "addvl %[a_ptr0], %[a_ptr0], #1\n"
+ ".inst 0x6464e516 // bfmmla z22.s, z8.h, z4.h\n"
+ "addvl a_ptr1, a_ptr1, #1\n"
+ ".inst 0x6464e537 // bfmmla z23.s, z9.h, z4.h\n"
+ ".inst 0x6464e558 // bfmmla z24.s, z10.h, z4.h\n"
+ ".inst 0x6464e579 // bfmmla z25.s, z11.h, z4.h\n"
+ "ld1rqh z4.h, p6/z, [a_ptr2]\n"
+ ".inst 0x6465e4da // bfmmla z26.s, z6.h, z5.h\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0]]\n"
+ ".inst 0x6465e4fb // bfmmla z27.s, z7.h, z5.h\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x6465e51c // bfmmla z28.s, z8.h, z5.h\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x6465e53d // bfmmla z29.s, z9.h, z5.h\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x6465e55e // bfmmla z30.s, z10.h, z5.h\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ ".inst 0x6465e57f // bfmmla z31.s, z11.h, z5.h\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ ".inst 0x6460e4d4 // bfmmla z20.s, z6.h, z0.h\n"
+ "ld1rqh z5.h, p6/z, [a_ptr3]\n"
+ ".inst 0x6460e4f5 // bfmmla z21.s, z7.h, z0.h\n"
+ "addvl %[b_ptr0], %[b_ptr0], #6\n"
+ ".inst 0x6460e516 // bfmmla z22.s, z8.h, z0.h\n"
+ "addvl a_ptr2, a_ptr2, #1\n"
+ ".inst 0x6460e537 // bfmmla z23.s, z9.h, z0.h\n"
+ "addvl a_ptr3, a_ptr3, #1\n"
+ ".inst 0x6460e558 // bfmmla z24.s, z10.h, z0.h\n"
+ ".inst 0x6460e579 // bfmmla z25.s, z11.h, z0.h\n"
+ "trn1 z0.d, z2.d, z3.d\n"
+ ".inst 0x6461e4da // bfmmla z26.s, z6.h, z1.h\n"
+ ".inst 0x6461e4fb // bfmmla z27.s, z7.h, z1.h\n"
+ ".inst 0x6461e51c // bfmmla z28.s, z8.h, z1.h\n"
+ ".inst 0x6461e53d // bfmmla z29.s, z9.h, z1.h\n"
+ ".inst 0x6461e55e // bfmmla z30.s, z10.h, z1.h\n"
+ ".inst 0x6461e57f // bfmmla z31.s, z11.h, z1.h\n"
+ "trn1 z1.d, z4.d, z5.d\n"
+ "cbz %[blocks], 5f\n"
+ "trn2 z5.d, z4.d, z5.d\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0]]\n"
+ "trn2 z4.d, z2.d, z3.d\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "subs %[blocks], %[blocks], #0x1\n"
+ ".inst 0x6460e4d4 // bfmmla z20.s, z6.h, z0.h\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x6460e4f5 // bfmmla z21.s, z7.h, z0.h\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ ".inst 0x6460e516 // bfmmla z22.s, z8.h, z0.h\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ ".inst 0x6461e4da // bfmmla z26.s, z6.h, z1.h\n"
+ ".inst 0x6460e537 // bfmmla z23.s, z9.h, z0.h\n"
+ ".inst 0x6460e558 // bfmmla z24.s, z10.h, z0.h\n"
+ ".inst 0x6460e579 // bfmmla z25.s, z11.h, z0.h\n"
+ ".inst 0x6461e4fb // bfmmla z27.s, z7.h, z1.h\n"
+ ".inst 0x6461e51c // bfmmla z28.s, z8.h, z1.h\n"
+ ".inst 0x6461e53d // bfmmla z29.s, z9.h, z1.h\n"
+ ".inst 0x6461e55e // bfmmla z30.s, z10.h, z1.h\n"
+ ".inst 0x6461e57f // bfmmla z31.s, z11.h, z1.h\n"
+ "b.eq 5f\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #16\n"
+ ".inst 0x6464e4d4 // bfmmla z20.s, z6.h, z4.h\n"
+ ".inst 0x6464e4f5 // bfmmla z21.s, z7.h, z4.h\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #-8, MUL VL]\n"
+ ".inst 0x6465e4da // bfmmla z26.s, z6.h, z5.h\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #-7, MUL VL]\n"
+ ".inst 0x6465e4fb // bfmmla z27.s, z7.h, z5.h\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #-6, MUL VL]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #-5, MUL VL]\n"
+ ".inst 0x6464e516 // bfmmla z22.s, z8.h, z4.h\n"
+ ".inst 0x6464e537 // bfmmla z23.s, z9.h, z4.h\n"
+ ".inst 0x6464e558 // bfmmla z24.s, z10.h, z4.h\n"
+ ".inst 0x6464e579 // bfmmla z25.s, z11.h, z4.h\n"
+ ".inst 0x6465e51c // bfmmla z28.s, z8.h, z5.h\n"
+ ".inst 0x6465e53d // bfmmla z29.s, z9.h, z5.h\n"
+ ".inst 0x6465e55e // bfmmla z30.s, z10.h, z5.h\n"
+ ".inst 0x6465e57f // bfmmla z31.s, z11.h, z5.h\n"
+ "5:\n"
+ "ld1rw z18.s, p7/z, [%[minptr]]\n"
+ "ld1rw z19.s, p7/z, [%[maxptr]]\n"
+ "fmax z20.s, p7/m, z20.s, z18.s\n"
+ "fmax z21.s, p7/m, z21.s, z18.s\n"
+ "fmax z22.s, p7/m, z22.s, z18.s\n"
+ "fmax z23.s, p7/m, z23.s, z18.s\n"
+ "fmin z20.s, p7/m, z20.s, z19.s\n"
+ "fmin z21.s, p7/m, z21.s, z19.s\n"
+ "fmin z22.s, p7/m, z22.s, z19.s\n"
+ "fmin z23.s, p7/m, z23.s, z19.s\n"
+ "fmax z24.s, p7/m, z24.s, z18.s\n"
+ "uzp1 z0.s, z20.s, z21.s\n"
+ "uzp2 z1.s, z20.s, z21.s\n"
+ "uzp1 z2.s, z22.s, z23.s\n"
+ "uzp2 z3.s, z22.s, z23.s\n"
+ "st1w z0.s, p0, [%[c_ptr0]]\n"
+ "fmin z24.s, p7/m, z24.s, z19.s\n"
+ "fmax z25.s, p7/m, z25.s, z18.s\n"
+ "fmax z26.s, p7/m, z26.s, z18.s\n"
+ "st1w z1.s, p0, [c_ptr1]\n"
+ "fmax z27.s, p7/m, z27.s, z18.s\n"
+ "fmax z28.s, p7/m, z28.s, z18.s\n"
+ "fmin z25.s, p7/m, z25.s, z19.s\n"
+ "st1w z2.s, p1, [%[c_ptr0], #1, MUL VL]\n"
+ "fmin z26.s, p7/m, z26.s, z19.s\n"
+ "fmin z27.s, p7/m, z27.s, z19.s\n"
+ "fmin z28.s, p7/m, z28.s, z19.s\n"
+ "st1w z3.s, p1, [c_ptr1, #1, MUL VL]\n"
+ "uzp1 z4.s, z24.s, z25.s\n"
+ "uzp2 z5.s, z24.s, z25.s\n"
+ "uzp1 z6.s, z26.s, z27.s\n"
+ "uzp2 z7.s, z26.s, z27.s\n"
+ "st1w z4.s, p2, [%[c_ptr0], #2, MUL VL]\n"
+ "fmax z29.s, p7/m, z29.s, z18.s\n"
+ "addvl %[c_ptr0], %[c_ptr0], #3\n"
+ "fmax z30.s, p7/m, z30.s, z18.s\n"
+ "st1w z5.s, p2, [c_ptr1, #2, MUL VL]\n"
+ "fmax z31.s, p7/m, z31.s, z18.s\n"
+ "fmin z29.s, p7/m, z29.s, z19.s\n"
+ "fmin z30.s, p7/m, z30.s, z19.s\n"
+ "st1w z6.s, p0, [c_ptr2]\n"
+ "fmin z31.s, p7/m, z31.s, z19.s\n"
+ "uzp1 z8.s, z28.s, z29.s\n"
+ "uzp2 z9.s, z28.s, z29.s\n"
+ "st1w z7.s, p0, [c_ptr3]\n"
+ "uzp1 z10.s, z30.s, z31.s\n"
+ "uzp2 z11.s, z30.s, z31.s\n"
+ "st1w z8.s, p1, [c_ptr2, #1, MUL VL]\n"
+ "st1w z9.s, p1, [c_ptr3, #1, MUL VL]\n"
+ "st1w z10.s, p2, [c_ptr2, #2, MUL VL]\n"
+ "st1w z11.s, p2, [c_ptr3, #2, MUL VL]\n"
+ ".unreq a_ptr1\n"
+ ".unreq a_ptr2\n"
+ ".unreq a_ptr3\n"
+ ".unreq c_ptr1\n"
+ ".unreq c_ptr2\n"
+ ".unreq c_ptr3\n"
+ : [a_ptr0] "+r" (a_ptr0), [b_ptr0] "+r" (b_ptr0), [c_ptr0] "+r" (c_ptr0), [loops] "+r" (loops), [regs] "+r" (regs), [temp] "+r" (temp), [blocks] "+r" (blocks)
+ : [width] "r" (width), [append] "r" (static_cast<uint64_t>(append)), [lda] "r" (ldab), [ldc] "r" (ldcb), [biasptr] "r" (biasptr), [minptr] "r" (minptr), [maxptr] "r" (maxptr), [leftovers] "r" (leftovers)
+ : "z0", "z1", "z2", "z3", "z4", "z5", "z6", "z7", "z8", "z9", "z10", "z11", "z12", "z13", "z14", "z15", "z16", "z17", "z18", "z19", "z20", "z21", "z22", "z23", "z24", "z25", "z26", "z27", "z28", "z29", "z30", "z31", "x0", "x1", "x2", "x3", "x4", "x5", "cc", "memory"
+ );
+ break;
+ }
+
+ }
+ }
+}
+
+} // namespace arm_gemm
+
+#endif // __ARM_FEATURE_SVE
diff --git a/src/core/NEON/kernels/arm_gemm/kernels/sve_hybrid_bf16fp32_mmla_8VLx2.hpp b/src/core/NEON/kernels/arm_gemm/kernels/sve_hybrid_bf16fp32_mmla_8VLx2.hpp
new file mode 100644
index 000000000..af8babd11
--- /dev/null
+++ b/src/core/NEON/kernels/arm_gemm/kernels/sve_hybrid_bf16fp32_mmla_8VLx2.hpp
@@ -0,0 +1,86 @@
+/*
+ * Copyright (c) 2018-2019 Arm Limited.
+ *
+ * SPDX-License-Identifier: MIT
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+#pragma once
+
+#ifdef __ARM_FEATURE_SVE
+
+#include "../bfloat.hpp"
+#include "../std_transforms_sve.hpp"
+
+namespace arm_gemm
+{
+
+// Actual kernel implementations
+void sve_hybrid_bf16fp32_mmla_8VLx2(const bfloat16 *, int, const bfloat16 *, float *, int, int, int, int, const float *, Activation, bool);
+
+class hybrid_bf16fp32_mmla_8VLx2
+{
+public:
+ typedef bfloat16 operand_type;
+ typedef float result_type;
+
+ typedef void (*kern_type)(const bfloat16 *, int, const bfloat16 *, float *, int, int, int, int, const float *, Activation, bool);
+
+ /* Kernel blocking parameters */
+ static constexpr unsigned int out_height()
+ {
+ return 4;
+ }
+
+ static unsigned int out_width()
+ {
+ return get_vector_length<float>() * 4;
+ }
+
+ static constexpr unsigned int k_unroll()
+ {
+ return 4;
+ }
+
+ static constexpr bool supports_append()
+ {
+ return true;
+ }
+
+ static constexpr bool supports_bias()
+ {
+ return true;
+ }
+
+ static constexpr bool supports_activation()
+ {
+ return true;
+ }
+
+ StdTransformsSVE<operand_type, result_type, 2, 8, 4> transforms = {};
+
+ // Default to the generic kernel
+ kern_type kernel=sve_hybrid_bf16fp32_mmla_8VLx2;
+
+ hybrid_bf16fp32_mmla_8VLx2(const CPUInfo *ci) { UNUSED(ci); }
+};
+
+} // namespace arm_gemm
+
+#endif // __ARM_FEATURE_SVE
diff --git a/src/core/NEON/kernels/arm_gemm/kernels/sve_hybrid_bf16fp32_mmla_8VLx2/generic.cpp b/src/core/NEON/kernels/arm_gemm/kernels/sve_hybrid_bf16fp32_mmla_8VLx2/generic.cpp
new file mode 100644
index 000000000..73196164a
--- /dev/null
+++ b/src/core/NEON/kernels/arm_gemm/kernels/sve_hybrid_bf16fp32_mmla_8VLx2/generic.cpp
@@ -0,0 +1,1990 @@
+/*
+ * Copyright (c) 2018-2019 Arm Limited.
+ *
+ * SPDX-License-Identifier: MIT
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+#ifdef __ARM_FEATURE_SVE
+
+#include <algorithm>
+
+#include "arm_gemm.hpp"
+#include "../../bfloat.hpp"
+#include "../../asmlib.hpp"
+#include "../../utils.hpp"
+
+namespace arm_gemm {
+
+void sve_hybrid_bf16fp32_mmla_8VLx2(const bfloat16 *A, int lda, const bfloat16 *B, float *C, int ldc, int M, int N, int K, const float *bias, Activation act, bool append) {
+ const int K_stride = ((K + 3) / 4) * 4;
+ const long loops_count = ((K + 8) / 16) - 1;
+ K -= loops_count * 16;
+ const long regs_count = (K / 8) - 1;
+ K -= (regs_count + 1) * 8;
+ const long leftovers = K;
+ const long blocks_count = (K + 3) / 4;
+ float nullbias[256];
+ if (!append && !bias) {
+ memset(nullbias, 0, (4 * get_vector_length<float>() * sizeof(float)));
+ }
+ float minval = - static_cast<float>(std::numeric_limits<float>::infinity());
+ float maxval = static_cast<float>(std::numeric_limits<float>::infinity());
+ const float * const minptr = &minval;
+ const float * const maxptr = &maxval;
+
+ switch(act.type)
+ {
+ default:
+ case Activation::Type::None:
+ break;
+ case Activation::Type::BoundedReLU:
+ maxval = static_cast<float>(act.param1);
+ /* fall through */
+ case Activation::Type::ReLU:
+ minval = 0.0f;
+ break;
+ }
+
+ for (int y=0; y<M; y+=4) {
+ const bfloat16 * const a_ptr0_base = A + (y * lda);
+ const unsigned long ldab = lda * sizeof(bfloat16);
+
+ float *c_ptr0 = C + (y * ldc);
+
+ for (int x0=0; x0<N; x0+=(4 * get_vector_length<float>())) {
+ const long width = std::min((unsigned long)N-x0, (4 * get_vector_length<float>()));
+ long loops = loops_count;
+ long regs = regs_count;
+ long temp = 0;
+ long blocks = blocks_count;
+ const bfloat16 *a_ptr0 = a_ptr0_base;
+ const bfloat16 *b_ptr0 = B + (K_stride * x0);
+ const unsigned long ldcb = ldc * sizeof(float);
+ const float *biasptr = bias ? bias+x0 : nullbias;
+
+ switch(M-y) {
+ case 1:
+ __asm __volatile (
+ "whilelt p6.h, %[temp], %[leftovers]\n"
+ "whilelt p0.s, %[temp], %[width]\n"
+ "incw %[temp], all, mul #1\n"
+ "ptrue p7.h\n"
+ "whilelt p1.s, %[temp], %[width]\n"
+ "incw %[temp], all, mul #1\n"
+ "whilelt p2.s, %[temp], %[width]\n"
+ "incw %[temp], all, mul #1\n"
+ "whilelt p3.s, %[temp], %[width]\n"
+ "cbnz %[append], 1f\n"
+ "mov z1.h, #0\n"
+ "ld1w z15.s, p0/z, [%[biasptr]]\n"
+ "ld1rqh z0.h, p7/z, [%[a_ptr0]]\n"
+ "add %[a_ptr0], %[a_ptr0], #0x10\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0]]\n"
+ "zip1 z16.s, z15.s, z15.s\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "zip2 z17.s, z15.s, z15.s\n"
+ "ld1w z15.s, p1/z, [%[biasptr], #1, MUL VL]\n"
+ "trn1 z4.d, z0.d, z1.d\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "zip1 z18.s, z15.s, z15.s\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "zip2 z19.s, z15.s, z15.s\n"
+ "ld1w z15.s, p2/z, [%[biasptr], #2, MUL VL]\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "zip1 z20.s, z15.s, z15.s\n"
+ "zip2 z21.s, z15.s, z15.s\n"
+ "ld1w z15.s, p3/z, [%[biasptr], #3, MUL VL]\n"
+ "zip1 z22.s, z15.s, z15.s\n"
+ "zip2 z23.s, z15.s, z15.s\n"
+ "cbz %[loops], 2f\n"
+ "b 3f\n"
+ "1:\n"
+ "mov z14.s, #0\n"
+ "ld1w z13.s, p0/z, [%[c_ptr0]]\n"
+ "mov z1.h, #0\n"
+ "ld1rqh z0.h, p7/z, [%[a_ptr0]]\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0]]\n"
+ "add %[a_ptr0], %[a_ptr0], #0x10\n"
+ "zip1 z16.s, z13.s, z14.s\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "zip2 z17.s, z13.s, z14.s\n"
+ "ld1w z13.s, p1/z, [%[c_ptr0], #1, MUL VL]\n"
+ "trn1 z4.d, z0.d, z1.d\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "mov z14.s, #0\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "zip1 z18.s, z13.s, z14.s\n"
+ "zip2 z19.s, z13.s, z14.s\n"
+ "ld1w z13.s, p2/z, [%[c_ptr0], #2, MUL VL]\n"
+ "mov z14.s, #0\n"
+ "zip1 z20.s, z13.s, z14.s\n"
+ "zip2 z21.s, z13.s, z14.s\n"
+ "ld1w z13.s, p3/z, [%[c_ptr0], #3, MUL VL]\n"
+ "mov z14.s, #0\n"
+ "zip1 z22.s, z13.s, z14.s\n"
+ "zip2 z23.s, z13.s, z14.s\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "cbz %[loops], 2f\n"
+ "3:\n"
+ "trn2 z0.d, z0.d, z1.d\n"
+ "ld1rqh z2.h, p7/z, [%[a_ptr0]]\n"
+ ".inst 0x6464e4d0 // bfmmla z16.s, z6.h, z4.h\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0]]\n"
+ ".inst 0x6464e4f1 // bfmmla z17.s, z7.h, z4.h\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x6464e512 // bfmmla z18.s, z8.h, z4.h\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x6464e533 // bfmmla z19.s, z9.h, z4.h\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x6464e554 // bfmmla z20.s, z10.h, z4.h\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ ".inst 0x6464e575 // bfmmla z21.s, z11.h, z4.h\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ ".inst 0x6464e596 // bfmmla z22.s, z12.h, z4.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ ".inst 0x6464e5b7 // bfmmla z23.s, z13.h, z4.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "mov z3.h, #0\n"
+ "subs %[loops], %[loops], #0x1\n"
+ ".inst 0x6460e4d0 // bfmmla z16.s, z6.h, z0.h\n"
+ "add %[a_ptr0], %[a_ptr0], #0x20\n"
+ "trn2 z4.d, z2.d, z3.d\n"
+ "addvl %[b_ptr0], %[b_ptr0], #16\n"
+ ".inst 0x6460e4f1 // bfmmla z17.s, z7.h, z0.h\n"
+ ".inst 0x6460e512 // bfmmla z18.s, z8.h, z0.h\n"
+ ".inst 0x6460e533 // bfmmla z19.s, z9.h, z0.h\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0], #-8, MUL VL]\n"
+ ".inst 0x6460e554 // bfmmla z20.s, z10.h, z0.h\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #-7, MUL VL]\n"
+ ".inst 0x6460e575 // bfmmla z21.s, z11.h, z0.h\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #-6, MUL VL]\n"
+ ".inst 0x6460e596 // bfmmla z22.s, z12.h, z0.h\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #-5, MUL VL]\n"
+ ".inst 0x6460e5b7 // bfmmla z23.s, z13.h, z0.h\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #-4, MUL VL]\n"
+ "trn1 z0.d, z2.d, z3.d\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #-3, MUL VL]\n"
+ "mov z1.h, #0\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #-2, MUL VL]\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #-1, MUL VL]\n"
+ ".inst 0x6460e4d0 // bfmmla z16.s, z6.h, z0.h\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0]]\n"
+ ".inst 0x6460e4f1 // bfmmla z17.s, z7.h, z0.h\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x6460e512 // bfmmla z18.s, z8.h, z0.h\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x6460e533 // bfmmla z19.s, z9.h, z0.h\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x6460e554 // bfmmla z20.s, z10.h, z0.h\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ ".inst 0x6460e575 // bfmmla z21.s, z11.h, z0.h\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ ".inst 0x6460e596 // bfmmla z22.s, z12.h, z0.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ ".inst 0x6460e5b7 // bfmmla z23.s, z13.h, z0.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ ".inst 0x6464e4d0 // bfmmla z16.s, z6.h, z4.h\n"
+ "ld1rqh z0.h, p7/z, [%[a_ptr0], #-0x10]\n"
+ ".inst 0x6464e4f1 // bfmmla z17.s, z7.h, z4.h\n"
+ "addvl %[b_ptr0], %[b_ptr0], #16\n"
+ ".inst 0x6464e512 // bfmmla z18.s, z8.h, z4.h\n"
+ ".inst 0x6464e533 // bfmmla z19.s, z9.h, z4.h\n"
+ ".inst 0x6464e554 // bfmmla z20.s, z10.h, z4.h\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0], #-8, MUL VL]\n"
+ ".inst 0x6464e575 // bfmmla z21.s, z11.h, z4.h\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #-7, MUL VL]\n"
+ ".inst 0x6464e596 // bfmmla z22.s, z12.h, z4.h\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #-6, MUL VL]\n"
+ ".inst 0x6464e5b7 // bfmmla z23.s, z13.h, z4.h\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #-5, MUL VL]\n"
+ "trn1 z4.d, z0.d, z1.d\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #-4, MUL VL]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #-3, MUL VL]\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #-2, MUL VL]\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #-1, MUL VL]\n"
+ "b.ne 3b\n"
+ "2:\n"
+ "cbz %[regs], 4f\n"
+ "trn2 z0.d, z0.d, z1.d\n"
+ "ld1rqh z2.h, p7/z, [%[a_ptr0]]\n"
+ ".inst 0x6464e4d0 // bfmmla z16.s, z6.h, z4.h\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0]]\n"
+ ".inst 0x6464e4f1 // bfmmla z17.s, z7.h, z4.h\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x6464e512 // bfmmla z18.s, z8.h, z4.h\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x6464e533 // bfmmla z19.s, z9.h, z4.h\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x6464e554 // bfmmla z20.s, z10.h, z4.h\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ ".inst 0x6464e575 // bfmmla z21.s, z11.h, z4.h\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ ".inst 0x6464e596 // bfmmla z22.s, z12.h, z4.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ ".inst 0x6464e5b7 // bfmmla z23.s, z13.h, z4.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "mov z3.h, #0\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ ".inst 0x6460e4d0 // bfmmla z16.s, z6.h, z0.h\n"
+ ".inst 0x6460e4f1 // bfmmla z17.s, z7.h, z0.h\n"
+ "trn2 z4.d, z2.d, z3.d\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0]]\n"
+ ".inst 0x6460e512 // bfmmla z18.s, z8.h, z0.h\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x6460e533 // bfmmla z19.s, z9.h, z0.h\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x6460e554 // bfmmla z20.s, z10.h, z0.h\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x6460e575 // bfmmla z21.s, z11.h, z0.h\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ ".inst 0x6460e596 // bfmmla z22.s, z12.h, z0.h\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ ".inst 0x6460e5b7 // bfmmla z23.s, z13.h, z0.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "trn1 z0.d, z2.d, z3.d\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "mov z1.h, #0\n"
+ "addvl %[b_ptr0], %[b_ptr0], #16\n"
+ ".inst 0x6460e4d0 // bfmmla z16.s, z6.h, z0.h\n"
+ ".inst 0x6460e4f1 // bfmmla z17.s, z7.h, z0.h\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0], #-8, MUL VL]\n"
+ ".inst 0x6460e512 // bfmmla z18.s, z8.h, z0.h\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #-7, MUL VL]\n"
+ ".inst 0x6460e533 // bfmmla z19.s, z9.h, z0.h\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #-6, MUL VL]\n"
+ ".inst 0x6460e554 // bfmmla z20.s, z10.h, z0.h\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #-5, MUL VL]\n"
+ ".inst 0x6460e575 // bfmmla z21.s, z11.h, z0.h\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #-4, MUL VL]\n"
+ ".inst 0x6460e596 // bfmmla z22.s, z12.h, z0.h\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #-3, MUL VL]\n"
+ ".inst 0x6460e5b7 // bfmmla z23.s, z13.h, z0.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #-2, MUL VL]\n"
+ ".inst 0x6464e4d0 // bfmmla z16.s, z6.h, z4.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #-1, MUL VL]\n"
+ ".inst 0x6464e4f1 // bfmmla z17.s, z7.h, z4.h\n"
+ "ld1rqh z0.h, p6/z, [%[a_ptr0], #0x10]\n"
+ ".inst 0x6464e512 // bfmmla z18.s, z8.h, z4.h\n"
+ "addvl %[a_ptr0], %[a_ptr0], #2\n"
+ ".inst 0x6464e533 // bfmmla z19.s, z9.h, z4.h\n"
+ ".inst 0x6464e554 // bfmmla z20.s, z10.h, z4.h\n"
+ ".inst 0x6464e575 // bfmmla z21.s, z11.h, z4.h\n"
+ ".inst 0x6464e596 // bfmmla z22.s, z12.h, z4.h\n"
+ ".inst 0x6464e5b7 // bfmmla z23.s, z13.h, z4.h\n"
+ "trn1 z4.d, z0.d, z1.d\n"
+ "cbz %[blocks], 5f\n"
+ "trn2 z0.d, z0.d, z1.d\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0]]\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "subs %[blocks], %[blocks], #0x1\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x6464e4d0 // bfmmla z16.s, z6.h, z4.h\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x6464e4f1 // bfmmla z17.s, z7.h, z4.h\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ ".inst 0x6464e512 // bfmmla z18.s, z8.h, z4.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ ".inst 0x6464e533 // bfmmla z19.s, z9.h, z4.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ ".inst 0x6464e554 // bfmmla z20.s, z10.h, z4.h\n"
+ ".inst 0x6464e575 // bfmmla z21.s, z11.h, z4.h\n"
+ ".inst 0x6464e596 // bfmmla z22.s, z12.h, z4.h\n"
+ ".inst 0x6464e5b7 // bfmmla z23.s, z13.h, z4.h\n"
+ "b.eq 5f\n"
+ "addvl %[b_ptr0], %[b_ptr0], #16\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0], #-8, MUL VL]\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #-7, MUL VL]\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #-6, MUL VL]\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #-5, MUL VL]\n"
+ ".inst 0x6460e4d0 // bfmmla z16.s, z6.h, z0.h\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #-4, MUL VL]\n"
+ ".inst 0x6460e4f1 // bfmmla z17.s, z7.h, z0.h\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #-3, MUL VL]\n"
+ ".inst 0x6460e512 // bfmmla z18.s, z8.h, z0.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #-2, MUL VL]\n"
+ ".inst 0x6460e533 // bfmmla z19.s, z9.h, z0.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #-1, MUL VL]\n"
+ ".inst 0x6460e554 // bfmmla z20.s, z10.h, z0.h\n"
+ ".inst 0x6460e575 // bfmmla z21.s, z11.h, z0.h\n"
+ ".inst 0x6460e596 // bfmmla z22.s, z12.h, z0.h\n"
+ ".inst 0x6460e5b7 // bfmmla z23.s, z13.h, z0.h\n"
+ "b 5f\n"
+ "4:\n"
+ "trn2 z0.d, z0.d, z1.d\n"
+ "ld1rqh z2.h, p6/z, [%[a_ptr0]]\n"
+ ".inst 0x6464e4d0 // bfmmla z16.s, z6.h, z4.h\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0]]\n"
+ ".inst 0x6464e4f1 // bfmmla z17.s, z7.h, z4.h\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x6464e512 // bfmmla z18.s, z8.h, z4.h\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x6464e533 // bfmmla z19.s, z9.h, z4.h\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x6464e554 // bfmmla z20.s, z10.h, z4.h\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ ".inst 0x6464e575 // bfmmla z21.s, z11.h, z4.h\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ ".inst 0x6464e596 // bfmmla z22.s, z12.h, z4.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ ".inst 0x6464e5b7 // bfmmla z23.s, z13.h, z4.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "mov z3.h, #0\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ ".inst 0x6460e4d0 // bfmmla z16.s, z6.h, z0.h\n"
+ "addvl %[a_ptr0], %[a_ptr0], #1\n"
+ ".inst 0x6460e4f1 // bfmmla z17.s, z7.h, z0.h\n"
+ ".inst 0x6460e512 // bfmmla z18.s, z8.h, z0.h\n"
+ ".inst 0x6460e533 // bfmmla z19.s, z9.h, z0.h\n"
+ ".inst 0x6460e554 // bfmmla z20.s, z10.h, z0.h\n"
+ ".inst 0x6460e575 // bfmmla z21.s, z11.h, z0.h\n"
+ ".inst 0x6460e596 // bfmmla z22.s, z12.h, z0.h\n"
+ ".inst 0x6460e5b7 // bfmmla z23.s, z13.h, z0.h\n"
+ "trn1 z0.d, z2.d, z3.d\n"
+ "cbz %[blocks], 5f\n"
+ "trn2 z4.d, z2.d, z3.d\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0]]\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "subs %[blocks], %[blocks], #0x1\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x6460e4d0 // bfmmla z16.s, z6.h, z0.h\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x6460e4f1 // bfmmla z17.s, z7.h, z0.h\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ ".inst 0x6460e512 // bfmmla z18.s, z8.h, z0.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ ".inst 0x6460e533 // bfmmla z19.s, z9.h, z0.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ ".inst 0x6460e554 // bfmmla z20.s, z10.h, z0.h\n"
+ ".inst 0x6460e575 // bfmmla z21.s, z11.h, z0.h\n"
+ ".inst 0x6460e596 // bfmmla z22.s, z12.h, z0.h\n"
+ ".inst 0x6460e5b7 // bfmmla z23.s, z13.h, z0.h\n"
+ "b.eq 5f\n"
+ "addvl %[b_ptr0], %[b_ptr0], #16\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0], #-8, MUL VL]\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #-7, MUL VL]\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #-6, MUL VL]\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #-5, MUL VL]\n"
+ ".inst 0x6464e4d0 // bfmmla z16.s, z6.h, z4.h\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #-4, MUL VL]\n"
+ ".inst 0x6464e4f1 // bfmmla z17.s, z7.h, z4.h\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #-3, MUL VL]\n"
+ ".inst 0x6464e512 // bfmmla z18.s, z8.h, z4.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #-2, MUL VL]\n"
+ ".inst 0x6464e533 // bfmmla z19.s, z9.h, z4.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #-1, MUL VL]\n"
+ ".inst 0x6464e554 // bfmmla z20.s, z10.h, z4.h\n"
+ ".inst 0x6464e575 // bfmmla z21.s, z11.h, z4.h\n"
+ ".inst 0x6464e596 // bfmmla z22.s, z12.h, z4.h\n"
+ ".inst 0x6464e5b7 // bfmmla z23.s, z13.h, z4.h\n"
+ "5:\n"
+ "ld1rw z14.s, p7/z, [%[minptr]]\n"
+ "ld1rw z15.s, p7/z, [%[maxptr]]\n"
+ "fmax z16.s, p7/m, z16.s, z14.s\n"
+ "fmax z17.s, p7/m, z17.s, z14.s\n"
+ "fmax z18.s, p7/m, z18.s, z14.s\n"
+ "fmax z19.s, p7/m, z19.s, z14.s\n"
+ "fmin z16.s, p7/m, z16.s, z15.s\n"
+ "fmin z17.s, p7/m, z17.s, z15.s\n"
+ "fmin z18.s, p7/m, z18.s, z15.s\n"
+ "fmin z19.s, p7/m, z19.s, z15.s\n"
+ "fmax z20.s, p7/m, z20.s, z14.s\n"
+ "uzp1 z0.s, z16.s, z17.s\n"
+ "fmax z21.s, p7/m, z21.s, z14.s\n"
+ "uzp1 z1.s, z18.s, z19.s\n"
+ "fmin z20.s, p7/m, z20.s, z15.s\n"
+ "st1w z0.s, p0, [%[c_ptr0]]\n"
+ "fmax z22.s, p7/m, z22.s, z14.s\n"
+ "fmin z21.s, p7/m, z21.s, z15.s\n"
+ "fmax z23.s, p7/m, z23.s, z14.s\n"
+ "st1w z1.s, p1, [%[c_ptr0], #1, MUL VL]\n"
+ "fmin z22.s, p7/m, z22.s, z15.s\n"
+ "uzp1 z2.s, z20.s, z21.s\n"
+ "fmin z23.s, p7/m, z23.s, z15.s\n"
+ "st1w z2.s, p2, [%[c_ptr0], #2, MUL VL]\n"
+ "uzp1 z3.s, z22.s, z23.s\n"
+ "st1w z3.s, p3, [%[c_ptr0], #3, MUL VL]\n"
+ "addvl %[c_ptr0], %[c_ptr0], #4\n"
+ : [a_ptr0] "+r" (a_ptr0), [b_ptr0] "+r" (b_ptr0), [c_ptr0] "+r" (c_ptr0), [loops] "+r" (loops), [regs] "+r" (regs), [temp] "+r" (temp), [blocks] "+r" (blocks)
+ : [width] "r" (width), [append] "r" (static_cast<uint64_t>(append)), [lda] "r" (ldab), [ldc] "r" (ldcb), [biasptr] "r" (biasptr), [minptr] "r" (minptr), [maxptr] "r" (maxptr), [leftovers] "r" (leftovers)
+ : "z0", "z1", "z2", "z3", "z4", "z5", "z6", "z7", "z8", "z9", "z10", "z11", "z12", "z13", "z14", "z15", "z16", "z17", "z18", "z19", "z20", "z21", "z22", "z23", "z24", "z25", "z26", "z27", "z28", "z29", "z30", "z31", "cc", "memory"
+ );
+ break;
+ case 2:
+ __asm __volatile (
+ "a_ptr1 .req X0\n"
+ "c_ptr1 .req X1\n"
+ "add a_ptr1, %[a_ptr0], %[lda]\n"
+ "add c_ptr1, %[c_ptr0], %[ldc]\n"
+ "whilelt p6.h, %[temp], %[leftovers]\n"
+ "whilelt p0.s, %[temp], %[width]\n"
+ "incw %[temp], all, mul #1\n"
+ "ptrue p7.h\n"
+ "whilelt p1.s, %[temp], %[width]\n"
+ "incw %[temp], all, mul #1\n"
+ "whilelt p2.s, %[temp], %[width]\n"
+ "incw %[temp], all, mul #1\n"
+ "whilelt p3.s, %[temp], %[width]\n"
+ "cbnz %[append], 1f\n"
+ "ld1w z15.s, p0/z, [%[biasptr]]\n"
+ "ld1rqh z0.h, p7/z, [%[a_ptr0]]\n"
+ "add %[a_ptr0], %[a_ptr0], #0x10\n"
+ "ld1rqh z1.h, p7/z, [a_ptr1]\n"
+ "add a_ptr1, a_ptr1, #0x10\n"
+ "zip1 z16.s, z15.s, z15.s\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0]]\n"
+ "zip2 z17.s, z15.s, z15.s\n"
+ "ld1w z15.s, p1/z, [%[biasptr], #1, MUL VL]\n"
+ "trn1 z4.d, z0.d, z1.d\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "zip1 z18.s, z15.s, z15.s\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "zip2 z19.s, z15.s, z15.s\n"
+ "ld1w z15.s, p2/z, [%[biasptr], #2, MUL VL]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "zip1 z20.s, z15.s, z15.s\n"
+ "zip2 z21.s, z15.s, z15.s\n"
+ "ld1w z15.s, p3/z, [%[biasptr], #3, MUL VL]\n"
+ "zip1 z22.s, z15.s, z15.s\n"
+ "zip2 z23.s, z15.s, z15.s\n"
+ "cbz %[loops], 2f\n"
+ "b 3f\n"
+ "1:\n"
+ "ld1w z13.s, p0/z, [%[c_ptr0]]\n"
+ "ld1w z14.s, p0/z, [c_ptr1]\n"
+ "ld1rqh z0.h, p7/z, [%[a_ptr0]]\n"
+ "add %[a_ptr0], %[a_ptr0], #0x10\n"
+ "ld1rqh z1.h, p7/z, [a_ptr1]\n"
+ "add a_ptr1, a_ptr1, #0x10\n"
+ "zip1 z16.s, z13.s, z14.s\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0]]\n"
+ "zip2 z17.s, z13.s, z14.s\n"
+ "ld1w z13.s, p1/z, [%[c_ptr0], #1, MUL VL]\n"
+ "trn1 z4.d, z0.d, z1.d\n"
+ "ld1w z14.s, p1/z, [c_ptr1, #1, MUL VL]\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "zip1 z18.s, z13.s, z14.s\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "zip2 z19.s, z13.s, z14.s\n"
+ "ld1w z13.s, p2/z, [%[c_ptr0], #2, MUL VL]\n"
+ "ld1w z14.s, p2/z, [c_ptr1, #2, MUL VL]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "zip1 z20.s, z13.s, z14.s\n"
+ "zip2 z21.s, z13.s, z14.s\n"
+ "ld1w z13.s, p3/z, [%[c_ptr0], #3, MUL VL]\n"
+ "ld1w z14.s, p3/z, [c_ptr1, #3, MUL VL]\n"
+ "zip1 z22.s, z13.s, z14.s\n"
+ "zip2 z23.s, z13.s, z14.s\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "cbz %[loops], 2f\n"
+ "3:\n"
+ "trn2 z0.d, z0.d, z1.d\n"
+ "ld1rqh z2.h, p7/z, [%[a_ptr0]]\n"
+ ".inst 0x6464e4d0 // bfmmla z16.s, z6.h, z4.h\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0]]\n"
+ ".inst 0x6464e4f1 // bfmmla z17.s, z7.h, z4.h\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x6464e512 // bfmmla z18.s, z8.h, z4.h\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x6464e533 // bfmmla z19.s, z9.h, z4.h\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x6464e554 // bfmmla z20.s, z10.h, z4.h\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ ".inst 0x6464e575 // bfmmla z21.s, z11.h, z4.h\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ ".inst 0x6464e596 // bfmmla z22.s, z12.h, z4.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ ".inst 0x6464e5b7 // bfmmla z23.s, z13.h, z4.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ ".inst 0x6460e4d0 // bfmmla z16.s, z6.h, z0.h\n"
+ "ld1rqh z3.h, p7/z, [a_ptr1]\n"
+ ".inst 0x6460e4f1 // bfmmla z17.s, z7.h, z0.h\n"
+ "subs %[loops], %[loops], #0x1\n"
+ ".inst 0x6460e512 // bfmmla z18.s, z8.h, z0.h\n"
+ "add %[a_ptr0], %[a_ptr0], #0x20\n"
+ "trn2 z4.d, z2.d, z3.d\n"
+ "add a_ptr1, a_ptr1, #0x20\n"
+ ".inst 0x6460e533 // bfmmla z19.s, z9.h, z0.h\n"
+ "ld1rqh z1.h, p7/z, [a_ptr1, #-0x10]\n"
+ ".inst 0x6460e554 // bfmmla z20.s, z10.h, z0.h\n"
+ "addvl %[b_ptr0], %[b_ptr0], #16\n"
+ ".inst 0x6460e575 // bfmmla z21.s, z11.h, z0.h\n"
+ ".inst 0x6460e596 // bfmmla z22.s, z12.h, z0.h\n"
+ ".inst 0x6460e5b7 // bfmmla z23.s, z13.h, z0.h\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0], #-8, MUL VL]\n"
+ "trn1 z0.d, z2.d, z3.d\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #-7, MUL VL]\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #-6, MUL VL]\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #-5, MUL VL]\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #-4, MUL VL]\n"
+ ".inst 0x6460e4d0 // bfmmla z16.s, z6.h, z0.h\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #-3, MUL VL]\n"
+ ".inst 0x6460e4f1 // bfmmla z17.s, z7.h, z0.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #-2, MUL VL]\n"
+ ".inst 0x6460e512 // bfmmla z18.s, z8.h, z0.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #-1, MUL VL]\n"
+ ".inst 0x6460e533 // bfmmla z19.s, z9.h, z0.h\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0]]\n"
+ ".inst 0x6460e554 // bfmmla z20.s, z10.h, z0.h\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x6460e575 // bfmmla z21.s, z11.h, z0.h\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x6460e596 // bfmmla z22.s, z12.h, z0.h\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x6460e5b7 // bfmmla z23.s, z13.h, z0.h\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ ".inst 0x6464e4d0 // bfmmla z16.s, z6.h, z4.h\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ ".inst 0x6464e4f1 // bfmmla z17.s, z7.h, z4.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ ".inst 0x6464e512 // bfmmla z18.s, z8.h, z4.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ ".inst 0x6464e533 // bfmmla z19.s, z9.h, z4.h\n"
+ "ld1rqh z0.h, p7/z, [%[a_ptr0], #-0x10]\n"
+ ".inst 0x6464e554 // bfmmla z20.s, z10.h, z4.h\n"
+ "addvl %[b_ptr0], %[b_ptr0], #16\n"
+ ".inst 0x6464e575 // bfmmla z21.s, z11.h, z4.h\n"
+ ".inst 0x6464e596 // bfmmla z22.s, z12.h, z4.h\n"
+ ".inst 0x6464e5b7 // bfmmla z23.s, z13.h, z4.h\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0], #-8, MUL VL]\n"
+ "trn1 z4.d, z0.d, z1.d\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #-7, MUL VL]\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #-6, MUL VL]\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #-5, MUL VL]\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #-4, MUL VL]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #-3, MUL VL]\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #-2, MUL VL]\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #-1, MUL VL]\n"
+ "b.ne 3b\n"
+ "2:\n"
+ "cbz %[regs], 4f\n"
+ "trn2 z0.d, z0.d, z1.d\n"
+ "ld1rqh z2.h, p7/z, [%[a_ptr0]]\n"
+ ".inst 0x6464e4d0 // bfmmla z16.s, z6.h, z4.h\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0]]\n"
+ ".inst 0x6464e4f1 // bfmmla z17.s, z7.h, z4.h\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x6464e512 // bfmmla z18.s, z8.h, z4.h\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x6464e533 // bfmmla z19.s, z9.h, z4.h\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x6464e554 // bfmmla z20.s, z10.h, z4.h\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ ".inst 0x6464e575 // bfmmla z21.s, z11.h, z4.h\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ ".inst 0x6464e596 // bfmmla z22.s, z12.h, z4.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ ".inst 0x6464e5b7 // bfmmla z23.s, z13.h, z4.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ ".inst 0x6460e4d0 // bfmmla z16.s, z6.h, z0.h\n"
+ "ld1rqh z3.h, p7/z, [a_ptr1]\n"
+ ".inst 0x6460e4f1 // bfmmla z17.s, z7.h, z0.h\n"
+ "ld1rqh z1.h, p6/z, [a_ptr1, #0x10]\n"
+ ".inst 0x6460e512 // bfmmla z18.s, z8.h, z0.h\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "trn2 z4.d, z2.d, z3.d\n"
+ "addvl a_ptr1, a_ptr1, #2\n"
+ ".inst 0x6460e533 // bfmmla z19.s, z9.h, z0.h\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0]]\n"
+ ".inst 0x6460e554 // bfmmla z20.s, z10.h, z0.h\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x6460e575 // bfmmla z21.s, z11.h, z0.h\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x6460e596 // bfmmla z22.s, z12.h, z0.h\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x6460e5b7 // bfmmla z23.s, z13.h, z0.h\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "trn1 z0.d, z2.d, z3.d\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #16\n"
+ ".inst 0x6460e4d0 // bfmmla z16.s, z6.h, z0.h\n"
+ ".inst 0x6460e4f1 // bfmmla z17.s, z7.h, z0.h\n"
+ ".inst 0x6460e512 // bfmmla z18.s, z8.h, z0.h\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0], #-8, MUL VL]\n"
+ ".inst 0x6460e533 // bfmmla z19.s, z9.h, z0.h\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #-7, MUL VL]\n"
+ ".inst 0x6460e554 // bfmmla z20.s, z10.h, z0.h\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #-6, MUL VL]\n"
+ ".inst 0x6460e575 // bfmmla z21.s, z11.h, z0.h\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #-5, MUL VL]\n"
+ ".inst 0x6460e596 // bfmmla z22.s, z12.h, z0.h\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #-4, MUL VL]\n"
+ ".inst 0x6460e5b7 // bfmmla z23.s, z13.h, z0.h\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #-3, MUL VL]\n"
+ ".inst 0x6464e4d0 // bfmmla z16.s, z6.h, z4.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #-2, MUL VL]\n"
+ ".inst 0x6464e4f1 // bfmmla z17.s, z7.h, z4.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #-1, MUL VL]\n"
+ ".inst 0x6464e512 // bfmmla z18.s, z8.h, z4.h\n"
+ "ld1rqh z0.h, p6/z, [%[a_ptr0], #0x10]\n"
+ ".inst 0x6464e533 // bfmmla z19.s, z9.h, z4.h\n"
+ "addvl %[a_ptr0], %[a_ptr0], #2\n"
+ ".inst 0x6464e554 // bfmmla z20.s, z10.h, z4.h\n"
+ ".inst 0x6464e575 // bfmmla z21.s, z11.h, z4.h\n"
+ ".inst 0x6464e596 // bfmmla z22.s, z12.h, z4.h\n"
+ ".inst 0x6464e5b7 // bfmmla z23.s, z13.h, z4.h\n"
+ "trn1 z4.d, z0.d, z1.d\n"
+ "cbz %[blocks], 5f\n"
+ "trn2 z0.d, z0.d, z1.d\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0]]\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "subs %[blocks], %[blocks], #0x1\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x6464e4d0 // bfmmla z16.s, z6.h, z4.h\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x6464e4f1 // bfmmla z17.s, z7.h, z4.h\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ ".inst 0x6464e512 // bfmmla z18.s, z8.h, z4.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ ".inst 0x6464e533 // bfmmla z19.s, z9.h, z4.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ ".inst 0x6464e554 // bfmmla z20.s, z10.h, z4.h\n"
+ ".inst 0x6464e575 // bfmmla z21.s, z11.h, z4.h\n"
+ ".inst 0x6464e596 // bfmmla z22.s, z12.h, z4.h\n"
+ ".inst 0x6464e5b7 // bfmmla z23.s, z13.h, z4.h\n"
+ "b.eq 5f\n"
+ "addvl %[b_ptr0], %[b_ptr0], #16\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0], #-8, MUL VL]\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #-7, MUL VL]\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #-6, MUL VL]\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #-5, MUL VL]\n"
+ ".inst 0x6460e4d0 // bfmmla z16.s, z6.h, z0.h\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #-4, MUL VL]\n"
+ ".inst 0x6460e4f1 // bfmmla z17.s, z7.h, z0.h\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #-3, MUL VL]\n"
+ ".inst 0x6460e512 // bfmmla z18.s, z8.h, z0.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #-2, MUL VL]\n"
+ ".inst 0x6460e533 // bfmmla z19.s, z9.h, z0.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #-1, MUL VL]\n"
+ ".inst 0x6460e554 // bfmmla z20.s, z10.h, z0.h\n"
+ ".inst 0x6460e575 // bfmmla z21.s, z11.h, z0.h\n"
+ ".inst 0x6460e596 // bfmmla z22.s, z12.h, z0.h\n"
+ ".inst 0x6460e5b7 // bfmmla z23.s, z13.h, z0.h\n"
+ "b 5f\n"
+ "4:\n"
+ "trn2 z0.d, z0.d, z1.d\n"
+ "ld1rqh z2.h, p6/z, [%[a_ptr0]]\n"
+ ".inst 0x6464e4d0 // bfmmla z16.s, z6.h, z4.h\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0]]\n"
+ ".inst 0x6464e4f1 // bfmmla z17.s, z7.h, z4.h\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x6464e512 // bfmmla z18.s, z8.h, z4.h\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x6464e533 // bfmmla z19.s, z9.h, z4.h\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x6464e554 // bfmmla z20.s, z10.h, z4.h\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ ".inst 0x6464e575 // bfmmla z21.s, z11.h, z4.h\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ ".inst 0x6464e596 // bfmmla z22.s, z12.h, z4.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ ".inst 0x6464e5b7 // bfmmla z23.s, z13.h, z4.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ ".inst 0x6460e4d0 // bfmmla z16.s, z6.h, z0.h\n"
+ "ld1rqh z3.h, p6/z, [a_ptr1]\n"
+ ".inst 0x6460e4f1 // bfmmla z17.s, z7.h, z0.h\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ ".inst 0x6460e512 // bfmmla z18.s, z8.h, z0.h\n"
+ "addvl %[a_ptr0], %[a_ptr0], #1\n"
+ ".inst 0x6460e533 // bfmmla z19.s, z9.h, z0.h\n"
+ "addvl a_ptr1, a_ptr1, #1\n"
+ ".inst 0x6460e554 // bfmmla z20.s, z10.h, z0.h\n"
+ ".inst 0x6460e575 // bfmmla z21.s, z11.h, z0.h\n"
+ ".inst 0x6460e596 // bfmmla z22.s, z12.h, z0.h\n"
+ ".inst 0x6460e5b7 // bfmmla z23.s, z13.h, z0.h\n"
+ "trn1 z0.d, z2.d, z3.d\n"
+ "cbz %[blocks], 5f\n"
+ "trn2 z4.d, z2.d, z3.d\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0]]\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "subs %[blocks], %[blocks], #0x1\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x6460e4d0 // bfmmla z16.s, z6.h, z0.h\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x6460e4f1 // bfmmla z17.s, z7.h, z0.h\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ ".inst 0x6460e512 // bfmmla z18.s, z8.h, z0.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ ".inst 0x6460e533 // bfmmla z19.s, z9.h, z0.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ ".inst 0x6460e554 // bfmmla z20.s, z10.h, z0.h\n"
+ ".inst 0x6460e575 // bfmmla z21.s, z11.h, z0.h\n"
+ ".inst 0x6460e596 // bfmmla z22.s, z12.h, z0.h\n"
+ ".inst 0x6460e5b7 // bfmmla z23.s, z13.h, z0.h\n"
+ "b.eq 5f\n"
+ "addvl %[b_ptr0], %[b_ptr0], #16\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0], #-8, MUL VL]\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #-7, MUL VL]\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #-6, MUL VL]\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #-5, MUL VL]\n"
+ ".inst 0x6464e4d0 // bfmmla z16.s, z6.h, z4.h\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #-4, MUL VL]\n"
+ ".inst 0x6464e4f1 // bfmmla z17.s, z7.h, z4.h\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #-3, MUL VL]\n"
+ ".inst 0x6464e512 // bfmmla z18.s, z8.h, z4.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #-2, MUL VL]\n"
+ ".inst 0x6464e533 // bfmmla z19.s, z9.h, z4.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #-1, MUL VL]\n"
+ ".inst 0x6464e554 // bfmmla z20.s, z10.h, z4.h\n"
+ ".inst 0x6464e575 // bfmmla z21.s, z11.h, z4.h\n"
+ ".inst 0x6464e596 // bfmmla z22.s, z12.h, z4.h\n"
+ ".inst 0x6464e5b7 // bfmmla z23.s, z13.h, z4.h\n"
+ "5:\n"
+ "ld1rw z14.s, p7/z, [%[minptr]]\n"
+ "ld1rw z15.s, p7/z, [%[maxptr]]\n"
+ "fmax z16.s, p7/m, z16.s, z14.s\n"
+ "fmax z17.s, p7/m, z17.s, z14.s\n"
+ "fmax z18.s, p7/m, z18.s, z14.s\n"
+ "fmax z19.s, p7/m, z19.s, z14.s\n"
+ "fmin z16.s, p7/m, z16.s, z15.s\n"
+ "fmin z17.s, p7/m, z17.s, z15.s\n"
+ "fmin z18.s, p7/m, z18.s, z15.s\n"
+ "fmin z19.s, p7/m, z19.s, z15.s\n"
+ "fmax z20.s, p7/m, z20.s, z14.s\n"
+ "uzp1 z0.s, z16.s, z17.s\n"
+ "uzp2 z1.s, z16.s, z17.s\n"
+ "uzp1 z2.s, z18.s, z19.s\n"
+ "uzp2 z3.s, z18.s, z19.s\n"
+ "st1w z0.s, p0, [%[c_ptr0]]\n"
+ "fmin z20.s, p7/m, z20.s, z15.s\n"
+ "fmax z21.s, p7/m, z21.s, z14.s\n"
+ "fmax z22.s, p7/m, z22.s, z14.s\n"
+ "st1w z1.s, p0, [c_ptr1]\n"
+ "fmax z23.s, p7/m, z23.s, z14.s\n"
+ "fmin z21.s, p7/m, z21.s, z15.s\n"
+ "st1w z2.s, p1, [%[c_ptr0], #1, MUL VL]\n"
+ "fmin z22.s, p7/m, z22.s, z15.s\n"
+ "fmin z23.s, p7/m, z23.s, z15.s\n"
+ "uzp1 z4.s, z20.s, z21.s\n"
+ "st1w z3.s, p1, [c_ptr1, #1, MUL VL]\n"
+ "uzp2 z5.s, z20.s, z21.s\n"
+ "uzp1 z6.s, z22.s, z23.s\n"
+ "uzp2 z7.s, z22.s, z23.s\n"
+ "st1w z4.s, p2, [%[c_ptr0], #2, MUL VL]\n"
+ "st1w z5.s, p2, [c_ptr1, #2, MUL VL]\n"
+ "st1w z6.s, p3, [%[c_ptr0], #3, MUL VL]\n"
+ "addvl %[c_ptr0], %[c_ptr0], #4\n"
+ "st1w z7.s, p3, [c_ptr1, #3, MUL VL]\n"
+ ".unreq a_ptr1\n"
+ ".unreq c_ptr1\n"
+ : [a_ptr0] "+r" (a_ptr0), [b_ptr0] "+r" (b_ptr0), [c_ptr0] "+r" (c_ptr0), [loops] "+r" (loops), [regs] "+r" (regs), [temp] "+r" (temp), [blocks] "+r" (blocks)
+ : [width] "r" (width), [append] "r" (static_cast<uint64_t>(append)), [lda] "r" (ldab), [ldc] "r" (ldcb), [biasptr] "r" (biasptr), [minptr] "r" (minptr), [maxptr] "r" (maxptr), [leftovers] "r" (leftovers)
+ : "z0", "z1", "z2", "z3", "z4", "z5", "z6", "z7", "z8", "z9", "z10", "z11", "z12", "z13", "z14", "z15", "z16", "z17", "z18", "z19", "z20", "z21", "z22", "z23", "z24", "z25", "z26", "z27", "z28", "z29", "z30", "z31", "x0", "x1", "cc", "memory"
+ );
+ break;
+ case 3:
+ __asm __volatile (
+ "a_ptr1 .req X0\n"
+ "a_ptr2 .req X1\n"
+ "c_ptr1 .req X2\n"
+ "c_ptr2 .req X3\n"
+ "add a_ptr1, %[a_ptr0], %[lda]\n"
+ "add c_ptr1, %[c_ptr0], %[ldc]\n"
+ "add a_ptr2, a_ptr1, %[lda]\n"
+ "add c_ptr2, c_ptr1, %[ldc]\n"
+ "whilelt p6.h, %[temp], %[leftovers]\n"
+ "whilelt p0.s, %[temp], %[width]\n"
+ "incw %[temp], all, mul #1\n"
+ "ptrue p7.h\n"
+ "whilelt p1.s, %[temp], %[width]\n"
+ "incw %[temp], all, mul #1\n"
+ "whilelt p2.s, %[temp], %[width]\n"
+ "incw %[temp], all, mul #1\n"
+ "whilelt p3.s, %[temp], %[width]\n"
+ "cbnz %[append], 1f\n"
+ "mov z3.h, #0\n"
+ "ld1w z15.s, p0/z, [%[biasptr]]\n"
+ "ld1rqh z0.h, p7/z, [%[a_ptr0]]\n"
+ "add %[a_ptr0], %[a_ptr0], #0x10\n"
+ "ld1rqh z1.h, p7/z, [a_ptr1]\n"
+ "add a_ptr1, a_ptr1, #0x10\n"
+ "zip1 z16.s, z15.s, z15.s\n"
+ "ld1rqh z2.h, p7/z, [a_ptr2]\n"
+ "zip2 z17.s, z15.s, z15.s\n"
+ "ld1w z15.s, p1/z, [%[biasptr], #1, MUL VL]\n"
+ "trn1 z4.d, z0.d, z1.d\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0]]\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "add a_ptr2, a_ptr2, #0x10\n"
+ "zip1 z18.s, z15.s, z15.s\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "zip2 z19.s, z15.s, z15.s\n"
+ "ld1w z15.s, p2/z, [%[biasptr], #2, MUL VL]\n"
+ "trn1 z5.d, z2.d, z3.d\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "mov z24.d, z16.d\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "mov z25.d, z17.d\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "zip1 z20.s, z15.s, z15.s\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "zip2 z21.s, z15.s, z15.s\n"
+ "ld1w z15.s, p3/z, [%[biasptr], #3, MUL VL]\n"
+ "mov z26.d, z18.d\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "mov z27.d, z19.d\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "zip1 z22.s, z15.s, z15.s\n"
+ "zip2 z23.s, z15.s, z15.s\n"
+ "mov z28.d, z20.d\n"
+ "mov z29.d, z21.d\n"
+ "mov z30.d, z22.d\n"
+ "mov z31.d, z23.d\n"
+ "cbz %[loops], 2f\n"
+ "b 3f\n"
+ "1:\n"
+ "mov z3.h, #0\n"
+ "ld1w z13.s, p0/z, [%[c_ptr0]]\n"
+ "ld1w z14.s, p0/z, [c_ptr1]\n"
+ "ld1rqh z0.h, p7/z, [%[a_ptr0]]\n"
+ "add %[a_ptr0], %[a_ptr0], #0x10\n"
+ "ld1rqh z1.h, p7/z, [a_ptr1]\n"
+ "add a_ptr1, a_ptr1, #0x10\n"
+ "zip1 z16.s, z13.s, z14.s\n"
+ "ld1rqh z2.h, p7/z, [a_ptr2]\n"
+ "zip2 z17.s, z13.s, z14.s\n"
+ "ld1w z13.s, p1/z, [%[c_ptr0], #1, MUL VL]\n"
+ "trn1 z4.d, z0.d, z1.d\n"
+ "ld1w z14.s, p1/z, [c_ptr1, #1, MUL VL]\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0]]\n"
+ "add a_ptr2, a_ptr2, #0x10\n"
+ "trn1 z5.d, z2.d, z3.d\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "zip1 z18.s, z13.s, z14.s\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "zip2 z19.s, z13.s, z14.s\n"
+ "ld1w z13.s, p2/z, [%[c_ptr0], #2, MUL VL]\n"
+ "ld1w z14.s, p2/z, [c_ptr1, #2, MUL VL]\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "zip1 z20.s, z13.s, z14.s\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "zip2 z21.s, z13.s, z14.s\n"
+ "ld1w z13.s, p3/z, [%[c_ptr0], #3, MUL VL]\n"
+ "ld1w z14.s, p3/z, [c_ptr1, #3, MUL VL]\n"
+ "zip1 z22.s, z13.s, z14.s\n"
+ "zip2 z23.s, z13.s, z14.s\n"
+ "ld1w z13.s, p0/z, [c_ptr2]\n"
+ "mov z14.s, #0\n"
+ "zip1 z24.s, z13.s, z14.s\n"
+ "zip2 z25.s, z13.s, z14.s\n"
+ "ld1w z13.s, p1/z, [c_ptr2, #1, MUL VL]\n"
+ "mov z14.s, #0\n"
+ "zip1 z26.s, z13.s, z14.s\n"
+ "zip2 z27.s, z13.s, z14.s\n"
+ "ld1w z13.s, p2/z, [c_ptr2, #2, MUL VL]\n"
+ "mov z14.s, #0\n"
+ "zip1 z28.s, z13.s, z14.s\n"
+ "zip2 z29.s, z13.s, z14.s\n"
+ "ld1w z13.s, p3/z, [c_ptr2, #3, MUL VL]\n"
+ "mov z14.s, #0\n"
+ "zip1 z30.s, z13.s, z14.s\n"
+ "zip2 z31.s, z13.s, z14.s\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "cbz %[loops], 2f\n"
+ "3:\n"
+ "trn2 z0.d, z0.d, z1.d\n"
+ "subs %[loops], %[loops], #0x1\n"
+ "trn2 z1.d, z2.d, z3.d\n"
+ "ld1rqh z2.h, p7/z, [%[a_ptr0]]\n"
+ ".inst 0x6464e4d0 // bfmmla z16.s, z6.h, z4.h\n"
+ "ld1rqh z3.h, p7/z, [a_ptr1]\n"
+ ".inst 0x6464e4f1 // bfmmla z17.s, z7.h, z4.h\n"
+ "add %[a_ptr0], %[a_ptr0], #0x20\n"
+ ".inst 0x6464e512 // bfmmla z18.s, z8.h, z4.h\n"
+ "add a_ptr1, a_ptr1, #0x20\n"
+ ".inst 0x6464e533 // bfmmla z19.s, z9.h, z4.h\n"
+ ".inst 0x6464e554 // bfmmla z20.s, z10.h, z4.h\n"
+ ".inst 0x6464e575 // bfmmla z21.s, z11.h, z4.h\n"
+ ".inst 0x6464e596 // bfmmla z22.s, z12.h, z4.h\n"
+ ".inst 0x6464e5b7 // bfmmla z23.s, z13.h, z4.h\n"
+ "ld1rqh z4.h, p7/z, [a_ptr2]\n"
+ ".inst 0x6465e4d8 // bfmmla z24.s, z6.h, z5.h\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0]]\n"
+ ".inst 0x6465e4f9 // bfmmla z25.s, z7.h, z5.h\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x6465e51a // bfmmla z26.s, z8.h, z5.h\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x6465e53b // bfmmla z27.s, z9.h, z5.h\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x6465e55c // bfmmla z28.s, z10.h, z5.h\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ ".inst 0x6465e57d // bfmmla z29.s, z11.h, z5.h\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ ".inst 0x6465e59e // bfmmla z30.s, z12.h, z5.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ ".inst 0x6465e5bf // bfmmla z31.s, z13.h, z5.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "mov z5.h, #0\n"
+ "add a_ptr2, a_ptr2, #0x20\n"
+ ".inst 0x6460e4d0 // bfmmla z16.s, z6.h, z0.h\n"
+ "addvl %[b_ptr0], %[b_ptr0], #16\n"
+ ".inst 0x6460e4f1 // bfmmla z17.s, z7.h, z0.h\n"
+ ".inst 0x6460e512 // bfmmla z18.s, z8.h, z0.h\n"
+ ".inst 0x6460e533 // bfmmla z19.s, z9.h, z0.h\n"
+ ".inst 0x6460e554 // bfmmla z20.s, z10.h, z0.h\n"
+ ".inst 0x6460e575 // bfmmla z21.s, z11.h, z0.h\n"
+ ".inst 0x6460e596 // bfmmla z22.s, z12.h, z0.h\n"
+ ".inst 0x6460e5b7 // bfmmla z23.s, z13.h, z0.h\n"
+ "trn1 z0.d, z2.d, z3.d\n"
+ ".inst 0x6461e4d8 // bfmmla z24.s, z6.h, z1.h\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0], #-8, MUL VL]\n"
+ ".inst 0x6461e4f9 // bfmmla z25.s, z7.h, z1.h\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #-7, MUL VL]\n"
+ ".inst 0x6461e51a // bfmmla z26.s, z8.h, z1.h\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #-6, MUL VL]\n"
+ ".inst 0x6461e53b // bfmmla z27.s, z9.h, z1.h\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #-5, MUL VL]\n"
+ ".inst 0x6461e55c // bfmmla z28.s, z10.h, z1.h\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #-4, MUL VL]\n"
+ ".inst 0x6461e57d // bfmmla z29.s, z11.h, z1.h\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #-3, MUL VL]\n"
+ ".inst 0x6461e59e // bfmmla z30.s, z12.h, z1.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #-2, MUL VL]\n"
+ ".inst 0x6461e5bf // bfmmla z31.s, z13.h, z1.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #-1, MUL VL]\n"
+ "trn1 z1.d, z4.d, z5.d\n"
+ "trn2 z5.d, z4.d, z5.d\n"
+ "trn2 z4.d, z2.d, z3.d\n"
+ "ld1rqh z2.h, p7/z, [a_ptr2, #-0x10]\n"
+ ".inst 0x6460e4d0 // bfmmla z16.s, z6.h, z0.h\n"
+ ".inst 0x6460e4f1 // bfmmla z17.s, z7.h, z0.h\n"
+ ".inst 0x6460e512 // bfmmla z18.s, z8.h, z0.h\n"
+ ".inst 0x6460e533 // bfmmla z19.s, z9.h, z0.h\n"
+ ".inst 0x6460e554 // bfmmla z20.s, z10.h, z0.h\n"
+ ".inst 0x6460e575 // bfmmla z21.s, z11.h, z0.h\n"
+ ".inst 0x6460e596 // bfmmla z22.s, z12.h, z0.h\n"
+ ".inst 0x6460e5b7 // bfmmla z23.s, z13.h, z0.h\n"
+ "ld1rqh z0.h, p7/z, [%[a_ptr0], #-0x10]\n"
+ ".inst 0x6461e4d8 // bfmmla z24.s, z6.h, z1.h\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0]]\n"
+ ".inst 0x6461e4f9 // bfmmla z25.s, z7.h, z1.h\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x6461e51a // bfmmla z26.s, z8.h, z1.h\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x6461e53b // bfmmla z27.s, z9.h, z1.h\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x6461e55c // bfmmla z28.s, z10.h, z1.h\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ ".inst 0x6461e57d // bfmmla z29.s, z11.h, z1.h\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ ".inst 0x6461e59e // bfmmla z30.s, z12.h, z1.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ ".inst 0x6461e5bf // bfmmla z31.s, z13.h, z1.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "mov z3.h, #0\n"
+ "ld1rqh z1.h, p7/z, [a_ptr1, #-0x10]\n"
+ ".inst 0x6464e4d0 // bfmmla z16.s, z6.h, z4.h\n"
+ "addvl %[b_ptr0], %[b_ptr0], #16\n"
+ ".inst 0x6464e4f1 // bfmmla z17.s, z7.h, z4.h\n"
+ ".inst 0x6464e512 // bfmmla z18.s, z8.h, z4.h\n"
+ ".inst 0x6464e533 // bfmmla z19.s, z9.h, z4.h\n"
+ ".inst 0x6464e554 // bfmmla z20.s, z10.h, z4.h\n"
+ ".inst 0x6464e575 // bfmmla z21.s, z11.h, z4.h\n"
+ ".inst 0x6464e596 // bfmmla z22.s, z12.h, z4.h\n"
+ ".inst 0x6464e5b7 // bfmmla z23.s, z13.h, z4.h\n"
+ "trn1 z4.d, z0.d, z1.d\n"
+ ".inst 0x6465e4d8 // bfmmla z24.s, z6.h, z5.h\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0], #-8, MUL VL]\n"
+ ".inst 0x6465e4f9 // bfmmla z25.s, z7.h, z5.h\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #-7, MUL VL]\n"
+ ".inst 0x6465e51a // bfmmla z26.s, z8.h, z5.h\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #-6, MUL VL]\n"
+ ".inst 0x6465e53b // bfmmla z27.s, z9.h, z5.h\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #-5, MUL VL]\n"
+ ".inst 0x6465e55c // bfmmla z28.s, z10.h, z5.h\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #-4, MUL VL]\n"
+ ".inst 0x6465e57d // bfmmla z29.s, z11.h, z5.h\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #-3, MUL VL]\n"
+ ".inst 0x6465e59e // bfmmla z30.s, z12.h, z5.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #-2, MUL VL]\n"
+ ".inst 0x6465e5bf // bfmmla z31.s, z13.h, z5.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #-1, MUL VL]\n"
+ "trn1 z5.d, z2.d, z3.d\n"
+ "b.ne 3b\n"
+ "2:\n"
+ "cbz %[regs], 4f\n"
+ "trn2 z0.d, z0.d, z1.d\n"
+ "trn2 z1.d, z2.d, z3.d\n"
+ "ld1rqh z2.h, p7/z, [%[a_ptr0]]\n"
+ ".inst 0x6464e4d0 // bfmmla z16.s, z6.h, z4.h\n"
+ "ld1rqh z3.h, p7/z, [a_ptr1]\n"
+ ".inst 0x6464e4f1 // bfmmla z17.s, z7.h, z4.h\n"
+ ".inst 0x6464e512 // bfmmla z18.s, z8.h, z4.h\n"
+ ".inst 0x6464e533 // bfmmla z19.s, z9.h, z4.h\n"
+ ".inst 0x6464e554 // bfmmla z20.s, z10.h, z4.h\n"
+ ".inst 0x6464e575 // bfmmla z21.s, z11.h, z4.h\n"
+ ".inst 0x6464e596 // bfmmla z22.s, z12.h, z4.h\n"
+ ".inst 0x6464e5b7 // bfmmla z23.s, z13.h, z4.h\n"
+ "ld1rqh z4.h, p7/z, [a_ptr2]\n"
+ ".inst 0x6465e4d8 // bfmmla z24.s, z6.h, z5.h\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0]]\n"
+ ".inst 0x6465e4f9 // bfmmla z25.s, z7.h, z5.h\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x6465e51a // bfmmla z26.s, z8.h, z5.h\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x6465e53b // bfmmla z27.s, z9.h, z5.h\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x6465e55c // bfmmla z28.s, z10.h, z5.h\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ ".inst 0x6465e57d // bfmmla z29.s, z11.h, z5.h\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ ".inst 0x6465e59e // bfmmla z30.s, z12.h, z5.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ ".inst 0x6465e5bf // bfmmla z31.s, z13.h, z5.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "mov z5.h, #0\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ ".inst 0x6460e4d0 // bfmmla z16.s, z6.h, z0.h\n"
+ ".inst 0x6460e4f1 // bfmmla z17.s, z7.h, z0.h\n"
+ ".inst 0x6460e512 // bfmmla z18.s, z8.h, z0.h\n"
+ ".inst 0x6460e533 // bfmmla z19.s, z9.h, z0.h\n"
+ ".inst 0x6460e554 // bfmmla z20.s, z10.h, z0.h\n"
+ ".inst 0x6460e575 // bfmmla z21.s, z11.h, z0.h\n"
+ ".inst 0x6460e596 // bfmmla z22.s, z12.h, z0.h\n"
+ ".inst 0x6460e5b7 // bfmmla z23.s, z13.h, z0.h\n"
+ "trn1 z0.d, z2.d, z3.d\n"
+ ".inst 0x6461e4d8 // bfmmla z24.s, z6.h, z1.h\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0]]\n"
+ ".inst 0x6461e4f9 // bfmmla z25.s, z7.h, z1.h\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x6461e51a // bfmmla z26.s, z8.h, z1.h\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x6461e53b // bfmmla z27.s, z9.h, z1.h\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x6461e55c // bfmmla z28.s, z10.h, z1.h\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ ".inst 0x6461e57d // bfmmla z29.s, z11.h, z1.h\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ ".inst 0x6461e59e // bfmmla z30.s, z12.h, z1.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ ".inst 0x6461e5bf // bfmmla z31.s, z13.h, z1.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "trn1 z1.d, z4.d, z5.d\n"
+ "addvl %[b_ptr0], %[b_ptr0], #16\n"
+ "trn2 z5.d, z4.d, z5.d\n"
+ "trn2 z4.d, z2.d, z3.d\n"
+ "ld1rqh z2.h, p6/z, [a_ptr2, #0x10]\n"
+ ".inst 0x6460e4d0 // bfmmla z16.s, z6.h, z0.h\n"
+ "addvl a_ptr2, a_ptr2, #2\n"
+ ".inst 0x6460e4f1 // bfmmla z17.s, z7.h, z0.h\n"
+ ".inst 0x6460e512 // bfmmla z18.s, z8.h, z0.h\n"
+ ".inst 0x6460e533 // bfmmla z19.s, z9.h, z0.h\n"
+ ".inst 0x6460e554 // bfmmla z20.s, z10.h, z0.h\n"
+ ".inst 0x6460e575 // bfmmla z21.s, z11.h, z0.h\n"
+ ".inst 0x6460e596 // bfmmla z22.s, z12.h, z0.h\n"
+ ".inst 0x6460e5b7 // bfmmla z23.s, z13.h, z0.h\n"
+ "ld1rqh z0.h, p6/z, [%[a_ptr0], #0x10]\n"
+ ".inst 0x6461e4d8 // bfmmla z24.s, z6.h, z1.h\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0], #-8, MUL VL]\n"
+ ".inst 0x6461e4f9 // bfmmla z25.s, z7.h, z1.h\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #-7, MUL VL]\n"
+ ".inst 0x6461e51a // bfmmla z26.s, z8.h, z1.h\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #-6, MUL VL]\n"
+ ".inst 0x6461e53b // bfmmla z27.s, z9.h, z1.h\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #-5, MUL VL]\n"
+ ".inst 0x6461e55c // bfmmla z28.s, z10.h, z1.h\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #-4, MUL VL]\n"
+ ".inst 0x6461e57d // bfmmla z29.s, z11.h, z1.h\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #-3, MUL VL]\n"
+ ".inst 0x6461e59e // bfmmla z30.s, z12.h, z1.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #-2, MUL VL]\n"
+ ".inst 0x6461e5bf // bfmmla z31.s, z13.h, z1.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #-1, MUL VL]\n"
+ "mov z3.h, #0\n"
+ "ld1rqh z1.h, p6/z, [a_ptr1, #0x10]\n"
+ ".inst 0x6464e4d0 // bfmmla z16.s, z6.h, z4.h\n"
+ "addvl %[a_ptr0], %[a_ptr0], #2\n"
+ ".inst 0x6464e4f1 // bfmmla z17.s, z7.h, z4.h\n"
+ "addvl a_ptr1, a_ptr1, #2\n"
+ ".inst 0x6464e512 // bfmmla z18.s, z8.h, z4.h\n"
+ ".inst 0x6464e533 // bfmmla z19.s, z9.h, z4.h\n"
+ ".inst 0x6464e554 // bfmmla z20.s, z10.h, z4.h\n"
+ ".inst 0x6464e575 // bfmmla z21.s, z11.h, z4.h\n"
+ ".inst 0x6464e596 // bfmmla z22.s, z12.h, z4.h\n"
+ ".inst 0x6464e5b7 // bfmmla z23.s, z13.h, z4.h\n"
+ "trn1 z4.d, z0.d, z1.d\n"
+ ".inst 0x6465e4d8 // bfmmla z24.s, z6.h, z5.h\n"
+ ".inst 0x6465e4f9 // bfmmla z25.s, z7.h, z5.h\n"
+ ".inst 0x6465e51a // bfmmla z26.s, z8.h, z5.h\n"
+ ".inst 0x6465e53b // bfmmla z27.s, z9.h, z5.h\n"
+ ".inst 0x6465e55c // bfmmla z28.s, z10.h, z5.h\n"
+ ".inst 0x6465e57d // bfmmla z29.s, z11.h, z5.h\n"
+ ".inst 0x6465e59e // bfmmla z30.s, z12.h, z5.h\n"
+ ".inst 0x6465e5bf // bfmmla z31.s, z13.h, z5.h\n"
+ "trn1 z5.d, z2.d, z3.d\n"
+ "cbz %[blocks], 5f\n"
+ "trn2 z0.d, z0.d, z1.d\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0]]\n"
+ "trn2 z1.d, z2.d, z3.d\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "subs %[blocks], %[blocks], #0x1\n"
+ ".inst 0x6464e4d0 // bfmmla z16.s, z6.h, z4.h\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x6464e4f1 // bfmmla z17.s, z7.h, z4.h\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ ".inst 0x6464e512 // bfmmla z18.s, z8.h, z4.h\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ ".inst 0x6465e4d8 // bfmmla z24.s, z6.h, z5.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ ".inst 0x6464e533 // bfmmla z19.s, z9.h, z4.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ ".inst 0x6464e554 // bfmmla z20.s, z10.h, z4.h\n"
+ ".inst 0x6464e575 // bfmmla z21.s, z11.h, z4.h\n"
+ ".inst 0x6464e596 // bfmmla z22.s, z12.h, z4.h\n"
+ ".inst 0x6464e5b7 // bfmmla z23.s, z13.h, z4.h\n"
+ ".inst 0x6465e4f9 // bfmmla z25.s, z7.h, z5.h\n"
+ ".inst 0x6465e51a // bfmmla z26.s, z8.h, z5.h\n"
+ ".inst 0x6465e53b // bfmmla z27.s, z9.h, z5.h\n"
+ ".inst 0x6465e55c // bfmmla z28.s, z10.h, z5.h\n"
+ ".inst 0x6465e57d // bfmmla z29.s, z11.h, z5.h\n"
+ ".inst 0x6465e59e // bfmmla z30.s, z12.h, z5.h\n"
+ ".inst 0x6465e5bf // bfmmla z31.s, z13.h, z5.h\n"
+ "b.eq 5f\n"
+ "addvl %[b_ptr0], %[b_ptr0], #16\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0], #-8, MUL VL]\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #-7, MUL VL]\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #-6, MUL VL]\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #-5, MUL VL]\n"
+ ".inst 0x6460e4d0 // bfmmla z16.s, z6.h, z0.h\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #-4, MUL VL]\n"
+ ".inst 0x6460e4f1 // bfmmla z17.s, z7.h, z0.h\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #-3, MUL VL]\n"
+ ".inst 0x6460e512 // bfmmla z18.s, z8.h, z0.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #-2, MUL VL]\n"
+ ".inst 0x6460e533 // bfmmla z19.s, z9.h, z0.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #-1, MUL VL]\n"
+ ".inst 0x6460e554 // bfmmla z20.s, z10.h, z0.h\n"
+ ".inst 0x6460e575 // bfmmla z21.s, z11.h, z0.h\n"
+ ".inst 0x6460e596 // bfmmla z22.s, z12.h, z0.h\n"
+ ".inst 0x6460e5b7 // bfmmla z23.s, z13.h, z0.h\n"
+ ".inst 0x6461e4d8 // bfmmla z24.s, z6.h, z1.h\n"
+ ".inst 0x6461e4f9 // bfmmla z25.s, z7.h, z1.h\n"
+ ".inst 0x6461e51a // bfmmla z26.s, z8.h, z1.h\n"
+ ".inst 0x6461e53b // bfmmla z27.s, z9.h, z1.h\n"
+ ".inst 0x6461e55c // bfmmla z28.s, z10.h, z1.h\n"
+ ".inst 0x6461e57d // bfmmla z29.s, z11.h, z1.h\n"
+ ".inst 0x6461e59e // bfmmla z30.s, z12.h, z1.h\n"
+ ".inst 0x6461e5bf // bfmmla z31.s, z13.h, z1.h\n"
+ "b 5f\n"
+ "4:\n"
+ "trn2 z0.d, z0.d, z1.d\n"
+ "trn2 z1.d, z2.d, z3.d\n"
+ "ld1rqh z2.h, p6/z, [%[a_ptr0]]\n"
+ ".inst 0x6464e4d0 // bfmmla z16.s, z6.h, z4.h\n"
+ "ld1rqh z3.h, p6/z, [a_ptr1]\n"
+ ".inst 0x6464e4f1 // bfmmla z17.s, z7.h, z4.h\n"
+ "addvl %[a_ptr0], %[a_ptr0], #1\n"
+ ".inst 0x6464e512 // bfmmla z18.s, z8.h, z4.h\n"
+ "addvl a_ptr1, a_ptr1, #1\n"
+ ".inst 0x6464e533 // bfmmla z19.s, z9.h, z4.h\n"
+ ".inst 0x6464e554 // bfmmla z20.s, z10.h, z4.h\n"
+ ".inst 0x6464e575 // bfmmla z21.s, z11.h, z4.h\n"
+ ".inst 0x6464e596 // bfmmla z22.s, z12.h, z4.h\n"
+ ".inst 0x6464e5b7 // bfmmla z23.s, z13.h, z4.h\n"
+ "ld1rqh z4.h, p6/z, [a_ptr2]\n"
+ ".inst 0x6465e4d8 // bfmmla z24.s, z6.h, z5.h\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0]]\n"
+ ".inst 0x6465e4f9 // bfmmla z25.s, z7.h, z5.h\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x6465e51a // bfmmla z26.s, z8.h, z5.h\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x6465e53b // bfmmla z27.s, z9.h, z5.h\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x6465e55c // bfmmla z28.s, z10.h, z5.h\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ ".inst 0x6465e57d // bfmmla z29.s, z11.h, z5.h\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ ".inst 0x6465e59e // bfmmla z30.s, z12.h, z5.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ ".inst 0x6465e5bf // bfmmla z31.s, z13.h, z5.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "mov z5.h, #0\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ ".inst 0x6460e4d0 // bfmmla z16.s, z6.h, z0.h\n"
+ "addvl a_ptr2, a_ptr2, #1\n"
+ ".inst 0x6460e4f1 // bfmmla z17.s, z7.h, z0.h\n"
+ ".inst 0x6460e512 // bfmmla z18.s, z8.h, z0.h\n"
+ ".inst 0x6460e533 // bfmmla z19.s, z9.h, z0.h\n"
+ ".inst 0x6460e554 // bfmmla z20.s, z10.h, z0.h\n"
+ ".inst 0x6460e575 // bfmmla z21.s, z11.h, z0.h\n"
+ ".inst 0x6460e596 // bfmmla z22.s, z12.h, z0.h\n"
+ ".inst 0x6460e5b7 // bfmmla z23.s, z13.h, z0.h\n"
+ "trn1 z0.d, z2.d, z3.d\n"
+ ".inst 0x6461e4d8 // bfmmla z24.s, z6.h, z1.h\n"
+ ".inst 0x6461e4f9 // bfmmla z25.s, z7.h, z1.h\n"
+ ".inst 0x6461e51a // bfmmla z26.s, z8.h, z1.h\n"
+ ".inst 0x6461e53b // bfmmla z27.s, z9.h, z1.h\n"
+ ".inst 0x6461e55c // bfmmla z28.s, z10.h, z1.h\n"
+ ".inst 0x6461e57d // bfmmla z29.s, z11.h, z1.h\n"
+ ".inst 0x6461e59e // bfmmla z30.s, z12.h, z1.h\n"
+ ".inst 0x6461e5bf // bfmmla z31.s, z13.h, z1.h\n"
+ "trn1 z1.d, z4.d, z5.d\n"
+ "cbz %[blocks], 5f\n"
+ "trn2 z5.d, z4.d, z5.d\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0]]\n"
+ "trn2 z4.d, z2.d, z3.d\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "subs %[blocks], %[blocks], #0x1\n"
+ ".inst 0x6460e4d0 // bfmmla z16.s, z6.h, z0.h\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x6460e4f1 // bfmmla z17.s, z7.h, z0.h\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ ".inst 0x6460e512 // bfmmla z18.s, z8.h, z0.h\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ ".inst 0x6461e4d8 // bfmmla z24.s, z6.h, z1.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ ".inst 0x6460e533 // bfmmla z19.s, z9.h, z0.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ ".inst 0x6460e554 // bfmmla z20.s, z10.h, z0.h\n"
+ ".inst 0x6460e575 // bfmmla z21.s, z11.h, z0.h\n"
+ ".inst 0x6460e596 // bfmmla z22.s, z12.h, z0.h\n"
+ ".inst 0x6460e5b7 // bfmmla z23.s, z13.h, z0.h\n"
+ ".inst 0x6461e4f9 // bfmmla z25.s, z7.h, z1.h\n"
+ ".inst 0x6461e51a // bfmmla z26.s, z8.h, z1.h\n"
+ ".inst 0x6461e53b // bfmmla z27.s, z9.h, z1.h\n"
+ ".inst 0x6461e55c // bfmmla z28.s, z10.h, z1.h\n"
+ ".inst 0x6461e57d // bfmmla z29.s, z11.h, z1.h\n"
+ ".inst 0x6461e59e // bfmmla z30.s, z12.h, z1.h\n"
+ ".inst 0x6461e5bf // bfmmla z31.s, z13.h, z1.h\n"
+ "b.eq 5f\n"
+ "addvl %[b_ptr0], %[b_ptr0], #16\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0], #-8, MUL VL]\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #-7, MUL VL]\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #-6, MUL VL]\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #-5, MUL VL]\n"
+ ".inst 0x6464e4d0 // bfmmla z16.s, z6.h, z4.h\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #-4, MUL VL]\n"
+ ".inst 0x6464e4f1 // bfmmla z17.s, z7.h, z4.h\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #-3, MUL VL]\n"
+ ".inst 0x6464e512 // bfmmla z18.s, z8.h, z4.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #-2, MUL VL]\n"
+ ".inst 0x6464e533 // bfmmla z19.s, z9.h, z4.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #-1, MUL VL]\n"
+ ".inst 0x6464e554 // bfmmla z20.s, z10.h, z4.h\n"
+ ".inst 0x6464e575 // bfmmla z21.s, z11.h, z4.h\n"
+ ".inst 0x6464e596 // bfmmla z22.s, z12.h, z4.h\n"
+ ".inst 0x6464e5b7 // bfmmla z23.s, z13.h, z4.h\n"
+ ".inst 0x6465e4d8 // bfmmla z24.s, z6.h, z5.h\n"
+ ".inst 0x6465e4f9 // bfmmla z25.s, z7.h, z5.h\n"
+ ".inst 0x6465e51a // bfmmla z26.s, z8.h, z5.h\n"
+ ".inst 0x6465e53b // bfmmla z27.s, z9.h, z5.h\n"
+ ".inst 0x6465e55c // bfmmla z28.s, z10.h, z5.h\n"
+ ".inst 0x6465e57d // bfmmla z29.s, z11.h, z5.h\n"
+ ".inst 0x6465e59e // bfmmla z30.s, z12.h, z5.h\n"
+ ".inst 0x6465e5bf // bfmmla z31.s, z13.h, z5.h\n"
+ "5:\n"
+ "ld1rw z14.s, p7/z, [%[minptr]]\n"
+ "ld1rw z15.s, p7/z, [%[maxptr]]\n"
+ "fmax z16.s, p7/m, z16.s, z14.s\n"
+ "fmax z17.s, p7/m, z17.s, z14.s\n"
+ "fmax z18.s, p7/m, z18.s, z14.s\n"
+ "fmax z19.s, p7/m, z19.s, z14.s\n"
+ "fmin z16.s, p7/m, z16.s, z15.s\n"
+ "fmin z17.s, p7/m, z17.s, z15.s\n"
+ "fmin z18.s, p7/m, z18.s, z15.s\n"
+ "fmin z19.s, p7/m, z19.s, z15.s\n"
+ "fmax z20.s, p7/m, z20.s, z14.s\n"
+ "uzp1 z0.s, z16.s, z17.s\n"
+ "uzp2 z1.s, z16.s, z17.s\n"
+ "uzp1 z2.s, z18.s, z19.s\n"
+ "uzp2 z3.s, z18.s, z19.s\n"
+ "st1w z0.s, p0, [%[c_ptr0]]\n"
+ "fmin z20.s, p7/m, z20.s, z15.s\n"
+ "fmax z21.s, p7/m, z21.s, z14.s\n"
+ "fmax z22.s, p7/m, z22.s, z14.s\n"
+ "st1w z1.s, p0, [c_ptr1]\n"
+ "fmax z23.s, p7/m, z23.s, z14.s\n"
+ "fmax z24.s, p7/m, z24.s, z14.s\n"
+ "fmin z21.s, p7/m, z21.s, z15.s\n"
+ "st1w z2.s, p1, [%[c_ptr0], #1, MUL VL]\n"
+ "fmin z22.s, p7/m, z22.s, z15.s\n"
+ "fmin z23.s, p7/m, z23.s, z15.s\n"
+ "fmin z24.s, p7/m, z24.s, z15.s\n"
+ "st1w z3.s, p1, [c_ptr1, #1, MUL VL]\n"
+ "uzp1 z4.s, z20.s, z21.s\n"
+ "uzp2 z5.s, z20.s, z21.s\n"
+ "uzp1 z6.s, z22.s, z23.s\n"
+ "uzp2 z7.s, z22.s, z23.s\n"
+ "st1w z4.s, p2, [%[c_ptr0], #2, MUL VL]\n"
+ "fmax z25.s, p7/m, z25.s, z14.s\n"
+ "fmax z26.s, p7/m, z26.s, z14.s\n"
+ "fmax z27.s, p7/m, z27.s, z14.s\n"
+ "st1w z5.s, p2, [c_ptr1, #2, MUL VL]\n"
+ "fmax z28.s, p7/m, z28.s, z14.s\n"
+ "fmin z25.s, p7/m, z25.s, z15.s\n"
+ "fmin z26.s, p7/m, z26.s, z15.s\n"
+ "st1w z6.s, p3, [%[c_ptr0], #3, MUL VL]\n"
+ "fmin z27.s, p7/m, z27.s, z15.s\n"
+ "addvl %[c_ptr0], %[c_ptr0], #4\n"
+ "uzp1 z8.s, z24.s, z25.s\n"
+ "st1w z7.s, p3, [c_ptr1, #3, MUL VL]\n"
+ "fmin z28.s, p7/m, z28.s, z15.s\n"
+ "uzp1 z9.s, z26.s, z27.s\n"
+ "fmax z29.s, p7/m, z29.s, z14.s\n"
+ "st1w z8.s, p0, [c_ptr2]\n"
+ "fmax z30.s, p7/m, z30.s, z14.s\n"
+ "fmax z31.s, p7/m, z31.s, z14.s\n"
+ "fmin z29.s, p7/m, z29.s, z15.s\n"
+ "st1w z9.s, p1, [c_ptr2, #1, MUL VL]\n"
+ "fmin z30.s, p7/m, z30.s, z15.s\n"
+ "fmin z31.s, p7/m, z31.s, z15.s\n"
+ "uzp1 z10.s, z28.s, z29.s\n"
+ "uzp1 z11.s, z30.s, z31.s\n"
+ "st1w z10.s, p2, [c_ptr2, #2, MUL VL]\n"
+ "st1w z11.s, p3, [c_ptr2, #3, MUL VL]\n"
+ ".unreq a_ptr1\n"
+ ".unreq a_ptr2\n"
+ ".unreq c_ptr1\n"
+ ".unreq c_ptr2\n"
+ : [a_ptr0] "+r" (a_ptr0), [b_ptr0] "+r" (b_ptr0), [c_ptr0] "+r" (c_ptr0), [loops] "+r" (loops), [regs] "+r" (regs), [temp] "+r" (temp), [blocks] "+r" (blocks)
+ : [width] "r" (width), [append] "r" (static_cast<uint64_t>(append)), [lda] "r" (ldab), [ldc] "r" (ldcb), [biasptr] "r" (biasptr), [minptr] "r" (minptr), [maxptr] "r" (maxptr), [leftovers] "r" (leftovers)
+ : "z0", "z1", "z2", "z3", "z4", "z5", "z6", "z7", "z8", "z9", "z10", "z11", "z12", "z13", "z14", "z15", "z16", "z17", "z18", "z19", "z20", "z21", "z22", "z23", "z24", "z25", "z26", "z27", "z28", "z29", "z30", "z31", "x0", "x1", "x2", "x3", "cc", "memory"
+ );
+ break;
+ default:
+ case 4:
+ __asm __volatile (
+ "a_ptr1 .req X0\n"
+ "a_ptr2 .req X1\n"
+ "a_ptr3 .req X2\n"
+ "c_ptr1 .req X3\n"
+ "c_ptr2 .req X4\n"
+ "c_ptr3 .req X5\n"
+ "add a_ptr1, %[a_ptr0], %[lda]\n"
+ "add c_ptr1, %[c_ptr0], %[ldc]\n"
+ "add a_ptr2, a_ptr1, %[lda]\n"
+ "add c_ptr2, c_ptr1, %[ldc]\n"
+ "add a_ptr3, a_ptr2, %[lda]\n"
+ "add c_ptr3, c_ptr2, %[ldc]\n"
+ "whilelt p6.h, %[temp], %[leftovers]\n"
+ "whilelt p0.s, %[temp], %[width]\n"
+ "incw %[temp], all, mul #1\n"
+ "ptrue p7.h\n"
+ "whilelt p1.s, %[temp], %[width]\n"
+ "incw %[temp], all, mul #1\n"
+ "whilelt p2.s, %[temp], %[width]\n"
+ "incw %[temp], all, mul #1\n"
+ "whilelt p3.s, %[temp], %[width]\n"
+ "cbnz %[append], 1f\n"
+ "ld1w z15.s, p0/z, [%[biasptr]]\n"
+ "ld1rqh z0.h, p7/z, [%[a_ptr0]]\n"
+ "add %[a_ptr0], %[a_ptr0], #0x10\n"
+ "ld1rqh z1.h, p7/z, [a_ptr1]\n"
+ "add a_ptr1, a_ptr1, #0x10\n"
+ "zip1 z16.s, z15.s, z15.s\n"
+ "ld1rqh z2.h, p7/z, [a_ptr2]\n"
+ "zip2 z17.s, z15.s, z15.s\n"
+ "ld1w z15.s, p1/z, [%[biasptr], #1, MUL VL]\n"
+ "trn1 z4.d, z0.d, z1.d\n"
+ "ld1rqh z3.h, p7/z, [a_ptr3]\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0]]\n"
+ "add a_ptr2, a_ptr2, #0x10\n"
+ "zip1 z18.s, z15.s, z15.s\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "zip2 z19.s, z15.s, z15.s\n"
+ "ld1w z15.s, p2/z, [%[biasptr], #2, MUL VL]\n"
+ "trn1 z5.d, z2.d, z3.d\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "mov z24.d, z16.d\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "mov z25.d, z17.d\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "zip1 z20.s, z15.s, z15.s\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "zip2 z21.s, z15.s, z15.s\n"
+ "ld1w z15.s, p3/z, [%[biasptr], #3, MUL VL]\n"
+ "mov z26.d, z18.d\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "mov z27.d, z19.d\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "mov z28.d, z20.d\n"
+ "add a_ptr3, a_ptr3, #0x10\n"
+ "zip1 z22.s, z15.s, z15.s\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "zip2 z23.s, z15.s, z15.s\n"
+ "mov z29.d, z21.d\n"
+ "mov z30.d, z22.d\n"
+ "mov z31.d, z23.d\n"
+ "cbz %[loops], 2f\n"
+ "b 3f\n"
+ "1:\n"
+ "ld1w z13.s, p0/z, [%[c_ptr0]]\n"
+ "ld1w z14.s, p0/z, [c_ptr1]\n"
+ "ld1rqh z0.h, p7/z, [%[a_ptr0]]\n"
+ "add %[a_ptr0], %[a_ptr0], #0x10\n"
+ "ld1rqh z1.h, p7/z, [a_ptr1]\n"
+ "add a_ptr1, a_ptr1, #0x10\n"
+ "zip1 z16.s, z13.s, z14.s\n"
+ "ld1rqh z2.h, p7/z, [a_ptr2]\n"
+ "zip2 z17.s, z13.s, z14.s\n"
+ "ld1w z13.s, p1/z, [%[c_ptr0], #1, MUL VL]\n"
+ "trn1 z4.d, z0.d, z1.d\n"
+ "ld1w z14.s, p1/z, [c_ptr1, #1, MUL VL]\n"
+ "ld1rqh z3.h, p7/z, [a_ptr3]\n"
+ "add a_ptr2, a_ptr2, #0x10\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0]]\n"
+ "add a_ptr3, a_ptr3, #0x10\n"
+ "zip1 z18.s, z13.s, z14.s\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "zip2 z19.s, z13.s, z14.s\n"
+ "ld1w z13.s, p2/z, [%[c_ptr0], #2, MUL VL]\n"
+ "trn1 z5.d, z2.d, z3.d\n"
+ "ld1w z14.s, p2/z, [c_ptr1, #2, MUL VL]\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "zip1 z20.s, z13.s, z14.s\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "zip2 z21.s, z13.s, z14.s\n"
+ "ld1w z13.s, p3/z, [%[c_ptr0], #3, MUL VL]\n"
+ "ld1w z14.s, p3/z, [c_ptr1, #3, MUL VL]\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "zip1 z22.s, z13.s, z14.s\n"
+ "zip2 z23.s, z13.s, z14.s\n"
+ "ld1w z13.s, p0/z, [c_ptr2]\n"
+ "ld1w z14.s, p0/z, [c_ptr3]\n"
+ "zip1 z24.s, z13.s, z14.s\n"
+ "zip2 z25.s, z13.s, z14.s\n"
+ "ld1w z13.s, p1/z, [c_ptr2, #1, MUL VL]\n"
+ "ld1w z14.s, p1/z, [c_ptr3, #1, MUL VL]\n"
+ "zip1 z26.s, z13.s, z14.s\n"
+ "zip2 z27.s, z13.s, z14.s\n"
+ "ld1w z13.s, p2/z, [c_ptr2, #2, MUL VL]\n"
+ "ld1w z14.s, p2/z, [c_ptr3, #2, MUL VL]\n"
+ "zip1 z28.s, z13.s, z14.s\n"
+ "zip2 z29.s, z13.s, z14.s\n"
+ "ld1w z13.s, p3/z, [c_ptr2, #3, MUL VL]\n"
+ "ld1w z14.s, p3/z, [c_ptr3, #3, MUL VL]\n"
+ "zip1 z30.s, z13.s, z14.s\n"
+ "zip2 z31.s, z13.s, z14.s\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "cbz %[loops], 2f\n"
+ "3:\n"
+ "trn2 z0.d, z0.d, z1.d\n"
+ "subs %[loops], %[loops], #0x1\n"
+ "trn2 z1.d, z2.d, z3.d\n"
+ "ld1rqh z2.h, p7/z, [%[a_ptr0]]\n"
+ ".inst 0x6464e4d0 // bfmmla z16.s, z6.h, z4.h\n"
+ "ld1rqh z3.h, p7/z, [a_ptr1]\n"
+ ".inst 0x6464e4f1 // bfmmla z17.s, z7.h, z4.h\n"
+ "add %[a_ptr0], %[a_ptr0], #0x20\n"
+ ".inst 0x6464e512 // bfmmla z18.s, z8.h, z4.h\n"
+ "add a_ptr1, a_ptr1, #0x20\n"
+ ".inst 0x6464e533 // bfmmla z19.s, z9.h, z4.h\n"
+ ".inst 0x6464e554 // bfmmla z20.s, z10.h, z4.h\n"
+ ".inst 0x6464e575 // bfmmla z21.s, z11.h, z4.h\n"
+ ".inst 0x6464e596 // bfmmla z22.s, z12.h, z4.h\n"
+ ".inst 0x6464e5b7 // bfmmla z23.s, z13.h, z4.h\n"
+ "ld1rqh z4.h, p7/z, [a_ptr2]\n"
+ ".inst 0x6465e4d8 // bfmmla z24.s, z6.h, z5.h\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0]]\n"
+ ".inst 0x6465e4f9 // bfmmla z25.s, z7.h, z5.h\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x6465e51a // bfmmla z26.s, z8.h, z5.h\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x6465e53b // bfmmla z27.s, z9.h, z5.h\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x6465e55c // bfmmla z28.s, z10.h, z5.h\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ ".inst 0x6465e57d // bfmmla z29.s, z11.h, z5.h\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ ".inst 0x6465e59e // bfmmla z30.s, z12.h, z5.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ ".inst 0x6465e5bf // bfmmla z31.s, z13.h, z5.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ ".inst 0x6460e4d0 // bfmmla z16.s, z6.h, z0.h\n"
+ "ld1rqh z5.h, p7/z, [a_ptr3]\n"
+ ".inst 0x6460e4f1 // bfmmla z17.s, z7.h, z0.h\n"
+ "add a_ptr2, a_ptr2, #0x20\n"
+ ".inst 0x6460e512 // bfmmla z18.s, z8.h, z0.h\n"
+ "add a_ptr3, a_ptr3, #0x20\n"
+ ".inst 0x6460e533 // bfmmla z19.s, z9.h, z0.h\n"
+ "addvl %[b_ptr0], %[b_ptr0], #16\n"
+ ".inst 0x6460e554 // bfmmla z20.s, z10.h, z0.h\n"
+ ".inst 0x6460e575 // bfmmla z21.s, z11.h, z0.h\n"
+ ".inst 0x6460e596 // bfmmla z22.s, z12.h, z0.h\n"
+ ".inst 0x6460e5b7 // bfmmla z23.s, z13.h, z0.h\n"
+ "trn1 z0.d, z2.d, z3.d\n"
+ ".inst 0x6461e4d8 // bfmmla z24.s, z6.h, z1.h\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0], #-8, MUL VL]\n"
+ ".inst 0x6461e4f9 // bfmmla z25.s, z7.h, z1.h\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #-7, MUL VL]\n"
+ ".inst 0x6461e51a // bfmmla z26.s, z8.h, z1.h\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #-6, MUL VL]\n"
+ ".inst 0x6461e53b // bfmmla z27.s, z9.h, z1.h\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #-5, MUL VL]\n"
+ ".inst 0x6461e55c // bfmmla z28.s, z10.h, z1.h\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #-4, MUL VL]\n"
+ ".inst 0x6461e57d // bfmmla z29.s, z11.h, z1.h\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #-3, MUL VL]\n"
+ ".inst 0x6461e59e // bfmmla z30.s, z12.h, z1.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #-2, MUL VL]\n"
+ ".inst 0x6461e5bf // bfmmla z31.s, z13.h, z1.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #-1, MUL VL]\n"
+ "trn1 z1.d, z4.d, z5.d\n"
+ "trn2 z5.d, z4.d, z5.d\n"
+ "trn2 z4.d, z2.d, z3.d\n"
+ "ld1rqh z2.h, p7/z, [a_ptr2, #-0x10]\n"
+ ".inst 0x6460e4d0 // bfmmla z16.s, z6.h, z0.h\n"
+ "ld1rqh z3.h, p7/z, [a_ptr3, #-0x10]\n"
+ ".inst 0x6460e4f1 // bfmmla z17.s, z7.h, z0.h\n"
+ ".inst 0x6460e512 // bfmmla z18.s, z8.h, z0.h\n"
+ ".inst 0x6460e533 // bfmmla z19.s, z9.h, z0.h\n"
+ ".inst 0x6460e554 // bfmmla z20.s, z10.h, z0.h\n"
+ ".inst 0x6460e575 // bfmmla z21.s, z11.h, z0.h\n"
+ ".inst 0x6460e596 // bfmmla z22.s, z12.h, z0.h\n"
+ ".inst 0x6460e5b7 // bfmmla z23.s, z13.h, z0.h\n"
+ "ld1rqh z0.h, p7/z, [%[a_ptr0], #-0x10]\n"
+ ".inst 0x6461e4d8 // bfmmla z24.s, z6.h, z1.h\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0]]\n"
+ ".inst 0x6461e4f9 // bfmmla z25.s, z7.h, z1.h\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x6461e51a // bfmmla z26.s, z8.h, z1.h\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x6461e53b // bfmmla z27.s, z9.h, z1.h\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x6461e55c // bfmmla z28.s, z10.h, z1.h\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ ".inst 0x6461e57d // bfmmla z29.s, z11.h, z1.h\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ ".inst 0x6461e59e // bfmmla z30.s, z12.h, z1.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ ".inst 0x6461e5bf // bfmmla z31.s, z13.h, z1.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ ".inst 0x6464e4d0 // bfmmla z16.s, z6.h, z4.h\n"
+ "ld1rqh z1.h, p7/z, [a_ptr1, #-0x10]\n"
+ ".inst 0x6464e4f1 // bfmmla z17.s, z7.h, z4.h\n"
+ "addvl %[b_ptr0], %[b_ptr0], #16\n"
+ ".inst 0x6464e512 // bfmmla z18.s, z8.h, z4.h\n"
+ ".inst 0x6464e533 // bfmmla z19.s, z9.h, z4.h\n"
+ ".inst 0x6464e554 // bfmmla z20.s, z10.h, z4.h\n"
+ ".inst 0x6464e575 // bfmmla z21.s, z11.h, z4.h\n"
+ ".inst 0x6464e596 // bfmmla z22.s, z12.h, z4.h\n"
+ ".inst 0x6464e5b7 // bfmmla z23.s, z13.h, z4.h\n"
+ "trn1 z4.d, z0.d, z1.d\n"
+ ".inst 0x6465e4d8 // bfmmla z24.s, z6.h, z5.h\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0], #-8, MUL VL]\n"
+ ".inst 0x6465e4f9 // bfmmla z25.s, z7.h, z5.h\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #-7, MUL VL]\n"
+ ".inst 0x6465e51a // bfmmla z26.s, z8.h, z5.h\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #-6, MUL VL]\n"
+ ".inst 0x6465e53b // bfmmla z27.s, z9.h, z5.h\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #-5, MUL VL]\n"
+ ".inst 0x6465e55c // bfmmla z28.s, z10.h, z5.h\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #-4, MUL VL]\n"
+ ".inst 0x6465e57d // bfmmla z29.s, z11.h, z5.h\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #-3, MUL VL]\n"
+ ".inst 0x6465e59e // bfmmla z30.s, z12.h, z5.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #-2, MUL VL]\n"
+ ".inst 0x6465e5bf // bfmmla z31.s, z13.h, z5.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #-1, MUL VL]\n"
+ "trn1 z5.d, z2.d, z3.d\n"
+ "b.ne 3b\n"
+ "2:\n"
+ "cbz %[regs], 4f\n"
+ "trn2 z0.d, z0.d, z1.d\n"
+ "trn2 z1.d, z2.d, z3.d\n"
+ "ld1rqh z2.h, p7/z, [%[a_ptr0]]\n"
+ ".inst 0x6464e4d0 // bfmmla z16.s, z6.h, z4.h\n"
+ "ld1rqh z3.h, p7/z, [a_ptr1]\n"
+ ".inst 0x6464e4f1 // bfmmla z17.s, z7.h, z4.h\n"
+ ".inst 0x6464e512 // bfmmla z18.s, z8.h, z4.h\n"
+ ".inst 0x6464e533 // bfmmla z19.s, z9.h, z4.h\n"
+ ".inst 0x6464e554 // bfmmla z20.s, z10.h, z4.h\n"
+ ".inst 0x6464e575 // bfmmla z21.s, z11.h, z4.h\n"
+ ".inst 0x6464e596 // bfmmla z22.s, z12.h, z4.h\n"
+ ".inst 0x6464e5b7 // bfmmla z23.s, z13.h, z4.h\n"
+ "ld1rqh z4.h, p7/z, [a_ptr2]\n"
+ ".inst 0x6465e4d8 // bfmmla z24.s, z6.h, z5.h\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0]]\n"
+ ".inst 0x6465e4f9 // bfmmla z25.s, z7.h, z5.h\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x6465e51a // bfmmla z26.s, z8.h, z5.h\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x6465e53b // bfmmla z27.s, z9.h, z5.h\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x6465e55c // bfmmla z28.s, z10.h, z5.h\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ ".inst 0x6465e57d // bfmmla z29.s, z11.h, z5.h\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ ".inst 0x6465e59e // bfmmla z30.s, z12.h, z5.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ ".inst 0x6465e5bf // bfmmla z31.s, z13.h, z5.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ ".inst 0x6460e4d0 // bfmmla z16.s, z6.h, z0.h\n"
+ "ld1rqh z5.h, p7/z, [a_ptr3]\n"
+ ".inst 0x6460e4f1 // bfmmla z17.s, z7.h, z0.h\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ ".inst 0x6460e512 // bfmmla z18.s, z8.h, z0.h\n"
+ ".inst 0x6460e533 // bfmmla z19.s, z9.h, z0.h\n"
+ ".inst 0x6460e554 // bfmmla z20.s, z10.h, z0.h\n"
+ ".inst 0x6460e575 // bfmmla z21.s, z11.h, z0.h\n"
+ ".inst 0x6460e596 // bfmmla z22.s, z12.h, z0.h\n"
+ ".inst 0x6460e5b7 // bfmmla z23.s, z13.h, z0.h\n"
+ "trn1 z0.d, z2.d, z3.d\n"
+ ".inst 0x6461e4d8 // bfmmla z24.s, z6.h, z1.h\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0]]\n"
+ ".inst 0x6461e4f9 // bfmmla z25.s, z7.h, z1.h\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x6461e51a // bfmmla z26.s, z8.h, z1.h\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x6461e53b // bfmmla z27.s, z9.h, z1.h\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x6461e55c // bfmmla z28.s, z10.h, z1.h\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ ".inst 0x6461e57d // bfmmla z29.s, z11.h, z1.h\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ ".inst 0x6461e59e // bfmmla z30.s, z12.h, z1.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ ".inst 0x6461e5bf // bfmmla z31.s, z13.h, z1.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "trn1 z1.d, z4.d, z5.d\n"
+ "addvl %[b_ptr0], %[b_ptr0], #16\n"
+ "trn2 z5.d, z4.d, z5.d\n"
+ "trn2 z4.d, z2.d, z3.d\n"
+ "ld1rqh z2.h, p6/z, [a_ptr2, #0x10]\n"
+ ".inst 0x6460e4d0 // bfmmla z16.s, z6.h, z0.h\n"
+ "ld1rqh z3.h, p6/z, [a_ptr3, #0x10]\n"
+ ".inst 0x6460e4f1 // bfmmla z17.s, z7.h, z0.h\n"
+ "addvl a_ptr2, a_ptr2, #2\n"
+ ".inst 0x6460e512 // bfmmla z18.s, z8.h, z0.h\n"
+ "addvl a_ptr3, a_ptr3, #2\n"
+ ".inst 0x6460e533 // bfmmla z19.s, z9.h, z0.h\n"
+ ".inst 0x6460e554 // bfmmla z20.s, z10.h, z0.h\n"
+ ".inst 0x6460e575 // bfmmla z21.s, z11.h, z0.h\n"
+ ".inst 0x6460e596 // bfmmla z22.s, z12.h, z0.h\n"
+ ".inst 0x6460e5b7 // bfmmla z23.s, z13.h, z0.h\n"
+ "ld1rqh z0.h, p6/z, [%[a_ptr0], #0x10]\n"
+ ".inst 0x6461e4d8 // bfmmla z24.s, z6.h, z1.h\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0], #-8, MUL VL]\n"
+ ".inst 0x6461e4f9 // bfmmla z25.s, z7.h, z1.h\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #-7, MUL VL]\n"
+ ".inst 0x6461e51a // bfmmla z26.s, z8.h, z1.h\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #-6, MUL VL]\n"
+ ".inst 0x6461e53b // bfmmla z27.s, z9.h, z1.h\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #-5, MUL VL]\n"
+ ".inst 0x6461e55c // bfmmla z28.s, z10.h, z1.h\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #-4, MUL VL]\n"
+ ".inst 0x6461e57d // bfmmla z29.s, z11.h, z1.h\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #-3, MUL VL]\n"
+ ".inst 0x6461e59e // bfmmla z30.s, z12.h, z1.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #-2, MUL VL]\n"
+ ".inst 0x6461e5bf // bfmmla z31.s, z13.h, z1.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #-1, MUL VL]\n"
+ ".inst 0x6464e4d0 // bfmmla z16.s, z6.h, z4.h\n"
+ "ld1rqh z1.h, p6/z, [a_ptr1, #0x10]\n"
+ ".inst 0x6464e4f1 // bfmmla z17.s, z7.h, z4.h\n"
+ "addvl %[a_ptr0], %[a_ptr0], #2\n"
+ ".inst 0x6464e512 // bfmmla z18.s, z8.h, z4.h\n"
+ "addvl a_ptr1, a_ptr1, #2\n"
+ ".inst 0x6464e533 // bfmmla z19.s, z9.h, z4.h\n"
+ ".inst 0x6464e554 // bfmmla z20.s, z10.h, z4.h\n"
+ ".inst 0x6464e575 // bfmmla z21.s, z11.h, z4.h\n"
+ ".inst 0x6464e596 // bfmmla z22.s, z12.h, z4.h\n"
+ ".inst 0x6464e5b7 // bfmmla z23.s, z13.h, z4.h\n"
+ "trn1 z4.d, z0.d, z1.d\n"
+ ".inst 0x6465e4d8 // bfmmla z24.s, z6.h, z5.h\n"
+ ".inst 0x6465e4f9 // bfmmla z25.s, z7.h, z5.h\n"
+ ".inst 0x6465e51a // bfmmla z26.s, z8.h, z5.h\n"
+ ".inst 0x6465e53b // bfmmla z27.s, z9.h, z5.h\n"
+ ".inst 0x6465e55c // bfmmla z28.s, z10.h, z5.h\n"
+ ".inst 0x6465e57d // bfmmla z29.s, z11.h, z5.h\n"
+ ".inst 0x6465e59e // bfmmla z30.s, z12.h, z5.h\n"
+ ".inst 0x6465e5bf // bfmmla z31.s, z13.h, z5.h\n"
+ "trn1 z5.d, z2.d, z3.d\n"
+ "cbz %[blocks], 5f\n"
+ "trn2 z0.d, z0.d, z1.d\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0]]\n"
+ "trn2 z1.d, z2.d, z3.d\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "subs %[blocks], %[blocks], #0x1\n"
+ ".inst 0x6464e4d0 // bfmmla z16.s, z6.h, z4.h\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x6464e4f1 // bfmmla z17.s, z7.h, z4.h\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ ".inst 0x6464e512 // bfmmla z18.s, z8.h, z4.h\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ ".inst 0x6465e4d8 // bfmmla z24.s, z6.h, z5.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ ".inst 0x6464e533 // bfmmla z19.s, z9.h, z4.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ ".inst 0x6464e554 // bfmmla z20.s, z10.h, z4.h\n"
+ ".inst 0x6464e575 // bfmmla z21.s, z11.h, z4.h\n"
+ ".inst 0x6464e596 // bfmmla z22.s, z12.h, z4.h\n"
+ ".inst 0x6464e5b7 // bfmmla z23.s, z13.h, z4.h\n"
+ ".inst 0x6465e4f9 // bfmmla z25.s, z7.h, z5.h\n"
+ ".inst 0x6465e51a // bfmmla z26.s, z8.h, z5.h\n"
+ ".inst 0x6465e53b // bfmmla z27.s, z9.h, z5.h\n"
+ ".inst 0x6465e55c // bfmmla z28.s, z10.h, z5.h\n"
+ ".inst 0x6465e57d // bfmmla z29.s, z11.h, z5.h\n"
+ ".inst 0x6465e59e // bfmmla z30.s, z12.h, z5.h\n"
+ ".inst 0x6465e5bf // bfmmla z31.s, z13.h, z5.h\n"
+ "b.eq 5f\n"
+ "addvl %[b_ptr0], %[b_ptr0], #16\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0], #-8, MUL VL]\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #-7, MUL VL]\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #-6, MUL VL]\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #-5, MUL VL]\n"
+ ".inst 0x6460e4d0 // bfmmla z16.s, z6.h, z0.h\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #-4, MUL VL]\n"
+ ".inst 0x6460e4f1 // bfmmla z17.s, z7.h, z0.h\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #-3, MUL VL]\n"
+ ".inst 0x6460e512 // bfmmla z18.s, z8.h, z0.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #-2, MUL VL]\n"
+ ".inst 0x6460e533 // bfmmla z19.s, z9.h, z0.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #-1, MUL VL]\n"
+ ".inst 0x6460e554 // bfmmla z20.s, z10.h, z0.h\n"
+ ".inst 0x6460e575 // bfmmla z21.s, z11.h, z0.h\n"
+ ".inst 0x6460e596 // bfmmla z22.s, z12.h, z0.h\n"
+ ".inst 0x6460e5b7 // bfmmla z23.s, z13.h, z0.h\n"
+ ".inst 0x6461e4d8 // bfmmla z24.s, z6.h, z1.h\n"
+ ".inst 0x6461e4f9 // bfmmla z25.s, z7.h, z1.h\n"
+ ".inst 0x6461e51a // bfmmla z26.s, z8.h, z1.h\n"
+ ".inst 0x6461e53b // bfmmla z27.s, z9.h, z1.h\n"
+ ".inst 0x6461e55c // bfmmla z28.s, z10.h, z1.h\n"
+ ".inst 0x6461e57d // bfmmla z29.s, z11.h, z1.h\n"
+ ".inst 0x6461e59e // bfmmla z30.s, z12.h, z1.h\n"
+ ".inst 0x6461e5bf // bfmmla z31.s, z13.h, z1.h\n"
+ "b 5f\n"
+ "4:\n"
+ "trn2 z0.d, z0.d, z1.d\n"
+ "trn2 z1.d, z2.d, z3.d\n"
+ "ld1rqh z2.h, p6/z, [%[a_ptr0]]\n"
+ ".inst 0x6464e4d0 // bfmmla z16.s, z6.h, z4.h\n"
+ "ld1rqh z3.h, p6/z, [a_ptr1]\n"
+ ".inst 0x6464e4f1 // bfmmla z17.s, z7.h, z4.h\n"
+ "addvl %[a_ptr0], %[a_ptr0], #1\n"
+ ".inst 0x6464e512 // bfmmla z18.s, z8.h, z4.h\n"
+ "addvl a_ptr1, a_ptr1, #1\n"
+ ".inst 0x6464e533 // bfmmla z19.s, z9.h, z4.h\n"
+ ".inst 0x6464e554 // bfmmla z20.s, z10.h, z4.h\n"
+ ".inst 0x6464e575 // bfmmla z21.s, z11.h, z4.h\n"
+ ".inst 0x6464e596 // bfmmla z22.s, z12.h, z4.h\n"
+ ".inst 0x6464e5b7 // bfmmla z23.s, z13.h, z4.h\n"
+ "ld1rqh z4.h, p6/z, [a_ptr2]\n"
+ ".inst 0x6465e4d8 // bfmmla z24.s, z6.h, z5.h\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0]]\n"
+ ".inst 0x6465e4f9 // bfmmla z25.s, z7.h, z5.h\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x6465e51a // bfmmla z26.s, z8.h, z5.h\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ ".inst 0x6465e53b // bfmmla z27.s, z9.h, z5.h\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x6465e55c // bfmmla z28.s, z10.h, z5.h\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ ".inst 0x6465e57d // bfmmla z29.s, z11.h, z5.h\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ ".inst 0x6465e59e // bfmmla z30.s, z12.h, z5.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ ".inst 0x6465e5bf // bfmmla z31.s, z13.h, z5.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ ".inst 0x6460e4d0 // bfmmla z16.s, z6.h, z0.h\n"
+ "ld1rqh z5.h, p6/z, [a_ptr3]\n"
+ ".inst 0x6460e4f1 // bfmmla z17.s, z7.h, z0.h\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ ".inst 0x6460e512 // bfmmla z18.s, z8.h, z0.h\n"
+ "addvl a_ptr2, a_ptr2, #1\n"
+ ".inst 0x6460e533 // bfmmla z19.s, z9.h, z0.h\n"
+ "addvl a_ptr3, a_ptr3, #1\n"
+ ".inst 0x6460e554 // bfmmla z20.s, z10.h, z0.h\n"
+ ".inst 0x6460e575 // bfmmla z21.s, z11.h, z0.h\n"
+ ".inst 0x6460e596 // bfmmla z22.s, z12.h, z0.h\n"
+ ".inst 0x6460e5b7 // bfmmla z23.s, z13.h, z0.h\n"
+ "trn1 z0.d, z2.d, z3.d\n"
+ ".inst 0x6461e4d8 // bfmmla z24.s, z6.h, z1.h\n"
+ ".inst 0x6461e4f9 // bfmmla z25.s, z7.h, z1.h\n"
+ ".inst 0x6461e51a // bfmmla z26.s, z8.h, z1.h\n"
+ ".inst 0x6461e53b // bfmmla z27.s, z9.h, z1.h\n"
+ ".inst 0x6461e55c // bfmmla z28.s, z10.h, z1.h\n"
+ ".inst 0x6461e57d // bfmmla z29.s, z11.h, z1.h\n"
+ ".inst 0x6461e59e // bfmmla z30.s, z12.h, z1.h\n"
+ ".inst 0x6461e5bf // bfmmla z31.s, z13.h, z1.h\n"
+ "trn1 z1.d, z4.d, z5.d\n"
+ "cbz %[blocks], 5f\n"
+ "trn2 z5.d, z4.d, z5.d\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0]]\n"
+ "trn2 z4.d, z2.d, z3.d\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "subs %[blocks], %[blocks], #0x1\n"
+ ".inst 0x6460e4d0 // bfmmla z16.s, z6.h, z0.h\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ ".inst 0x6460e4f1 // bfmmla z17.s, z7.h, z0.h\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ ".inst 0x6460e512 // bfmmla z18.s, z8.h, z0.h\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ ".inst 0x6461e4d8 // bfmmla z24.s, z6.h, z1.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ ".inst 0x6460e533 // bfmmla z19.s, z9.h, z0.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ ".inst 0x6460e554 // bfmmla z20.s, z10.h, z0.h\n"
+ ".inst 0x6460e575 // bfmmla z21.s, z11.h, z0.h\n"
+ ".inst 0x6460e596 // bfmmla z22.s, z12.h, z0.h\n"
+ ".inst 0x6460e5b7 // bfmmla z23.s, z13.h, z0.h\n"
+ ".inst 0x6461e4f9 // bfmmla z25.s, z7.h, z1.h\n"
+ ".inst 0x6461e51a // bfmmla z26.s, z8.h, z1.h\n"
+ ".inst 0x6461e53b // bfmmla z27.s, z9.h, z1.h\n"
+ ".inst 0x6461e55c // bfmmla z28.s, z10.h, z1.h\n"
+ ".inst 0x6461e57d // bfmmla z29.s, z11.h, z1.h\n"
+ ".inst 0x6461e59e // bfmmla z30.s, z12.h, z1.h\n"
+ ".inst 0x6461e5bf // bfmmla z31.s, z13.h, z1.h\n"
+ "b.eq 5f\n"
+ "addvl %[b_ptr0], %[b_ptr0], #16\n"
+ "ld1h z6.h, p7/z, [%[b_ptr0], #-8, MUL VL]\n"
+ "ld1h z7.h, p7/z, [%[b_ptr0], #-7, MUL VL]\n"
+ "ld1h z8.h, p7/z, [%[b_ptr0], #-6, MUL VL]\n"
+ "ld1h z9.h, p7/z, [%[b_ptr0], #-5, MUL VL]\n"
+ ".inst 0x6464e4d0 // bfmmla z16.s, z6.h, z4.h\n"
+ "ld1h z10.h, p7/z, [%[b_ptr0], #-4, MUL VL]\n"
+ ".inst 0x6464e4f1 // bfmmla z17.s, z7.h, z4.h\n"
+ "ld1h z11.h, p7/z, [%[b_ptr0], #-3, MUL VL]\n"
+ ".inst 0x6464e512 // bfmmla z18.s, z8.h, z4.h\n"
+ "ld1h z12.h, p7/z, [%[b_ptr0], #-2, MUL VL]\n"
+ ".inst 0x6464e533 // bfmmla z19.s, z9.h, z4.h\n"
+ "ld1h z13.h, p7/z, [%[b_ptr0], #-1, MUL VL]\n"
+ ".inst 0x6464e554 // bfmmla z20.s, z10.h, z4.h\n"
+ ".inst 0x6464e575 // bfmmla z21.s, z11.h, z4.h\n"
+ ".inst 0x6464e596 // bfmmla z22.s, z12.h, z4.h\n"
+ ".inst 0x6464e5b7 // bfmmla z23.s, z13.h, z4.h\n"
+ ".inst 0x6465e4d8 // bfmmla z24.s, z6.h, z5.h\n"
+ ".inst 0x6465e4f9 // bfmmla z25.s, z7.h, z5.h\n"
+ ".inst 0x6465e51a // bfmmla z26.s, z8.h, z5.h\n"
+ ".inst 0x6465e53b // bfmmla z27.s, z9.h, z5.h\n"
+ ".inst 0x6465e55c // bfmmla z28.s, z10.h, z5.h\n"
+ ".inst 0x6465e57d // bfmmla z29.s, z11.h, z5.h\n"
+ ".inst 0x6465e59e // bfmmla z30.s, z12.h, z5.h\n"
+ ".inst 0x6465e5bf // bfmmla z31.s, z13.h, z5.h\n"
+ "5:\n"
+ "ld1rw z14.s, p7/z, [%[minptr]]\n"
+ "ld1rw z15.s, p7/z, [%[maxptr]]\n"
+ "fmax z16.s, p7/m, z16.s, z14.s\n"
+ "fmax z17.s, p7/m, z17.s, z14.s\n"
+ "fmax z18.s, p7/m, z18.s, z14.s\n"
+ "fmax z19.s, p7/m, z19.s, z14.s\n"
+ "fmin z16.s, p7/m, z16.s, z15.s\n"
+ "fmin z17.s, p7/m, z17.s, z15.s\n"
+ "fmin z18.s, p7/m, z18.s, z15.s\n"
+ "fmin z19.s, p7/m, z19.s, z15.s\n"
+ "fmax z20.s, p7/m, z20.s, z14.s\n"
+ "uzp1 z0.s, z16.s, z17.s\n"
+ "uzp2 z1.s, z16.s, z17.s\n"
+ "uzp1 z2.s, z18.s, z19.s\n"
+ "uzp2 z3.s, z18.s, z19.s\n"
+ "st1w z0.s, p0, [%[c_ptr0]]\n"
+ "fmin z20.s, p7/m, z20.s, z15.s\n"
+ "fmax z21.s, p7/m, z21.s, z14.s\n"
+ "fmax z22.s, p7/m, z22.s, z14.s\n"
+ "st1w z1.s, p0, [c_ptr1]\n"
+ "fmax z23.s, p7/m, z23.s, z14.s\n"
+ "fmax z24.s, p7/m, z24.s, z14.s\n"
+ "fmin z21.s, p7/m, z21.s, z15.s\n"
+ "st1w z2.s, p1, [%[c_ptr0], #1, MUL VL]\n"
+ "fmin z22.s, p7/m, z22.s, z15.s\n"
+ "fmin z23.s, p7/m, z23.s, z15.s\n"
+ "fmin z24.s, p7/m, z24.s, z15.s\n"
+ "st1w z3.s, p1, [c_ptr1, #1, MUL VL]\n"
+ "uzp1 z4.s, z20.s, z21.s\n"
+ "uzp2 z5.s, z20.s, z21.s\n"
+ "uzp1 z6.s, z22.s, z23.s\n"
+ "uzp2 z7.s, z22.s, z23.s\n"
+ "st1w z4.s, p2, [%[c_ptr0], #2, MUL VL]\n"
+ "fmax z25.s, p7/m, z25.s, z14.s\n"
+ "fmax z26.s, p7/m, z26.s, z14.s\n"
+ "fmax z27.s, p7/m, z27.s, z14.s\n"
+ "st1w z5.s, p2, [c_ptr1, #2, MUL VL]\n"
+ "fmax z28.s, p7/m, z28.s, z14.s\n"
+ "fmin z25.s, p7/m, z25.s, z15.s\n"
+ "fmin z26.s, p7/m, z26.s, z15.s\n"
+ "st1w z6.s, p3, [%[c_ptr0], #3, MUL VL]\n"
+ "fmin z27.s, p7/m, z27.s, z15.s\n"
+ "addvl %[c_ptr0], %[c_ptr0], #4\n"
+ "uzp1 z8.s, z24.s, z25.s\n"
+ "st1w z7.s, p3, [c_ptr1, #3, MUL VL]\n"
+ "uzp2 z9.s, z24.s, z25.s\n"
+ "uzp1 z10.s, z26.s, z27.s\n"
+ "uzp2 z11.s, z26.s, z27.s\n"
+ "st1w z8.s, p0, [c_ptr2]\n"
+ "fmin z28.s, p7/m, z28.s, z15.s\n"
+ "fmax z29.s, p7/m, z29.s, z14.s\n"
+ "fmax z30.s, p7/m, z30.s, z14.s\n"
+ "st1w z9.s, p0, [c_ptr3]\n"
+ "fmax z31.s, p7/m, z31.s, z14.s\n"
+ "fmin z29.s, p7/m, z29.s, z15.s\n"
+ "st1w z10.s, p1, [c_ptr2, #1, MUL VL]\n"
+ "fmin z30.s, p7/m, z30.s, z15.s\n"
+ "fmin z31.s, p7/m, z31.s, z15.s\n"
+ "uzp1 z12.s, z28.s, z29.s\n"
+ "st1w z11.s, p1, [c_ptr3, #1, MUL VL]\n"
+ "uzp2 z13.s, z28.s, z29.s\n"
+ "uzp1 z14.s, z30.s, z31.s\n"
+ "uzp2 z15.s, z30.s, z31.s\n"
+ "st1w z12.s, p2, [c_ptr2, #2, MUL VL]\n"
+ "st1w z13.s, p2, [c_ptr3, #2, MUL VL]\n"
+ "st1w z14.s, p3, [c_ptr2, #3, MUL VL]\n"
+ "st1w z15.s, p3, [c_ptr3, #3, MUL VL]\n"
+ ".unreq a_ptr1\n"
+ ".unreq a_ptr2\n"
+ ".unreq a_ptr3\n"
+ ".unreq c_ptr1\n"
+ ".unreq c_ptr2\n"
+ ".unreq c_ptr3\n"
+ : [a_ptr0] "+r" (a_ptr0), [b_ptr0] "+r" (b_ptr0), [c_ptr0] "+r" (c_ptr0), [loops] "+r" (loops), [regs] "+r" (regs), [temp] "+r" (temp), [blocks] "+r" (blocks)
+ : [width] "r" (width), [append] "r" (static_cast<uint64_t>(append)), [lda] "r" (ldab), [ldc] "r" (ldcb), [biasptr] "r" (biasptr), [minptr] "r" (minptr), [maxptr] "r" (maxptr), [leftovers] "r" (leftovers)
+ : "z0", "z1", "z2", "z3", "z4", "z5", "z6", "z7", "z8", "z9", "z10", "z11", "z12", "z13", "z14", "z15", "z16", "z17", "z18", "z19", "z20", "z21", "z22", "z23", "z24", "z25", "z26", "z27", "z28", "z29", "z30", "z31", "x0", "x1", "x2", "x3", "x4", "x5", "cc", "memory"
+ );
+ break;
+ }
+
+ }
+ }
+}
+
+} // namespace arm_gemm
+
+#endif // __ARM_FEATURE_SVE
diff --git a/src/core/NEON/kernels/arm_gemm/kernels/sve_interleaved_bf16fp32_dot_3VLx8.hpp b/src/core/NEON/kernels/arm_gemm/kernels/sve_interleaved_bf16fp32_dot_3VLx8.hpp
new file mode 100644
index 000000000..a3434c150
--- /dev/null
+++ b/src/core/NEON/kernels/arm_gemm/kernels/sve_interleaved_bf16fp32_dot_3VLx8.hpp
@@ -0,0 +1,69 @@
+/*
+ * Copyright (c) 2019 Arm Limited.
+ *
+ * SPDX-License-Identifier: MIT
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+#pragma once
+
+#ifdef __ARM_FEATURE_SVE
+
+#include "../bfloat.hpp"
+#include "../std_transforms_sve.hpp"
+
+namespace arm_gemm {
+
+// Actual kernel implementations
+void sve_interleaved_bf16fp32_dot_3VLx8(const bfloat16 *, const bfloat16 *, float *, int, int, int);
+
+class interleaved_bf16fp32_dot_3VLx8 {
+public:
+ typedef bfloat16 operand_type;
+ typedef float result_type;
+
+ typedef void (*kern_type)(const bfloat16 *, const bfloat16 *, float *, int, int, int);
+
+ /* Kernel blocking parameters */
+ static unsigned int out_width()
+ {
+ return get_vector_length<float>() * 3;
+ }
+
+ static unsigned int out_height()
+ {
+ return 8;
+ }
+
+ static unsigned int k_unroll()
+ {
+ return 2;
+ }
+
+ // Use the standard fixed size transforms.
+ StdTransformsSVE<operand_type, result_type, 8, 3, 2, 1> transforms = {};
+
+ kern_type kernel=sve_interleaved_bf16fp32_dot_3VLx8;
+
+ interleaved_bf16fp32_dot_3VLx8(const CPUInfo *ci) { UNUSED(ci); }
+};
+
+} // namespace arm_gemm
+
+#endif // __ARM_FEATURE_SVE
diff --git a/src/core/NEON/kernels/arm_gemm/kernels/sve_interleaved_bf16fp32_dot_3VLx8/generic.cpp b/src/core/NEON/kernels/arm_gemm/kernels/sve_interleaved_bf16fp32_dot_3VLx8/generic.cpp
new file mode 100644
index 000000000..65841581a
--- /dev/null
+++ b/src/core/NEON/kernels/arm_gemm/kernels/sve_interleaved_bf16fp32_dot_3VLx8/generic.cpp
@@ -0,0 +1,327 @@
+/*
+ * Copyright (c) 2019 Arm Limited.
+ *
+ * SPDX-License-Identifier: MIT
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+#ifdef __ARM_FEATURE_SVE
+
+#include "../../bfloat.hpp"
+#include "../../asmlib.hpp"
+
+namespace arm_gemm {
+
+void sve_interleaved_bf16fp32_dot_3VLx8(const bfloat16 *Apanel, const bfloat16 *Bpanel, float *Cpanel, int ablocks, int bblocks, int K) {
+ const bfloat16 *a_ptr = Apanel;
+ float *c_ptr = Cpanel;
+
+ K /= 2;
+ const long loops_count = (K / 2) - 1;
+ const long tails_count = K % 2;
+
+ for (int yb=0; yb<ablocks; yb++) {
+ const bfloat16 *a_ptr0 = a_ptr;
+ const bfloat16 *b_ptr = Bpanel;
+
+ for (int xb=0; xb<bblocks; xb++) {
+ a_ptr = a_ptr0;
+ long loops = loops_count;
+ long tails = tails_count;
+
+ __asm __volatile (
+ "mov z8.s, #0\n"
+ "ptrue p0.h\n"
+ "mov z9.s, #0\n"
+ "mov z10.s, #0\n"
+ "mov z11.s, #0\n"
+ "ld1rqh z0.h, p0/z, [%[a_ptr]]\n"
+ "mov z12.s, #0\n"
+ "ld1h z4.h, p0/z, [%[b_ptr]]\n"
+ "mov z13.s, #0\n"
+ "ld1rqh z1.h, p0/z, [%[a_ptr], #0x10]\n"
+ "mov z14.s, #0\n"
+ "ld1h z5.h, p0/z, [%[b_ptr], #1, MUL VL]\n"
+ "mov z15.s, #0\n"
+ "ld1rqh z2.h, p0/z, [%[a_ptr], #0x20]\n"
+ "mov z16.s, #0\n"
+ "ld1h z6.h, p0/z, [%[b_ptr], #2, MUL VL]\n"
+ "mov z17.s, #0\n"
+ "ld1rqh z3.h, p0/z, [%[a_ptr], #0x30]\n"
+ "mov z18.s, #0\n"
+ "add %[a_ptr], %[a_ptr], #0x40\n"
+ "mov z19.s, #0\n"
+ "addvl %[b_ptr], %[b_ptr], #3\n"
+ "mov z20.s, #0\n"
+ "mov z21.s, #0\n"
+ "mov z22.s, #0\n"
+ "mov z23.s, #0\n"
+ "mov z24.s, #0\n"
+ "mov z25.s, #0\n"
+ "mov z26.s, #0\n"
+ "mov z27.s, #0\n"
+ "mov z28.s, #0\n"
+ "mov z29.s, #0\n"
+ "mov z30.s, #0\n"
+ "mov z31.s, #0\n"
+ "cbz %[loops], 1f\n"
+ "2:\n"
+ ".inst 0x64604088 // bfdot z8.s, z4.h, z0.h[0]\n"
+ "subs %[loops], %[loops], #0x1\n"
+ ".inst 0x64684089 // bfdot z9.s, z4.h, z0.h[1]\n"
+ ".inst 0x6470408a // bfdot z10.s, z4.h, z0.h[2]\n"
+ ".inst 0x6478408b // bfdot z11.s, z4.h, z0.h[3]\n"
+ ".inst 0x64614094 // bfdot z20.s, z4.h, z1.h[0]\n"
+ ".inst 0x64694095 // bfdot z21.s, z4.h, z1.h[1]\n"
+ ".inst 0x64714096 // bfdot z22.s, z4.h, z1.h[2]\n"
+ ".inst 0x64794097 // bfdot z23.s, z4.h, z1.h[3]\n"
+ "ld1h z4.h, p0/z, [%[b_ptr]]\n"
+ ".inst 0x646040ac // bfdot z12.s, z5.h, z0.h[0]\n"
+ ".inst 0x646840ad // bfdot z13.s, z5.h, z0.h[1]\n"
+ ".inst 0x647040ae // bfdot z14.s, z5.h, z0.h[2]\n"
+ ".inst 0x647840af // bfdot z15.s, z5.h, z0.h[3]\n"
+ ".inst 0x646140b8 // bfdot z24.s, z5.h, z1.h[0]\n"
+ ".inst 0x646940b9 // bfdot z25.s, z5.h, z1.h[1]\n"
+ ".inst 0x647140ba // bfdot z26.s, z5.h, z1.h[2]\n"
+ ".inst 0x647940bb // bfdot z27.s, z5.h, z1.h[3]\n"
+ "ld1h z5.h, p0/z, [%[b_ptr], #1, MUL VL]\n"
+ ".inst 0x646040d0 // bfdot z16.s, z6.h, z0.h[0]\n"
+ ".inst 0x646840d1 // bfdot z17.s, z6.h, z0.h[1]\n"
+ ".inst 0x647040d2 // bfdot z18.s, z6.h, z0.h[2]\n"
+ ".inst 0x647840d3 // bfdot z19.s, z6.h, z0.h[3]\n"
+ "ld1rqh z0.h, p0/z, [%[a_ptr]]\n"
+ ".inst 0x646140dc // bfdot z28.s, z6.h, z1.h[0]\n"
+ ".inst 0x646940dd // bfdot z29.s, z6.h, z1.h[1]\n"
+ ".inst 0x647140de // bfdot z30.s, z6.h, z1.h[2]\n"
+ ".inst 0x647940df // bfdot z31.s, z6.h, z1.h[3]\n"
+ "ld1h z6.h, p0/z, [%[b_ptr], #2, MUL VL]\n"
+ ".inst 0x64624088 // bfdot z8.s, z4.h, z2.h[0]\n"
+ "ld1rqh z1.h, p0/z, [%[a_ptr], #0x10]\n"
+ ".inst 0x646a4089 // bfdot z9.s, z4.h, z2.h[1]\n"
+ "add %[a_ptr], %[a_ptr], #0x40\n"
+ ".inst 0x6472408a // bfdot z10.s, z4.h, z2.h[2]\n"
+ "addvl %[b_ptr], %[b_ptr], #6\n"
+ ".inst 0x647a408b // bfdot z11.s, z4.h, z2.h[3]\n"
+ ".inst 0x64634094 // bfdot z20.s, z4.h, z3.h[0]\n"
+ ".inst 0x646b4095 // bfdot z21.s, z4.h, z3.h[1]\n"
+ ".inst 0x64734096 // bfdot z22.s, z4.h, z3.h[2]\n"
+ ".inst 0x647b4097 // bfdot z23.s, z4.h, z3.h[3]\n"
+ "ld1h z4.h, p0/z, [%[b_ptr], #-3, MUL VL]\n"
+ ".inst 0x646240ac // bfdot z12.s, z5.h, z2.h[0]\n"
+ ".inst 0x646a40ad // bfdot z13.s, z5.h, z2.h[1]\n"
+ ".inst 0x647240ae // bfdot z14.s, z5.h, z2.h[2]\n"
+ ".inst 0x647a40af // bfdot z15.s, z5.h, z2.h[3]\n"
+ ".inst 0x646340b8 // bfdot z24.s, z5.h, z3.h[0]\n"
+ ".inst 0x646b40b9 // bfdot z25.s, z5.h, z3.h[1]\n"
+ ".inst 0x647340ba // bfdot z26.s, z5.h, z3.h[2]\n"
+ ".inst 0x647b40bb // bfdot z27.s, z5.h, z3.h[3]\n"
+ "ld1h z5.h, p0/z, [%[b_ptr], #-2, MUL VL]\n"
+ ".inst 0x646240d0 // bfdot z16.s, z6.h, z2.h[0]\n"
+ ".inst 0x646a40d1 // bfdot z17.s, z6.h, z2.h[1]\n"
+ ".inst 0x647240d2 // bfdot z18.s, z6.h, z2.h[2]\n"
+ ".inst 0x647a40d3 // bfdot z19.s, z6.h, z2.h[3]\n"
+ "ld1rqh z2.h, p0/z, [%[a_ptr], #-0x20]\n"
+ ".inst 0x646340dc // bfdot z28.s, z6.h, z3.h[0]\n"
+ ".inst 0x646b40dd // bfdot z29.s, z6.h, z3.h[1]\n"
+ ".inst 0x647340de // bfdot z30.s, z6.h, z3.h[2]\n"
+ ".inst 0x647b40df // bfdot z31.s, z6.h, z3.h[3]\n"
+ "ld1h z6.h, p0/z, [%[b_ptr], #-1, MUL VL]\n"
+ "ld1rqh z3.h, p0/z, [%[a_ptr], #-0x10]\n"
+ "b.ne 2b\n"
+ "1:\n"
+ "cbz %[tails], 3f\n"
+ ".inst 0x64604088 // bfdot z8.s, z4.h, z0.h[0]\n"
+ ".inst 0x64684089 // bfdot z9.s, z4.h, z0.h[1]\n"
+ ".inst 0x6470408a // bfdot z10.s, z4.h, z0.h[2]\n"
+ ".inst 0x6478408b // bfdot z11.s, z4.h, z0.h[3]\n"
+ ".inst 0x64614094 // bfdot z20.s, z4.h, z1.h[0]\n"
+ ".inst 0x64694095 // bfdot z21.s, z4.h, z1.h[1]\n"
+ ".inst 0x64714096 // bfdot z22.s, z4.h, z1.h[2]\n"
+ ".inst 0x64794097 // bfdot z23.s, z4.h, z1.h[3]\n"
+ "ld1h z4.h, p0/z, [%[b_ptr]]\n"
+ ".inst 0x646040ac // bfdot z12.s, z5.h, z0.h[0]\n"
+ ".inst 0x646840ad // bfdot z13.s, z5.h, z0.h[1]\n"
+ ".inst 0x647040ae // bfdot z14.s, z5.h, z0.h[2]\n"
+ ".inst 0x647840af // bfdot z15.s, z5.h, z0.h[3]\n"
+ ".inst 0x646140b8 // bfdot z24.s, z5.h, z1.h[0]\n"
+ ".inst 0x646940b9 // bfdot z25.s, z5.h, z1.h[1]\n"
+ ".inst 0x647140ba // bfdot z26.s, z5.h, z1.h[2]\n"
+ ".inst 0x647940bb // bfdot z27.s, z5.h, z1.h[3]\n"
+ "ld1h z5.h, p0/z, [%[b_ptr], #1, MUL VL]\n"
+ ".inst 0x646040d0 // bfdot z16.s, z6.h, z0.h[0]\n"
+ ".inst 0x646840d1 // bfdot z17.s, z6.h, z0.h[1]\n"
+ ".inst 0x647040d2 // bfdot z18.s, z6.h, z0.h[2]\n"
+ ".inst 0x647840d3 // bfdot z19.s, z6.h, z0.h[3]\n"
+ "ld1rqh z0.h, p0/z, [%[a_ptr]]\n"
+ ".inst 0x646140dc // bfdot z28.s, z6.h, z1.h[0]\n"
+ ".inst 0x646940dd // bfdot z29.s, z6.h, z1.h[1]\n"
+ ".inst 0x647140de // bfdot z30.s, z6.h, z1.h[2]\n"
+ ".inst 0x647940df // bfdot z31.s, z6.h, z1.h[3]\n"
+ "ld1h z6.h, p0/z, [%[b_ptr], #2, MUL VL]\n"
+ ".inst 0x64624088 // bfdot z8.s, z4.h, z2.h[0]\n"
+ "ld1rqh z1.h, p0/z, [%[a_ptr], #0x10]\n"
+ ".inst 0x646a4089 // bfdot z9.s, z4.h, z2.h[1]\n"
+ "add %[a_ptr], %[a_ptr], #0x20\n"
+ ".inst 0x6472408a // bfdot z10.s, z4.h, z2.h[2]\n"
+ "addvl %[b_ptr], %[b_ptr], #6\n"
+ ".inst 0x647a408b // bfdot z11.s, z4.h, z2.h[3]\n"
+ ".inst 0x64634094 // bfdot z20.s, z4.h, z3.h[0]\n"
+ ".inst 0x646b4095 // bfdot z21.s, z4.h, z3.h[1]\n"
+ ".inst 0x64734096 // bfdot z22.s, z4.h, z3.h[2]\n"
+ ".inst 0x647b4097 // bfdot z23.s, z4.h, z3.h[3]\n"
+ "ld1h z4.h, p0/z, [%[b_ptr], #-3, MUL VL]\n"
+ ".inst 0x646240ac // bfdot z12.s, z5.h, z2.h[0]\n"
+ ".inst 0x646a40ad // bfdot z13.s, z5.h, z2.h[1]\n"
+ ".inst 0x647240ae // bfdot z14.s, z5.h, z2.h[2]\n"
+ ".inst 0x647a40af // bfdot z15.s, z5.h, z2.h[3]\n"
+ ".inst 0x646340b8 // bfdot z24.s, z5.h, z3.h[0]\n"
+ ".inst 0x646b40b9 // bfdot z25.s, z5.h, z3.h[1]\n"
+ ".inst 0x647340ba // bfdot z26.s, z5.h, z3.h[2]\n"
+ ".inst 0x647b40bb // bfdot z27.s, z5.h, z3.h[3]\n"
+ "ld1h z5.h, p0/z, [%[b_ptr], #-2, MUL VL]\n"
+ ".inst 0x646240d0 // bfdot z16.s, z6.h, z2.h[0]\n"
+ ".inst 0x646a40d1 // bfdot z17.s, z6.h, z2.h[1]\n"
+ ".inst 0x647240d2 // bfdot z18.s, z6.h, z2.h[2]\n"
+ ".inst 0x647a40d3 // bfdot z19.s, z6.h, z2.h[3]\n"
+ ".inst 0x646340dc // bfdot z28.s, z6.h, z3.h[0]\n"
+ ".inst 0x646b40dd // bfdot z29.s, z6.h, z3.h[1]\n"
+ ".inst 0x647340de // bfdot z30.s, z6.h, z3.h[2]\n"
+ ".inst 0x647b40df // bfdot z31.s, z6.h, z3.h[3]\n"
+ "ld1h z6.h, p0/z, [%[b_ptr], #-1, MUL VL]\n"
+ ".inst 0x64604088 // bfdot z8.s, z4.h, z0.h[0]\n"
+ ".inst 0x64684089 // bfdot z9.s, z4.h, z0.h[1]\n"
+ ".inst 0x6470408a // bfdot z10.s, z4.h, z0.h[2]\n"
+ ".inst 0x6478408b // bfdot z11.s, z4.h, z0.h[3]\n"
+ "st1w z8.s, p0, [%[c_ptr]]\n"
+ ".inst 0x64614094 // bfdot z20.s, z4.h, z1.h[0]\n"
+ ".inst 0x64694095 // bfdot z21.s, z4.h, z1.h[1]\n"
+ ".inst 0x64714096 // bfdot z22.s, z4.h, z1.h[2]\n"
+ ".inst 0x64794097 // bfdot z23.s, z4.h, z1.h[3]\n"
+ ".inst 0x646040ac // bfdot z12.s, z5.h, z0.h[0]\n"
+ ".inst 0x646840ad // bfdot z13.s, z5.h, z0.h[1]\n"
+ ".inst 0x647040ae // bfdot z14.s, z5.h, z0.h[2]\n"
+ ".inst 0x647840af // bfdot z15.s, z5.h, z0.h[3]\n"
+ "st1w z12.s, p0, [%[c_ptr], #1, MUL VL]\n"
+ ".inst 0x646140b8 // bfdot z24.s, z5.h, z1.h[0]\n"
+ ".inst 0x646940b9 // bfdot z25.s, z5.h, z1.h[1]\n"
+ ".inst 0x647140ba // bfdot z26.s, z5.h, z1.h[2]\n"
+ ".inst 0x647940bb // bfdot z27.s, z5.h, z1.h[3]\n"
+ ".inst 0x646040d0 // bfdot z16.s, z6.h, z0.h[0]\n"
+ ".inst 0x646840d1 // bfdot z17.s, z6.h, z0.h[1]\n"
+ ".inst 0x647040d2 // bfdot z18.s, z6.h, z0.h[2]\n"
+ ".inst 0x647840d3 // bfdot z19.s, z6.h, z0.h[3]\n"
+ "st1w z16.s, p0, [%[c_ptr], #2, MUL VL]\n"
+ ".inst 0x646140dc // bfdot z28.s, z6.h, z1.h[0]\n"
+ ".inst 0x646940dd // bfdot z29.s, z6.h, z1.h[1]\n"
+ ".inst 0x647140de // bfdot z30.s, z6.h, z1.h[2]\n"
+ "st1w z9.s, p0, [%[c_ptr], #3, MUL VL]\n"
+ ".inst 0x647940df // bfdot z31.s, z6.h, z1.h[3]\n"
+ "b 4f\n"
+ "3:\n"
+ ".inst 0x64604088 // bfdot z8.s, z4.h, z0.h[0]\n"
+ "addvl %[b_ptr], %[b_ptr], #3\n"
+ ".inst 0x64684089 // bfdot z9.s, z4.h, z0.h[1]\n"
+ ".inst 0x6470408a // bfdot z10.s, z4.h, z0.h[2]\n"
+ ".inst 0x6478408b // bfdot z11.s, z4.h, z0.h[3]\n"
+ ".inst 0x64614094 // bfdot z20.s, z4.h, z1.h[0]\n"
+ ".inst 0x64694095 // bfdot z21.s, z4.h, z1.h[1]\n"
+ ".inst 0x64714096 // bfdot z22.s, z4.h, z1.h[2]\n"
+ ".inst 0x64794097 // bfdot z23.s, z4.h, z1.h[3]\n"
+ "ld1h z4.h, p0/z, [%[b_ptr], #-3, MUL VL]\n"
+ ".inst 0x646040ac // bfdot z12.s, z5.h, z0.h[0]\n"
+ ".inst 0x646840ad // bfdot z13.s, z5.h, z0.h[1]\n"
+ ".inst 0x647040ae // bfdot z14.s, z5.h, z0.h[2]\n"
+ ".inst 0x647840af // bfdot z15.s, z5.h, z0.h[3]\n"
+ ".inst 0x646140b8 // bfdot z24.s, z5.h, z1.h[0]\n"
+ ".inst 0x646940b9 // bfdot z25.s, z5.h, z1.h[1]\n"
+ ".inst 0x647140ba // bfdot z26.s, z5.h, z1.h[2]\n"
+ ".inst 0x647940bb // bfdot z27.s, z5.h, z1.h[3]\n"
+ "ld1h z5.h, p0/z, [%[b_ptr], #-2, MUL VL]\n"
+ ".inst 0x646040d0 // bfdot z16.s, z6.h, z0.h[0]\n"
+ ".inst 0x646840d1 // bfdot z17.s, z6.h, z0.h[1]\n"
+ ".inst 0x647040d2 // bfdot z18.s, z6.h, z0.h[2]\n"
+ ".inst 0x647840d3 // bfdot z19.s, z6.h, z0.h[3]\n"
+ ".inst 0x646140dc // bfdot z28.s, z6.h, z1.h[0]\n"
+ ".inst 0x646940dd // bfdot z29.s, z6.h, z1.h[1]\n"
+ ".inst 0x647140de // bfdot z30.s, z6.h, z1.h[2]\n"
+ ".inst 0x647940df // bfdot z31.s, z6.h, z1.h[3]\n"
+ "ld1h z6.h, p0/z, [%[b_ptr], #-1, MUL VL]\n"
+ ".inst 0x64624088 // bfdot z8.s, z4.h, z2.h[0]\n"
+ ".inst 0x646a4089 // bfdot z9.s, z4.h, z2.h[1]\n"
+ ".inst 0x6472408a // bfdot z10.s, z4.h, z2.h[2]\n"
+ ".inst 0x647a408b // bfdot z11.s, z4.h, z2.h[3]\n"
+ "st1w z8.s, p0, [%[c_ptr]]\n"
+ ".inst 0x64634094 // bfdot z20.s, z4.h, z3.h[0]\n"
+ ".inst 0x646b4095 // bfdot z21.s, z4.h, z3.h[1]\n"
+ ".inst 0x64734096 // bfdot z22.s, z4.h, z3.h[2]\n"
+ ".inst 0x647b4097 // bfdot z23.s, z4.h, z3.h[3]\n"
+ ".inst 0x646240ac // bfdot z12.s, z5.h, z2.h[0]\n"
+ ".inst 0x646a40ad // bfdot z13.s, z5.h, z2.h[1]\n"
+ ".inst 0x647240ae // bfdot z14.s, z5.h, z2.h[2]\n"
+ ".inst 0x647a40af // bfdot z15.s, z5.h, z2.h[3]\n"
+ "st1w z12.s, p0, [%[c_ptr], #1, MUL VL]\n"
+ ".inst 0x646340b8 // bfdot z24.s, z5.h, z3.h[0]\n"
+ ".inst 0x646b40b9 // bfdot z25.s, z5.h, z3.h[1]\n"
+ ".inst 0x647340ba // bfdot z26.s, z5.h, z3.h[2]\n"
+ ".inst 0x647b40bb // bfdot z27.s, z5.h, z3.h[3]\n"
+ ".inst 0x646240d0 // bfdot z16.s, z6.h, z2.h[0]\n"
+ ".inst 0x646a40d1 // bfdot z17.s, z6.h, z2.h[1]\n"
+ ".inst 0x647240d2 // bfdot z18.s, z6.h, z2.h[2]\n"
+ ".inst 0x647a40d3 // bfdot z19.s, z6.h, z2.h[3]\n"
+ "st1w z16.s, p0, [%[c_ptr], #2, MUL VL]\n"
+ ".inst 0x646340dc // bfdot z28.s, z6.h, z3.h[0]\n"
+ ".inst 0x646b40dd // bfdot z29.s, z6.h, z3.h[1]\n"
+ ".inst 0x647340de // bfdot z30.s, z6.h, z3.h[2]\n"
+ "st1w z9.s, p0, [%[c_ptr], #3, MUL VL]\n"
+ ".inst 0x647b40df // bfdot z31.s, z6.h, z3.h[3]\n"
+ "4:\n"
+ "st1w z13.s, p0, [%[c_ptr], #4, MUL VL]\n"
+ "st1w z17.s, p0, [%[c_ptr], #5, MUL VL]\n"
+ "st1w z10.s, p0, [%[c_ptr], #6, MUL VL]\n"
+ "st1w z14.s, p0, [%[c_ptr], #7, MUL VL]\n"
+ "addvl %[c_ptr], %[c_ptr], #16\n"
+ "st1w z18.s, p0, [%[c_ptr], #-8, MUL VL]\n"
+ "st1w z11.s, p0, [%[c_ptr], #-7, MUL VL]\n"
+ "st1w z15.s, p0, [%[c_ptr], #-6, MUL VL]\n"
+ "st1w z19.s, p0, [%[c_ptr], #-5, MUL VL]\n"
+ "st1w z20.s, p0, [%[c_ptr], #-4, MUL VL]\n"
+ "st1w z24.s, p0, [%[c_ptr], #-3, MUL VL]\n"
+ "st1w z28.s, p0, [%[c_ptr], #-2, MUL VL]\n"
+ "st1w z21.s, p0, [%[c_ptr], #-1, MUL VL]\n"
+ "st1w z25.s, p0, [%[c_ptr]]\n"
+ "st1w z29.s, p0, [%[c_ptr], #1, MUL VL]\n"
+ "st1w z22.s, p0, [%[c_ptr], #2, MUL VL]\n"
+ "st1w z26.s, p0, [%[c_ptr], #3, MUL VL]\n"
+ "st1w z30.s, p0, [%[c_ptr], #4, MUL VL]\n"
+ "st1w z23.s, p0, [%[c_ptr], #5, MUL VL]\n"
+ "st1w z27.s, p0, [%[c_ptr], #6, MUL VL]\n"
+ "st1w z31.s, p0, [%[c_ptr], #7, MUL VL]\n"
+ "addvl %[c_ptr], %[c_ptr], #8\n"
+ : [a_ptr] "+r" (a_ptr), [b_ptr] "+r" (b_ptr), [c_ptr] "+r" (c_ptr),
+ [loops] "+r" (loops), [tails] "+r" (tails)
+ :
+ : "z0", "z1", "z2", "z3", "z4", "z5", "z6", "z8", "z9", "z10", "z11", "z12", "z13", "z14", "z15", "z16", "z17", "z18", "z19", "z20", "z21", "z22", "z23", "z24", "z25", "z26", "z27", "z28", "z29", "z30", "z31", "cc", "memory"
+ );
+ }
+ }
+}
+
+} // namespace arm_gemm
+
+#endif // __ARM_FEATURE_SVE
diff --git a/src/core/NEON/kernels/arm_gemm/kernels/sve_interleaved_bf16fp32_mmla_3VLx8.hpp b/src/core/NEON/kernels/arm_gemm/kernels/sve_interleaved_bf16fp32_mmla_3VLx8.hpp
new file mode 100644
index 000000000..c6ffc047f
--- /dev/null
+++ b/src/core/NEON/kernels/arm_gemm/kernels/sve_interleaved_bf16fp32_mmla_3VLx8.hpp
@@ -0,0 +1,69 @@
+/*
+ * Copyright (c) 2019 Arm Limited.
+ *
+ * SPDX-License-Identifier: MIT
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+#pragma once
+
+#ifdef __ARM_FEATURE_SVE
+
+#include "../bfloat.hpp"
+#include "../std_transforms_sve.hpp"
+
+namespace arm_gemm {
+
+// Actual kernel implementations
+void sve_interleaved_bf16fp32_mmla_3VLx8(const bfloat16 *, const bfloat16 *, float *, int, int, int);
+
+class interleaved_bf16fp32_mmla_3VLx8 {
+public:
+ typedef bfloat16 operand_type;
+ typedef float result_type;
+
+ typedef void (*kern_type)(const bfloat16 *, const bfloat16 *, float *, int, int, int);
+
+ /* Kernel blocking parameters */
+ static unsigned int out_width()
+ {
+ return get_vector_length<float>() * 3;
+ }
+
+ static unsigned int out_height()
+ {
+ return 8;
+ }
+
+ static unsigned int k_unroll()
+ {
+ return 4;
+ }
+
+ // Use the standard fixed size transforms.
+ StdTransformsSVE<operand_type, result_type, 8, 6, 4, 2> transforms = {};
+
+ kern_type kernel=sve_interleaved_bf16fp32_mmla_3VLx8;
+
+ interleaved_bf16fp32_mmla_3VLx8(const CPUInfo *ci) { UNUSED(ci); }
+};
+
+} // namespace arm_gemm
+
+#endif // __ARM_FEATURE_SVE
diff --git a/src/core/NEON/kernels/arm_gemm/kernels/sve_interleaved_bf16fp32_mmla_3VLx8/generic.cpp b/src/core/NEON/kernels/arm_gemm/kernels/sve_interleaved_bf16fp32_mmla_3VLx8/generic.cpp
new file mode 100644
index 000000000..528fc7200
--- /dev/null
+++ b/src/core/NEON/kernels/arm_gemm/kernels/sve_interleaved_bf16fp32_mmla_3VLx8/generic.cpp
@@ -0,0 +1,395 @@
+/*
+ * Copyright (c) 2019 Arm Limited.
+ *
+ * SPDX-License-Identifier: MIT
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+#ifdef __ARM_FEATURE_SVE
+
+#include "../../bfloat.hpp"
+#include "../../asmlib.hpp"
+
+namespace arm_gemm {
+
+void sve_interleaved_bf16fp32_mmla_3VLx8(const bfloat16 *Apanel, const bfloat16 *Bpanel, float *Cpanel, int ablocks, int bblocks, int K) {
+ const bfloat16 *a_ptr = Apanel;
+ float *c_ptr = Cpanel;
+
+ K /= 4;
+ const long loops_count = (K / 2) - 1;
+ const long tails_count = K % 2;
+
+ for (int yb=0; yb<ablocks; yb++) {
+ const bfloat16 *a_ptr0 = a_ptr;
+ const bfloat16 *b_ptr = Bpanel;
+
+ for (int xb=0; xb<bblocks; xb++) {
+ a_ptr = a_ptr0;
+ long loops = loops_count;
+ long tails = tails_count;
+
+ __asm __volatile (
+ "mov z8.s, #0\n"
+ "ptrue p0.h\n"
+ "mov z9.s, #0\n"
+ "mov z10.s, #0\n"
+ "mov z11.s, #0\n"
+ "ld1rqh z0.h, p0/z, [%[a_ptr]]\n"
+ "mov z12.s, #0\n"
+ "ld1h z4.h, p0/z, [%[b_ptr]]\n"
+ "mov z13.s, #0\n"
+ "ld1rqh z1.h, p0/z, [%[a_ptr], #0x10]\n"
+ "mov z14.s, #0\n"
+ "ld1h z5.h, p0/z, [%[b_ptr], #1, MUL VL]\n"
+ "mov z15.s, #0\n"
+ "ld1rqh z2.h, p0/z, [%[a_ptr], #0x20]\n"
+ "mov z16.s, #0\n"
+ "ld1h z6.h, p0/z, [%[b_ptr], #2, MUL VL]\n"
+ "mov z17.s, #0\n"
+ "ld1rqh z3.h, p0/z, [%[a_ptr], #0x30]\n"
+ "mov z18.s, #0\n"
+ "ld1h z7.h, p0/z, [%[b_ptr], #3, MUL VL]\n"
+ "mov z19.s, #0\n"
+ "add %[a_ptr], %[a_ptr], #0x40\n"
+ "mov z20.s, #0\n"
+ "addvl %[b_ptr], %[b_ptr], #4\n"
+ "mov z21.s, #0\n"
+ "mov z22.s, #0\n"
+ "mov z23.s, #0\n"
+ "mov z24.s, #0\n"
+ "mov z25.s, #0\n"
+ "mov z26.s, #0\n"
+ "mov z27.s, #0\n"
+ "mov z28.s, #0\n"
+ "mov z29.s, #0\n"
+ "mov z30.s, #0\n"
+ "mov z31.s, #0\n"
+ "cbz %[loops], 1f\n"
+ "2:\n"
+ ".inst 0x6464e408 // bfmmla z8.s, z0.h, z4.h\n"
+ "subs %[loops], %[loops], #0x1\n"
+ ".inst 0x6464e42e // bfmmla z14.s, z1.h, z4.h\n"
+ ".inst 0x6464e454 // bfmmla z20.s, z2.h, z4.h\n"
+ ".inst 0x6464e47a // bfmmla z26.s, z3.h, z4.h\n"
+ "ld1h z4.h, p0/z, [%[b_ptr]]\n"
+ ".inst 0x6465e409 // bfmmla z9.s, z0.h, z5.h\n"
+ ".inst 0x6465e42f // bfmmla z15.s, z1.h, z5.h\n"
+ ".inst 0x6465e455 // bfmmla z21.s, z2.h, z5.h\n"
+ ".inst 0x6465e47b // bfmmla z27.s, z3.h, z5.h\n"
+ "ld1h z5.h, p0/z, [%[b_ptr], #1, MUL VL]\n"
+ ".inst 0x6466e40a // bfmmla z10.s, z0.h, z6.h\n"
+ ".inst 0x6466e430 // bfmmla z16.s, z1.h, z6.h\n"
+ ".inst 0x6466e456 // bfmmla z22.s, z2.h, z6.h\n"
+ ".inst 0x6466e47c // bfmmla z28.s, z3.h, z6.h\n"
+ "ld1h z6.h, p0/z, [%[b_ptr], #2, MUL VL]\n"
+ ".inst 0x6467e40b // bfmmla z11.s, z0.h, z7.h\n"
+ ".inst 0x6467e431 // bfmmla z17.s, z1.h, z7.h\n"
+ ".inst 0x6467e457 // bfmmla z23.s, z2.h, z7.h\n"
+ ".inst 0x6467e47d // bfmmla z29.s, z3.h, z7.h\n"
+ "ld1h z7.h, p0/z, [%[b_ptr], #3, MUL VL]\n"
+ ".inst 0x6464e40c // bfmmla z12.s, z0.h, z4.h\n"
+ ".inst 0x6464e432 // bfmmla z18.s, z1.h, z4.h\n"
+ ".inst 0x6464e458 // bfmmla z24.s, z2.h, z4.h\n"
+ ".inst 0x6464e47e // bfmmla z30.s, z3.h, z4.h\n"
+ "ld1h z4.h, p0/z, [%[b_ptr], #4, MUL VL]\n"
+ ".inst 0x6465e40d // bfmmla z13.s, z0.h, z5.h\n"
+ "ld1rqh z0.h, p0/z, [%[a_ptr]]\n"
+ ".inst 0x6465e433 // bfmmla z19.s, z1.h, z5.h\n"
+ "ld1rqh z1.h, p0/z, [%[a_ptr], #0x10]\n"
+ ".inst 0x6465e459 // bfmmla z25.s, z2.h, z5.h\n"
+ "ld1rqh z2.h, p0/z, [%[a_ptr], #0x20]\n"
+ ".inst 0x6465e47f // bfmmla z31.s, z3.h, z5.h\n"
+ "ld1h z5.h, p0/z, [%[b_ptr], #5, MUL VL]\n"
+ ".inst 0x6466e408 // bfmmla z8.s, z0.h, z6.h\n"
+ "ld1rqh z3.h, p0/z, [%[a_ptr], #0x30]\n"
+ ".inst 0x6466e42e // bfmmla z14.s, z1.h, z6.h\n"
+ "add %[a_ptr], %[a_ptr], #0x80\n"
+ ".inst 0x6466e454 // bfmmla z20.s, z2.h, z6.h\n"
+ "addvl %[b_ptr], %[b_ptr], #12\n"
+ ".inst 0x6466e47a // bfmmla z26.s, z3.h, z6.h\n"
+ ".inst 0x6467e409 // bfmmla z9.s, z0.h, z7.h\n"
+ ".inst 0x6467e42f // bfmmla z15.s, z1.h, z7.h\n"
+ "ld1h z6.h, p0/z, [%[b_ptr], #-6, MUL VL]\n"
+ ".inst 0x6467e455 // bfmmla z21.s, z2.h, z7.h\n"
+ ".inst 0x6467e47b // bfmmla z27.s, z3.h, z7.h\n"
+ "ld1h z7.h, p0/z, [%[b_ptr], #-5, MUL VL]\n"
+ ".inst 0x6464e40a // bfmmla z10.s, z0.h, z4.h\n"
+ ".inst 0x6464e430 // bfmmla z16.s, z1.h, z4.h\n"
+ ".inst 0x6464e456 // bfmmla z22.s, z2.h, z4.h\n"
+ ".inst 0x6464e47c // bfmmla z28.s, z3.h, z4.h\n"
+ "ld1h z4.h, p0/z, [%[b_ptr], #-4, MUL VL]\n"
+ ".inst 0x6465e40b // bfmmla z11.s, z0.h, z5.h\n"
+ ".inst 0x6465e431 // bfmmla z17.s, z1.h, z5.h\n"
+ ".inst 0x6465e457 // bfmmla z23.s, z2.h, z5.h\n"
+ ".inst 0x6465e47d // bfmmla z29.s, z3.h, z5.h\n"
+ "ld1h z5.h, p0/z, [%[b_ptr], #-3, MUL VL]\n"
+ ".inst 0x6466e40c // bfmmla z12.s, z0.h, z6.h\n"
+ ".inst 0x6466e432 // bfmmla z18.s, z1.h, z6.h\n"
+ ".inst 0x6466e458 // bfmmla z24.s, z2.h, z6.h\n"
+ ".inst 0x6466e47e // bfmmla z30.s, z3.h, z6.h\n"
+ "ld1h z6.h, p0/z, [%[b_ptr], #-2, MUL VL]\n"
+ ".inst 0x6467e40d // bfmmla z13.s, z0.h, z7.h\n"
+ "ld1rqh z0.h, p0/z, [%[a_ptr], #-0x40]\n"
+ ".inst 0x6467e433 // bfmmla z19.s, z1.h, z7.h\n"
+ "ld1rqh z1.h, p0/z, [%[a_ptr], #-0x30]\n"
+ ".inst 0x6467e459 // bfmmla z25.s, z2.h, z7.h\n"
+ "ld1rqh z2.h, p0/z, [%[a_ptr], #-0x20]\n"
+ ".inst 0x6467e47f // bfmmla z31.s, z3.h, z7.h\n"
+ "ld1h z7.h, p0/z, [%[b_ptr], #-1, MUL VL]\n"
+ "ld1rqh z3.h, p0/z, [%[a_ptr], #-0x10]\n"
+ "b.ne 2b\n"
+ "1:\n"
+ "cbz %[tails], 3f\n"
+ ".inst 0x6464e408 // bfmmla z8.s, z0.h, z4.h\n"
+ ".inst 0x6464e42e // bfmmla z14.s, z1.h, z4.h\n"
+ ".inst 0x6464e454 // bfmmla z20.s, z2.h, z4.h\n"
+ ".inst 0x6464e47a // bfmmla z26.s, z3.h, z4.h\n"
+ "ld1h z4.h, p0/z, [%[b_ptr]]\n"
+ ".inst 0x6465e409 // bfmmla z9.s, z0.h, z5.h\n"
+ ".inst 0x6465e42f // bfmmla z15.s, z1.h, z5.h\n"
+ ".inst 0x6465e455 // bfmmla z21.s, z2.h, z5.h\n"
+ ".inst 0x6465e47b // bfmmla z27.s, z3.h, z5.h\n"
+ "ld1h z5.h, p0/z, [%[b_ptr], #1, MUL VL]\n"
+ ".inst 0x6466e40a // bfmmla z10.s, z0.h, z6.h\n"
+ ".inst 0x6466e430 // bfmmla z16.s, z1.h, z6.h\n"
+ ".inst 0x6466e456 // bfmmla z22.s, z2.h, z6.h\n"
+ ".inst 0x6466e47c // bfmmla z28.s, z3.h, z6.h\n"
+ "ld1h z6.h, p0/z, [%[b_ptr], #2, MUL VL]\n"
+ ".inst 0x6467e40b // bfmmla z11.s, z0.h, z7.h\n"
+ ".inst 0x6467e431 // bfmmla z17.s, z1.h, z7.h\n"
+ ".inst 0x6467e457 // bfmmla z23.s, z2.h, z7.h\n"
+ ".inst 0x6467e47d // bfmmla z29.s, z3.h, z7.h\n"
+ "ld1h z7.h, p0/z, [%[b_ptr], #3, MUL VL]\n"
+ ".inst 0x6464e40c // bfmmla z12.s, z0.h, z4.h\n"
+ ".inst 0x6464e432 // bfmmla z18.s, z1.h, z4.h\n"
+ ".inst 0x6464e458 // bfmmla z24.s, z2.h, z4.h\n"
+ ".inst 0x6464e47e // bfmmla z30.s, z3.h, z4.h\n"
+ "ld1h z4.h, p0/z, [%[b_ptr], #4, MUL VL]\n"
+ ".inst 0x6465e40d // bfmmla z13.s, z0.h, z5.h\n"
+ "ld1rqh z0.h, p0/z, [%[a_ptr]]\n"
+ ".inst 0x6465e433 // bfmmla z19.s, z1.h, z5.h\n"
+ "ld1rqh z1.h, p0/z, [%[a_ptr], #0x10]\n"
+ ".inst 0x6465e459 // bfmmla z25.s, z2.h, z5.h\n"
+ "ld1rqh z2.h, p0/z, [%[a_ptr], #0x20]\n"
+ ".inst 0x6465e47f // bfmmla z31.s, z3.h, z5.h\n"
+ "ld1h z5.h, p0/z, [%[b_ptr], #5, MUL VL]\n"
+ ".inst 0x6466e408 // bfmmla z8.s, z0.h, z6.h\n"
+ "ld1rqh z3.h, p0/z, [%[a_ptr], #0x30]\n"
+ ".inst 0x6466e42e // bfmmla z14.s, z1.h, z6.h\n"
+ "add %[a_ptr], %[a_ptr], #0x80\n"
+ ".inst 0x6466e454 // bfmmla z20.s, z2.h, z6.h\n"
+ "addvl %[b_ptr], %[b_ptr], #14\n"
+ ".inst 0x6466e47a // bfmmla z26.s, z3.h, z6.h\n"
+ ".inst 0x6467e409 // bfmmla z9.s, z0.h, z7.h\n"
+ ".inst 0x6467e42f // bfmmla z15.s, z1.h, z7.h\n"
+ "ld1h z6.h, p0/z, [%[b_ptr], #-8, MUL VL]\n"
+ ".inst 0x6467e455 // bfmmla z21.s, z2.h, z7.h\n"
+ ".inst 0x6467e47b // bfmmla z27.s, z3.h, z7.h\n"
+ "ld1h z7.h, p0/z, [%[b_ptr], #-7, MUL VL]\n"
+ ".inst 0x6464e40a // bfmmla z10.s, z0.h, z4.h\n"
+ ".inst 0x6464e430 // bfmmla z16.s, z1.h, z4.h\n"
+ ".inst 0x6464e456 // bfmmla z22.s, z2.h, z4.h\n"
+ ".inst 0x6464e47c // bfmmla z28.s, z3.h, z4.h\n"
+ "ld1h z4.h, p0/z, [%[b_ptr], #-6, MUL VL]\n"
+ ".inst 0x6465e40b // bfmmla z11.s, z0.h, z5.h\n"
+ ".inst 0x6465e431 // bfmmla z17.s, z1.h, z5.h\n"
+ ".inst 0x6465e457 // bfmmla z23.s, z2.h, z5.h\n"
+ ".inst 0x6465e47d // bfmmla z29.s, z3.h, z5.h\n"
+ "ld1h z5.h, p0/z, [%[b_ptr], #-5, MUL VL]\n"
+ ".inst 0x6466e40c // bfmmla z12.s, z0.h, z6.h\n"
+ ".inst 0x6466e432 // bfmmla z18.s, z1.h, z6.h\n"
+ ".inst 0x6466e458 // bfmmla z24.s, z2.h, z6.h\n"
+ ".inst 0x6466e47e // bfmmla z30.s, z3.h, z6.h\n"
+ "ld1h z6.h, p0/z, [%[b_ptr], #-4, MUL VL]\n"
+ ".inst 0x6467e40d // bfmmla z13.s, z0.h, z7.h\n"
+ "ld1rqh z0.h, p0/z, [%[a_ptr], #-0x40]\n"
+ ".inst 0x6467e433 // bfmmla z19.s, z1.h, z7.h\n"
+ "ld1rqh z1.h, p0/z, [%[a_ptr], #-0x30]\n"
+ ".inst 0x6467e459 // bfmmla z25.s, z2.h, z7.h\n"
+ "ld1rqh z2.h, p0/z, [%[a_ptr], #-0x20]\n"
+ ".inst 0x6467e47f // bfmmla z31.s, z3.h, z7.h\n"
+ "ld1h z7.h, p0/z, [%[b_ptr], #-3, MUL VL]\n"
+ ".inst 0x6464e408 // bfmmla z8.s, z0.h, z4.h\n"
+ "ld1rqh z3.h, p0/z, [%[a_ptr], #-0x10]\n"
+ ".inst 0x6464e42e // bfmmla z14.s, z1.h, z4.h\n"
+ ".inst 0x6464e454 // bfmmla z20.s, z2.h, z4.h\n"
+ ".inst 0x6465e409 // bfmmla z9.s, z0.h, z5.h\n"
+ ".inst 0x6464e47a // bfmmla z26.s, z3.h, z4.h\n"
+ "ld1h z4.h, p0/z, [%[b_ptr], #-2, MUL VL]\n"
+ ".inst 0x6465e42f // bfmmla z15.s, z1.h, z5.h\n"
+ ".inst 0x6465e455 // bfmmla z21.s, z2.h, z5.h\n"
+ ".inst 0x6465e47b // bfmmla z27.s, z3.h, z5.h\n"
+ "ld1h z5.h, p0/z, [%[b_ptr], #-1, MUL VL]\n"
+ ".inst 0x6466e40a // bfmmla z10.s, z0.h, z6.h\n"
+ ".inst 0x6466e430 // bfmmla z16.s, z1.h, z6.h\n"
+ ".inst 0x6466e456 // bfmmla z22.s, z2.h, z6.h\n"
+ ".inst 0x6466e47c // bfmmla z28.s, z3.h, z6.h\n"
+ "uzp1 z6.d, z14.d, z15.d\n"
+ ".inst 0x6467e40b // bfmmla z11.s, z0.h, z7.h\n"
+ ".inst 0x6467e431 // bfmmla z17.s, z1.h, z7.h\n"
+ ".inst 0x6467e457 // bfmmla z23.s, z2.h, z7.h\n"
+ ".inst 0x6467e47d // bfmmla z29.s, z3.h, z7.h\n"
+ ".inst 0x6464e40c // bfmmla z12.s, z0.h, z4.h\n"
+ "uzp1 z7.d, z16.d, z17.d\n"
+ ".inst 0x6464e432 // bfmmla z18.s, z1.h, z4.h\n"
+ ".inst 0x6464e458 // bfmmla z24.s, z2.h, z4.h\n"
+ ".inst 0x6464e47e // bfmmla z30.s, z3.h, z4.h\n"
+ "uzp2 z4.d, z10.d, z11.d\n"
+ ".inst 0x6465e40d // bfmmla z13.s, z0.h, z5.h\n"
+ "uzp1 z0.d, z8.d, z9.d\n"
+ ".inst 0x6465e433 // bfmmla z19.s, z1.h, z5.h\n"
+ "uzp1 z1.d, z10.d, z11.d\n"
+ ".inst 0x6465e459 // bfmmla z25.s, z2.h, z5.h\n"
+ "st1w z0.s, p0, [%[c_ptr]]\n"
+ "uzp1 z2.d, z12.d, z13.d\n"
+ "uzp1 z0.d, z18.d, z19.d\n"
+ ".inst 0x6465e47f // bfmmla z31.s, z3.h, z5.h\n"
+ "st1w z1.s, p0, [%[c_ptr], #1, MUL VL]\n"
+ "uzp2 z3.d, z8.d, z9.d\n"
+ "uzp2 z5.d, z12.d, z13.d\n"
+ "uzp2 z1.d, z14.d, z15.d\n"
+ "st1w z2.s, p0, [%[c_ptr], #2, MUL VL]\n"
+ "b 4f\n"
+ "3:\n"
+ ".inst 0x6464e408 // bfmmla z8.s, z0.h, z4.h\n"
+ "add %[a_ptr], %[a_ptr], #0x40\n"
+ ".inst 0x6464e42e // bfmmla z14.s, z1.h, z4.h\n"
+ "addvl %[b_ptr], %[b_ptr], #8\n"
+ ".inst 0x6464e454 // bfmmla z20.s, z2.h, z4.h\n"
+ ".inst 0x6464e47a // bfmmla z26.s, z3.h, z4.h\n"
+ ".inst 0x6465e409 // bfmmla z9.s, z0.h, z5.h\n"
+ "ld1h z4.h, p0/z, [%[b_ptr], #-8, MUL VL]\n"
+ ".inst 0x6465e42f // bfmmla z15.s, z1.h, z5.h\n"
+ ".inst 0x6465e455 // bfmmla z21.s, z2.h, z5.h\n"
+ ".inst 0x6465e47b // bfmmla z27.s, z3.h, z5.h\n"
+ "ld1h z5.h, p0/z, [%[b_ptr], #-7, MUL VL]\n"
+ ".inst 0x6466e40a // bfmmla z10.s, z0.h, z6.h\n"
+ ".inst 0x6466e430 // bfmmla z16.s, z1.h, z6.h\n"
+ ".inst 0x6466e456 // bfmmla z22.s, z2.h, z6.h\n"
+ ".inst 0x6466e47c // bfmmla z28.s, z3.h, z6.h\n"
+ "ld1h z6.h, p0/z, [%[b_ptr], #-6, MUL VL]\n"
+ ".inst 0x6467e40b // bfmmla z11.s, z0.h, z7.h\n"
+ ".inst 0x6467e431 // bfmmla z17.s, z1.h, z7.h\n"
+ ".inst 0x6467e457 // bfmmla z23.s, z2.h, z7.h\n"
+ ".inst 0x6467e47d // bfmmla z29.s, z3.h, z7.h\n"
+ "ld1h z7.h, p0/z, [%[b_ptr], #-5, MUL VL]\n"
+ ".inst 0x6464e40c // bfmmla z12.s, z0.h, z4.h\n"
+ ".inst 0x6464e432 // bfmmla z18.s, z1.h, z4.h\n"
+ ".inst 0x6464e458 // bfmmla z24.s, z2.h, z4.h\n"
+ ".inst 0x6464e47e // bfmmla z30.s, z3.h, z4.h\n"
+ "ld1h z4.h, p0/z, [%[b_ptr], #-4, MUL VL]\n"
+ ".inst 0x6465e40d // bfmmla z13.s, z0.h, z5.h\n"
+ "ld1rqh z0.h, p0/z, [%[a_ptr], #-0x40]\n"
+ ".inst 0x6465e433 // bfmmla z19.s, z1.h, z5.h\n"
+ "ld1rqh z1.h, p0/z, [%[a_ptr], #-0x30]\n"
+ ".inst 0x6465e459 // bfmmla z25.s, z2.h, z5.h\n"
+ "ld1rqh z2.h, p0/z, [%[a_ptr], #-0x20]\n"
+ ".inst 0x6465e47f // bfmmla z31.s, z3.h, z5.h\n"
+ "ld1h z5.h, p0/z, [%[b_ptr], #-3, MUL VL]\n"
+ ".inst 0x6466e408 // bfmmla z8.s, z0.h, z6.h\n"
+ "ld1rqh z3.h, p0/z, [%[a_ptr], #-0x10]\n"
+ ".inst 0x6466e42e // bfmmla z14.s, z1.h, z6.h\n"
+ ".inst 0x6466e454 // bfmmla z20.s, z2.h, z6.h\n"
+ ".inst 0x6467e409 // bfmmla z9.s, z0.h, z7.h\n"
+ ".inst 0x6466e47a // bfmmla z26.s, z3.h, z6.h\n"
+ "ld1h z6.h, p0/z, [%[b_ptr], #-2, MUL VL]\n"
+ ".inst 0x6467e42f // bfmmla z15.s, z1.h, z7.h\n"
+ ".inst 0x6467e455 // bfmmla z21.s, z2.h, z7.h\n"
+ ".inst 0x6467e47b // bfmmla z27.s, z3.h, z7.h\n"
+ "ld1h z7.h, p0/z, [%[b_ptr], #-1, MUL VL]\n"
+ ".inst 0x6464e40a // bfmmla z10.s, z0.h, z4.h\n"
+ ".inst 0x6464e430 // bfmmla z16.s, z1.h, z4.h\n"
+ ".inst 0x6464e456 // bfmmla z22.s, z2.h, z4.h\n"
+ ".inst 0x6464e47c // bfmmla z28.s, z3.h, z4.h\n"
+ ".inst 0x6465e40b // bfmmla z11.s, z0.h, z5.h\n"
+ ".inst 0x6465e431 // bfmmla z17.s, z1.h, z5.h\n"
+ ".inst 0x6465e457 // bfmmla z23.s, z2.h, z5.h\n"
+ ".inst 0x6465e47d // bfmmla z29.s, z3.h, z5.h\n"
+ "uzp2 z4.d, z10.d, z11.d\n"
+ ".inst 0x6466e40c // bfmmla z12.s, z0.h, z6.h\n"
+ ".inst 0x6466e432 // bfmmla z18.s, z1.h, z6.h\n"
+ ".inst 0x6466e458 // bfmmla z24.s, z2.h, z6.h\n"
+ ".inst 0x6466e47e // bfmmla z30.s, z3.h, z6.h\n"
+ "uzp1 z6.d, z14.d, z15.d\n"
+ ".inst 0x6467e40d // bfmmla z13.s, z0.h, z7.h\n"
+ "uzp1 z0.d, z8.d, z9.d\n"
+ ".inst 0x6467e433 // bfmmla z19.s, z1.h, z7.h\n"
+ "uzp1 z1.d, z10.d, z11.d\n"
+ "uzp2 z5.d, z12.d, z13.d\n"
+ "st1w z0.s, p0, [%[c_ptr]]\n"
+ ".inst 0x6467e459 // bfmmla z25.s, z2.h, z7.h\n"
+ "uzp1 z2.d, z12.d, z13.d\n"
+ "uzp1 z0.d, z18.d, z19.d\n"
+ "st1w z1.s, p0, [%[c_ptr], #1, MUL VL]\n"
+ "uzp2 z1.d, z14.d, z15.d\n"
+ ".inst 0x6467e47f // bfmmla z31.s, z3.h, z7.h\n"
+ "uzp2 z3.d, z8.d, z9.d\n"
+ "st1w z2.s, p0, [%[c_ptr], #2, MUL VL]\n"
+ "uzp1 z7.d, z16.d, z17.d\n"
+ "4:\n"
+ "uzp2 z2.d, z16.d, z17.d\n"
+ "st1w z3.s, p0, [%[c_ptr], #3, MUL VL]\n"
+ "uzp2 z3.d, z18.d, z19.d\n"
+ "st1w z4.s, p0, [%[c_ptr], #4, MUL VL]\n"
+ "uzp1 z4.d, z20.d, z21.d\n"
+ "st1w z5.s, p0, [%[c_ptr], #5, MUL VL]\n"
+ "uzp1 z5.d, z22.d, z23.d\n"
+ "st1w z6.s, p0, [%[c_ptr], #6, MUL VL]\n"
+ "uzp1 z6.d, z24.d, z25.d\n"
+ "st1w z7.s, p0, [%[c_ptr], #7, MUL VL]\n"
+ "addvl %[c_ptr], %[c_ptr], #16\n"
+ "uzp2 z7.d, z20.d, z21.d\n"
+ "st1w z0.s, p0, [%[c_ptr], #-8, MUL VL]\n"
+ "uzp2 z0.d, z22.d, z23.d\n"
+ "st1w z1.s, p0, [%[c_ptr], #-7, MUL VL]\n"
+ "uzp2 z1.d, z24.d, z25.d\n"
+ "st1w z2.s, p0, [%[c_ptr], #-6, MUL VL]\n"
+ "uzp1 z2.d, z26.d, z27.d\n"
+ "st1w z3.s, p0, [%[c_ptr], #-5, MUL VL]\n"
+ "uzp1 z3.d, z28.d, z29.d\n"
+ "st1w z4.s, p0, [%[c_ptr], #-4, MUL VL]\n"
+ "uzp1 z4.d, z30.d, z31.d\n"
+ "st1w z5.s, p0, [%[c_ptr], #-3, MUL VL]\n"
+ "uzp2 z5.d, z26.d, z27.d\n"
+ "st1w z6.s, p0, [%[c_ptr], #-2, MUL VL]\n"
+ "uzp2 z6.d, z28.d, z29.d\n"
+ "st1w z7.s, p0, [%[c_ptr], #-1, MUL VL]\n"
+ "uzp2 z7.d, z30.d, z31.d\n"
+ "st1w z0.s, p0, [%[c_ptr]]\n"
+ "st1w z1.s, p0, [%[c_ptr], #1, MUL VL]\n"
+ "st1w z2.s, p0, [%[c_ptr], #2, MUL VL]\n"
+ "st1w z3.s, p0, [%[c_ptr], #3, MUL VL]\n"
+ "st1w z4.s, p0, [%[c_ptr], #4, MUL VL]\n"
+ "st1w z5.s, p0, [%[c_ptr], #5, MUL VL]\n"
+ "st1w z6.s, p0, [%[c_ptr], #6, MUL VL]\n"
+ "st1w z7.s, p0, [%[c_ptr], #7, MUL VL]\n"
+ "addvl %[c_ptr], %[c_ptr], #8\n"
+ : [a_ptr] "+r" (a_ptr), [b_ptr] "+r" (b_ptr), [c_ptr] "+r" (c_ptr),
+ [loops] "+r" (loops), [tails] "+r" (tails)
+ :
+ : "z0", "z1", "z2", "z3", "z4", "z5", "z6", "z7", "z8", "z9", "z10", "z11", "z12", "z13", "z14", "z15", "z16", "z17", "z18", "z19", "z20", "z21", "z22", "z23", "z24", "z25", "z26", "z27", "z28", "z29", "z30", "z31", "cc", "memory"
+ );
+ }
+ }
+}
+
+} // namespace arm_gemm
+
+#endif // __ARM_FEATURE_SVE
diff --git a/src/core/NEON/kernels/arm_gemm/kernels/sve_interleaved_fp16_mla_3VLx8.hpp b/src/core/NEON/kernels/arm_gemm/kernels/sve_interleaved_fp16_mla_3VLx8.hpp
index a74f9efb8..10dbdd884 100644
--- a/src/core/NEON/kernels/arm_gemm/kernels/sve_interleaved_fp16_mla_3VLx8.hpp
+++ b/src/core/NEON/kernels/arm_gemm/kernels/sve_interleaved_fp16_mla_3VLx8.hpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2018-2019 Arm Limited.
+ * Copyright (c) 2019 Arm Limited.
*
* SPDX-License-Identifier: MIT
*
diff --git a/src/core/NEON/kernels/arm_gemm/kernels/sve_interleaved_fp16_mla_3VLx8/generic.cpp b/src/core/NEON/kernels/arm_gemm/kernels/sve_interleaved_fp16_mla_3VLx8/generic.cpp
index 517895ca7..b2d3a6f52 100644
--- a/src/core/NEON/kernels/arm_gemm/kernels/sve_interleaved_fp16_mla_3VLx8/generic.cpp
+++ b/src/core/NEON/kernels/arm_gemm/kernels/sve_interleaved_fp16_mla_3VLx8/generic.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2018-2019 Arm Limited.
+ * Copyright (c) 2018 Arm Limited.
*
* SPDX-License-Identifier: MIT
*
diff --git a/src/core/NEON/kernels/arm_gemm/kernels/sve_interleaved_fp32_mla_3VLx8.hpp b/src/core/NEON/kernels/arm_gemm/kernels/sve_interleaved_fp32_mla_3VLx8.hpp
index 1e73d8e18..cdc944770 100644
--- a/src/core/NEON/kernels/arm_gemm/kernels/sve_interleaved_fp32_mla_3VLx8.hpp
+++ b/src/core/NEON/kernels/arm_gemm/kernels/sve_interleaved_fp32_mla_3VLx8.hpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2018-2019 Arm Limited.
+ * Copyright (c) 2019 Arm Limited.
*
* SPDX-License-Identifier: MIT
*
diff --git a/src/core/NEON/kernels/arm_gemm/kernels/sve_interleaved_fp32_mla_3VLx8/generic.cpp b/src/core/NEON/kernels/arm_gemm/kernels/sve_interleaved_fp32_mla_3VLx8/generic.cpp
index 88c984018..d26948a0d 100644
--- a/src/core/NEON/kernels/arm_gemm/kernels/sve_interleaved_fp32_mla_3VLx8/generic.cpp
+++ b/src/core/NEON/kernels/arm_gemm/kernels/sve_interleaved_fp32_mla_3VLx8/generic.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2018-2019 Arm Limited.
+ * Copyright (c) 2018 Arm Limited.
*
* SPDX-License-Identifier: MIT
*
diff --git a/src/core/NEON/kernels/arm_gemm/kernels/sve_interleaved_s8s32_dot_3VLx8.hpp b/src/core/NEON/kernels/arm_gemm/kernels/sve_interleaved_s8s32_dot_3VLx8.hpp
index 8668ea7fb..effdbc63c 100644
--- a/src/core/NEON/kernels/arm_gemm/kernels/sve_interleaved_s8s32_dot_3VLx8.hpp
+++ b/src/core/NEON/kernels/arm_gemm/kernels/sve_interleaved_s8s32_dot_3VLx8.hpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2018-2019 Arm Limited.
+ * Copyright (c) 2019 Arm Limited.
*
* SPDX-License-Identifier: MIT
*
diff --git a/src/core/NEON/kernels/arm_gemm/kernels/sve_interleaved_s8s32_dot_3VLx8/generic.cpp b/src/core/NEON/kernels/arm_gemm/kernels/sve_interleaved_s8s32_dot_3VLx8/generic.cpp
index d679c211e..7640fcaa2 100644
--- a/src/core/NEON/kernels/arm_gemm/kernels/sve_interleaved_s8s32_dot_3VLx8/generic.cpp
+++ b/src/core/NEON/kernels/arm_gemm/kernels/sve_interleaved_s8s32_dot_3VLx8/generic.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2018-2019 Arm Limited.
+ * Copyright (c) 2018 Arm Limited.
*
* SPDX-License-Identifier: MIT
*
diff --git a/src/core/NEON/kernels/arm_gemm/kernels/sve_interleaved_u8u32_dot_3VLx8/generic.cpp b/src/core/NEON/kernels/arm_gemm/kernels/sve_interleaved_u8u32_dot_3VLx8/generic.cpp
index 8228df4a0..f4d33a9ef 100644
--- a/src/core/NEON/kernels/arm_gemm/kernels/sve_interleaved_u8u32_dot_3VLx8/generic.cpp
+++ b/src/core/NEON/kernels/arm_gemm/kernels/sve_interleaved_u8u32_dot_3VLx8/generic.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2019 Arm Limited.
+ * Copyright (c) 2018 Arm Limited.
*
* SPDX-License-Identifier: MIT
*
diff --git a/src/core/NEON/kernels/arm_gemm/kernels/sve_native_bf16fp32_dot_4VLx4.hpp b/src/core/NEON/kernels/arm_gemm/kernels/sve_native_bf16fp32_dot_4VLx4.hpp
new file mode 100644
index 000000000..59103d240
--- /dev/null
+++ b/src/core/NEON/kernels/arm_gemm/kernels/sve_native_bf16fp32_dot_4VLx4.hpp
@@ -0,0 +1,86 @@
+/*
+ * Copyright (c) 2018-2019 Arm Limited.
+ *
+ * SPDX-License-Identifier: MIT
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+#pragma once
+
+#ifdef __ARM_FEATURE_SVE
+
+#include "../bfloat.hpp"
+
+
+namespace arm_gemm
+{
+
+// Actual kernel implementations
+void sve_native_bf16fp32_dot_4VLx4(const bfloat16 *, int, const bfloat16 *, int ldb, float *, int, int, int, int, const float *, Activation, bool);
+
+class native_bf16fp32_dot_4VLx4
+{
+public:
+ typedef bfloat16 operand_type;
+ typedef float result_type;
+
+ typedef void (*kern_type)(const bfloat16 *, int, const bfloat16 *, int ldb, float *, int, int, int, int, const float *, Activation, bool);
+
+ /* Kernel blocking parameters */
+ static constexpr unsigned int out_height()
+ {
+ return 4;
+ }
+
+ static unsigned int out_width()
+ {
+ return get_vector_length<float>() * 4;
+ }
+
+ static constexpr unsigned int k_unroll()
+ {
+ return 2;
+ }
+
+ static constexpr bool supports_append()
+ {
+ return false;
+ }
+
+ static constexpr bool supports_bias()
+ {
+ return true;
+ }
+
+ static constexpr bool supports_activation()
+ {
+ return true;
+ }
+
+
+
+ // Default to the generic kernel
+ kern_type kernel=sve_native_bf16fp32_dot_4VLx4;
+
+ native_bf16fp32_dot_4VLx4(const CPUInfo *ci) { UNUSED(ci); }
+};
+
+} // namespace arm_gemm
+
+#endif // __ARM_FEATURE_SVE
diff --git a/src/core/NEON/kernels/arm_gemm/kernels/sve_native_bf16fp32_dot_4VLx4/generic.cpp b/src/core/NEON/kernels/arm_gemm/kernels/sve_native_bf16fp32_dot_4VLx4/generic.cpp
new file mode 100644
index 000000000..ce1971b2c
--- /dev/null
+++ b/src/core/NEON/kernels/arm_gemm/kernels/sve_native_bf16fp32_dot_4VLx4/generic.cpp
@@ -0,0 +1,3275 @@
+/*
+ * Copyright (c) 2018-2019 Arm Limited.
+ *
+ * SPDX-License-Identifier: MIT
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+#ifdef __ARM_FEATURE_SVE
+
+#include <algorithm>
+
+#include "arm_gemm.hpp"
+#include "../../bfloat.hpp"
+#include "../../asmlib.hpp"
+#include "../../utils.hpp"
+
+namespace arm_gemm {
+
+void sve_native_bf16fp32_dot_4VLx4(const bfloat16 *A, int lda, const bfloat16 *B, int ldb, float *C, int ldc, int M, int N, int K, const float *bias, Activation act, bool append) {
+ const long loops_count = ((K + 8) / 16) - 1;
+ K -= loops_count * 16;
+ const long regs_count = (K / 8) - 1;
+ K -= (regs_count + 1) * 8;
+ const long leftovers = K;
+ const long blocks_count = K / 2;
+ const long odds_count = K - (blocks_count * 2);
+ float nullbias[256];
+ if (!append && !bias) {
+ memset(nullbias, 0, (4 * get_vector_length<float>() * sizeof(float)));
+ }
+ float minval = - static_cast<float>(std::numeric_limits<float>::infinity());
+ float maxval = static_cast<float>(std::numeric_limits<float>::infinity());
+ const float * const minptr = &minval;
+ const float * const maxptr = &maxval;
+
+ switch(act.type)
+ {
+ default:
+ case Activation::Type::None:
+ break;
+ case Activation::Type::BoundedReLU:
+ maxval = static_cast<float>(act.param1);
+ /* fall through */
+ case Activation::Type::ReLU:
+ minval = 0.0f;
+ break;
+ }
+
+ for (int y=0; y<M; y+=4) {
+ const bfloat16 * const a_ptr0_base = A + (y * lda);
+ const unsigned long ldab = lda * sizeof(bfloat16);
+
+ float *c_ptr0 = C + (y * ldc);
+
+ for (int x0=0; x0<N; x0+=(4 * get_vector_length<float>())) {
+ const long width = std::min((unsigned long)N-x0, (4 * get_vector_length<float>()));
+ long loops = loops_count;
+ long regs = regs_count;
+ long temp = 0;
+ long blocks = blocks_count;
+ long odds = odds_count;
+ const bfloat16 *a_ptr0 = a_ptr0_base;
+ const bfloat16 *b_ptr0 = B + x0;
+ const bfloat16 *b_ptr1 = b_ptr0 + ldb;
+ long ldbb = ldb * sizeof(bfloat16) * 2;
+ const unsigned long ldcb = ldc * sizeof(float);
+ const float *biasptr = bias ? bias+x0 : nullbias;
+
+ switch(M-y) {
+ case 1:
+ __asm __volatile (
+ "whilelt p6.h, %[temp], %[leftovers]\n"
+ "whilelt p0.s, %[temp], %[width]\n"
+ "whilelt p4.h, %[temp], %[width]\n"
+ "incw %[temp], all, mul #1\n"
+ "ptrue p7.h\n"
+ "ld1w z16.s, p0/z, [%[biasptr]]\n"
+ "ld1h z9.h, p4/z, [%[b_ptr0]]\n"
+ "whilelt p1.s, %[temp], %[width]\n"
+ "ld1rqh z0.h, p7/z, [%[a_ptr0]]\n"
+ "incw %[temp], all, mul #1\n"
+ "ld1h z10.h, p4/z, [%[b_ptr1]]\n"
+ "add %[a_ptr0], %[a_ptr0], #0x10\n"
+ "ld1w z17.s, p1/z, [%[biasptr], #1, MUL VL]\n"
+ "whilelt p2.s, %[temp], %[width]\n"
+ "zip1 z8.h, z9.h, z10.h\n"
+ "whilelt p5.h, %[temp], %[width]\n"
+ "zip2 z9.h, z9.h, z10.h\n"
+ "ld1w z18.s, p2/z, [%[biasptr], #2, MUL VL]\n"
+ "incw %[temp], all, mul #1\n"
+ "ld1h z11.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "ld1h z12.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ "whilelt p3.s, %[temp], %[width]\n"
+ "ld1h z13.h, p4/z, [%[b_ptr0]]\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ "zip1 z10.h, z11.h, z12.h\n"
+ "ld1w z19.s, p3/z, [%[biasptr], #3, MUL VL]\n"
+ "zip2 z11.h, z11.h, z12.h\n"
+ "ld1h z14.h, p4/z, [%[b_ptr1]]\n"
+ "cbz %[loops], 1f\n"
+ "2:\n"
+ ".inst 0x64604110 // bfdot z16.s, z8.h, z0.h[0]\n"
+ "ld1h z15.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "zip1 z12.h, z13.h, z14.h\n"
+ "ld1rqh z4.h, p7/z, [%[a_ptr0]]\n"
+ "zip2 z13.h, z13.h, z14.h\n"
+ "ld1h z8.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ ".inst 0x64604131 // bfdot z17.s, z9.h, z0.h[0]\n"
+ "subs %[loops], %[loops], #0x1\n"
+ ".inst 0x64604152 // bfdot z18.s, z10.h, z0.h[0]\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "zip1 z14.h, z15.h, z8.h\n"
+ "ld1h z9.h, p4/z, [%[b_ptr0]]\n"
+ "zip2 z15.h, z15.h, z8.h\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ ".inst 0x64604173 // bfdot z19.s, z11.h, z0.h[0]\n"
+ "ld1h z11.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x64684190 // bfdot z16.s, z12.h, z0.h[1]\n"
+ "ld1h z10.h, p4/z, [%[b_ptr1]]\n"
+ ".inst 0x646841b1 // bfdot z17.s, z13.h, z0.h[1]\n"
+ "ld1h z12.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ ".inst 0x646841d2 // bfdot z18.s, z14.h, z0.h[1]\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "zip1 z8.h, z9.h, z10.h\n"
+ "ld1h z13.h, p4/z, [%[b_ptr0]]\n"
+ "zip2 z9.h, z9.h, z10.h\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ "zip1 z10.h, z11.h, z12.h\n"
+ "ld1h z14.h, p4/z, [%[b_ptr1]]\n"
+ "zip2 z11.h, z11.h, z12.h\n"
+ "add %[a_ptr0], %[a_ptr0], #0x20\n"
+ ".inst 0x646841f3 // bfdot z19.s, z15.h, z0.h[1]\n"
+ "ld1h z15.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "zip1 z12.h, z13.h, z14.h\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "zip2 z13.h, z13.h, z14.h\n"
+ ".inst 0x64704110 // bfdot z16.s, z8.h, z0.h[2]\n"
+ "ld1h z8.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ ".inst 0x64704131 // bfdot z17.s, z9.h, z0.h[2]\n"
+ "ld1h z9.h, p4/z, [%[b_ptr0]]\n"
+ ".inst 0x64704152 // bfdot z18.s, z10.h, z0.h[2]\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ "zip1 z14.h, z15.h, z8.h\n"
+ "ld1h z10.h, p4/z, [%[b_ptr1]]\n"
+ "zip2 z15.h, z15.h, z8.h\n"
+ ".inst 0x64704173 // bfdot z19.s, z11.h, z0.h[2]\n"
+ "ld1h z11.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x64784190 // bfdot z16.s, z12.h, z0.h[3]\n"
+ "ld1h z12.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ "zip1 z8.h, z9.h, z10.h\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "zip2 z9.h, z9.h, z10.h\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ "zip1 z10.h, z11.h, z12.h\n"
+ "zip2 z11.h, z11.h, z12.h\n"
+ ".inst 0x647841b1 // bfdot z17.s, z13.h, z0.h[3]\n"
+ "ld1h z13.h, p4/z, [%[b_ptr0]]\n"
+ ".inst 0x647841d2 // bfdot z18.s, z14.h, z0.h[3]\n"
+ "ld1h z14.h, p4/z, [%[b_ptr1]]\n"
+ ".inst 0x647841f3 // bfdot z19.s, z15.h, z0.h[3]\n"
+ "ld1h z15.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x64644110 // bfdot z16.s, z8.h, z4.h[0]\n"
+ "ld1rqh z0.h, p7/z, [%[a_ptr0], #-0x10]\n"
+ ".inst 0x64644131 // bfdot z17.s, z9.h, z4.h[0]\n"
+ "ld1h z8.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ "zip1 z12.h, z13.h, z14.h\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "zip2 z13.h, z13.h, z14.h\n"
+ "ld1h z9.h, p4/z, [%[b_ptr0]]\n"
+ "zip1 z14.h, z15.h, z8.h\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ "zip2 z15.h, z15.h, z8.h\n"
+ ".inst 0x64644152 // bfdot z18.s, z10.h, z4.h[0]\n"
+ "ld1h z10.h, p4/z, [%[b_ptr1]]\n"
+ ".inst 0x64644173 // bfdot z19.s, z11.h, z4.h[0]\n"
+ "ld1h z11.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x646c4190 // bfdot z16.s, z12.h, z4.h[1]\n"
+ "ld1h z12.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ ".inst 0x646c41b1 // bfdot z17.s, z13.h, z4.h[1]\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "zip1 z8.h, z9.h, z10.h\n"
+ "ld1h z13.h, p4/z, [%[b_ptr0]]\n"
+ "zip2 z9.h, z9.h, z10.h\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ "zip1 z10.h, z11.h, z12.h\n"
+ "zip2 z11.h, z11.h, z12.h\n"
+ ".inst 0x646c41d2 // bfdot z18.s, z14.h, z4.h[1]\n"
+ "ld1h z14.h, p4/z, [%[b_ptr1]]\n"
+ ".inst 0x646c41f3 // bfdot z19.s, z15.h, z4.h[1]\n"
+ "ld1h z15.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x64744110 // bfdot z16.s, z8.h, z4.h[2]\n"
+ "ld1h z8.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ ".inst 0x64744131 // bfdot z17.s, z9.h, z4.h[2]\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "zip1 z12.h, z13.h, z14.h\n"
+ "ld1h z9.h, p4/z, [%[b_ptr0]]\n"
+ "zip2 z13.h, z13.h, z14.h\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ "zip1 z14.h, z15.h, z8.h\n"
+ "zip2 z15.h, z15.h, z8.h\n"
+ ".inst 0x64744152 // bfdot z18.s, z10.h, z4.h[2]\n"
+ "ld1h z10.h, p4/z, [%[b_ptr1]]\n"
+ ".inst 0x64744173 // bfdot z19.s, z11.h, z4.h[2]\n"
+ "ld1h z11.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x647c4190 // bfdot z16.s, z12.h, z4.h[3]\n"
+ "ld1h z12.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ ".inst 0x647c41b1 // bfdot z17.s, z13.h, z4.h[3]\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "zip1 z8.h, z9.h, z10.h\n"
+ "ld1h z13.h, p4/z, [%[b_ptr0]]\n"
+ "zip2 z9.h, z9.h, z10.h\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ "zip1 z10.h, z11.h, z12.h\n"
+ "zip2 z11.h, z11.h, z12.h\n"
+ ".inst 0x647c41d2 // bfdot z18.s, z14.h, z4.h[3]\n"
+ "ld1h z14.h, p4/z, [%[b_ptr1]]\n"
+ ".inst 0x647c41f3 // bfdot z19.s, z15.h, z4.h[3]\n"
+ "b.ne 2b\n"
+ "1:\n"
+ "zip1 z12.h, z13.h, z14.h\n"
+ "ld1h z15.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "zip2 z13.h, z13.h, z14.h\n"
+ "cbz %[regs], 3f\n"
+ ".inst 0x64604110 // bfdot z16.s, z8.h, z0.h[0]\n"
+ "ld1rqh z4.h, p7/z, [%[a_ptr0]]\n"
+ ".inst 0x64604131 // bfdot z17.s, z9.h, z0.h[0]\n"
+ "ld1h z8.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ ".inst 0x64604152 // bfdot z18.s, z10.h, z0.h[0]\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ ".inst 0x64604173 // bfdot z19.s, z11.h, z0.h[0]\n"
+ "ld1h z9.h, p4/z, [%[b_ptr0]]\n"
+ "zip1 z14.h, z15.h, z8.h\n"
+ "ld1h z11.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "zip2 z15.h, z15.h, z8.h\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ ".inst 0x64684190 // bfdot z16.s, z12.h, z0.h[1]\n"
+ "ld1h z10.h, p4/z, [%[b_ptr1]]\n"
+ ".inst 0x646841b1 // bfdot z17.s, z13.h, z0.h[1]\n"
+ "ld1h z12.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ ".inst 0x646841d2 // bfdot z18.s, z14.h, z0.h[1]\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "zip1 z8.h, z9.h, z10.h\n"
+ "ld1h z13.h, p4/z, [%[b_ptr0]]\n"
+ "zip2 z9.h, z9.h, z10.h\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ "zip1 z10.h, z11.h, z12.h\n"
+ "ld1h z14.h, p4/z, [%[b_ptr1]]\n"
+ "zip2 z11.h, z11.h, z12.h\n"
+ ".inst 0x646841f3 // bfdot z19.s, z15.h, z0.h[1]\n"
+ "ld1h z15.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x64704110 // bfdot z16.s, z8.h, z0.h[2]\n"
+ "ld1h z8.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ "zip1 z12.h, z13.h, z14.h\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "zip2 z13.h, z13.h, z14.h\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ "zip1 z14.h, z15.h, z8.h\n"
+ "zip2 z15.h, z15.h, z8.h\n"
+ ".inst 0x64704131 // bfdot z17.s, z9.h, z0.h[2]\n"
+ "ld1h z9.h, p4/z, [%[b_ptr0]]\n"
+ ".inst 0x64704152 // bfdot z18.s, z10.h, z0.h[2]\n"
+ "ld1h z10.h, p4/z, [%[b_ptr1]]\n"
+ ".inst 0x64704173 // bfdot z19.s, z11.h, z0.h[2]\n"
+ "ld1h z11.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x64784190 // bfdot z16.s, z12.h, z0.h[3]\n"
+ "ld1h z12.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ ".inst 0x647841b1 // bfdot z17.s, z13.h, z0.h[3]\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "zip1 z8.h, z9.h, z10.h\n"
+ "ld1h z13.h, p4/z, [%[b_ptr0]]\n"
+ "zip2 z9.h, z9.h, z10.h\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ "zip1 z10.h, z11.h, z12.h\n"
+ "zip2 z11.h, z11.h, z12.h\n"
+ ".inst 0x647841d2 // bfdot z18.s, z14.h, z0.h[3]\n"
+ "ld1h z14.h, p4/z, [%[b_ptr1]]\n"
+ ".inst 0x647841f3 // bfdot z19.s, z15.h, z0.h[3]\n"
+ "ld1h z15.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x64644110 // bfdot z16.s, z8.h, z4.h[0]\n"
+ "ld1h z8.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ ".inst 0x64644131 // bfdot z17.s, z9.h, z4.h[0]\n"
+ "ld1rqh z0.h, p6/z, [%[a_ptr0], #0x10]\n"
+ "zip1 z12.h, z13.h, z14.h\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "zip2 z13.h, z13.h, z14.h\n"
+ "ld1h z9.h, p4/z, [%[b_ptr0]]\n"
+ "zip1 z14.h, z15.h, z8.h\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ "zip2 z15.h, z15.h, z8.h\n"
+ "addvl %[a_ptr0], %[a_ptr0], #2\n"
+ ".inst 0x64644152 // bfdot z18.s, z10.h, z4.h[0]\n"
+ "ld1h z10.h, p4/z, [%[b_ptr1]]\n"
+ ".inst 0x64644173 // bfdot z19.s, z11.h, z4.h[0]\n"
+ "ld1h z11.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x646c4190 // bfdot z16.s, z12.h, z4.h[1]\n"
+ "ld1h z12.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ ".inst 0x646c41b1 // bfdot z17.s, z13.h, z4.h[1]\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "zip1 z8.h, z9.h, z10.h\n"
+ "ld1h z13.h, p4/z, [%[b_ptr0]]\n"
+ "zip2 z9.h, z9.h, z10.h\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ "zip1 z10.h, z11.h, z12.h\n"
+ "zip2 z11.h, z11.h, z12.h\n"
+ ".inst 0x646c41d2 // bfdot z18.s, z14.h, z4.h[1]\n"
+ "ld1h z14.h, p4/z, [%[b_ptr1]]\n"
+ ".inst 0x646c41f3 // bfdot z19.s, z15.h, z4.h[1]\n"
+ "ld1h z15.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x64744110 // bfdot z16.s, z8.h, z4.h[2]\n"
+ "ld1h z8.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ ".inst 0x64744131 // bfdot z17.s, z9.h, z4.h[2]\n"
+ "zip1 z12.h, z13.h, z14.h\n"
+ "zip2 z13.h, z13.h, z14.h\n"
+ "zip1 z14.h, z15.h, z8.h\n"
+ "zip2 z15.h, z15.h, z8.h\n"
+ ".inst 0x64744152 // bfdot z18.s, z10.h, z4.h[2]\n"
+ ".inst 0x64744173 // bfdot z19.s, z11.h, z4.h[2]\n"
+ ".inst 0x647c4190 // bfdot z16.s, z12.h, z4.h[3]\n"
+ ".inst 0x647c41b1 // bfdot z17.s, z13.h, z4.h[3]\n"
+ ".inst 0x647c41d2 // bfdot z18.s, z14.h, z4.h[3]\n"
+ ".inst 0x647c41f3 // bfdot z19.s, z15.h, z4.h[3]\n"
+ "cbz %[blocks], 4f\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ "ld1h z9.h, p4/z, [%[b_ptr0]]\n"
+ "subs %[blocks], %[blocks], #0x1\n"
+ "ld1h z10.h, p4/z, [%[b_ptr1]]\n"
+ "ld1h z11.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1h z12.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ "zip1 z8.h, z9.h, z10.h\n"
+ "zip2 z9.h, z9.h, z10.h\n"
+ "zip1 z10.h, z11.h, z12.h\n"
+ "zip2 z11.h, z11.h, z12.h\n"
+ ".inst 0x64604110 // bfdot z16.s, z8.h, z0.h[0]\n"
+ ".inst 0x64604131 // bfdot z17.s, z9.h, z0.h[0]\n"
+ ".inst 0x64604152 // bfdot z18.s, z10.h, z0.h[0]\n"
+ ".inst 0x64604173 // bfdot z19.s, z11.h, z0.h[0]\n"
+ "b.eq 5f\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ "ld1h z13.h, p4/z, [%[b_ptr0]]\n"
+ "subs %[blocks], %[blocks], #0x1\n"
+ "ld1h z14.h, p4/z, [%[b_ptr1]]\n"
+ "ld1h z15.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1h z8.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ "zip1 z12.h, z13.h, z14.h\n"
+ "zip2 z13.h, z13.h, z14.h\n"
+ "zip1 z14.h, z15.h, z8.h\n"
+ "zip2 z15.h, z15.h, z8.h\n"
+ ".inst 0x64684190 // bfdot z16.s, z12.h, z0.h[1]\n"
+ ".inst 0x646841b1 // bfdot z17.s, z13.h, z0.h[1]\n"
+ ".inst 0x646841d2 // bfdot z18.s, z14.h, z0.h[1]\n"
+ ".inst 0x646841f3 // bfdot z19.s, z15.h, z0.h[1]\n"
+ "b.eq 6f\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ "ld1h z9.h, p4/z, [%[b_ptr0]]\n"
+ "ld1h z10.h, p4/z, [%[b_ptr1]]\n"
+ "ld1h z11.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1h z12.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ "zip1 z8.h, z9.h, z10.h\n"
+ "zip2 z9.h, z9.h, z10.h\n"
+ "zip1 z10.h, z11.h, z12.h\n"
+ "zip2 z11.h, z11.h, z12.h\n"
+ ".inst 0x64704110 // bfdot z16.s, z8.h, z0.h[2]\n"
+ ".inst 0x64704131 // bfdot z17.s, z9.h, z0.h[2]\n"
+ ".inst 0x64704152 // bfdot z18.s, z10.h, z0.h[2]\n"
+ ".inst 0x64704173 // bfdot z19.s, z11.h, z0.h[2]\n"
+ "cbz %[odds], 7f\n"
+ "mov z14.h, #0\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "mov z8.h, #0\n"
+ "ld1h z13.h, p4/z, [%[b_ptr0]]\n"
+ "ld1h z15.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "zip1 z12.h, z13.h, z14.h\n"
+ "zip2 z13.h, z13.h, z14.h\n"
+ "zip1 z14.h, z15.h, z8.h\n"
+ "zip2 z15.h, z15.h, z8.h\n"
+ "8:\n"
+ ".inst 0x64784190 // bfdot z16.s, z12.h, z0.h[3]\n"
+ ".inst 0x647841b1 // bfdot z17.s, z13.h, z0.h[3]\n"
+ ".inst 0x647841d2 // bfdot z18.s, z14.h, z0.h[3]\n"
+ ".inst 0x647841f3 // bfdot z19.s, z15.h, z0.h[3]\n"
+ "b 7f\n"
+ "6:\n"
+ "cbz %[odds], 7f\n"
+ "mov z10.h, #0\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "mov z12.h, #0\n"
+ "ld1h z9.h, p4/z, [%[b_ptr0]]\n"
+ "ld1h z11.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "zip1 z8.h, z9.h, z10.h\n"
+ "zip2 z9.h, z9.h, z10.h\n"
+ "zip1 z10.h, z11.h, z12.h\n"
+ "zip2 z11.h, z11.h, z12.h\n"
+ "9:\n"
+ ".inst 0x64704110 // bfdot z16.s, z8.h, z0.h[2]\n"
+ ".inst 0x64704131 // bfdot z17.s, z9.h, z0.h[2]\n"
+ ".inst 0x64704152 // bfdot z18.s, z10.h, z0.h[2]\n"
+ ".inst 0x64704173 // bfdot z19.s, z11.h, z0.h[2]\n"
+ "b 7f\n"
+ "5:\n"
+ "cbz %[odds], 7f\n"
+ "mov z14.h, #0\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "mov z8.h, #0\n"
+ "ld1h z13.h, p4/z, [%[b_ptr0]]\n"
+ "ld1h z15.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "zip1 z12.h, z13.h, z14.h\n"
+ "zip2 z13.h, z13.h, z14.h\n"
+ "zip1 z14.h, z15.h, z8.h\n"
+ "zip2 z15.h, z15.h, z8.h\n"
+ "10:\n"
+ ".inst 0x64684190 // bfdot z16.s, z12.h, z0.h[1]\n"
+ ".inst 0x646841b1 // bfdot z17.s, z13.h, z0.h[1]\n"
+ ".inst 0x646841d2 // bfdot z18.s, z14.h, z0.h[1]\n"
+ ".inst 0x646841f3 // bfdot z19.s, z15.h, z0.h[1]\n"
+ "b 7f\n"
+ "4:\n"
+ "cbz %[odds], 7f\n"
+ "mov z10.h, #0\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "mov z12.h, #0\n"
+ "ld1h z9.h, p4/z, [%[b_ptr0]]\n"
+ "ld1h z11.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "zip1 z8.h, z9.h, z10.h\n"
+ "zip2 z9.h, z9.h, z10.h\n"
+ "zip1 z10.h, z11.h, z12.h\n"
+ "zip2 z11.h, z11.h, z12.h\n"
+ "11:\n"
+ ".inst 0x64604110 // bfdot z16.s, z8.h, z0.h[0]\n"
+ ".inst 0x64604131 // bfdot z17.s, z9.h, z0.h[0]\n"
+ ".inst 0x64604152 // bfdot z18.s, z10.h, z0.h[0]\n"
+ ".inst 0x64604173 // bfdot z19.s, z11.h, z0.h[0]\n"
+ "b 7f\n"
+ "3:\n"
+ ".inst 0x64604110 // bfdot z16.s, z8.h, z0.h[0]\n"
+ "ld1h z8.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ ".inst 0x64604131 // bfdot z17.s, z9.h, z0.h[0]\n"
+ "ld1rqh z4.h, p6/z, [%[a_ptr0]]\n"
+ ".inst 0x64604152 // bfdot z18.s, z10.h, z0.h[0]\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "zip1 z14.h, z15.h, z8.h\n"
+ "ld1h z9.h, p4/z, [%[b_ptr0]]\n"
+ "zip2 z15.h, z15.h, z8.h\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ ".inst 0x64604173 // bfdot z19.s, z11.h, z0.h[0]\n"
+ "ld1h z10.h, p4/z, [%[b_ptr1]]\n"
+ ".inst 0x64684190 // bfdot z16.s, z12.h, z0.h[1]\n"
+ "ld1h z11.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x646841b1 // bfdot z17.s, z13.h, z0.h[1]\n"
+ "ld1h z12.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ ".inst 0x646841d2 // bfdot z18.s, z14.h, z0.h[1]\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "zip1 z8.h, z9.h, z10.h\n"
+ "ld1h z13.h, p4/z, [%[b_ptr0]]\n"
+ "zip2 z9.h, z9.h, z10.h\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ "zip1 z10.h, z11.h, z12.h\n"
+ "ld1h z14.h, p4/z, [%[b_ptr1]]\n"
+ "zip2 z11.h, z11.h, z12.h\n"
+ "addvl %[a_ptr0], %[a_ptr0], #1\n"
+ ".inst 0x646841f3 // bfdot z19.s, z15.h, z0.h[1]\n"
+ "ld1h z15.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "zip1 z12.h, z13.h, z14.h\n"
+ "zip2 z13.h, z13.h, z14.h\n"
+ ".inst 0x64704110 // bfdot z16.s, z8.h, z0.h[2]\n"
+ "ld1h z8.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ ".inst 0x64704131 // bfdot z17.s, z9.h, z0.h[2]\n"
+ ".inst 0x64704152 // bfdot z18.s, z10.h, z0.h[2]\n"
+ ".inst 0x64704173 // bfdot z19.s, z11.h, z0.h[2]\n"
+ "zip1 z14.h, z15.h, z8.h\n"
+ "zip2 z15.h, z15.h, z8.h\n"
+ ".inst 0x64784190 // bfdot z16.s, z12.h, z0.h[3]\n"
+ ".inst 0x647841b1 // bfdot z17.s, z13.h, z0.h[3]\n"
+ ".inst 0x647841d2 // bfdot z18.s, z14.h, z0.h[3]\n"
+ ".inst 0x647841f3 // bfdot z19.s, z15.h, z0.h[3]\n"
+ "cbz %[blocks], 12f\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ "ld1h z9.h, p4/z, [%[b_ptr0]]\n"
+ "subs %[blocks], %[blocks], #0x1\n"
+ "ld1h z10.h, p4/z, [%[b_ptr1]]\n"
+ "ld1h z11.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1h z12.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ "zip1 z8.h, z9.h, z10.h\n"
+ "zip2 z9.h, z9.h, z10.h\n"
+ "zip1 z10.h, z11.h, z12.h\n"
+ "zip2 z11.h, z11.h, z12.h\n"
+ ".inst 0x64644110 // bfdot z16.s, z8.h, z4.h[0]\n"
+ ".inst 0x64644131 // bfdot z17.s, z9.h, z4.h[0]\n"
+ ".inst 0x64644152 // bfdot z18.s, z10.h, z4.h[0]\n"
+ ".inst 0x64644173 // bfdot z19.s, z11.h, z4.h[0]\n"
+ "b.eq 13f\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ "ld1h z13.h, p4/z, [%[b_ptr0]]\n"
+ "subs %[blocks], %[blocks], #0x1\n"
+ "ld1h z14.h, p4/z, [%[b_ptr1]]\n"
+ "ld1h z15.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1h z8.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ "zip1 z12.h, z13.h, z14.h\n"
+ "zip2 z13.h, z13.h, z14.h\n"
+ "zip1 z14.h, z15.h, z8.h\n"
+ "zip2 z15.h, z15.h, z8.h\n"
+ ".inst 0x646c4190 // bfdot z16.s, z12.h, z4.h[1]\n"
+ ".inst 0x646c41b1 // bfdot z17.s, z13.h, z4.h[1]\n"
+ ".inst 0x646c41d2 // bfdot z18.s, z14.h, z4.h[1]\n"
+ ".inst 0x646c41f3 // bfdot z19.s, z15.h, z4.h[1]\n"
+ "b.eq 14f\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ "ld1h z9.h, p4/z, [%[b_ptr0]]\n"
+ "ld1h z10.h, p4/z, [%[b_ptr1]]\n"
+ "ld1h z11.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1h z12.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ "zip1 z8.h, z9.h, z10.h\n"
+ "zip2 z9.h, z9.h, z10.h\n"
+ "zip1 z10.h, z11.h, z12.h\n"
+ "zip2 z11.h, z11.h, z12.h\n"
+ ".inst 0x64744110 // bfdot z16.s, z8.h, z4.h[2]\n"
+ ".inst 0x64744131 // bfdot z17.s, z9.h, z4.h[2]\n"
+ ".inst 0x64744152 // bfdot z18.s, z10.h, z4.h[2]\n"
+ ".inst 0x64744173 // bfdot z19.s, z11.h, z4.h[2]\n"
+ "cbz %[odds], 7f\n"
+ "mov z14.h, #0\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "mov z8.h, #0\n"
+ "ld1h z13.h, p4/z, [%[b_ptr0]]\n"
+ "ld1h z15.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "zip1 z12.h, z13.h, z14.h\n"
+ "zip2 z13.h, z13.h, z14.h\n"
+ "zip1 z14.h, z15.h, z8.h\n"
+ "zip2 z15.h, z15.h, z8.h\n"
+ "15:\n"
+ ".inst 0x647c4190 // bfdot z16.s, z12.h, z4.h[3]\n"
+ ".inst 0x647c41b1 // bfdot z17.s, z13.h, z4.h[3]\n"
+ ".inst 0x647c41d2 // bfdot z18.s, z14.h, z4.h[3]\n"
+ ".inst 0x647c41f3 // bfdot z19.s, z15.h, z4.h[3]\n"
+ "b 7f\n"
+ "14:\n"
+ "cbz %[odds], 7f\n"
+ "mov z10.h, #0\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "mov z12.h, #0\n"
+ "ld1h z9.h, p4/z, [%[b_ptr0]]\n"
+ "ld1h z11.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "zip1 z8.h, z9.h, z10.h\n"
+ "zip2 z9.h, z9.h, z10.h\n"
+ "zip1 z10.h, z11.h, z12.h\n"
+ "zip2 z11.h, z11.h, z12.h\n"
+ "16:\n"
+ ".inst 0x64744110 // bfdot z16.s, z8.h, z4.h[2]\n"
+ ".inst 0x64744131 // bfdot z17.s, z9.h, z4.h[2]\n"
+ ".inst 0x64744152 // bfdot z18.s, z10.h, z4.h[2]\n"
+ ".inst 0x64744173 // bfdot z19.s, z11.h, z4.h[2]\n"
+ "b 7f\n"
+ "13:\n"
+ "cbz %[odds], 7f\n"
+ "mov z14.h, #0\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "mov z8.h, #0\n"
+ "ld1h z13.h, p4/z, [%[b_ptr0]]\n"
+ "ld1h z15.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "zip1 z12.h, z13.h, z14.h\n"
+ "zip2 z13.h, z13.h, z14.h\n"
+ "zip1 z14.h, z15.h, z8.h\n"
+ "zip2 z15.h, z15.h, z8.h\n"
+ "17:\n"
+ ".inst 0x646c4190 // bfdot z16.s, z12.h, z4.h[1]\n"
+ ".inst 0x646c41b1 // bfdot z17.s, z13.h, z4.h[1]\n"
+ ".inst 0x646c41d2 // bfdot z18.s, z14.h, z4.h[1]\n"
+ ".inst 0x646c41f3 // bfdot z19.s, z15.h, z4.h[1]\n"
+ "b 7f\n"
+ "12:\n"
+ "cbz %[odds], 7f\n"
+ "mov z10.h, #0\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "mov z12.h, #0\n"
+ "ld1h z9.h, p4/z, [%[b_ptr0]]\n"
+ "ld1h z11.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "zip1 z8.h, z9.h, z10.h\n"
+ "zip2 z9.h, z9.h, z10.h\n"
+ "zip1 z10.h, z11.h, z12.h\n"
+ "zip2 z11.h, z11.h, z12.h\n"
+ "18:\n"
+ ".inst 0x64644110 // bfdot z16.s, z8.h, z4.h[0]\n"
+ ".inst 0x64644131 // bfdot z17.s, z9.h, z4.h[0]\n"
+ ".inst 0x64644152 // bfdot z18.s, z10.h, z4.h[0]\n"
+ ".inst 0x64644173 // bfdot z19.s, z11.h, z4.h[0]\n"
+ "7:\n"
+ "ld1rw z14.s, p7/z, [%[minptr]]\n"
+ "ld1rw z15.s, p7/z, [%[maxptr]]\n"
+ "fmax z16.s, p7/m, z16.s, z14.s\n"
+ "fmax z17.s, p7/m, z17.s, z14.s\n"
+ "fmax z18.s, p7/m, z18.s, z14.s\n"
+ "fmax z19.s, p7/m, z19.s, z14.s\n"
+ "fmin z16.s, p7/m, z16.s, z15.s\n"
+ "fmin z17.s, p7/m, z17.s, z15.s\n"
+ "fmin z18.s, p7/m, z18.s, z15.s\n"
+ "fmin z19.s, p7/m, z19.s, z15.s\n"
+ "st1w z16.s, p0, [%[c_ptr0]]\n"
+ "st1w z17.s, p1, [%[c_ptr0], #1, MUL VL]\n"
+ "st1w z18.s, p2, [%[c_ptr0], #2, MUL VL]\n"
+ "st1w z19.s, p3, [%[c_ptr0], #3, MUL VL]\n"
+ "addvl %[c_ptr0], %[c_ptr0], #4\n"
+ : [a_ptr0] "+r" (a_ptr0), [b_ptr0] "+r" (b_ptr0), [b_ptr1] "+r" (b_ptr1), [c_ptr0] "+r" (c_ptr0), [loops] "+r" (loops), [regs] "+r" (regs), [temp] "+r" (temp), [blocks] "+r" (blocks), [odds] "+r" (odds)
+ : [width] "r" (width), [append] "r" (static_cast<uint64_t>(append)), [lda] "r" (ldab), [ldc] "r" (ldcb), [biasptr] "r" (biasptr), [minptr] "r" (minptr), [maxptr] "r" (maxptr), [leftovers] "r" (leftovers), [ldb] "r" (ldbb)
+ : "z0", "z1", "z2", "z3", "z4", "z5", "z6", "z7", "z8", "z9", "z10", "z11", "z12", "z13", "z14", "z15", "z16", "z17", "z18", "z19", "z20", "z21", "z22", "z23", "z24", "z25", "z26", "z27", "z28", "z29", "z30", "z31", "cc", "memory"
+ );
+ break;
+ case 2:
+ __asm __volatile (
+ "a_ptr1 .req X0\n"
+ "c_ptr1 .req X1\n"
+ "add a_ptr1, %[a_ptr0], %[lda]\n"
+ "add c_ptr1, %[c_ptr0], %[ldc]\n"
+ "whilelt p6.h, %[temp], %[leftovers]\n"
+ "whilelt p0.s, %[temp], %[width]\n"
+ "whilelt p4.h, %[temp], %[width]\n"
+ "incw %[temp], all, mul #1\n"
+ "ptrue p7.h\n"
+ "ld1w z16.s, p0/z, [%[biasptr]]\n"
+ "ld1h z9.h, p4/z, [%[b_ptr0]]\n"
+ "whilelt p1.s, %[temp], %[width]\n"
+ "ld1rqh z0.h, p7/z, [%[a_ptr0]]\n"
+ "incw %[temp], all, mul #1\n"
+ "mov z20.d, z16.d\n"
+ "ld1w z17.s, p1/z, [%[biasptr], #1, MUL VL]\n"
+ "ld1rqh z1.h, p7/z, [a_ptr1]\n"
+ "add %[a_ptr0], %[a_ptr0], #0x10\n"
+ "ld1h z10.h, p4/z, [%[b_ptr1]]\n"
+ "whilelt p2.s, %[temp], %[width]\n"
+ "mov z21.d, z17.d\n"
+ "whilelt p5.h, %[temp], %[width]\n"
+ "zip1 z8.h, z9.h, z10.h\n"
+ "ld1w z18.s, p2/z, [%[biasptr], #2, MUL VL]\n"
+ "zip2 z9.h, z9.h, z10.h\n"
+ "incw %[temp], all, mul #1\n"
+ "ld1h z11.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "add a_ptr1, a_ptr1, #0x10\n"
+ "mov z22.d, z18.d\n"
+ "ld1h z12.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ "whilelt p3.s, %[temp], %[width]\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ "zip1 z10.h, z11.h, z12.h\n"
+ "ld1w z19.s, p3/z, [%[biasptr], #3, MUL VL]\n"
+ "zip2 z11.h, z11.h, z12.h\n"
+ "ld1h z13.h, p4/z, [%[b_ptr0]]\n"
+ "ld1h z14.h, p4/z, [%[b_ptr1]]\n"
+ "ld1h z15.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "mov z23.d, z19.d\n"
+ "cbz %[loops], 1f\n"
+ "2:\n"
+ "zip1 z12.h, z13.h, z14.h\n"
+ "ld1rqh z4.h, p7/z, [%[a_ptr0]]\n"
+ "zip2 z13.h, z13.h, z14.h\n"
+ "ld1rqh z5.h, p7/z, [a_ptr1]\n"
+ ".inst 0x64604110 // bfdot z16.s, z8.h, z0.h[0]\n"
+ "subs %[loops], %[loops], #0x1\n"
+ ".inst 0x64614114 // bfdot z20.s, z8.h, z1.h[0]\n"
+ "ld1h z8.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ ".inst 0x64604131 // bfdot z17.s, z9.h, z0.h[0]\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ ".inst 0x64614135 // bfdot z21.s, z9.h, z1.h[0]\n"
+ "ld1h z9.h, p4/z, [%[b_ptr0]]\n"
+ "zip1 z14.h, z15.h, z8.h\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ "zip2 z15.h, z15.h, z8.h\n"
+ "add %[a_ptr0], %[a_ptr0], #0x20\n"
+ ".inst 0x64604152 // bfdot z18.s, z10.h, z0.h[0]\n"
+ "add a_ptr1, a_ptr1, #0x20\n"
+ ".inst 0x64614156 // bfdot z22.s, z10.h, z1.h[0]\n"
+ "ld1h z10.h, p4/z, [%[b_ptr1]]\n"
+ ".inst 0x64604173 // bfdot z19.s, z11.h, z0.h[0]\n"
+ ".inst 0x64614177 // bfdot z23.s, z11.h, z1.h[0]\n"
+ "ld1h z11.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x64684190 // bfdot z16.s, z12.h, z0.h[1]\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "zip1 z8.h, z9.h, z10.h\n"
+ "zip2 z9.h, z9.h, z10.h\n"
+ ".inst 0x64694194 // bfdot z20.s, z12.h, z1.h[1]\n"
+ "ld1h z12.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ ".inst 0x646841b1 // bfdot z17.s, z13.h, z0.h[1]\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ ".inst 0x646941b5 // bfdot z21.s, z13.h, z1.h[1]\n"
+ "ld1h z13.h, p4/z, [%[b_ptr0]]\n"
+ "zip1 z10.h, z11.h, z12.h\n"
+ "zip2 z11.h, z11.h, z12.h\n"
+ ".inst 0x646841d2 // bfdot z18.s, z14.h, z0.h[1]\n"
+ ".inst 0x646941d6 // bfdot z22.s, z14.h, z1.h[1]\n"
+ "ld1h z14.h, p4/z, [%[b_ptr1]]\n"
+ ".inst 0x646841f3 // bfdot z19.s, z15.h, z0.h[1]\n"
+ ".inst 0x646941f7 // bfdot z23.s, z15.h, z1.h[1]\n"
+ "ld1h z15.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x64704110 // bfdot z16.s, z8.h, z0.h[2]\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "zip1 z12.h, z13.h, z14.h\n"
+ "zip2 z13.h, z13.h, z14.h\n"
+ ".inst 0x64714114 // bfdot z20.s, z8.h, z1.h[2]\n"
+ "ld1h z8.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ ".inst 0x64704131 // bfdot z17.s, z9.h, z0.h[2]\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ ".inst 0x64714135 // bfdot z21.s, z9.h, z1.h[2]\n"
+ "ld1h z9.h, p4/z, [%[b_ptr0]]\n"
+ "zip1 z14.h, z15.h, z8.h\n"
+ "zip2 z15.h, z15.h, z8.h\n"
+ ".inst 0x64704152 // bfdot z18.s, z10.h, z0.h[2]\n"
+ ".inst 0x64714156 // bfdot z22.s, z10.h, z1.h[2]\n"
+ "ld1h z10.h, p4/z, [%[b_ptr1]]\n"
+ ".inst 0x64704173 // bfdot z19.s, z11.h, z0.h[2]\n"
+ ".inst 0x64714177 // bfdot z23.s, z11.h, z1.h[2]\n"
+ "ld1h z11.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x64784190 // bfdot z16.s, z12.h, z0.h[3]\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "zip1 z8.h, z9.h, z10.h\n"
+ "zip2 z9.h, z9.h, z10.h\n"
+ ".inst 0x64794194 // bfdot z20.s, z12.h, z1.h[3]\n"
+ "ld1h z12.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ ".inst 0x647841b1 // bfdot z17.s, z13.h, z0.h[3]\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ ".inst 0x647941b5 // bfdot z21.s, z13.h, z1.h[3]\n"
+ "ld1h z13.h, p4/z, [%[b_ptr0]]\n"
+ "zip1 z10.h, z11.h, z12.h\n"
+ "zip2 z11.h, z11.h, z12.h\n"
+ ".inst 0x647841d2 // bfdot z18.s, z14.h, z0.h[3]\n"
+ ".inst 0x647941d6 // bfdot z22.s, z14.h, z1.h[3]\n"
+ "ld1h z14.h, p4/z, [%[b_ptr1]]\n"
+ ".inst 0x647841f3 // bfdot z19.s, z15.h, z0.h[3]\n"
+ "ld1rqh z0.h, p7/z, [%[a_ptr0], #-0x10]\n"
+ ".inst 0x647941f7 // bfdot z23.s, z15.h, z1.h[3]\n"
+ "ld1h z15.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x64644110 // bfdot z16.s, z8.h, z4.h[0]\n"
+ "ld1rqh z1.h, p7/z, [a_ptr1, #-0x10]\n"
+ "zip1 z12.h, z13.h, z14.h\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "zip2 z13.h, z13.h, z14.h\n"
+ ".inst 0x64654114 // bfdot z20.s, z8.h, z5.h[0]\n"
+ "ld1h z8.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ ".inst 0x64644131 // bfdot z17.s, z9.h, z4.h[0]\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ ".inst 0x64654135 // bfdot z21.s, z9.h, z5.h[0]\n"
+ "ld1h z9.h, p4/z, [%[b_ptr0]]\n"
+ "zip1 z14.h, z15.h, z8.h\n"
+ "zip2 z15.h, z15.h, z8.h\n"
+ ".inst 0x64644152 // bfdot z18.s, z10.h, z4.h[0]\n"
+ ".inst 0x64654156 // bfdot z22.s, z10.h, z5.h[0]\n"
+ "ld1h z10.h, p4/z, [%[b_ptr1]]\n"
+ ".inst 0x64644173 // bfdot z19.s, z11.h, z4.h[0]\n"
+ ".inst 0x64654177 // bfdot z23.s, z11.h, z5.h[0]\n"
+ "ld1h z11.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x646c4190 // bfdot z16.s, z12.h, z4.h[1]\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "zip1 z8.h, z9.h, z10.h\n"
+ "zip2 z9.h, z9.h, z10.h\n"
+ ".inst 0x646d4194 // bfdot z20.s, z12.h, z5.h[1]\n"
+ "ld1h z12.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ ".inst 0x646c41b1 // bfdot z17.s, z13.h, z4.h[1]\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ ".inst 0x646d41b5 // bfdot z21.s, z13.h, z5.h[1]\n"
+ "ld1h z13.h, p4/z, [%[b_ptr0]]\n"
+ "zip1 z10.h, z11.h, z12.h\n"
+ "zip2 z11.h, z11.h, z12.h\n"
+ ".inst 0x646c41d2 // bfdot z18.s, z14.h, z4.h[1]\n"
+ ".inst 0x646d41d6 // bfdot z22.s, z14.h, z5.h[1]\n"
+ "ld1h z14.h, p4/z, [%[b_ptr1]]\n"
+ ".inst 0x646c41f3 // bfdot z19.s, z15.h, z4.h[1]\n"
+ ".inst 0x646d41f7 // bfdot z23.s, z15.h, z5.h[1]\n"
+ "ld1h z15.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x64744110 // bfdot z16.s, z8.h, z4.h[2]\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "zip1 z12.h, z13.h, z14.h\n"
+ "zip2 z13.h, z13.h, z14.h\n"
+ ".inst 0x64754114 // bfdot z20.s, z8.h, z5.h[2]\n"
+ "ld1h z8.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ ".inst 0x64744131 // bfdot z17.s, z9.h, z4.h[2]\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ ".inst 0x64754135 // bfdot z21.s, z9.h, z5.h[2]\n"
+ "ld1h z9.h, p4/z, [%[b_ptr0]]\n"
+ "zip1 z14.h, z15.h, z8.h\n"
+ "zip2 z15.h, z15.h, z8.h\n"
+ ".inst 0x64744152 // bfdot z18.s, z10.h, z4.h[2]\n"
+ ".inst 0x64754156 // bfdot z22.s, z10.h, z5.h[2]\n"
+ "ld1h z10.h, p4/z, [%[b_ptr1]]\n"
+ ".inst 0x64744173 // bfdot z19.s, z11.h, z4.h[2]\n"
+ ".inst 0x64754177 // bfdot z23.s, z11.h, z5.h[2]\n"
+ "ld1h z11.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x647c4190 // bfdot z16.s, z12.h, z4.h[3]\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "zip1 z8.h, z9.h, z10.h\n"
+ "zip2 z9.h, z9.h, z10.h\n"
+ ".inst 0x647d4194 // bfdot z20.s, z12.h, z5.h[3]\n"
+ "ld1h z12.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ ".inst 0x647c41b1 // bfdot z17.s, z13.h, z4.h[3]\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ ".inst 0x647d41b5 // bfdot z21.s, z13.h, z5.h[3]\n"
+ "ld1h z13.h, p4/z, [%[b_ptr0]]\n"
+ "zip1 z10.h, z11.h, z12.h\n"
+ "zip2 z11.h, z11.h, z12.h\n"
+ ".inst 0x647c41d2 // bfdot z18.s, z14.h, z4.h[3]\n"
+ ".inst 0x647d41d6 // bfdot z22.s, z14.h, z5.h[3]\n"
+ "ld1h z14.h, p4/z, [%[b_ptr1]]\n"
+ ".inst 0x647c41f3 // bfdot z19.s, z15.h, z4.h[3]\n"
+ ".inst 0x647d41f7 // bfdot z23.s, z15.h, z5.h[3]\n"
+ "ld1h z15.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "b.ne 2b\n"
+ "1:\n"
+ "zip1 z12.h, z13.h, z14.h\n"
+ "zip2 z13.h, z13.h, z14.h\n"
+ "cbz %[regs], 3f\n"
+ ".inst 0x64604110 // bfdot z16.s, z8.h, z0.h[0]\n"
+ "ld1rqh z4.h, p7/z, [%[a_ptr0]]\n"
+ ".inst 0x64614114 // bfdot z20.s, z8.h, z1.h[0]\n"
+ "ld1rqh z5.h, p7/z, [a_ptr1]\n"
+ ".inst 0x64604131 // bfdot z17.s, z9.h, z0.h[0]\n"
+ "ld1h z8.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ ".inst 0x64614135 // bfdot z21.s, z9.h, z1.h[0]\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ ".inst 0x64604152 // bfdot z18.s, z10.h, z0.h[0]\n"
+ "ld1h z9.h, p4/z, [%[b_ptr0]]\n"
+ "zip1 z14.h, z15.h, z8.h\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ "zip2 z15.h, z15.h, z8.h\n"
+ ".inst 0x64614156 // bfdot z22.s, z10.h, z1.h[0]\n"
+ "ld1h z10.h, p4/z, [%[b_ptr1]]\n"
+ ".inst 0x64604173 // bfdot z19.s, z11.h, z0.h[0]\n"
+ ".inst 0x64614177 // bfdot z23.s, z11.h, z1.h[0]\n"
+ "ld1h z11.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x64684190 // bfdot z16.s, z12.h, z0.h[1]\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "zip1 z8.h, z9.h, z10.h\n"
+ "zip2 z9.h, z9.h, z10.h\n"
+ ".inst 0x64694194 // bfdot z20.s, z12.h, z1.h[1]\n"
+ "ld1h z12.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ ".inst 0x646841b1 // bfdot z17.s, z13.h, z0.h[1]\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ ".inst 0x646941b5 // bfdot z21.s, z13.h, z1.h[1]\n"
+ "ld1h z13.h, p4/z, [%[b_ptr0]]\n"
+ "zip1 z10.h, z11.h, z12.h\n"
+ "zip2 z11.h, z11.h, z12.h\n"
+ ".inst 0x646841d2 // bfdot z18.s, z14.h, z0.h[1]\n"
+ ".inst 0x646941d6 // bfdot z22.s, z14.h, z1.h[1]\n"
+ "ld1h z14.h, p4/z, [%[b_ptr1]]\n"
+ ".inst 0x646841f3 // bfdot z19.s, z15.h, z0.h[1]\n"
+ ".inst 0x646941f7 // bfdot z23.s, z15.h, z1.h[1]\n"
+ "ld1h z15.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x64704110 // bfdot z16.s, z8.h, z0.h[2]\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "zip1 z12.h, z13.h, z14.h\n"
+ "zip2 z13.h, z13.h, z14.h\n"
+ ".inst 0x64714114 // bfdot z20.s, z8.h, z1.h[2]\n"
+ "ld1h z8.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ ".inst 0x64704131 // bfdot z17.s, z9.h, z0.h[2]\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ ".inst 0x64714135 // bfdot z21.s, z9.h, z1.h[2]\n"
+ "ld1h z9.h, p4/z, [%[b_ptr0]]\n"
+ "zip1 z14.h, z15.h, z8.h\n"
+ "zip2 z15.h, z15.h, z8.h\n"
+ ".inst 0x64704152 // bfdot z18.s, z10.h, z0.h[2]\n"
+ ".inst 0x64714156 // bfdot z22.s, z10.h, z1.h[2]\n"
+ "ld1h z10.h, p4/z, [%[b_ptr1]]\n"
+ ".inst 0x64704173 // bfdot z19.s, z11.h, z0.h[2]\n"
+ ".inst 0x64714177 // bfdot z23.s, z11.h, z1.h[2]\n"
+ "ld1h z11.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x64784190 // bfdot z16.s, z12.h, z0.h[3]\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "zip1 z8.h, z9.h, z10.h\n"
+ "zip2 z9.h, z9.h, z10.h\n"
+ ".inst 0x64794194 // bfdot z20.s, z12.h, z1.h[3]\n"
+ "ld1h z12.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ ".inst 0x647841b1 // bfdot z17.s, z13.h, z0.h[3]\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ ".inst 0x647941b5 // bfdot z21.s, z13.h, z1.h[3]\n"
+ "ld1h z13.h, p4/z, [%[b_ptr0]]\n"
+ "zip1 z10.h, z11.h, z12.h\n"
+ "zip2 z11.h, z11.h, z12.h\n"
+ ".inst 0x647841d2 // bfdot z18.s, z14.h, z0.h[3]\n"
+ ".inst 0x647941d6 // bfdot z22.s, z14.h, z1.h[3]\n"
+ "ld1h z14.h, p4/z, [%[b_ptr1]]\n"
+ ".inst 0x647841f3 // bfdot z19.s, z15.h, z0.h[3]\n"
+ "ld1rqh z0.h, p6/z, [%[a_ptr0], #0x10]\n"
+ ".inst 0x647941f7 // bfdot z23.s, z15.h, z1.h[3]\n"
+ "ld1h z15.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x64644110 // bfdot z16.s, z8.h, z4.h[0]\n"
+ "ld1rqh z1.h, p6/z, [a_ptr1, #0x10]\n"
+ "zip1 z12.h, z13.h, z14.h\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "zip2 z13.h, z13.h, z14.h\n"
+ "addvl %[a_ptr0], %[a_ptr0], #2\n"
+ ".inst 0x64654114 // bfdot z20.s, z8.h, z5.h[0]\n"
+ "ld1h z8.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ ".inst 0x64644131 // bfdot z17.s, z9.h, z4.h[0]\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ ".inst 0x64654135 // bfdot z21.s, z9.h, z5.h[0]\n"
+ "ld1h z9.h, p4/z, [%[b_ptr0]]\n"
+ "zip1 z14.h, z15.h, z8.h\n"
+ "addvl a_ptr1, a_ptr1, #2\n"
+ "zip2 z15.h, z15.h, z8.h\n"
+ ".inst 0x64644152 // bfdot z18.s, z10.h, z4.h[0]\n"
+ ".inst 0x64654156 // bfdot z22.s, z10.h, z5.h[0]\n"
+ "ld1h z10.h, p4/z, [%[b_ptr1]]\n"
+ ".inst 0x64644173 // bfdot z19.s, z11.h, z4.h[0]\n"
+ ".inst 0x64654177 // bfdot z23.s, z11.h, z5.h[0]\n"
+ "ld1h z11.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x646c4190 // bfdot z16.s, z12.h, z4.h[1]\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "zip1 z8.h, z9.h, z10.h\n"
+ "zip2 z9.h, z9.h, z10.h\n"
+ ".inst 0x646d4194 // bfdot z20.s, z12.h, z5.h[1]\n"
+ "ld1h z12.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ ".inst 0x646c41b1 // bfdot z17.s, z13.h, z4.h[1]\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ ".inst 0x646d41b5 // bfdot z21.s, z13.h, z5.h[1]\n"
+ "ld1h z13.h, p4/z, [%[b_ptr0]]\n"
+ "zip1 z10.h, z11.h, z12.h\n"
+ "zip2 z11.h, z11.h, z12.h\n"
+ ".inst 0x646c41d2 // bfdot z18.s, z14.h, z4.h[1]\n"
+ ".inst 0x646d41d6 // bfdot z22.s, z14.h, z5.h[1]\n"
+ "ld1h z14.h, p4/z, [%[b_ptr1]]\n"
+ ".inst 0x646c41f3 // bfdot z19.s, z15.h, z4.h[1]\n"
+ ".inst 0x646d41f7 // bfdot z23.s, z15.h, z5.h[1]\n"
+ "ld1h z15.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x64744110 // bfdot z16.s, z8.h, z4.h[2]\n"
+ "zip1 z12.h, z13.h, z14.h\n"
+ "zip2 z13.h, z13.h, z14.h\n"
+ ".inst 0x64754114 // bfdot z20.s, z8.h, z5.h[2]\n"
+ "ld1h z8.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ ".inst 0x64744131 // bfdot z17.s, z9.h, z4.h[2]\n"
+ ".inst 0x64754135 // bfdot z21.s, z9.h, z5.h[2]\n"
+ ".inst 0x64744152 // bfdot z18.s, z10.h, z4.h[2]\n"
+ "zip1 z14.h, z15.h, z8.h\n"
+ "zip2 z15.h, z15.h, z8.h\n"
+ ".inst 0x64754156 // bfdot z22.s, z10.h, z5.h[2]\n"
+ ".inst 0x64744173 // bfdot z19.s, z11.h, z4.h[2]\n"
+ ".inst 0x64754177 // bfdot z23.s, z11.h, z5.h[2]\n"
+ ".inst 0x647c4190 // bfdot z16.s, z12.h, z4.h[3]\n"
+ ".inst 0x647d4194 // bfdot z20.s, z12.h, z5.h[3]\n"
+ ".inst 0x647c41b1 // bfdot z17.s, z13.h, z4.h[3]\n"
+ ".inst 0x647d41b5 // bfdot z21.s, z13.h, z5.h[3]\n"
+ ".inst 0x647c41d2 // bfdot z18.s, z14.h, z4.h[3]\n"
+ ".inst 0x647d41d6 // bfdot z22.s, z14.h, z5.h[3]\n"
+ ".inst 0x647c41f3 // bfdot z19.s, z15.h, z4.h[3]\n"
+ ".inst 0x647d41f7 // bfdot z23.s, z15.h, z5.h[3]\n"
+ "cbz %[blocks], 4f\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ "ld1h z9.h, p4/z, [%[b_ptr0]]\n"
+ "subs %[blocks], %[blocks], #0x1\n"
+ "ld1h z10.h, p4/z, [%[b_ptr1]]\n"
+ "ld1h z11.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1h z12.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ "zip1 z8.h, z9.h, z10.h\n"
+ "zip2 z9.h, z9.h, z10.h\n"
+ "zip1 z10.h, z11.h, z12.h\n"
+ "zip2 z11.h, z11.h, z12.h\n"
+ ".inst 0x64604110 // bfdot z16.s, z8.h, z0.h[0]\n"
+ ".inst 0x64614114 // bfdot z20.s, z8.h, z1.h[0]\n"
+ ".inst 0x64604131 // bfdot z17.s, z9.h, z0.h[0]\n"
+ ".inst 0x64614135 // bfdot z21.s, z9.h, z1.h[0]\n"
+ ".inst 0x64604152 // bfdot z18.s, z10.h, z0.h[0]\n"
+ ".inst 0x64614156 // bfdot z22.s, z10.h, z1.h[0]\n"
+ ".inst 0x64604173 // bfdot z19.s, z11.h, z0.h[0]\n"
+ ".inst 0x64614177 // bfdot z23.s, z11.h, z1.h[0]\n"
+ "b.eq 5f\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ "ld1h z13.h, p4/z, [%[b_ptr0]]\n"
+ "subs %[blocks], %[blocks], #0x1\n"
+ "ld1h z14.h, p4/z, [%[b_ptr1]]\n"
+ "ld1h z15.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1h z8.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ "zip1 z12.h, z13.h, z14.h\n"
+ "zip2 z13.h, z13.h, z14.h\n"
+ "zip1 z14.h, z15.h, z8.h\n"
+ "zip2 z15.h, z15.h, z8.h\n"
+ ".inst 0x64684190 // bfdot z16.s, z12.h, z0.h[1]\n"
+ ".inst 0x64694194 // bfdot z20.s, z12.h, z1.h[1]\n"
+ ".inst 0x646841b1 // bfdot z17.s, z13.h, z0.h[1]\n"
+ ".inst 0x646941b5 // bfdot z21.s, z13.h, z1.h[1]\n"
+ ".inst 0x646841d2 // bfdot z18.s, z14.h, z0.h[1]\n"
+ ".inst 0x646941d6 // bfdot z22.s, z14.h, z1.h[1]\n"
+ ".inst 0x646841f3 // bfdot z19.s, z15.h, z0.h[1]\n"
+ ".inst 0x646941f7 // bfdot z23.s, z15.h, z1.h[1]\n"
+ "b.eq 6f\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ "ld1h z9.h, p4/z, [%[b_ptr0]]\n"
+ "ld1h z10.h, p4/z, [%[b_ptr1]]\n"
+ "ld1h z11.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1h z12.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ "zip1 z8.h, z9.h, z10.h\n"
+ "zip2 z9.h, z9.h, z10.h\n"
+ "zip1 z10.h, z11.h, z12.h\n"
+ "zip2 z11.h, z11.h, z12.h\n"
+ ".inst 0x64704110 // bfdot z16.s, z8.h, z0.h[2]\n"
+ ".inst 0x64714114 // bfdot z20.s, z8.h, z1.h[2]\n"
+ ".inst 0x64704131 // bfdot z17.s, z9.h, z0.h[2]\n"
+ ".inst 0x64714135 // bfdot z21.s, z9.h, z1.h[2]\n"
+ ".inst 0x64704152 // bfdot z18.s, z10.h, z0.h[2]\n"
+ ".inst 0x64714156 // bfdot z22.s, z10.h, z1.h[2]\n"
+ ".inst 0x64704173 // bfdot z19.s, z11.h, z0.h[2]\n"
+ ".inst 0x64714177 // bfdot z23.s, z11.h, z1.h[2]\n"
+ "cbz %[odds], 7f\n"
+ "mov z14.h, #0\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "mov z8.h, #0\n"
+ "ld1h z13.h, p4/z, [%[b_ptr0]]\n"
+ "ld1h z15.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "zip1 z12.h, z13.h, z14.h\n"
+ "zip2 z13.h, z13.h, z14.h\n"
+ "zip1 z14.h, z15.h, z8.h\n"
+ "zip2 z15.h, z15.h, z8.h\n"
+ "8:\n"
+ ".inst 0x64784190 // bfdot z16.s, z12.h, z0.h[3]\n"
+ ".inst 0x64794194 // bfdot z20.s, z12.h, z1.h[3]\n"
+ ".inst 0x647841b1 // bfdot z17.s, z13.h, z0.h[3]\n"
+ ".inst 0x647941b5 // bfdot z21.s, z13.h, z1.h[3]\n"
+ ".inst 0x647841d2 // bfdot z18.s, z14.h, z0.h[3]\n"
+ ".inst 0x647941d6 // bfdot z22.s, z14.h, z1.h[3]\n"
+ ".inst 0x647841f3 // bfdot z19.s, z15.h, z0.h[3]\n"
+ ".inst 0x647941f7 // bfdot z23.s, z15.h, z1.h[3]\n"
+ "b 7f\n"
+ "6:\n"
+ "cbz %[odds], 7f\n"
+ "mov z10.h, #0\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "mov z12.h, #0\n"
+ "ld1h z9.h, p4/z, [%[b_ptr0]]\n"
+ "ld1h z11.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "zip1 z8.h, z9.h, z10.h\n"
+ "zip2 z9.h, z9.h, z10.h\n"
+ "zip1 z10.h, z11.h, z12.h\n"
+ "zip2 z11.h, z11.h, z12.h\n"
+ "9:\n"
+ ".inst 0x64704110 // bfdot z16.s, z8.h, z0.h[2]\n"
+ ".inst 0x64714114 // bfdot z20.s, z8.h, z1.h[2]\n"
+ ".inst 0x64704131 // bfdot z17.s, z9.h, z0.h[2]\n"
+ ".inst 0x64714135 // bfdot z21.s, z9.h, z1.h[2]\n"
+ ".inst 0x64704152 // bfdot z18.s, z10.h, z0.h[2]\n"
+ ".inst 0x64714156 // bfdot z22.s, z10.h, z1.h[2]\n"
+ ".inst 0x64704173 // bfdot z19.s, z11.h, z0.h[2]\n"
+ ".inst 0x64714177 // bfdot z23.s, z11.h, z1.h[2]\n"
+ "b 7f\n"
+ "5:\n"
+ "cbz %[odds], 7f\n"
+ "mov z14.h, #0\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "mov z8.h, #0\n"
+ "ld1h z13.h, p4/z, [%[b_ptr0]]\n"
+ "ld1h z15.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "zip1 z12.h, z13.h, z14.h\n"
+ "zip2 z13.h, z13.h, z14.h\n"
+ "zip1 z14.h, z15.h, z8.h\n"
+ "zip2 z15.h, z15.h, z8.h\n"
+ "10:\n"
+ ".inst 0x64684190 // bfdot z16.s, z12.h, z0.h[1]\n"
+ ".inst 0x64694194 // bfdot z20.s, z12.h, z1.h[1]\n"
+ ".inst 0x646841b1 // bfdot z17.s, z13.h, z0.h[1]\n"
+ ".inst 0x646941b5 // bfdot z21.s, z13.h, z1.h[1]\n"
+ ".inst 0x646841d2 // bfdot z18.s, z14.h, z0.h[1]\n"
+ ".inst 0x646941d6 // bfdot z22.s, z14.h, z1.h[1]\n"
+ ".inst 0x646841f3 // bfdot z19.s, z15.h, z0.h[1]\n"
+ ".inst 0x646941f7 // bfdot z23.s, z15.h, z1.h[1]\n"
+ "b 7f\n"
+ "4:\n"
+ "cbz %[odds], 7f\n"
+ "mov z10.h, #0\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "mov z12.h, #0\n"
+ "ld1h z9.h, p4/z, [%[b_ptr0]]\n"
+ "ld1h z11.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "zip1 z8.h, z9.h, z10.h\n"
+ "zip2 z9.h, z9.h, z10.h\n"
+ "zip1 z10.h, z11.h, z12.h\n"
+ "zip2 z11.h, z11.h, z12.h\n"
+ "11:\n"
+ ".inst 0x64604110 // bfdot z16.s, z8.h, z0.h[0]\n"
+ ".inst 0x64614114 // bfdot z20.s, z8.h, z1.h[0]\n"
+ ".inst 0x64604131 // bfdot z17.s, z9.h, z0.h[0]\n"
+ ".inst 0x64614135 // bfdot z21.s, z9.h, z1.h[0]\n"
+ ".inst 0x64604152 // bfdot z18.s, z10.h, z0.h[0]\n"
+ ".inst 0x64614156 // bfdot z22.s, z10.h, z1.h[0]\n"
+ ".inst 0x64604173 // bfdot z19.s, z11.h, z0.h[0]\n"
+ ".inst 0x64614177 // bfdot z23.s, z11.h, z1.h[0]\n"
+ "b 7f\n"
+ "3:\n"
+ ".inst 0x64604110 // bfdot z16.s, z8.h, z0.h[0]\n"
+ "ld1rqh z4.h, p6/z, [%[a_ptr0]]\n"
+ ".inst 0x64614114 // bfdot z20.s, z8.h, z1.h[0]\n"
+ "ld1h z8.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ ".inst 0x64604131 // bfdot z17.s, z9.h, z0.h[0]\n"
+ "ld1rqh z5.h, p6/z, [a_ptr1]\n"
+ ".inst 0x64614135 // bfdot z21.s, z9.h, z1.h[0]\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "zip1 z14.h, z15.h, z8.h\n"
+ "ld1h z9.h, p4/z, [%[b_ptr0]]\n"
+ "zip2 z15.h, z15.h, z8.h\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ ".inst 0x64604152 // bfdot z18.s, z10.h, z0.h[0]\n"
+ "addvl %[a_ptr0], %[a_ptr0], #1\n"
+ ".inst 0x64614156 // bfdot z22.s, z10.h, z1.h[0]\n"
+ "ld1h z10.h, p4/z, [%[b_ptr1]]\n"
+ ".inst 0x64604173 // bfdot z19.s, z11.h, z0.h[0]\n"
+ "addvl a_ptr1, a_ptr1, #1\n"
+ ".inst 0x64614177 // bfdot z23.s, z11.h, z1.h[0]\n"
+ "ld1h z11.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "zip1 z8.h, z9.h, z10.h\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "zip2 z9.h, z9.h, z10.h\n"
+ ".inst 0x64684190 // bfdot z16.s, z12.h, z0.h[1]\n"
+ ".inst 0x64694194 // bfdot z20.s, z12.h, z1.h[1]\n"
+ "ld1h z12.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ ".inst 0x646841b1 // bfdot z17.s, z13.h, z0.h[1]\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ ".inst 0x646941b5 // bfdot z21.s, z13.h, z1.h[1]\n"
+ "ld1h z13.h, p4/z, [%[b_ptr0]]\n"
+ "zip1 z10.h, z11.h, z12.h\n"
+ "zip2 z11.h, z11.h, z12.h\n"
+ ".inst 0x646841d2 // bfdot z18.s, z14.h, z0.h[1]\n"
+ ".inst 0x646941d6 // bfdot z22.s, z14.h, z1.h[1]\n"
+ "ld1h z14.h, p4/z, [%[b_ptr1]]\n"
+ ".inst 0x646841f3 // bfdot z19.s, z15.h, z0.h[1]\n"
+ ".inst 0x646941f7 // bfdot z23.s, z15.h, z1.h[1]\n"
+ "ld1h z15.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x64704110 // bfdot z16.s, z8.h, z0.h[2]\n"
+ "zip1 z12.h, z13.h, z14.h\n"
+ "zip2 z13.h, z13.h, z14.h\n"
+ ".inst 0x64714114 // bfdot z20.s, z8.h, z1.h[2]\n"
+ "ld1h z8.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ ".inst 0x64704131 // bfdot z17.s, z9.h, z0.h[2]\n"
+ ".inst 0x64714135 // bfdot z21.s, z9.h, z1.h[2]\n"
+ ".inst 0x64704152 // bfdot z18.s, z10.h, z0.h[2]\n"
+ "zip1 z14.h, z15.h, z8.h\n"
+ "zip2 z15.h, z15.h, z8.h\n"
+ ".inst 0x64714156 // bfdot z22.s, z10.h, z1.h[2]\n"
+ ".inst 0x64704173 // bfdot z19.s, z11.h, z0.h[2]\n"
+ ".inst 0x64714177 // bfdot z23.s, z11.h, z1.h[2]\n"
+ ".inst 0x64784190 // bfdot z16.s, z12.h, z0.h[3]\n"
+ ".inst 0x64794194 // bfdot z20.s, z12.h, z1.h[3]\n"
+ ".inst 0x647841b1 // bfdot z17.s, z13.h, z0.h[3]\n"
+ ".inst 0x647941b5 // bfdot z21.s, z13.h, z1.h[3]\n"
+ ".inst 0x647841d2 // bfdot z18.s, z14.h, z0.h[3]\n"
+ ".inst 0x647941d6 // bfdot z22.s, z14.h, z1.h[3]\n"
+ ".inst 0x647841f3 // bfdot z19.s, z15.h, z0.h[3]\n"
+ ".inst 0x647941f7 // bfdot z23.s, z15.h, z1.h[3]\n"
+ "cbz %[blocks], 12f\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ "ld1h z9.h, p4/z, [%[b_ptr0]]\n"
+ "subs %[blocks], %[blocks], #0x1\n"
+ "ld1h z10.h, p4/z, [%[b_ptr1]]\n"
+ "ld1h z11.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1h z12.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ "zip1 z8.h, z9.h, z10.h\n"
+ "zip2 z9.h, z9.h, z10.h\n"
+ "zip1 z10.h, z11.h, z12.h\n"
+ "zip2 z11.h, z11.h, z12.h\n"
+ ".inst 0x64644110 // bfdot z16.s, z8.h, z4.h[0]\n"
+ ".inst 0x64654114 // bfdot z20.s, z8.h, z5.h[0]\n"
+ ".inst 0x64644131 // bfdot z17.s, z9.h, z4.h[0]\n"
+ ".inst 0x64654135 // bfdot z21.s, z9.h, z5.h[0]\n"
+ ".inst 0x64644152 // bfdot z18.s, z10.h, z4.h[0]\n"
+ ".inst 0x64654156 // bfdot z22.s, z10.h, z5.h[0]\n"
+ ".inst 0x64644173 // bfdot z19.s, z11.h, z4.h[0]\n"
+ ".inst 0x64654177 // bfdot z23.s, z11.h, z5.h[0]\n"
+ "b.eq 13f\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ "ld1h z13.h, p4/z, [%[b_ptr0]]\n"
+ "subs %[blocks], %[blocks], #0x1\n"
+ "ld1h z14.h, p4/z, [%[b_ptr1]]\n"
+ "ld1h z15.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1h z8.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ "zip1 z12.h, z13.h, z14.h\n"
+ "zip2 z13.h, z13.h, z14.h\n"
+ "zip1 z14.h, z15.h, z8.h\n"
+ "zip2 z15.h, z15.h, z8.h\n"
+ ".inst 0x646c4190 // bfdot z16.s, z12.h, z4.h[1]\n"
+ ".inst 0x646d4194 // bfdot z20.s, z12.h, z5.h[1]\n"
+ ".inst 0x646c41b1 // bfdot z17.s, z13.h, z4.h[1]\n"
+ ".inst 0x646d41b5 // bfdot z21.s, z13.h, z5.h[1]\n"
+ ".inst 0x646c41d2 // bfdot z18.s, z14.h, z4.h[1]\n"
+ ".inst 0x646d41d6 // bfdot z22.s, z14.h, z5.h[1]\n"
+ ".inst 0x646c41f3 // bfdot z19.s, z15.h, z4.h[1]\n"
+ ".inst 0x646d41f7 // bfdot z23.s, z15.h, z5.h[1]\n"
+ "b.eq 14f\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ "ld1h z9.h, p4/z, [%[b_ptr0]]\n"
+ "ld1h z10.h, p4/z, [%[b_ptr1]]\n"
+ "ld1h z11.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1h z12.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ "zip1 z8.h, z9.h, z10.h\n"
+ "zip2 z9.h, z9.h, z10.h\n"
+ "zip1 z10.h, z11.h, z12.h\n"
+ "zip2 z11.h, z11.h, z12.h\n"
+ ".inst 0x64744110 // bfdot z16.s, z8.h, z4.h[2]\n"
+ ".inst 0x64754114 // bfdot z20.s, z8.h, z5.h[2]\n"
+ ".inst 0x64744131 // bfdot z17.s, z9.h, z4.h[2]\n"
+ ".inst 0x64754135 // bfdot z21.s, z9.h, z5.h[2]\n"
+ ".inst 0x64744152 // bfdot z18.s, z10.h, z4.h[2]\n"
+ ".inst 0x64754156 // bfdot z22.s, z10.h, z5.h[2]\n"
+ ".inst 0x64744173 // bfdot z19.s, z11.h, z4.h[2]\n"
+ ".inst 0x64754177 // bfdot z23.s, z11.h, z5.h[2]\n"
+ "cbz %[odds], 7f\n"
+ "mov z14.h, #0\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "mov z8.h, #0\n"
+ "ld1h z13.h, p4/z, [%[b_ptr0]]\n"
+ "ld1h z15.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "zip1 z12.h, z13.h, z14.h\n"
+ "zip2 z13.h, z13.h, z14.h\n"
+ "zip1 z14.h, z15.h, z8.h\n"
+ "zip2 z15.h, z15.h, z8.h\n"
+ "15:\n"
+ ".inst 0x647c4190 // bfdot z16.s, z12.h, z4.h[3]\n"
+ ".inst 0x647d4194 // bfdot z20.s, z12.h, z5.h[3]\n"
+ ".inst 0x647c41b1 // bfdot z17.s, z13.h, z4.h[3]\n"
+ ".inst 0x647d41b5 // bfdot z21.s, z13.h, z5.h[3]\n"
+ ".inst 0x647c41d2 // bfdot z18.s, z14.h, z4.h[3]\n"
+ ".inst 0x647d41d6 // bfdot z22.s, z14.h, z5.h[3]\n"
+ ".inst 0x647c41f3 // bfdot z19.s, z15.h, z4.h[3]\n"
+ ".inst 0x647d41f7 // bfdot z23.s, z15.h, z5.h[3]\n"
+ "b 7f\n"
+ "14:\n"
+ "cbz %[odds], 7f\n"
+ "mov z10.h, #0\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "mov z12.h, #0\n"
+ "ld1h z9.h, p4/z, [%[b_ptr0]]\n"
+ "ld1h z11.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "zip1 z8.h, z9.h, z10.h\n"
+ "zip2 z9.h, z9.h, z10.h\n"
+ "zip1 z10.h, z11.h, z12.h\n"
+ "zip2 z11.h, z11.h, z12.h\n"
+ "16:\n"
+ ".inst 0x64744110 // bfdot z16.s, z8.h, z4.h[2]\n"
+ ".inst 0x64754114 // bfdot z20.s, z8.h, z5.h[2]\n"
+ ".inst 0x64744131 // bfdot z17.s, z9.h, z4.h[2]\n"
+ ".inst 0x64754135 // bfdot z21.s, z9.h, z5.h[2]\n"
+ ".inst 0x64744152 // bfdot z18.s, z10.h, z4.h[2]\n"
+ ".inst 0x64754156 // bfdot z22.s, z10.h, z5.h[2]\n"
+ ".inst 0x64744173 // bfdot z19.s, z11.h, z4.h[2]\n"
+ ".inst 0x64754177 // bfdot z23.s, z11.h, z5.h[2]\n"
+ "b 7f\n"
+ "13:\n"
+ "cbz %[odds], 7f\n"
+ "mov z14.h, #0\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "mov z8.h, #0\n"
+ "ld1h z13.h, p4/z, [%[b_ptr0]]\n"
+ "ld1h z15.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "zip1 z12.h, z13.h, z14.h\n"
+ "zip2 z13.h, z13.h, z14.h\n"
+ "zip1 z14.h, z15.h, z8.h\n"
+ "zip2 z15.h, z15.h, z8.h\n"
+ "17:\n"
+ ".inst 0x646c4190 // bfdot z16.s, z12.h, z4.h[1]\n"
+ ".inst 0x646d4194 // bfdot z20.s, z12.h, z5.h[1]\n"
+ ".inst 0x646c41b1 // bfdot z17.s, z13.h, z4.h[1]\n"
+ ".inst 0x646d41b5 // bfdot z21.s, z13.h, z5.h[1]\n"
+ ".inst 0x646c41d2 // bfdot z18.s, z14.h, z4.h[1]\n"
+ ".inst 0x646d41d6 // bfdot z22.s, z14.h, z5.h[1]\n"
+ ".inst 0x646c41f3 // bfdot z19.s, z15.h, z4.h[1]\n"
+ ".inst 0x646d41f7 // bfdot z23.s, z15.h, z5.h[1]\n"
+ "b 7f\n"
+ "12:\n"
+ "cbz %[odds], 7f\n"
+ "mov z10.h, #0\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "mov z12.h, #0\n"
+ "ld1h z9.h, p4/z, [%[b_ptr0]]\n"
+ "ld1h z11.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "zip1 z8.h, z9.h, z10.h\n"
+ "zip2 z9.h, z9.h, z10.h\n"
+ "zip1 z10.h, z11.h, z12.h\n"
+ "zip2 z11.h, z11.h, z12.h\n"
+ "18:\n"
+ ".inst 0x64644110 // bfdot z16.s, z8.h, z4.h[0]\n"
+ ".inst 0x64654114 // bfdot z20.s, z8.h, z5.h[0]\n"
+ ".inst 0x64644131 // bfdot z17.s, z9.h, z4.h[0]\n"
+ ".inst 0x64654135 // bfdot z21.s, z9.h, z5.h[0]\n"
+ ".inst 0x64644152 // bfdot z18.s, z10.h, z4.h[0]\n"
+ ".inst 0x64654156 // bfdot z22.s, z10.h, z5.h[0]\n"
+ ".inst 0x64644173 // bfdot z19.s, z11.h, z4.h[0]\n"
+ ".inst 0x64654177 // bfdot z23.s, z11.h, z5.h[0]\n"
+ "7:\n"
+ "ld1rw z14.s, p7/z, [%[minptr]]\n"
+ "ld1rw z15.s, p7/z, [%[maxptr]]\n"
+ "fmax z16.s, p7/m, z16.s, z14.s\n"
+ "fmax z17.s, p7/m, z17.s, z14.s\n"
+ "fmax z18.s, p7/m, z18.s, z14.s\n"
+ "fmax z19.s, p7/m, z19.s, z14.s\n"
+ "fmin z16.s, p7/m, z16.s, z15.s\n"
+ "fmin z17.s, p7/m, z17.s, z15.s\n"
+ "fmin z18.s, p7/m, z18.s, z15.s\n"
+ "fmin z19.s, p7/m, z19.s, z15.s\n"
+ "st1w z16.s, p0, [%[c_ptr0]]\n"
+ "fmax z20.s, p7/m, z20.s, z14.s\n"
+ "fmax z21.s, p7/m, z21.s, z14.s\n"
+ "fmax z22.s, p7/m, z22.s, z14.s\n"
+ "st1w z17.s, p1, [%[c_ptr0], #1, MUL VL]\n"
+ "fmax z23.s, p7/m, z23.s, z14.s\n"
+ "fmin z20.s, p7/m, z20.s, z15.s\n"
+ "fmin z21.s, p7/m, z21.s, z15.s\n"
+ "st1w z18.s, p2, [%[c_ptr0], #2, MUL VL]\n"
+ "fmin z22.s, p7/m, z22.s, z15.s\n"
+ "fmin z23.s, p7/m, z23.s, z15.s\n"
+ "st1w z19.s, p3, [%[c_ptr0], #3, MUL VL]\n"
+ "addvl %[c_ptr0], %[c_ptr0], #4\n"
+ "st1w z20.s, p0, [c_ptr1]\n"
+ "st1w z21.s, p1, [c_ptr1, #1, MUL VL]\n"
+ "st1w z22.s, p2, [c_ptr1, #2, MUL VL]\n"
+ "st1w z23.s, p3, [c_ptr1, #3, MUL VL]\n"
+ ".unreq a_ptr1\n"
+ ".unreq c_ptr1\n"
+ : [a_ptr0] "+r" (a_ptr0), [b_ptr0] "+r" (b_ptr0), [b_ptr1] "+r" (b_ptr1), [c_ptr0] "+r" (c_ptr0), [loops] "+r" (loops), [regs] "+r" (regs), [temp] "+r" (temp), [blocks] "+r" (blocks), [odds] "+r" (odds)
+ : [width] "r" (width), [append] "r" (static_cast<uint64_t>(append)), [lda] "r" (ldab), [ldc] "r" (ldcb), [biasptr] "r" (biasptr), [minptr] "r" (minptr), [maxptr] "r" (maxptr), [leftovers] "r" (leftovers), [ldb] "r" (ldbb)
+ : "z0", "z1", "z2", "z3", "z4", "z5", "z6", "z7", "z8", "z9", "z10", "z11", "z12", "z13", "z14", "z15", "z16", "z17", "z18", "z19", "z20", "z21", "z22", "z23", "z24", "z25", "z26", "z27", "z28", "z29", "z30", "z31", "x0", "x1", "cc", "memory"
+ );
+ break;
+ case 3:
+ __asm __volatile (
+ "a_ptr1 .req X0\n"
+ "a_ptr2 .req X1\n"
+ "c_ptr1 .req X2\n"
+ "c_ptr2 .req X3\n"
+ "add a_ptr1, %[a_ptr0], %[lda]\n"
+ "add c_ptr1, %[c_ptr0], %[ldc]\n"
+ "add a_ptr2, a_ptr1, %[lda]\n"
+ "add c_ptr2, c_ptr1, %[ldc]\n"
+ "whilelt p6.h, %[temp], %[leftovers]\n"
+ "whilelt p0.s, %[temp], %[width]\n"
+ "whilelt p4.h, %[temp], %[width]\n"
+ "incw %[temp], all, mul #1\n"
+ "ptrue p7.h\n"
+ "ld1w z16.s, p0/z, [%[biasptr]]\n"
+ "ld1h z9.h, p4/z, [%[b_ptr0]]\n"
+ "whilelt p1.s, %[temp], %[width]\n"
+ "ld1rqh z0.h, p7/z, [%[a_ptr0]]\n"
+ "incw %[temp], all, mul #1\n"
+ "mov z20.d, z16.d\n"
+ "ld1w z17.s, p1/z, [%[biasptr], #1, MUL VL]\n"
+ "mov z24.d, z16.d\n"
+ "ld1rqh z1.h, p7/z, [a_ptr1]\n"
+ "ld1rqh z2.h, p7/z, [a_ptr2]\n"
+ "whilelt p2.s, %[temp], %[width]\n"
+ "mov z21.d, z17.d\n"
+ "ld1h z10.h, p4/z, [%[b_ptr1]]\n"
+ "mov z25.d, z17.d\n"
+ "whilelt p5.h, %[temp], %[width]\n"
+ "ld1w z18.s, p2/z, [%[biasptr], #2, MUL VL]\n"
+ "incw %[temp], all, mul #1\n"
+ "zip1 z8.h, z9.h, z10.h\n"
+ "ld1h z11.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "zip2 z9.h, z9.h, z10.h\n"
+ "ld1h z12.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ "mov z22.d, z18.d\n"
+ "whilelt p3.s, %[temp], %[width]\n"
+ "mov z26.d, z18.d\n"
+ "add %[a_ptr0], %[a_ptr0], #0x10\n"
+ "zip1 z10.h, z11.h, z12.h\n"
+ "ld1w z19.s, p3/z, [%[biasptr], #3, MUL VL]\n"
+ "zip2 z11.h, z11.h, z12.h\n"
+ "add a_ptr1, a_ptr1, #0x10\n"
+ "add a_ptr2, a_ptr2, #0x10\n"
+ "mov z23.d, z19.d\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "mov z27.d, z19.d\n"
+ "ld1h z13.h, p4/z, [%[b_ptr0]]\n"
+ "ld1h z15.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ "ld1h z14.h, p4/z, [%[b_ptr1]]\n"
+ "cbz %[loops], 1f\n"
+ "2:\n"
+ ".inst 0x64604110 // bfdot z16.s, z8.h, z0.h[0]\n"
+ "ld1rqh z4.h, p7/z, [%[a_ptr0]]\n"
+ "zip1 z12.h, z13.h, z14.h\n"
+ "ld1rqh z5.h, p7/z, [a_ptr1]\n"
+ "zip2 z13.h, z13.h, z14.h\n"
+ "ld1rqh z6.h, p7/z, [a_ptr2]\n"
+ ".inst 0x64614114 // bfdot z20.s, z8.h, z1.h[0]\n"
+ "subs %[loops], %[loops], #0x1\n"
+ ".inst 0x64624118 // bfdot z24.s, z8.h, z2.h[0]\n"
+ "ld1h z8.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ ".inst 0x64604131 // bfdot z17.s, z9.h, z0.h[0]\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ ".inst 0x64614135 // bfdot z21.s, z9.h, z1.h[0]\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ "zip1 z14.h, z15.h, z8.h\n"
+ "add %[a_ptr0], %[a_ptr0], #0x20\n"
+ "zip2 z15.h, z15.h, z8.h\n"
+ "add a_ptr1, a_ptr1, #0x20\n"
+ ".inst 0x64624139 // bfdot z25.s, z9.h, z2.h[0]\n"
+ "ld1h z9.h, p4/z, [%[b_ptr0]]\n"
+ ".inst 0x64604152 // bfdot z18.s, z10.h, z0.h[0]\n"
+ "add a_ptr2, a_ptr2, #0x20\n"
+ ".inst 0x64614156 // bfdot z22.s, z10.h, z1.h[0]\n"
+ ".inst 0x6462415a // bfdot z26.s, z10.h, z2.h[0]\n"
+ "ld1h z10.h, p4/z, [%[b_ptr1]]\n"
+ ".inst 0x64604173 // bfdot z19.s, z11.h, z0.h[0]\n"
+ ".inst 0x64614177 // bfdot z23.s, z11.h, z1.h[0]\n"
+ ".inst 0x6462417b // bfdot z27.s, z11.h, z2.h[0]\n"
+ "ld1h z11.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "zip1 z8.h, z9.h, z10.h\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "zip2 z9.h, z9.h, z10.h\n"
+ ".inst 0x64684190 // bfdot z16.s, z12.h, z0.h[1]\n"
+ ".inst 0x64694194 // bfdot z20.s, z12.h, z1.h[1]\n"
+ ".inst 0x646a4198 // bfdot z24.s, z12.h, z2.h[1]\n"
+ "ld1h z12.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ ".inst 0x646841b1 // bfdot z17.s, z13.h, z0.h[1]\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ ".inst 0x646941b5 // bfdot z21.s, z13.h, z1.h[1]\n"
+ "zip1 z10.h, z11.h, z12.h\n"
+ "zip2 z11.h, z11.h, z12.h\n"
+ ".inst 0x646a41b9 // bfdot z25.s, z13.h, z2.h[1]\n"
+ "ld1h z13.h, p4/z, [%[b_ptr0]]\n"
+ ".inst 0x646841d2 // bfdot z18.s, z14.h, z0.h[1]\n"
+ ".inst 0x646941d6 // bfdot z22.s, z14.h, z1.h[1]\n"
+ ".inst 0x646a41da // bfdot z26.s, z14.h, z2.h[1]\n"
+ "ld1h z14.h, p4/z, [%[b_ptr1]]\n"
+ ".inst 0x646841f3 // bfdot z19.s, z15.h, z0.h[1]\n"
+ ".inst 0x646941f7 // bfdot z23.s, z15.h, z1.h[1]\n"
+ ".inst 0x646a41fb // bfdot z27.s, z15.h, z2.h[1]\n"
+ "ld1h z15.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "zip1 z12.h, z13.h, z14.h\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "zip2 z13.h, z13.h, z14.h\n"
+ ".inst 0x64704110 // bfdot z16.s, z8.h, z0.h[2]\n"
+ ".inst 0x64714114 // bfdot z20.s, z8.h, z1.h[2]\n"
+ ".inst 0x64724118 // bfdot z24.s, z8.h, z2.h[2]\n"
+ "ld1h z8.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ ".inst 0x64704131 // bfdot z17.s, z9.h, z0.h[2]\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ ".inst 0x64714135 // bfdot z21.s, z9.h, z1.h[2]\n"
+ "zip1 z14.h, z15.h, z8.h\n"
+ "zip2 z15.h, z15.h, z8.h\n"
+ ".inst 0x64724139 // bfdot z25.s, z9.h, z2.h[2]\n"
+ "ld1h z9.h, p4/z, [%[b_ptr0]]\n"
+ ".inst 0x64704152 // bfdot z18.s, z10.h, z0.h[2]\n"
+ ".inst 0x64714156 // bfdot z22.s, z10.h, z1.h[2]\n"
+ ".inst 0x6472415a // bfdot z26.s, z10.h, z2.h[2]\n"
+ "ld1h z10.h, p4/z, [%[b_ptr1]]\n"
+ ".inst 0x64704173 // bfdot z19.s, z11.h, z0.h[2]\n"
+ ".inst 0x64714177 // bfdot z23.s, z11.h, z1.h[2]\n"
+ ".inst 0x6472417b // bfdot z27.s, z11.h, z2.h[2]\n"
+ "ld1h z11.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "zip1 z8.h, z9.h, z10.h\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "zip2 z9.h, z9.h, z10.h\n"
+ ".inst 0x64784190 // bfdot z16.s, z12.h, z0.h[3]\n"
+ ".inst 0x64794194 // bfdot z20.s, z12.h, z1.h[3]\n"
+ ".inst 0x647a4198 // bfdot z24.s, z12.h, z2.h[3]\n"
+ "ld1h z12.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ ".inst 0x647841b1 // bfdot z17.s, z13.h, z0.h[3]\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ ".inst 0x647941b5 // bfdot z21.s, z13.h, z1.h[3]\n"
+ "zip1 z10.h, z11.h, z12.h\n"
+ "zip2 z11.h, z11.h, z12.h\n"
+ ".inst 0x647a41b9 // bfdot z25.s, z13.h, z2.h[3]\n"
+ "ld1h z13.h, p4/z, [%[b_ptr0]]\n"
+ ".inst 0x647841d2 // bfdot z18.s, z14.h, z0.h[3]\n"
+ ".inst 0x647941d6 // bfdot z22.s, z14.h, z1.h[3]\n"
+ ".inst 0x647a41da // bfdot z26.s, z14.h, z2.h[3]\n"
+ "ld1h z14.h, p4/z, [%[b_ptr1]]\n"
+ ".inst 0x647841f3 // bfdot z19.s, z15.h, z0.h[3]\n"
+ "ld1rqh z0.h, p7/z, [%[a_ptr0], #-0x10]\n"
+ ".inst 0x647941f7 // bfdot z23.s, z15.h, z1.h[3]\n"
+ "ld1rqh z1.h, p7/z, [a_ptr1, #-0x10]\n"
+ ".inst 0x647a41fb // bfdot z27.s, z15.h, z2.h[3]\n"
+ "ld1h z15.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "zip1 z12.h, z13.h, z14.h\n"
+ "ld1rqh z2.h, p7/z, [a_ptr2, #-0x10]\n"
+ "zip2 z13.h, z13.h, z14.h\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ ".inst 0x64644110 // bfdot z16.s, z8.h, z4.h[0]\n"
+ ".inst 0x64654114 // bfdot z20.s, z8.h, z5.h[0]\n"
+ ".inst 0x64664118 // bfdot z24.s, z8.h, z6.h[0]\n"
+ "ld1h z8.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ ".inst 0x64644131 // bfdot z17.s, z9.h, z4.h[0]\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ ".inst 0x64654135 // bfdot z21.s, z9.h, z5.h[0]\n"
+ "zip1 z14.h, z15.h, z8.h\n"
+ "zip2 z15.h, z15.h, z8.h\n"
+ ".inst 0x64664139 // bfdot z25.s, z9.h, z6.h[0]\n"
+ "ld1h z9.h, p4/z, [%[b_ptr0]]\n"
+ ".inst 0x64644152 // bfdot z18.s, z10.h, z4.h[0]\n"
+ ".inst 0x64654156 // bfdot z22.s, z10.h, z5.h[0]\n"
+ ".inst 0x6466415a // bfdot z26.s, z10.h, z6.h[0]\n"
+ "ld1h z10.h, p4/z, [%[b_ptr1]]\n"
+ ".inst 0x64644173 // bfdot z19.s, z11.h, z4.h[0]\n"
+ ".inst 0x64654177 // bfdot z23.s, z11.h, z5.h[0]\n"
+ ".inst 0x6466417b // bfdot z27.s, z11.h, z6.h[0]\n"
+ "ld1h z11.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "zip1 z8.h, z9.h, z10.h\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "zip2 z9.h, z9.h, z10.h\n"
+ ".inst 0x646c4190 // bfdot z16.s, z12.h, z4.h[1]\n"
+ ".inst 0x646d4194 // bfdot z20.s, z12.h, z5.h[1]\n"
+ ".inst 0x646e4198 // bfdot z24.s, z12.h, z6.h[1]\n"
+ "ld1h z12.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ ".inst 0x646c41b1 // bfdot z17.s, z13.h, z4.h[1]\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ ".inst 0x646d41b5 // bfdot z21.s, z13.h, z5.h[1]\n"
+ "zip1 z10.h, z11.h, z12.h\n"
+ "zip2 z11.h, z11.h, z12.h\n"
+ ".inst 0x646e41b9 // bfdot z25.s, z13.h, z6.h[1]\n"
+ "ld1h z13.h, p4/z, [%[b_ptr0]]\n"
+ ".inst 0x646c41d2 // bfdot z18.s, z14.h, z4.h[1]\n"
+ ".inst 0x646d41d6 // bfdot z22.s, z14.h, z5.h[1]\n"
+ ".inst 0x646e41da // bfdot z26.s, z14.h, z6.h[1]\n"
+ "ld1h z14.h, p4/z, [%[b_ptr1]]\n"
+ ".inst 0x646c41f3 // bfdot z19.s, z15.h, z4.h[1]\n"
+ ".inst 0x646d41f7 // bfdot z23.s, z15.h, z5.h[1]\n"
+ ".inst 0x646e41fb // bfdot z27.s, z15.h, z6.h[1]\n"
+ "ld1h z15.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "zip1 z12.h, z13.h, z14.h\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "zip2 z13.h, z13.h, z14.h\n"
+ ".inst 0x64744110 // bfdot z16.s, z8.h, z4.h[2]\n"
+ ".inst 0x64754114 // bfdot z20.s, z8.h, z5.h[2]\n"
+ ".inst 0x64764118 // bfdot z24.s, z8.h, z6.h[2]\n"
+ "ld1h z8.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ ".inst 0x64744131 // bfdot z17.s, z9.h, z4.h[2]\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ ".inst 0x64754135 // bfdot z21.s, z9.h, z5.h[2]\n"
+ "zip1 z14.h, z15.h, z8.h\n"
+ "zip2 z15.h, z15.h, z8.h\n"
+ ".inst 0x64764139 // bfdot z25.s, z9.h, z6.h[2]\n"
+ "ld1h z9.h, p4/z, [%[b_ptr0]]\n"
+ ".inst 0x64744152 // bfdot z18.s, z10.h, z4.h[2]\n"
+ ".inst 0x64754156 // bfdot z22.s, z10.h, z5.h[2]\n"
+ ".inst 0x6476415a // bfdot z26.s, z10.h, z6.h[2]\n"
+ "ld1h z10.h, p4/z, [%[b_ptr1]]\n"
+ ".inst 0x64744173 // bfdot z19.s, z11.h, z4.h[2]\n"
+ ".inst 0x64754177 // bfdot z23.s, z11.h, z5.h[2]\n"
+ ".inst 0x6476417b // bfdot z27.s, z11.h, z6.h[2]\n"
+ "ld1h z11.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "zip1 z8.h, z9.h, z10.h\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "zip2 z9.h, z9.h, z10.h\n"
+ ".inst 0x647c4190 // bfdot z16.s, z12.h, z4.h[3]\n"
+ ".inst 0x647d4194 // bfdot z20.s, z12.h, z5.h[3]\n"
+ ".inst 0x647e4198 // bfdot z24.s, z12.h, z6.h[3]\n"
+ "ld1h z12.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ ".inst 0x647c41b1 // bfdot z17.s, z13.h, z4.h[3]\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ ".inst 0x647d41b5 // bfdot z21.s, z13.h, z5.h[3]\n"
+ "zip1 z10.h, z11.h, z12.h\n"
+ "zip2 z11.h, z11.h, z12.h\n"
+ ".inst 0x647e41b9 // bfdot z25.s, z13.h, z6.h[3]\n"
+ "ld1h z13.h, p4/z, [%[b_ptr0]]\n"
+ ".inst 0x647c41d2 // bfdot z18.s, z14.h, z4.h[3]\n"
+ ".inst 0x647d41d6 // bfdot z22.s, z14.h, z5.h[3]\n"
+ ".inst 0x647e41da // bfdot z26.s, z14.h, z6.h[3]\n"
+ "ld1h z14.h, p4/z, [%[b_ptr1]]\n"
+ ".inst 0x647c41f3 // bfdot z19.s, z15.h, z4.h[3]\n"
+ ".inst 0x647d41f7 // bfdot z23.s, z15.h, z5.h[3]\n"
+ ".inst 0x647e41fb // bfdot z27.s, z15.h, z6.h[3]\n"
+ "ld1h z15.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "b.ne 2b\n"
+ "1:\n"
+ "zip1 z12.h, z13.h, z14.h\n"
+ "zip2 z13.h, z13.h, z14.h\n"
+ "cbz %[regs], 3f\n"
+ ".inst 0x64604110 // bfdot z16.s, z8.h, z0.h[0]\n"
+ "ld1rqh z4.h, p7/z, [%[a_ptr0]]\n"
+ ".inst 0x64614114 // bfdot z20.s, z8.h, z1.h[0]\n"
+ "ld1rqh z5.h, p7/z, [a_ptr1]\n"
+ ".inst 0x64624118 // bfdot z24.s, z8.h, z2.h[0]\n"
+ "ld1rqh z6.h, p7/z, [a_ptr2]\n"
+ ".inst 0x64604131 // bfdot z17.s, z9.h, z0.h[0]\n"
+ "ld1h z8.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ ".inst 0x64614135 // bfdot z21.s, z9.h, z1.h[0]\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ ".inst 0x64624139 // bfdot z25.s, z9.h, z2.h[0]\n"
+ "ld1h z9.h, p4/z, [%[b_ptr0]]\n"
+ "zip1 z14.h, z15.h, z8.h\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ "zip2 z15.h, z15.h, z8.h\n"
+ ".inst 0x64604152 // bfdot z18.s, z10.h, z0.h[0]\n"
+ ".inst 0x64614156 // bfdot z22.s, z10.h, z1.h[0]\n"
+ ".inst 0x6462415a // bfdot z26.s, z10.h, z2.h[0]\n"
+ "ld1h z10.h, p4/z, [%[b_ptr1]]\n"
+ ".inst 0x64604173 // bfdot z19.s, z11.h, z0.h[0]\n"
+ ".inst 0x64614177 // bfdot z23.s, z11.h, z1.h[0]\n"
+ ".inst 0x6462417b // bfdot z27.s, z11.h, z2.h[0]\n"
+ "ld1h z11.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "zip1 z8.h, z9.h, z10.h\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "zip2 z9.h, z9.h, z10.h\n"
+ ".inst 0x64684190 // bfdot z16.s, z12.h, z0.h[1]\n"
+ ".inst 0x64694194 // bfdot z20.s, z12.h, z1.h[1]\n"
+ ".inst 0x646a4198 // bfdot z24.s, z12.h, z2.h[1]\n"
+ "ld1h z12.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ ".inst 0x646841b1 // bfdot z17.s, z13.h, z0.h[1]\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ ".inst 0x646941b5 // bfdot z21.s, z13.h, z1.h[1]\n"
+ "zip1 z10.h, z11.h, z12.h\n"
+ "zip2 z11.h, z11.h, z12.h\n"
+ ".inst 0x646a41b9 // bfdot z25.s, z13.h, z2.h[1]\n"
+ "ld1h z13.h, p4/z, [%[b_ptr0]]\n"
+ ".inst 0x646841d2 // bfdot z18.s, z14.h, z0.h[1]\n"
+ ".inst 0x646941d6 // bfdot z22.s, z14.h, z1.h[1]\n"
+ ".inst 0x646a41da // bfdot z26.s, z14.h, z2.h[1]\n"
+ "ld1h z14.h, p4/z, [%[b_ptr1]]\n"
+ ".inst 0x646841f3 // bfdot z19.s, z15.h, z0.h[1]\n"
+ ".inst 0x646941f7 // bfdot z23.s, z15.h, z1.h[1]\n"
+ ".inst 0x646a41fb // bfdot z27.s, z15.h, z2.h[1]\n"
+ "ld1h z15.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "zip1 z12.h, z13.h, z14.h\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "zip2 z13.h, z13.h, z14.h\n"
+ ".inst 0x64704110 // bfdot z16.s, z8.h, z0.h[2]\n"
+ ".inst 0x64714114 // bfdot z20.s, z8.h, z1.h[2]\n"
+ ".inst 0x64724118 // bfdot z24.s, z8.h, z2.h[2]\n"
+ "ld1h z8.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ ".inst 0x64704131 // bfdot z17.s, z9.h, z0.h[2]\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ ".inst 0x64714135 // bfdot z21.s, z9.h, z1.h[2]\n"
+ "zip1 z14.h, z15.h, z8.h\n"
+ "zip2 z15.h, z15.h, z8.h\n"
+ ".inst 0x64724139 // bfdot z25.s, z9.h, z2.h[2]\n"
+ "ld1h z9.h, p4/z, [%[b_ptr0]]\n"
+ ".inst 0x64704152 // bfdot z18.s, z10.h, z0.h[2]\n"
+ ".inst 0x64714156 // bfdot z22.s, z10.h, z1.h[2]\n"
+ ".inst 0x6472415a // bfdot z26.s, z10.h, z2.h[2]\n"
+ "ld1h z10.h, p4/z, [%[b_ptr1]]\n"
+ ".inst 0x64704173 // bfdot z19.s, z11.h, z0.h[2]\n"
+ ".inst 0x64714177 // bfdot z23.s, z11.h, z1.h[2]\n"
+ ".inst 0x6472417b // bfdot z27.s, z11.h, z2.h[2]\n"
+ "ld1h z11.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "zip1 z8.h, z9.h, z10.h\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "zip2 z9.h, z9.h, z10.h\n"
+ ".inst 0x64784190 // bfdot z16.s, z12.h, z0.h[3]\n"
+ ".inst 0x64794194 // bfdot z20.s, z12.h, z1.h[3]\n"
+ ".inst 0x647a4198 // bfdot z24.s, z12.h, z2.h[3]\n"
+ "ld1h z12.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ ".inst 0x647841b1 // bfdot z17.s, z13.h, z0.h[3]\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ ".inst 0x647941b5 // bfdot z21.s, z13.h, z1.h[3]\n"
+ "zip1 z10.h, z11.h, z12.h\n"
+ "zip2 z11.h, z11.h, z12.h\n"
+ ".inst 0x647a41b9 // bfdot z25.s, z13.h, z2.h[3]\n"
+ "ld1h z13.h, p4/z, [%[b_ptr0]]\n"
+ ".inst 0x647841d2 // bfdot z18.s, z14.h, z0.h[3]\n"
+ ".inst 0x647941d6 // bfdot z22.s, z14.h, z1.h[3]\n"
+ ".inst 0x647a41da // bfdot z26.s, z14.h, z2.h[3]\n"
+ "ld1h z14.h, p4/z, [%[b_ptr1]]\n"
+ ".inst 0x647841f3 // bfdot z19.s, z15.h, z0.h[3]\n"
+ "ld1rqh z0.h, p6/z, [%[a_ptr0], #0x10]\n"
+ ".inst 0x647941f7 // bfdot z23.s, z15.h, z1.h[3]\n"
+ "ld1rqh z1.h, p6/z, [a_ptr1, #0x10]\n"
+ ".inst 0x647a41fb // bfdot z27.s, z15.h, z2.h[3]\n"
+ "ld1h z15.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "zip1 z12.h, z13.h, z14.h\n"
+ "ld1rqh z2.h, p6/z, [a_ptr2, #0x10]\n"
+ "zip2 z13.h, z13.h, z14.h\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ ".inst 0x64644110 // bfdot z16.s, z8.h, z4.h[0]\n"
+ "addvl %[a_ptr0], %[a_ptr0], #2\n"
+ ".inst 0x64654114 // bfdot z20.s, z8.h, z5.h[0]\n"
+ "addvl a_ptr1, a_ptr1, #2\n"
+ ".inst 0x64664118 // bfdot z24.s, z8.h, z6.h[0]\n"
+ "ld1h z8.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ ".inst 0x64644131 // bfdot z17.s, z9.h, z4.h[0]\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ ".inst 0x64654135 // bfdot z21.s, z9.h, z5.h[0]\n"
+ "addvl a_ptr2, a_ptr2, #2\n"
+ "zip1 z14.h, z15.h, z8.h\n"
+ "zip2 z15.h, z15.h, z8.h\n"
+ ".inst 0x64664139 // bfdot z25.s, z9.h, z6.h[0]\n"
+ "ld1h z9.h, p4/z, [%[b_ptr0]]\n"
+ ".inst 0x64644152 // bfdot z18.s, z10.h, z4.h[0]\n"
+ ".inst 0x64654156 // bfdot z22.s, z10.h, z5.h[0]\n"
+ ".inst 0x6466415a // bfdot z26.s, z10.h, z6.h[0]\n"
+ "ld1h z10.h, p4/z, [%[b_ptr1]]\n"
+ ".inst 0x64644173 // bfdot z19.s, z11.h, z4.h[0]\n"
+ ".inst 0x64654177 // bfdot z23.s, z11.h, z5.h[0]\n"
+ ".inst 0x6466417b // bfdot z27.s, z11.h, z6.h[0]\n"
+ "ld1h z11.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "zip1 z8.h, z9.h, z10.h\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "zip2 z9.h, z9.h, z10.h\n"
+ ".inst 0x646c4190 // bfdot z16.s, z12.h, z4.h[1]\n"
+ ".inst 0x646d4194 // bfdot z20.s, z12.h, z5.h[1]\n"
+ ".inst 0x646e4198 // bfdot z24.s, z12.h, z6.h[1]\n"
+ "ld1h z12.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ ".inst 0x646c41b1 // bfdot z17.s, z13.h, z4.h[1]\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ ".inst 0x646d41b5 // bfdot z21.s, z13.h, z5.h[1]\n"
+ "zip1 z10.h, z11.h, z12.h\n"
+ "zip2 z11.h, z11.h, z12.h\n"
+ ".inst 0x646e41b9 // bfdot z25.s, z13.h, z6.h[1]\n"
+ "ld1h z13.h, p4/z, [%[b_ptr0]]\n"
+ ".inst 0x646c41d2 // bfdot z18.s, z14.h, z4.h[1]\n"
+ ".inst 0x646d41d6 // bfdot z22.s, z14.h, z5.h[1]\n"
+ ".inst 0x646e41da // bfdot z26.s, z14.h, z6.h[1]\n"
+ "ld1h z14.h, p4/z, [%[b_ptr1]]\n"
+ ".inst 0x646c41f3 // bfdot z19.s, z15.h, z4.h[1]\n"
+ ".inst 0x646d41f7 // bfdot z23.s, z15.h, z5.h[1]\n"
+ ".inst 0x646e41fb // bfdot z27.s, z15.h, z6.h[1]\n"
+ "ld1h z15.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "zip1 z12.h, z13.h, z14.h\n"
+ "zip2 z13.h, z13.h, z14.h\n"
+ ".inst 0x64744110 // bfdot z16.s, z8.h, z4.h[2]\n"
+ ".inst 0x64754114 // bfdot z20.s, z8.h, z5.h[2]\n"
+ ".inst 0x64764118 // bfdot z24.s, z8.h, z6.h[2]\n"
+ "ld1h z8.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ ".inst 0x64744131 // bfdot z17.s, z9.h, z4.h[2]\n"
+ ".inst 0x64754135 // bfdot z21.s, z9.h, z5.h[2]\n"
+ ".inst 0x64764139 // bfdot z25.s, z9.h, z6.h[2]\n"
+ "zip1 z14.h, z15.h, z8.h\n"
+ "zip2 z15.h, z15.h, z8.h\n"
+ ".inst 0x64744152 // bfdot z18.s, z10.h, z4.h[2]\n"
+ ".inst 0x64754156 // bfdot z22.s, z10.h, z5.h[2]\n"
+ ".inst 0x6476415a // bfdot z26.s, z10.h, z6.h[2]\n"
+ ".inst 0x64744173 // bfdot z19.s, z11.h, z4.h[2]\n"
+ ".inst 0x64754177 // bfdot z23.s, z11.h, z5.h[2]\n"
+ ".inst 0x6476417b // bfdot z27.s, z11.h, z6.h[2]\n"
+ ".inst 0x647c4190 // bfdot z16.s, z12.h, z4.h[3]\n"
+ ".inst 0x647d4194 // bfdot z20.s, z12.h, z5.h[3]\n"
+ ".inst 0x647e4198 // bfdot z24.s, z12.h, z6.h[3]\n"
+ ".inst 0x647c41b1 // bfdot z17.s, z13.h, z4.h[3]\n"
+ ".inst 0x647d41b5 // bfdot z21.s, z13.h, z5.h[3]\n"
+ ".inst 0x647e41b9 // bfdot z25.s, z13.h, z6.h[3]\n"
+ ".inst 0x647c41d2 // bfdot z18.s, z14.h, z4.h[3]\n"
+ ".inst 0x647d41d6 // bfdot z22.s, z14.h, z5.h[3]\n"
+ ".inst 0x647e41da // bfdot z26.s, z14.h, z6.h[3]\n"
+ ".inst 0x647c41f3 // bfdot z19.s, z15.h, z4.h[3]\n"
+ ".inst 0x647d41f7 // bfdot z23.s, z15.h, z5.h[3]\n"
+ ".inst 0x647e41fb // bfdot z27.s, z15.h, z6.h[3]\n"
+ "cbz %[blocks], 4f\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ "ld1h z9.h, p4/z, [%[b_ptr0]]\n"
+ "subs %[blocks], %[blocks], #0x1\n"
+ "ld1h z10.h, p4/z, [%[b_ptr1]]\n"
+ "ld1h z11.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1h z12.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ "zip1 z8.h, z9.h, z10.h\n"
+ "zip2 z9.h, z9.h, z10.h\n"
+ "zip1 z10.h, z11.h, z12.h\n"
+ "zip2 z11.h, z11.h, z12.h\n"
+ ".inst 0x64604110 // bfdot z16.s, z8.h, z0.h[0]\n"
+ ".inst 0x64614114 // bfdot z20.s, z8.h, z1.h[0]\n"
+ ".inst 0x64624118 // bfdot z24.s, z8.h, z2.h[0]\n"
+ ".inst 0x64604131 // bfdot z17.s, z9.h, z0.h[0]\n"
+ ".inst 0x64614135 // bfdot z21.s, z9.h, z1.h[0]\n"
+ ".inst 0x64624139 // bfdot z25.s, z9.h, z2.h[0]\n"
+ ".inst 0x64604152 // bfdot z18.s, z10.h, z0.h[0]\n"
+ ".inst 0x64614156 // bfdot z22.s, z10.h, z1.h[0]\n"
+ ".inst 0x6462415a // bfdot z26.s, z10.h, z2.h[0]\n"
+ ".inst 0x64604173 // bfdot z19.s, z11.h, z0.h[0]\n"
+ ".inst 0x64614177 // bfdot z23.s, z11.h, z1.h[0]\n"
+ ".inst 0x6462417b // bfdot z27.s, z11.h, z2.h[0]\n"
+ "b.eq 5f\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ "ld1h z13.h, p4/z, [%[b_ptr0]]\n"
+ "subs %[blocks], %[blocks], #0x1\n"
+ "ld1h z14.h, p4/z, [%[b_ptr1]]\n"
+ "ld1h z15.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1h z8.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ "zip1 z12.h, z13.h, z14.h\n"
+ "zip2 z13.h, z13.h, z14.h\n"
+ "zip1 z14.h, z15.h, z8.h\n"
+ "zip2 z15.h, z15.h, z8.h\n"
+ ".inst 0x64684190 // bfdot z16.s, z12.h, z0.h[1]\n"
+ ".inst 0x64694194 // bfdot z20.s, z12.h, z1.h[1]\n"
+ ".inst 0x646a4198 // bfdot z24.s, z12.h, z2.h[1]\n"
+ ".inst 0x646841b1 // bfdot z17.s, z13.h, z0.h[1]\n"
+ ".inst 0x646941b5 // bfdot z21.s, z13.h, z1.h[1]\n"
+ ".inst 0x646a41b9 // bfdot z25.s, z13.h, z2.h[1]\n"
+ ".inst 0x646841d2 // bfdot z18.s, z14.h, z0.h[1]\n"
+ ".inst 0x646941d6 // bfdot z22.s, z14.h, z1.h[1]\n"
+ ".inst 0x646a41da // bfdot z26.s, z14.h, z2.h[1]\n"
+ ".inst 0x646841f3 // bfdot z19.s, z15.h, z0.h[1]\n"
+ ".inst 0x646941f7 // bfdot z23.s, z15.h, z1.h[1]\n"
+ ".inst 0x646a41fb // bfdot z27.s, z15.h, z2.h[1]\n"
+ "b.eq 6f\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ "ld1h z9.h, p4/z, [%[b_ptr0]]\n"
+ "ld1h z10.h, p4/z, [%[b_ptr1]]\n"
+ "ld1h z11.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1h z12.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ "zip1 z8.h, z9.h, z10.h\n"
+ "zip2 z9.h, z9.h, z10.h\n"
+ "zip1 z10.h, z11.h, z12.h\n"
+ "zip2 z11.h, z11.h, z12.h\n"
+ ".inst 0x64704110 // bfdot z16.s, z8.h, z0.h[2]\n"
+ ".inst 0x64714114 // bfdot z20.s, z8.h, z1.h[2]\n"
+ ".inst 0x64724118 // bfdot z24.s, z8.h, z2.h[2]\n"
+ ".inst 0x64704131 // bfdot z17.s, z9.h, z0.h[2]\n"
+ ".inst 0x64714135 // bfdot z21.s, z9.h, z1.h[2]\n"
+ ".inst 0x64724139 // bfdot z25.s, z9.h, z2.h[2]\n"
+ ".inst 0x64704152 // bfdot z18.s, z10.h, z0.h[2]\n"
+ ".inst 0x64714156 // bfdot z22.s, z10.h, z1.h[2]\n"
+ ".inst 0x6472415a // bfdot z26.s, z10.h, z2.h[2]\n"
+ ".inst 0x64704173 // bfdot z19.s, z11.h, z0.h[2]\n"
+ ".inst 0x64714177 // bfdot z23.s, z11.h, z1.h[2]\n"
+ ".inst 0x6472417b // bfdot z27.s, z11.h, z2.h[2]\n"
+ "cbz %[odds], 7f\n"
+ "mov z14.h, #0\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "mov z8.h, #0\n"
+ "ld1h z13.h, p4/z, [%[b_ptr0]]\n"
+ "ld1h z15.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "zip1 z12.h, z13.h, z14.h\n"
+ "zip2 z13.h, z13.h, z14.h\n"
+ "zip1 z14.h, z15.h, z8.h\n"
+ "zip2 z15.h, z15.h, z8.h\n"
+ "8:\n"
+ ".inst 0x64784190 // bfdot z16.s, z12.h, z0.h[3]\n"
+ ".inst 0x64794194 // bfdot z20.s, z12.h, z1.h[3]\n"
+ ".inst 0x647a4198 // bfdot z24.s, z12.h, z2.h[3]\n"
+ ".inst 0x647841b1 // bfdot z17.s, z13.h, z0.h[3]\n"
+ ".inst 0x647941b5 // bfdot z21.s, z13.h, z1.h[3]\n"
+ ".inst 0x647a41b9 // bfdot z25.s, z13.h, z2.h[3]\n"
+ ".inst 0x647841d2 // bfdot z18.s, z14.h, z0.h[3]\n"
+ ".inst 0x647941d6 // bfdot z22.s, z14.h, z1.h[3]\n"
+ ".inst 0x647a41da // bfdot z26.s, z14.h, z2.h[3]\n"
+ ".inst 0x647841f3 // bfdot z19.s, z15.h, z0.h[3]\n"
+ ".inst 0x647941f7 // bfdot z23.s, z15.h, z1.h[3]\n"
+ ".inst 0x647a41fb // bfdot z27.s, z15.h, z2.h[3]\n"
+ "b 7f\n"
+ "6:\n"
+ "cbz %[odds], 7f\n"
+ "mov z10.h, #0\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "mov z12.h, #0\n"
+ "ld1h z9.h, p4/z, [%[b_ptr0]]\n"
+ "ld1h z11.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "zip1 z8.h, z9.h, z10.h\n"
+ "zip2 z9.h, z9.h, z10.h\n"
+ "zip1 z10.h, z11.h, z12.h\n"
+ "zip2 z11.h, z11.h, z12.h\n"
+ "9:\n"
+ ".inst 0x64704110 // bfdot z16.s, z8.h, z0.h[2]\n"
+ ".inst 0x64714114 // bfdot z20.s, z8.h, z1.h[2]\n"
+ ".inst 0x64724118 // bfdot z24.s, z8.h, z2.h[2]\n"
+ ".inst 0x64704131 // bfdot z17.s, z9.h, z0.h[2]\n"
+ ".inst 0x64714135 // bfdot z21.s, z9.h, z1.h[2]\n"
+ ".inst 0x64724139 // bfdot z25.s, z9.h, z2.h[2]\n"
+ ".inst 0x64704152 // bfdot z18.s, z10.h, z0.h[2]\n"
+ ".inst 0x64714156 // bfdot z22.s, z10.h, z1.h[2]\n"
+ ".inst 0x6472415a // bfdot z26.s, z10.h, z2.h[2]\n"
+ ".inst 0x64704173 // bfdot z19.s, z11.h, z0.h[2]\n"
+ ".inst 0x64714177 // bfdot z23.s, z11.h, z1.h[2]\n"
+ ".inst 0x6472417b // bfdot z27.s, z11.h, z2.h[2]\n"
+ "b 7f\n"
+ "5:\n"
+ "cbz %[odds], 7f\n"
+ "mov z14.h, #0\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "mov z8.h, #0\n"
+ "ld1h z13.h, p4/z, [%[b_ptr0]]\n"
+ "ld1h z15.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "zip1 z12.h, z13.h, z14.h\n"
+ "zip2 z13.h, z13.h, z14.h\n"
+ "zip1 z14.h, z15.h, z8.h\n"
+ "zip2 z15.h, z15.h, z8.h\n"
+ "10:\n"
+ ".inst 0x64684190 // bfdot z16.s, z12.h, z0.h[1]\n"
+ ".inst 0x64694194 // bfdot z20.s, z12.h, z1.h[1]\n"
+ ".inst 0x646a4198 // bfdot z24.s, z12.h, z2.h[1]\n"
+ ".inst 0x646841b1 // bfdot z17.s, z13.h, z0.h[1]\n"
+ ".inst 0x646941b5 // bfdot z21.s, z13.h, z1.h[1]\n"
+ ".inst 0x646a41b9 // bfdot z25.s, z13.h, z2.h[1]\n"
+ ".inst 0x646841d2 // bfdot z18.s, z14.h, z0.h[1]\n"
+ ".inst 0x646941d6 // bfdot z22.s, z14.h, z1.h[1]\n"
+ ".inst 0x646a41da // bfdot z26.s, z14.h, z2.h[1]\n"
+ ".inst 0x646841f3 // bfdot z19.s, z15.h, z0.h[1]\n"
+ ".inst 0x646941f7 // bfdot z23.s, z15.h, z1.h[1]\n"
+ ".inst 0x646a41fb // bfdot z27.s, z15.h, z2.h[1]\n"
+ "b 7f\n"
+ "4:\n"
+ "cbz %[odds], 7f\n"
+ "mov z10.h, #0\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "mov z12.h, #0\n"
+ "ld1h z9.h, p4/z, [%[b_ptr0]]\n"
+ "ld1h z11.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "zip1 z8.h, z9.h, z10.h\n"
+ "zip2 z9.h, z9.h, z10.h\n"
+ "zip1 z10.h, z11.h, z12.h\n"
+ "zip2 z11.h, z11.h, z12.h\n"
+ "11:\n"
+ ".inst 0x64604110 // bfdot z16.s, z8.h, z0.h[0]\n"
+ ".inst 0x64614114 // bfdot z20.s, z8.h, z1.h[0]\n"
+ ".inst 0x64624118 // bfdot z24.s, z8.h, z2.h[0]\n"
+ ".inst 0x64604131 // bfdot z17.s, z9.h, z0.h[0]\n"
+ ".inst 0x64614135 // bfdot z21.s, z9.h, z1.h[0]\n"
+ ".inst 0x64624139 // bfdot z25.s, z9.h, z2.h[0]\n"
+ ".inst 0x64604152 // bfdot z18.s, z10.h, z0.h[0]\n"
+ ".inst 0x64614156 // bfdot z22.s, z10.h, z1.h[0]\n"
+ ".inst 0x6462415a // bfdot z26.s, z10.h, z2.h[0]\n"
+ ".inst 0x64604173 // bfdot z19.s, z11.h, z0.h[0]\n"
+ ".inst 0x64614177 // bfdot z23.s, z11.h, z1.h[0]\n"
+ ".inst 0x6462417b // bfdot z27.s, z11.h, z2.h[0]\n"
+ "b 7f\n"
+ "3:\n"
+ ".inst 0x64604110 // bfdot z16.s, z8.h, z0.h[0]\n"
+ "ld1rqh z4.h, p6/z, [%[a_ptr0]]\n"
+ ".inst 0x64614114 // bfdot z20.s, z8.h, z1.h[0]\n"
+ "ld1rqh z5.h, p6/z, [a_ptr1]\n"
+ ".inst 0x64624118 // bfdot z24.s, z8.h, z2.h[0]\n"
+ "ld1h z8.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ ".inst 0x64604131 // bfdot z17.s, z9.h, z0.h[0]\n"
+ "ld1rqh z6.h, p6/z, [a_ptr2]\n"
+ ".inst 0x64614135 // bfdot z21.s, z9.h, z1.h[0]\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "zip1 z14.h, z15.h, z8.h\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ "zip2 z15.h, z15.h, z8.h\n"
+ "addvl %[a_ptr0], %[a_ptr0], #1\n"
+ ".inst 0x64624139 // bfdot z25.s, z9.h, z2.h[0]\n"
+ "ld1h z9.h, p4/z, [%[b_ptr0]]\n"
+ ".inst 0x64604152 // bfdot z18.s, z10.h, z0.h[0]\n"
+ "addvl a_ptr1, a_ptr1, #1\n"
+ ".inst 0x64614156 // bfdot z22.s, z10.h, z1.h[0]\n"
+ "addvl a_ptr2, a_ptr2, #1\n"
+ ".inst 0x6462415a // bfdot z26.s, z10.h, z2.h[0]\n"
+ "ld1h z10.h, p4/z, [%[b_ptr1]]\n"
+ ".inst 0x64604173 // bfdot z19.s, z11.h, z0.h[0]\n"
+ ".inst 0x64614177 // bfdot z23.s, z11.h, z1.h[0]\n"
+ ".inst 0x6462417b // bfdot z27.s, z11.h, z2.h[0]\n"
+ "ld1h z11.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "zip1 z8.h, z9.h, z10.h\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "zip2 z9.h, z9.h, z10.h\n"
+ ".inst 0x64684190 // bfdot z16.s, z12.h, z0.h[1]\n"
+ ".inst 0x64694194 // bfdot z20.s, z12.h, z1.h[1]\n"
+ ".inst 0x646a4198 // bfdot z24.s, z12.h, z2.h[1]\n"
+ "ld1h z12.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ ".inst 0x646841b1 // bfdot z17.s, z13.h, z0.h[1]\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ ".inst 0x646941b5 // bfdot z21.s, z13.h, z1.h[1]\n"
+ "zip1 z10.h, z11.h, z12.h\n"
+ "zip2 z11.h, z11.h, z12.h\n"
+ ".inst 0x646a41b9 // bfdot z25.s, z13.h, z2.h[1]\n"
+ "ld1h z13.h, p4/z, [%[b_ptr0]]\n"
+ ".inst 0x646841d2 // bfdot z18.s, z14.h, z0.h[1]\n"
+ ".inst 0x646941d6 // bfdot z22.s, z14.h, z1.h[1]\n"
+ ".inst 0x646a41da // bfdot z26.s, z14.h, z2.h[1]\n"
+ "ld1h z14.h, p4/z, [%[b_ptr1]]\n"
+ ".inst 0x646841f3 // bfdot z19.s, z15.h, z0.h[1]\n"
+ ".inst 0x646941f7 // bfdot z23.s, z15.h, z1.h[1]\n"
+ ".inst 0x646a41fb // bfdot z27.s, z15.h, z2.h[1]\n"
+ "ld1h z15.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "zip1 z12.h, z13.h, z14.h\n"
+ "zip2 z13.h, z13.h, z14.h\n"
+ ".inst 0x64704110 // bfdot z16.s, z8.h, z0.h[2]\n"
+ ".inst 0x64714114 // bfdot z20.s, z8.h, z1.h[2]\n"
+ ".inst 0x64724118 // bfdot z24.s, z8.h, z2.h[2]\n"
+ "ld1h z8.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ ".inst 0x64704131 // bfdot z17.s, z9.h, z0.h[2]\n"
+ ".inst 0x64714135 // bfdot z21.s, z9.h, z1.h[2]\n"
+ ".inst 0x64724139 // bfdot z25.s, z9.h, z2.h[2]\n"
+ "zip1 z14.h, z15.h, z8.h\n"
+ "zip2 z15.h, z15.h, z8.h\n"
+ ".inst 0x64704152 // bfdot z18.s, z10.h, z0.h[2]\n"
+ ".inst 0x64714156 // bfdot z22.s, z10.h, z1.h[2]\n"
+ ".inst 0x6472415a // bfdot z26.s, z10.h, z2.h[2]\n"
+ ".inst 0x64704173 // bfdot z19.s, z11.h, z0.h[2]\n"
+ ".inst 0x64714177 // bfdot z23.s, z11.h, z1.h[2]\n"
+ ".inst 0x6472417b // bfdot z27.s, z11.h, z2.h[2]\n"
+ ".inst 0x64784190 // bfdot z16.s, z12.h, z0.h[3]\n"
+ ".inst 0x64794194 // bfdot z20.s, z12.h, z1.h[3]\n"
+ ".inst 0x647a4198 // bfdot z24.s, z12.h, z2.h[3]\n"
+ ".inst 0x647841b1 // bfdot z17.s, z13.h, z0.h[3]\n"
+ ".inst 0x647941b5 // bfdot z21.s, z13.h, z1.h[3]\n"
+ ".inst 0x647a41b9 // bfdot z25.s, z13.h, z2.h[3]\n"
+ ".inst 0x647841d2 // bfdot z18.s, z14.h, z0.h[3]\n"
+ ".inst 0x647941d6 // bfdot z22.s, z14.h, z1.h[3]\n"
+ ".inst 0x647a41da // bfdot z26.s, z14.h, z2.h[3]\n"
+ ".inst 0x647841f3 // bfdot z19.s, z15.h, z0.h[3]\n"
+ ".inst 0x647941f7 // bfdot z23.s, z15.h, z1.h[3]\n"
+ ".inst 0x647a41fb // bfdot z27.s, z15.h, z2.h[3]\n"
+ "cbz %[blocks], 12f\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ "ld1h z9.h, p4/z, [%[b_ptr0]]\n"
+ "subs %[blocks], %[blocks], #0x1\n"
+ "ld1h z10.h, p4/z, [%[b_ptr1]]\n"
+ "ld1h z11.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1h z12.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ "zip1 z8.h, z9.h, z10.h\n"
+ "zip2 z9.h, z9.h, z10.h\n"
+ "zip1 z10.h, z11.h, z12.h\n"
+ "zip2 z11.h, z11.h, z12.h\n"
+ ".inst 0x64644110 // bfdot z16.s, z8.h, z4.h[0]\n"
+ ".inst 0x64654114 // bfdot z20.s, z8.h, z5.h[0]\n"
+ ".inst 0x64664118 // bfdot z24.s, z8.h, z6.h[0]\n"
+ ".inst 0x64644131 // bfdot z17.s, z9.h, z4.h[0]\n"
+ ".inst 0x64654135 // bfdot z21.s, z9.h, z5.h[0]\n"
+ ".inst 0x64664139 // bfdot z25.s, z9.h, z6.h[0]\n"
+ ".inst 0x64644152 // bfdot z18.s, z10.h, z4.h[0]\n"
+ ".inst 0x64654156 // bfdot z22.s, z10.h, z5.h[0]\n"
+ ".inst 0x6466415a // bfdot z26.s, z10.h, z6.h[0]\n"
+ ".inst 0x64644173 // bfdot z19.s, z11.h, z4.h[0]\n"
+ ".inst 0x64654177 // bfdot z23.s, z11.h, z5.h[0]\n"
+ ".inst 0x6466417b // bfdot z27.s, z11.h, z6.h[0]\n"
+ "b.eq 13f\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ "ld1h z13.h, p4/z, [%[b_ptr0]]\n"
+ "subs %[blocks], %[blocks], #0x1\n"
+ "ld1h z14.h, p4/z, [%[b_ptr1]]\n"
+ "ld1h z15.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1h z8.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ "zip1 z12.h, z13.h, z14.h\n"
+ "zip2 z13.h, z13.h, z14.h\n"
+ "zip1 z14.h, z15.h, z8.h\n"
+ "zip2 z15.h, z15.h, z8.h\n"
+ ".inst 0x646c4190 // bfdot z16.s, z12.h, z4.h[1]\n"
+ ".inst 0x646d4194 // bfdot z20.s, z12.h, z5.h[1]\n"
+ ".inst 0x646e4198 // bfdot z24.s, z12.h, z6.h[1]\n"
+ ".inst 0x646c41b1 // bfdot z17.s, z13.h, z4.h[1]\n"
+ ".inst 0x646d41b5 // bfdot z21.s, z13.h, z5.h[1]\n"
+ ".inst 0x646e41b9 // bfdot z25.s, z13.h, z6.h[1]\n"
+ ".inst 0x646c41d2 // bfdot z18.s, z14.h, z4.h[1]\n"
+ ".inst 0x646d41d6 // bfdot z22.s, z14.h, z5.h[1]\n"
+ ".inst 0x646e41da // bfdot z26.s, z14.h, z6.h[1]\n"
+ ".inst 0x646c41f3 // bfdot z19.s, z15.h, z4.h[1]\n"
+ ".inst 0x646d41f7 // bfdot z23.s, z15.h, z5.h[1]\n"
+ ".inst 0x646e41fb // bfdot z27.s, z15.h, z6.h[1]\n"
+ "b.eq 14f\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ "ld1h z9.h, p4/z, [%[b_ptr0]]\n"
+ "ld1h z10.h, p4/z, [%[b_ptr1]]\n"
+ "ld1h z11.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1h z12.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ "zip1 z8.h, z9.h, z10.h\n"
+ "zip2 z9.h, z9.h, z10.h\n"
+ "zip1 z10.h, z11.h, z12.h\n"
+ "zip2 z11.h, z11.h, z12.h\n"
+ ".inst 0x64744110 // bfdot z16.s, z8.h, z4.h[2]\n"
+ ".inst 0x64754114 // bfdot z20.s, z8.h, z5.h[2]\n"
+ ".inst 0x64764118 // bfdot z24.s, z8.h, z6.h[2]\n"
+ ".inst 0x64744131 // bfdot z17.s, z9.h, z4.h[2]\n"
+ ".inst 0x64754135 // bfdot z21.s, z9.h, z5.h[2]\n"
+ ".inst 0x64764139 // bfdot z25.s, z9.h, z6.h[2]\n"
+ ".inst 0x64744152 // bfdot z18.s, z10.h, z4.h[2]\n"
+ ".inst 0x64754156 // bfdot z22.s, z10.h, z5.h[2]\n"
+ ".inst 0x6476415a // bfdot z26.s, z10.h, z6.h[2]\n"
+ ".inst 0x64744173 // bfdot z19.s, z11.h, z4.h[2]\n"
+ ".inst 0x64754177 // bfdot z23.s, z11.h, z5.h[2]\n"
+ ".inst 0x6476417b // bfdot z27.s, z11.h, z6.h[2]\n"
+ "cbz %[odds], 7f\n"
+ "mov z14.h, #0\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "mov z8.h, #0\n"
+ "ld1h z13.h, p4/z, [%[b_ptr0]]\n"
+ "ld1h z15.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "zip1 z12.h, z13.h, z14.h\n"
+ "zip2 z13.h, z13.h, z14.h\n"
+ "zip1 z14.h, z15.h, z8.h\n"
+ "zip2 z15.h, z15.h, z8.h\n"
+ "15:\n"
+ ".inst 0x647c4190 // bfdot z16.s, z12.h, z4.h[3]\n"
+ ".inst 0x647d4194 // bfdot z20.s, z12.h, z5.h[3]\n"
+ ".inst 0x647e4198 // bfdot z24.s, z12.h, z6.h[3]\n"
+ ".inst 0x647c41b1 // bfdot z17.s, z13.h, z4.h[3]\n"
+ ".inst 0x647d41b5 // bfdot z21.s, z13.h, z5.h[3]\n"
+ ".inst 0x647e41b9 // bfdot z25.s, z13.h, z6.h[3]\n"
+ ".inst 0x647c41d2 // bfdot z18.s, z14.h, z4.h[3]\n"
+ ".inst 0x647d41d6 // bfdot z22.s, z14.h, z5.h[3]\n"
+ ".inst 0x647e41da // bfdot z26.s, z14.h, z6.h[3]\n"
+ ".inst 0x647c41f3 // bfdot z19.s, z15.h, z4.h[3]\n"
+ ".inst 0x647d41f7 // bfdot z23.s, z15.h, z5.h[3]\n"
+ ".inst 0x647e41fb // bfdot z27.s, z15.h, z6.h[3]\n"
+ "b 7f\n"
+ "14:\n"
+ "cbz %[odds], 7f\n"
+ "mov z10.h, #0\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "mov z12.h, #0\n"
+ "ld1h z9.h, p4/z, [%[b_ptr0]]\n"
+ "ld1h z11.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "zip1 z8.h, z9.h, z10.h\n"
+ "zip2 z9.h, z9.h, z10.h\n"
+ "zip1 z10.h, z11.h, z12.h\n"
+ "zip2 z11.h, z11.h, z12.h\n"
+ "16:\n"
+ ".inst 0x64744110 // bfdot z16.s, z8.h, z4.h[2]\n"
+ ".inst 0x64754114 // bfdot z20.s, z8.h, z5.h[2]\n"
+ ".inst 0x64764118 // bfdot z24.s, z8.h, z6.h[2]\n"
+ ".inst 0x64744131 // bfdot z17.s, z9.h, z4.h[2]\n"
+ ".inst 0x64754135 // bfdot z21.s, z9.h, z5.h[2]\n"
+ ".inst 0x64764139 // bfdot z25.s, z9.h, z6.h[2]\n"
+ ".inst 0x64744152 // bfdot z18.s, z10.h, z4.h[2]\n"
+ ".inst 0x64754156 // bfdot z22.s, z10.h, z5.h[2]\n"
+ ".inst 0x6476415a // bfdot z26.s, z10.h, z6.h[2]\n"
+ ".inst 0x64744173 // bfdot z19.s, z11.h, z4.h[2]\n"
+ ".inst 0x64754177 // bfdot z23.s, z11.h, z5.h[2]\n"
+ ".inst 0x6476417b // bfdot z27.s, z11.h, z6.h[2]\n"
+ "b 7f\n"
+ "13:\n"
+ "cbz %[odds], 7f\n"
+ "mov z14.h, #0\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "mov z8.h, #0\n"
+ "ld1h z13.h, p4/z, [%[b_ptr0]]\n"
+ "ld1h z15.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "zip1 z12.h, z13.h, z14.h\n"
+ "zip2 z13.h, z13.h, z14.h\n"
+ "zip1 z14.h, z15.h, z8.h\n"
+ "zip2 z15.h, z15.h, z8.h\n"
+ "17:\n"
+ ".inst 0x646c4190 // bfdot z16.s, z12.h, z4.h[1]\n"
+ ".inst 0x646d4194 // bfdot z20.s, z12.h, z5.h[1]\n"
+ ".inst 0x646e4198 // bfdot z24.s, z12.h, z6.h[1]\n"
+ ".inst 0x646c41b1 // bfdot z17.s, z13.h, z4.h[1]\n"
+ ".inst 0x646d41b5 // bfdot z21.s, z13.h, z5.h[1]\n"
+ ".inst 0x646e41b9 // bfdot z25.s, z13.h, z6.h[1]\n"
+ ".inst 0x646c41d2 // bfdot z18.s, z14.h, z4.h[1]\n"
+ ".inst 0x646d41d6 // bfdot z22.s, z14.h, z5.h[1]\n"
+ ".inst 0x646e41da // bfdot z26.s, z14.h, z6.h[1]\n"
+ ".inst 0x646c41f3 // bfdot z19.s, z15.h, z4.h[1]\n"
+ ".inst 0x646d41f7 // bfdot z23.s, z15.h, z5.h[1]\n"
+ ".inst 0x646e41fb // bfdot z27.s, z15.h, z6.h[1]\n"
+ "b 7f\n"
+ "12:\n"
+ "cbz %[odds], 7f\n"
+ "mov z10.h, #0\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "mov z12.h, #0\n"
+ "ld1h z9.h, p4/z, [%[b_ptr0]]\n"
+ "ld1h z11.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "zip1 z8.h, z9.h, z10.h\n"
+ "zip2 z9.h, z9.h, z10.h\n"
+ "zip1 z10.h, z11.h, z12.h\n"
+ "zip2 z11.h, z11.h, z12.h\n"
+ "18:\n"
+ ".inst 0x64644110 // bfdot z16.s, z8.h, z4.h[0]\n"
+ ".inst 0x64654114 // bfdot z20.s, z8.h, z5.h[0]\n"
+ ".inst 0x64664118 // bfdot z24.s, z8.h, z6.h[0]\n"
+ ".inst 0x64644131 // bfdot z17.s, z9.h, z4.h[0]\n"
+ ".inst 0x64654135 // bfdot z21.s, z9.h, z5.h[0]\n"
+ ".inst 0x64664139 // bfdot z25.s, z9.h, z6.h[0]\n"
+ ".inst 0x64644152 // bfdot z18.s, z10.h, z4.h[0]\n"
+ ".inst 0x64654156 // bfdot z22.s, z10.h, z5.h[0]\n"
+ ".inst 0x6466415a // bfdot z26.s, z10.h, z6.h[0]\n"
+ ".inst 0x64644173 // bfdot z19.s, z11.h, z4.h[0]\n"
+ ".inst 0x64654177 // bfdot z23.s, z11.h, z5.h[0]\n"
+ ".inst 0x6466417b // bfdot z27.s, z11.h, z6.h[0]\n"
+ "7:\n"
+ "ld1rw z14.s, p7/z, [%[minptr]]\n"
+ "ld1rw z15.s, p7/z, [%[maxptr]]\n"
+ "fmax z16.s, p7/m, z16.s, z14.s\n"
+ "fmax z17.s, p7/m, z17.s, z14.s\n"
+ "fmax z18.s, p7/m, z18.s, z14.s\n"
+ "fmax z19.s, p7/m, z19.s, z14.s\n"
+ "fmin z16.s, p7/m, z16.s, z15.s\n"
+ "fmin z17.s, p7/m, z17.s, z15.s\n"
+ "fmin z18.s, p7/m, z18.s, z15.s\n"
+ "fmin z19.s, p7/m, z19.s, z15.s\n"
+ "st1w z16.s, p0, [%[c_ptr0]]\n"
+ "fmax z20.s, p7/m, z20.s, z14.s\n"
+ "fmax z21.s, p7/m, z21.s, z14.s\n"
+ "fmax z22.s, p7/m, z22.s, z14.s\n"
+ "st1w z17.s, p1, [%[c_ptr0], #1, MUL VL]\n"
+ "fmax z23.s, p7/m, z23.s, z14.s\n"
+ "fmin z20.s, p7/m, z20.s, z15.s\n"
+ "fmin z21.s, p7/m, z21.s, z15.s\n"
+ "st1w z18.s, p2, [%[c_ptr0], #2, MUL VL]\n"
+ "fmin z22.s, p7/m, z22.s, z15.s\n"
+ "fmin z23.s, p7/m, z23.s, z15.s\n"
+ "fmax z24.s, p7/m, z24.s, z14.s\n"
+ "st1w z19.s, p3, [%[c_ptr0], #3, MUL VL]\n"
+ "fmax z25.s, p7/m, z25.s, z14.s\n"
+ "addvl %[c_ptr0], %[c_ptr0], #4\n"
+ "fmax z26.s, p7/m, z26.s, z14.s\n"
+ "st1w z20.s, p0, [c_ptr1]\n"
+ "fmin z24.s, p7/m, z24.s, z15.s\n"
+ "fmin z25.s, p7/m, z25.s, z15.s\n"
+ "fmax z27.s, p7/m, z27.s, z14.s\n"
+ "st1w z21.s, p1, [c_ptr1, #1, MUL VL]\n"
+ "fmin z26.s, p7/m, z26.s, z15.s\n"
+ "fmin z27.s, p7/m, z27.s, z15.s\n"
+ "st1w z22.s, p2, [c_ptr1, #2, MUL VL]\n"
+ "st1w z23.s, p3, [c_ptr1, #3, MUL VL]\n"
+ "st1w z24.s, p0, [c_ptr2]\n"
+ "st1w z25.s, p1, [c_ptr2, #1, MUL VL]\n"
+ "st1w z26.s, p2, [c_ptr2, #2, MUL VL]\n"
+ "st1w z27.s, p3, [c_ptr2, #3, MUL VL]\n"
+ ".unreq a_ptr1\n"
+ ".unreq a_ptr2\n"
+ ".unreq c_ptr1\n"
+ ".unreq c_ptr2\n"
+ : [a_ptr0] "+r" (a_ptr0), [b_ptr0] "+r" (b_ptr0), [b_ptr1] "+r" (b_ptr1), [c_ptr0] "+r" (c_ptr0), [loops] "+r" (loops), [regs] "+r" (regs), [temp] "+r" (temp), [blocks] "+r" (blocks), [odds] "+r" (odds)
+ : [width] "r" (width), [append] "r" (static_cast<uint64_t>(append)), [lda] "r" (ldab), [ldc] "r" (ldcb), [biasptr] "r" (biasptr), [minptr] "r" (minptr), [maxptr] "r" (maxptr), [leftovers] "r" (leftovers), [ldb] "r" (ldbb)
+ : "z0", "z1", "z2", "z3", "z4", "z5", "z6", "z7", "z8", "z9", "z10", "z11", "z12", "z13", "z14", "z15", "z16", "z17", "z18", "z19", "z20", "z21", "z22", "z23", "z24", "z25", "z26", "z27", "z28", "z29", "z30", "z31", "x0", "x1", "x2", "x3", "cc", "memory"
+ );
+ break;
+ default:
+ case 4:
+ __asm __volatile (
+ "a_ptr1 .req X0\n"
+ "a_ptr2 .req X1\n"
+ "a_ptr3 .req X2\n"
+ "c_ptr1 .req X3\n"
+ "c_ptr2 .req X4\n"
+ "c_ptr3 .req X5\n"
+ "add a_ptr1, %[a_ptr0], %[lda]\n"
+ "add c_ptr1, %[c_ptr0], %[ldc]\n"
+ "add a_ptr2, a_ptr1, %[lda]\n"
+ "add c_ptr2, c_ptr1, %[ldc]\n"
+ "add a_ptr3, a_ptr2, %[lda]\n"
+ "add c_ptr3, c_ptr2, %[ldc]\n"
+ "whilelt p6.h, %[temp], %[leftovers]\n"
+ "whilelt p0.s, %[temp], %[width]\n"
+ "whilelt p4.h, %[temp], %[width]\n"
+ "incw %[temp], all, mul #1\n"
+ "ptrue p7.h\n"
+ "ld1w z16.s, p0/z, [%[biasptr]]\n"
+ "ld1h z9.h, p4/z, [%[b_ptr0]]\n"
+ "whilelt p1.s, %[temp], %[width]\n"
+ "ld1rqh z0.h, p7/z, [%[a_ptr0]]\n"
+ "incw %[temp], all, mul #1\n"
+ "mov z20.d, z16.d\n"
+ "ld1w z17.s, p1/z, [%[biasptr], #1, MUL VL]\n"
+ "mov z24.d, z16.d\n"
+ "ld1rqh z1.h, p7/z, [a_ptr1]\n"
+ "mov z28.d, z16.d\n"
+ "ld1rqh z2.h, p7/z, [a_ptr2]\n"
+ "ld1rqh z3.h, p7/z, [a_ptr3]\n"
+ "whilelt p2.s, %[temp], %[width]\n"
+ "mov z21.d, z17.d\n"
+ "ld1h z10.h, p4/z, [%[b_ptr1]]\n"
+ "mov z25.d, z17.d\n"
+ "whilelt p5.h, %[temp], %[width]\n"
+ "mov z29.d, z17.d\n"
+ "ld1w z18.s, p2/z, [%[biasptr], #2, MUL VL]\n"
+ "zip1 z8.h, z9.h, z10.h\n"
+ "incw %[temp], all, mul #1\n"
+ "zip2 z9.h, z9.h, z10.h\n"
+ "ld1h z11.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "mov z22.d, z18.d\n"
+ "ld1h z12.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ "mov z26.d, z18.d\n"
+ "whilelt p3.s, %[temp], %[width]\n"
+ "mov z30.d, z18.d\n"
+ "add %[a_ptr0], %[a_ptr0], #0x10\n"
+ "zip1 z10.h, z11.h, z12.h\n"
+ "ld1w z19.s, p3/z, [%[biasptr], #3, MUL VL]\n"
+ "zip2 z11.h, z11.h, z12.h\n"
+ "add a_ptr1, a_ptr1, #0x10\n"
+ "add a_ptr2, a_ptr2, #0x10\n"
+ "mov z23.d, z19.d\n"
+ "add a_ptr3, a_ptr3, #0x10\n"
+ "mov z27.d, z19.d\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "mov z31.d, z19.d\n"
+ "ld1h z13.h, p4/z, [%[b_ptr0]]\n"
+ "ld1h z15.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ "ld1h z14.h, p4/z, [%[b_ptr1]]\n"
+ "zip1 z12.h, z13.h, z14.h\n"
+ "zip2 z13.h, z13.h, z14.h\n"
+ "cbz %[loops], 1f\n"
+ "2:\n"
+ ".inst 0x64604110 // bfdot z16.s, z8.h, z0.h[0]\n"
+ "ld1rqh z4.h, p7/z, [%[a_ptr0]]\n"
+ ".inst 0x64614114 // bfdot z20.s, z8.h, z1.h[0]\n"
+ "ld1rqh z5.h, p7/z, [a_ptr1]\n"
+ ".inst 0x64624118 // bfdot z24.s, z8.h, z2.h[0]\n"
+ "ld1rqh z6.h, p7/z, [a_ptr2]\n"
+ ".inst 0x6463411c // bfdot z28.s, z8.h, z3.h[0]\n"
+ "ld1rqh z7.h, p7/z, [a_ptr3]\n"
+ ".inst 0x64604131 // bfdot z17.s, z9.h, z0.h[0]\n"
+ "ld1h z8.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ ".inst 0x64614135 // bfdot z21.s, z9.h, z1.h[0]\n"
+ "subs %[loops], %[loops], #0x1\n"
+ ".inst 0x64624139 // bfdot z25.s, z9.h, z2.h[0]\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "zip1 z14.h, z15.h, z8.h\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ "zip2 z15.h, z15.h, z8.h\n"
+ "add %[a_ptr0], %[a_ptr0], #0x20\n"
+ ".inst 0x6463413d // bfdot z29.s, z9.h, z3.h[0]\n"
+ "ld1h z9.h, p4/z, [%[b_ptr0]]\n"
+ ".inst 0x64604152 // bfdot z18.s, z10.h, z0.h[0]\n"
+ "add a_ptr1, a_ptr1, #0x20\n"
+ ".inst 0x64614156 // bfdot z22.s, z10.h, z1.h[0]\n"
+ "add a_ptr2, a_ptr2, #0x20\n"
+ ".inst 0x6462415a // bfdot z26.s, z10.h, z2.h[0]\n"
+ "add a_ptr3, a_ptr3, #0x20\n"
+ ".inst 0x6463415e // bfdot z30.s, z10.h, z3.h[0]\n"
+ "ld1h z10.h, p4/z, [%[b_ptr1]]\n"
+ ".inst 0x64604173 // bfdot z19.s, z11.h, z0.h[0]\n"
+ ".inst 0x64614177 // bfdot z23.s, z11.h, z1.h[0]\n"
+ ".inst 0x6462417b // bfdot z27.s, z11.h, z2.h[0]\n"
+ "zip1 z8.h, z9.h, z10.h\n"
+ "zip2 z9.h, z9.h, z10.h\n"
+ ".inst 0x6463417f // bfdot z31.s, z11.h, z3.h[0]\n"
+ "ld1h z11.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x64684190 // bfdot z16.s, z12.h, z0.h[1]\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ ".inst 0x64694194 // bfdot z20.s, z12.h, z1.h[1]\n"
+ ".inst 0x646a4198 // bfdot z24.s, z12.h, z2.h[1]\n"
+ ".inst 0x646b419c // bfdot z28.s, z12.h, z3.h[1]\n"
+ "ld1h z12.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ ".inst 0x646841b1 // bfdot z17.s, z13.h, z0.h[1]\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ ".inst 0x646941b5 // bfdot z21.s, z13.h, z1.h[1]\n"
+ "zip1 z10.h, z11.h, z12.h\n"
+ "zip2 z11.h, z11.h, z12.h\n"
+ ".inst 0x646a41b9 // bfdot z25.s, z13.h, z2.h[1]\n"
+ ".inst 0x646b41bd // bfdot z29.s, z13.h, z3.h[1]\n"
+ "ld1h z13.h, p4/z, [%[b_ptr0]]\n"
+ ".inst 0x646841d2 // bfdot z18.s, z14.h, z0.h[1]\n"
+ ".inst 0x646941d6 // bfdot z22.s, z14.h, z1.h[1]\n"
+ ".inst 0x646a41da // bfdot z26.s, z14.h, z2.h[1]\n"
+ ".inst 0x646b41de // bfdot z30.s, z14.h, z3.h[1]\n"
+ "ld1h z14.h, p4/z, [%[b_ptr1]]\n"
+ ".inst 0x646841f3 // bfdot z19.s, z15.h, z0.h[1]\n"
+ ".inst 0x646941f7 // bfdot z23.s, z15.h, z1.h[1]\n"
+ ".inst 0x646a41fb // bfdot z27.s, z15.h, z2.h[1]\n"
+ "zip1 z12.h, z13.h, z14.h\n"
+ "zip2 z13.h, z13.h, z14.h\n"
+ ".inst 0x646b41ff // bfdot z31.s, z15.h, z3.h[1]\n"
+ "ld1h z15.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x64704110 // bfdot z16.s, z8.h, z0.h[2]\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ ".inst 0x64714114 // bfdot z20.s, z8.h, z1.h[2]\n"
+ ".inst 0x64724118 // bfdot z24.s, z8.h, z2.h[2]\n"
+ ".inst 0x6473411c // bfdot z28.s, z8.h, z3.h[2]\n"
+ "ld1h z8.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ ".inst 0x64704131 // bfdot z17.s, z9.h, z0.h[2]\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ ".inst 0x64714135 // bfdot z21.s, z9.h, z1.h[2]\n"
+ "zip1 z14.h, z15.h, z8.h\n"
+ "zip2 z15.h, z15.h, z8.h\n"
+ ".inst 0x64724139 // bfdot z25.s, z9.h, z2.h[2]\n"
+ ".inst 0x6473413d // bfdot z29.s, z9.h, z3.h[2]\n"
+ "ld1h z9.h, p4/z, [%[b_ptr0]]\n"
+ ".inst 0x64704152 // bfdot z18.s, z10.h, z0.h[2]\n"
+ ".inst 0x64714156 // bfdot z22.s, z10.h, z1.h[2]\n"
+ ".inst 0x6472415a // bfdot z26.s, z10.h, z2.h[2]\n"
+ ".inst 0x6473415e // bfdot z30.s, z10.h, z3.h[2]\n"
+ "ld1h z10.h, p4/z, [%[b_ptr1]]\n"
+ ".inst 0x64704173 // bfdot z19.s, z11.h, z0.h[2]\n"
+ ".inst 0x64714177 // bfdot z23.s, z11.h, z1.h[2]\n"
+ ".inst 0x6472417b // bfdot z27.s, z11.h, z2.h[2]\n"
+ "zip1 z8.h, z9.h, z10.h\n"
+ "zip2 z9.h, z9.h, z10.h\n"
+ ".inst 0x6473417f // bfdot z31.s, z11.h, z3.h[2]\n"
+ "ld1h z11.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x64784190 // bfdot z16.s, z12.h, z0.h[3]\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ ".inst 0x64794194 // bfdot z20.s, z12.h, z1.h[3]\n"
+ ".inst 0x647a4198 // bfdot z24.s, z12.h, z2.h[3]\n"
+ ".inst 0x647b419c // bfdot z28.s, z12.h, z3.h[3]\n"
+ "ld1h z12.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ ".inst 0x647841b1 // bfdot z17.s, z13.h, z0.h[3]\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ ".inst 0x647941b5 // bfdot z21.s, z13.h, z1.h[3]\n"
+ "zip1 z10.h, z11.h, z12.h\n"
+ "zip2 z11.h, z11.h, z12.h\n"
+ ".inst 0x647a41b9 // bfdot z25.s, z13.h, z2.h[3]\n"
+ ".inst 0x647b41bd // bfdot z29.s, z13.h, z3.h[3]\n"
+ "ld1h z13.h, p4/z, [%[b_ptr0]]\n"
+ ".inst 0x647841d2 // bfdot z18.s, z14.h, z0.h[3]\n"
+ ".inst 0x647941d6 // bfdot z22.s, z14.h, z1.h[3]\n"
+ ".inst 0x647a41da // bfdot z26.s, z14.h, z2.h[3]\n"
+ ".inst 0x647b41de // bfdot z30.s, z14.h, z3.h[3]\n"
+ "ld1h z14.h, p4/z, [%[b_ptr1]]\n"
+ ".inst 0x647841f3 // bfdot z19.s, z15.h, z0.h[3]\n"
+ "ld1rqh z0.h, p7/z, [%[a_ptr0], #-0x10]\n"
+ ".inst 0x647941f7 // bfdot z23.s, z15.h, z1.h[3]\n"
+ "ld1rqh z1.h, p7/z, [a_ptr1, #-0x10]\n"
+ ".inst 0x647a41fb // bfdot z27.s, z15.h, z2.h[3]\n"
+ "ld1rqh z2.h, p7/z, [a_ptr2, #-0x10]\n"
+ "zip1 z12.h, z13.h, z14.h\n"
+ "zip2 z13.h, z13.h, z14.h\n"
+ ".inst 0x647b41ff // bfdot z31.s, z15.h, z3.h[3]\n"
+ "ld1h z15.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x64644110 // bfdot z16.s, z8.h, z4.h[0]\n"
+ "ld1rqh z3.h, p7/z, [a_ptr3, #-0x10]\n"
+ ".inst 0x64654114 // bfdot z20.s, z8.h, z5.h[0]\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ ".inst 0x64664118 // bfdot z24.s, z8.h, z6.h[0]\n"
+ ".inst 0x6467411c // bfdot z28.s, z8.h, z7.h[0]\n"
+ "ld1h z8.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ ".inst 0x64644131 // bfdot z17.s, z9.h, z4.h[0]\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ ".inst 0x64654135 // bfdot z21.s, z9.h, z5.h[0]\n"
+ "zip1 z14.h, z15.h, z8.h\n"
+ "zip2 z15.h, z15.h, z8.h\n"
+ ".inst 0x64664139 // bfdot z25.s, z9.h, z6.h[0]\n"
+ ".inst 0x6467413d // bfdot z29.s, z9.h, z7.h[0]\n"
+ "ld1h z9.h, p4/z, [%[b_ptr0]]\n"
+ ".inst 0x64644152 // bfdot z18.s, z10.h, z4.h[0]\n"
+ ".inst 0x64654156 // bfdot z22.s, z10.h, z5.h[0]\n"
+ ".inst 0x6466415a // bfdot z26.s, z10.h, z6.h[0]\n"
+ ".inst 0x6467415e // bfdot z30.s, z10.h, z7.h[0]\n"
+ "ld1h z10.h, p4/z, [%[b_ptr1]]\n"
+ ".inst 0x64644173 // bfdot z19.s, z11.h, z4.h[0]\n"
+ ".inst 0x64654177 // bfdot z23.s, z11.h, z5.h[0]\n"
+ ".inst 0x6466417b // bfdot z27.s, z11.h, z6.h[0]\n"
+ "zip1 z8.h, z9.h, z10.h\n"
+ "zip2 z9.h, z9.h, z10.h\n"
+ ".inst 0x6467417f // bfdot z31.s, z11.h, z7.h[0]\n"
+ "ld1h z11.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x646c4190 // bfdot z16.s, z12.h, z4.h[1]\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ ".inst 0x646d4194 // bfdot z20.s, z12.h, z5.h[1]\n"
+ ".inst 0x646e4198 // bfdot z24.s, z12.h, z6.h[1]\n"
+ ".inst 0x646f419c // bfdot z28.s, z12.h, z7.h[1]\n"
+ "ld1h z12.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ ".inst 0x646c41b1 // bfdot z17.s, z13.h, z4.h[1]\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ ".inst 0x646d41b5 // bfdot z21.s, z13.h, z5.h[1]\n"
+ "zip1 z10.h, z11.h, z12.h\n"
+ "zip2 z11.h, z11.h, z12.h\n"
+ ".inst 0x646e41b9 // bfdot z25.s, z13.h, z6.h[1]\n"
+ ".inst 0x646f41bd // bfdot z29.s, z13.h, z7.h[1]\n"
+ "ld1h z13.h, p4/z, [%[b_ptr0]]\n"
+ ".inst 0x646c41d2 // bfdot z18.s, z14.h, z4.h[1]\n"
+ ".inst 0x646d41d6 // bfdot z22.s, z14.h, z5.h[1]\n"
+ ".inst 0x646e41da // bfdot z26.s, z14.h, z6.h[1]\n"
+ ".inst 0x646f41de // bfdot z30.s, z14.h, z7.h[1]\n"
+ "ld1h z14.h, p4/z, [%[b_ptr1]]\n"
+ ".inst 0x646c41f3 // bfdot z19.s, z15.h, z4.h[1]\n"
+ ".inst 0x646d41f7 // bfdot z23.s, z15.h, z5.h[1]\n"
+ ".inst 0x646e41fb // bfdot z27.s, z15.h, z6.h[1]\n"
+ "zip1 z12.h, z13.h, z14.h\n"
+ "zip2 z13.h, z13.h, z14.h\n"
+ ".inst 0x646f41ff // bfdot z31.s, z15.h, z7.h[1]\n"
+ "ld1h z15.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x64744110 // bfdot z16.s, z8.h, z4.h[2]\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ ".inst 0x64754114 // bfdot z20.s, z8.h, z5.h[2]\n"
+ ".inst 0x64764118 // bfdot z24.s, z8.h, z6.h[2]\n"
+ ".inst 0x6477411c // bfdot z28.s, z8.h, z7.h[2]\n"
+ "ld1h z8.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ ".inst 0x64744131 // bfdot z17.s, z9.h, z4.h[2]\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ ".inst 0x64754135 // bfdot z21.s, z9.h, z5.h[2]\n"
+ "zip1 z14.h, z15.h, z8.h\n"
+ "zip2 z15.h, z15.h, z8.h\n"
+ ".inst 0x64764139 // bfdot z25.s, z9.h, z6.h[2]\n"
+ ".inst 0x6477413d // bfdot z29.s, z9.h, z7.h[2]\n"
+ "ld1h z9.h, p4/z, [%[b_ptr0]]\n"
+ ".inst 0x64744152 // bfdot z18.s, z10.h, z4.h[2]\n"
+ ".inst 0x64754156 // bfdot z22.s, z10.h, z5.h[2]\n"
+ ".inst 0x6476415a // bfdot z26.s, z10.h, z6.h[2]\n"
+ ".inst 0x6477415e // bfdot z30.s, z10.h, z7.h[2]\n"
+ "ld1h z10.h, p4/z, [%[b_ptr1]]\n"
+ ".inst 0x64744173 // bfdot z19.s, z11.h, z4.h[2]\n"
+ ".inst 0x64754177 // bfdot z23.s, z11.h, z5.h[2]\n"
+ ".inst 0x6476417b // bfdot z27.s, z11.h, z6.h[2]\n"
+ "zip1 z8.h, z9.h, z10.h\n"
+ "zip2 z9.h, z9.h, z10.h\n"
+ ".inst 0x6477417f // bfdot z31.s, z11.h, z7.h[2]\n"
+ "ld1h z11.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x647c4190 // bfdot z16.s, z12.h, z4.h[3]\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ ".inst 0x647d4194 // bfdot z20.s, z12.h, z5.h[3]\n"
+ ".inst 0x647e4198 // bfdot z24.s, z12.h, z6.h[3]\n"
+ ".inst 0x647f419c // bfdot z28.s, z12.h, z7.h[3]\n"
+ "ld1h z12.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ ".inst 0x647c41b1 // bfdot z17.s, z13.h, z4.h[3]\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ ".inst 0x647d41b5 // bfdot z21.s, z13.h, z5.h[3]\n"
+ "zip1 z10.h, z11.h, z12.h\n"
+ "zip2 z11.h, z11.h, z12.h\n"
+ ".inst 0x647e41b9 // bfdot z25.s, z13.h, z6.h[3]\n"
+ ".inst 0x647f41bd // bfdot z29.s, z13.h, z7.h[3]\n"
+ "ld1h z13.h, p4/z, [%[b_ptr0]]\n"
+ ".inst 0x647c41d2 // bfdot z18.s, z14.h, z4.h[3]\n"
+ ".inst 0x647d41d6 // bfdot z22.s, z14.h, z5.h[3]\n"
+ ".inst 0x647e41da // bfdot z26.s, z14.h, z6.h[3]\n"
+ ".inst 0x647f41de // bfdot z30.s, z14.h, z7.h[3]\n"
+ "ld1h z14.h, p4/z, [%[b_ptr1]]\n"
+ ".inst 0x647c41f3 // bfdot z19.s, z15.h, z4.h[3]\n"
+ ".inst 0x647d41f7 // bfdot z23.s, z15.h, z5.h[3]\n"
+ ".inst 0x647e41fb // bfdot z27.s, z15.h, z6.h[3]\n"
+ "zip1 z12.h, z13.h, z14.h\n"
+ "zip2 z13.h, z13.h, z14.h\n"
+ ".inst 0x647f41ff // bfdot z31.s, z15.h, z7.h[3]\n"
+ "ld1h z15.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "b.ne 2b\n"
+ "1:\n"
+ "cbz %[regs], 3f\n"
+ ".inst 0x64604110 // bfdot z16.s, z8.h, z0.h[0]\n"
+ "ld1rqh z4.h, p7/z, [%[a_ptr0]]\n"
+ ".inst 0x64614114 // bfdot z20.s, z8.h, z1.h[0]\n"
+ "ld1rqh z5.h, p7/z, [a_ptr1]\n"
+ ".inst 0x64624118 // bfdot z24.s, z8.h, z2.h[0]\n"
+ "ld1rqh z6.h, p7/z, [a_ptr2]\n"
+ ".inst 0x6463411c // bfdot z28.s, z8.h, z3.h[0]\n"
+ "ld1rqh z7.h, p7/z, [a_ptr3]\n"
+ ".inst 0x64604131 // bfdot z17.s, z9.h, z0.h[0]\n"
+ "ld1h z8.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ ".inst 0x64614135 // bfdot z21.s, z9.h, z1.h[0]\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ ".inst 0x64624139 // bfdot z25.s, z9.h, z2.h[0]\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ "zip1 z14.h, z15.h, z8.h\n"
+ "zip2 z15.h, z15.h, z8.h\n"
+ ".inst 0x6463413d // bfdot z29.s, z9.h, z3.h[0]\n"
+ "ld1h z9.h, p4/z, [%[b_ptr0]]\n"
+ ".inst 0x64604152 // bfdot z18.s, z10.h, z0.h[0]\n"
+ ".inst 0x64614156 // bfdot z22.s, z10.h, z1.h[0]\n"
+ ".inst 0x6462415a // bfdot z26.s, z10.h, z2.h[0]\n"
+ ".inst 0x6463415e // bfdot z30.s, z10.h, z3.h[0]\n"
+ "ld1h z10.h, p4/z, [%[b_ptr1]]\n"
+ ".inst 0x64604173 // bfdot z19.s, z11.h, z0.h[0]\n"
+ ".inst 0x64614177 // bfdot z23.s, z11.h, z1.h[0]\n"
+ ".inst 0x6462417b // bfdot z27.s, z11.h, z2.h[0]\n"
+ "zip1 z8.h, z9.h, z10.h\n"
+ "zip2 z9.h, z9.h, z10.h\n"
+ ".inst 0x6463417f // bfdot z31.s, z11.h, z3.h[0]\n"
+ "ld1h z11.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x64684190 // bfdot z16.s, z12.h, z0.h[1]\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ ".inst 0x64694194 // bfdot z20.s, z12.h, z1.h[1]\n"
+ ".inst 0x646a4198 // bfdot z24.s, z12.h, z2.h[1]\n"
+ ".inst 0x646b419c // bfdot z28.s, z12.h, z3.h[1]\n"
+ "ld1h z12.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ ".inst 0x646841b1 // bfdot z17.s, z13.h, z0.h[1]\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ ".inst 0x646941b5 // bfdot z21.s, z13.h, z1.h[1]\n"
+ "zip1 z10.h, z11.h, z12.h\n"
+ "zip2 z11.h, z11.h, z12.h\n"
+ ".inst 0x646a41b9 // bfdot z25.s, z13.h, z2.h[1]\n"
+ ".inst 0x646b41bd // bfdot z29.s, z13.h, z3.h[1]\n"
+ "ld1h z13.h, p4/z, [%[b_ptr0]]\n"
+ ".inst 0x646841d2 // bfdot z18.s, z14.h, z0.h[1]\n"
+ ".inst 0x646941d6 // bfdot z22.s, z14.h, z1.h[1]\n"
+ ".inst 0x646a41da // bfdot z26.s, z14.h, z2.h[1]\n"
+ ".inst 0x646b41de // bfdot z30.s, z14.h, z3.h[1]\n"
+ "ld1h z14.h, p4/z, [%[b_ptr1]]\n"
+ ".inst 0x646841f3 // bfdot z19.s, z15.h, z0.h[1]\n"
+ ".inst 0x646941f7 // bfdot z23.s, z15.h, z1.h[1]\n"
+ ".inst 0x646a41fb // bfdot z27.s, z15.h, z2.h[1]\n"
+ "zip1 z12.h, z13.h, z14.h\n"
+ "zip2 z13.h, z13.h, z14.h\n"
+ ".inst 0x646b41ff // bfdot z31.s, z15.h, z3.h[1]\n"
+ "ld1h z15.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x64704110 // bfdot z16.s, z8.h, z0.h[2]\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ ".inst 0x64714114 // bfdot z20.s, z8.h, z1.h[2]\n"
+ ".inst 0x64724118 // bfdot z24.s, z8.h, z2.h[2]\n"
+ ".inst 0x6473411c // bfdot z28.s, z8.h, z3.h[2]\n"
+ "ld1h z8.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ ".inst 0x64704131 // bfdot z17.s, z9.h, z0.h[2]\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ ".inst 0x64714135 // bfdot z21.s, z9.h, z1.h[2]\n"
+ "zip1 z14.h, z15.h, z8.h\n"
+ "zip2 z15.h, z15.h, z8.h\n"
+ ".inst 0x64724139 // bfdot z25.s, z9.h, z2.h[2]\n"
+ ".inst 0x6473413d // bfdot z29.s, z9.h, z3.h[2]\n"
+ "ld1h z9.h, p4/z, [%[b_ptr0]]\n"
+ ".inst 0x64704152 // bfdot z18.s, z10.h, z0.h[2]\n"
+ ".inst 0x64714156 // bfdot z22.s, z10.h, z1.h[2]\n"
+ ".inst 0x6472415a // bfdot z26.s, z10.h, z2.h[2]\n"
+ ".inst 0x6473415e // bfdot z30.s, z10.h, z3.h[2]\n"
+ "ld1h z10.h, p4/z, [%[b_ptr1]]\n"
+ ".inst 0x64704173 // bfdot z19.s, z11.h, z0.h[2]\n"
+ ".inst 0x64714177 // bfdot z23.s, z11.h, z1.h[2]\n"
+ ".inst 0x6472417b // bfdot z27.s, z11.h, z2.h[2]\n"
+ "zip1 z8.h, z9.h, z10.h\n"
+ "zip2 z9.h, z9.h, z10.h\n"
+ ".inst 0x6473417f // bfdot z31.s, z11.h, z3.h[2]\n"
+ "ld1h z11.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x64784190 // bfdot z16.s, z12.h, z0.h[3]\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ ".inst 0x64794194 // bfdot z20.s, z12.h, z1.h[3]\n"
+ ".inst 0x647a4198 // bfdot z24.s, z12.h, z2.h[3]\n"
+ ".inst 0x647b419c // bfdot z28.s, z12.h, z3.h[3]\n"
+ "ld1h z12.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ ".inst 0x647841b1 // bfdot z17.s, z13.h, z0.h[3]\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ ".inst 0x647941b5 // bfdot z21.s, z13.h, z1.h[3]\n"
+ "zip1 z10.h, z11.h, z12.h\n"
+ "zip2 z11.h, z11.h, z12.h\n"
+ ".inst 0x647a41b9 // bfdot z25.s, z13.h, z2.h[3]\n"
+ ".inst 0x647b41bd // bfdot z29.s, z13.h, z3.h[3]\n"
+ "ld1h z13.h, p4/z, [%[b_ptr0]]\n"
+ ".inst 0x647841d2 // bfdot z18.s, z14.h, z0.h[3]\n"
+ ".inst 0x647941d6 // bfdot z22.s, z14.h, z1.h[3]\n"
+ ".inst 0x647a41da // bfdot z26.s, z14.h, z2.h[3]\n"
+ ".inst 0x647b41de // bfdot z30.s, z14.h, z3.h[3]\n"
+ "ld1h z14.h, p4/z, [%[b_ptr1]]\n"
+ ".inst 0x647841f3 // bfdot z19.s, z15.h, z0.h[3]\n"
+ "ld1rqh z0.h, p6/z, [%[a_ptr0], #0x10]\n"
+ ".inst 0x647941f7 // bfdot z23.s, z15.h, z1.h[3]\n"
+ "ld1rqh z1.h, p6/z, [a_ptr1, #0x10]\n"
+ ".inst 0x647a41fb // bfdot z27.s, z15.h, z2.h[3]\n"
+ "ld1rqh z2.h, p6/z, [a_ptr2, #0x10]\n"
+ "zip1 z12.h, z13.h, z14.h\n"
+ "addvl %[a_ptr0], %[a_ptr0], #2\n"
+ "zip2 z13.h, z13.h, z14.h\n"
+ "addvl a_ptr1, a_ptr1, #2\n"
+ ".inst 0x647b41ff // bfdot z31.s, z15.h, z3.h[3]\n"
+ "ld1h z15.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x64644110 // bfdot z16.s, z8.h, z4.h[0]\n"
+ "ld1rqh z3.h, p6/z, [a_ptr3, #0x10]\n"
+ ".inst 0x64654114 // bfdot z20.s, z8.h, z5.h[0]\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ ".inst 0x64664118 // bfdot z24.s, z8.h, z6.h[0]\n"
+ "addvl a_ptr2, a_ptr2, #2\n"
+ ".inst 0x6467411c // bfdot z28.s, z8.h, z7.h[0]\n"
+ "ld1h z8.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ ".inst 0x64644131 // bfdot z17.s, z9.h, z4.h[0]\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ ".inst 0x64654135 // bfdot z21.s, z9.h, z5.h[0]\n"
+ "addvl a_ptr3, a_ptr3, #2\n"
+ "zip1 z14.h, z15.h, z8.h\n"
+ "zip2 z15.h, z15.h, z8.h\n"
+ ".inst 0x64664139 // bfdot z25.s, z9.h, z6.h[0]\n"
+ ".inst 0x6467413d // bfdot z29.s, z9.h, z7.h[0]\n"
+ "ld1h z9.h, p4/z, [%[b_ptr0]]\n"
+ ".inst 0x64644152 // bfdot z18.s, z10.h, z4.h[0]\n"
+ ".inst 0x64654156 // bfdot z22.s, z10.h, z5.h[0]\n"
+ ".inst 0x6466415a // bfdot z26.s, z10.h, z6.h[0]\n"
+ ".inst 0x6467415e // bfdot z30.s, z10.h, z7.h[0]\n"
+ "ld1h z10.h, p4/z, [%[b_ptr1]]\n"
+ ".inst 0x64644173 // bfdot z19.s, z11.h, z4.h[0]\n"
+ ".inst 0x64654177 // bfdot z23.s, z11.h, z5.h[0]\n"
+ ".inst 0x6466417b // bfdot z27.s, z11.h, z6.h[0]\n"
+ "zip1 z8.h, z9.h, z10.h\n"
+ "zip2 z9.h, z9.h, z10.h\n"
+ ".inst 0x6467417f // bfdot z31.s, z11.h, z7.h[0]\n"
+ "ld1h z11.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x646c4190 // bfdot z16.s, z12.h, z4.h[1]\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ ".inst 0x646d4194 // bfdot z20.s, z12.h, z5.h[1]\n"
+ ".inst 0x646e4198 // bfdot z24.s, z12.h, z6.h[1]\n"
+ ".inst 0x646f419c // bfdot z28.s, z12.h, z7.h[1]\n"
+ "ld1h z12.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ ".inst 0x646c41b1 // bfdot z17.s, z13.h, z4.h[1]\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ ".inst 0x646d41b5 // bfdot z21.s, z13.h, z5.h[1]\n"
+ "zip1 z10.h, z11.h, z12.h\n"
+ "zip2 z11.h, z11.h, z12.h\n"
+ ".inst 0x646e41b9 // bfdot z25.s, z13.h, z6.h[1]\n"
+ ".inst 0x646f41bd // bfdot z29.s, z13.h, z7.h[1]\n"
+ "ld1h z13.h, p4/z, [%[b_ptr0]]\n"
+ ".inst 0x646c41d2 // bfdot z18.s, z14.h, z4.h[1]\n"
+ ".inst 0x646d41d6 // bfdot z22.s, z14.h, z5.h[1]\n"
+ ".inst 0x646e41da // bfdot z26.s, z14.h, z6.h[1]\n"
+ ".inst 0x646f41de // bfdot z30.s, z14.h, z7.h[1]\n"
+ "ld1h z14.h, p4/z, [%[b_ptr1]]\n"
+ ".inst 0x646c41f3 // bfdot z19.s, z15.h, z4.h[1]\n"
+ ".inst 0x646d41f7 // bfdot z23.s, z15.h, z5.h[1]\n"
+ ".inst 0x646e41fb // bfdot z27.s, z15.h, z6.h[1]\n"
+ "zip1 z12.h, z13.h, z14.h\n"
+ "zip2 z13.h, z13.h, z14.h\n"
+ ".inst 0x646f41ff // bfdot z31.s, z15.h, z7.h[1]\n"
+ "ld1h z15.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x64744110 // bfdot z16.s, z8.h, z4.h[2]\n"
+ ".inst 0x64754114 // bfdot z20.s, z8.h, z5.h[2]\n"
+ ".inst 0x64764118 // bfdot z24.s, z8.h, z6.h[2]\n"
+ ".inst 0x6477411c // bfdot z28.s, z8.h, z7.h[2]\n"
+ "ld1h z8.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ ".inst 0x64744131 // bfdot z17.s, z9.h, z4.h[2]\n"
+ ".inst 0x64754135 // bfdot z21.s, z9.h, z5.h[2]\n"
+ ".inst 0x64764139 // bfdot z25.s, z9.h, z6.h[2]\n"
+ "zip1 z14.h, z15.h, z8.h\n"
+ "zip2 z15.h, z15.h, z8.h\n"
+ ".inst 0x6477413d // bfdot z29.s, z9.h, z7.h[2]\n"
+ ".inst 0x64744152 // bfdot z18.s, z10.h, z4.h[2]\n"
+ ".inst 0x64754156 // bfdot z22.s, z10.h, z5.h[2]\n"
+ ".inst 0x6476415a // bfdot z26.s, z10.h, z6.h[2]\n"
+ ".inst 0x6477415e // bfdot z30.s, z10.h, z7.h[2]\n"
+ ".inst 0x64744173 // bfdot z19.s, z11.h, z4.h[2]\n"
+ ".inst 0x64754177 // bfdot z23.s, z11.h, z5.h[2]\n"
+ ".inst 0x6476417b // bfdot z27.s, z11.h, z6.h[2]\n"
+ ".inst 0x6477417f // bfdot z31.s, z11.h, z7.h[2]\n"
+ ".inst 0x647c4190 // bfdot z16.s, z12.h, z4.h[3]\n"
+ ".inst 0x647d4194 // bfdot z20.s, z12.h, z5.h[3]\n"
+ ".inst 0x647e4198 // bfdot z24.s, z12.h, z6.h[3]\n"
+ ".inst 0x647f419c // bfdot z28.s, z12.h, z7.h[3]\n"
+ ".inst 0x647c41b1 // bfdot z17.s, z13.h, z4.h[3]\n"
+ ".inst 0x647d41b5 // bfdot z21.s, z13.h, z5.h[3]\n"
+ ".inst 0x647e41b9 // bfdot z25.s, z13.h, z6.h[3]\n"
+ ".inst 0x647f41bd // bfdot z29.s, z13.h, z7.h[3]\n"
+ ".inst 0x647c41d2 // bfdot z18.s, z14.h, z4.h[3]\n"
+ ".inst 0x647d41d6 // bfdot z22.s, z14.h, z5.h[3]\n"
+ ".inst 0x647e41da // bfdot z26.s, z14.h, z6.h[3]\n"
+ ".inst 0x647f41de // bfdot z30.s, z14.h, z7.h[3]\n"
+ ".inst 0x647c41f3 // bfdot z19.s, z15.h, z4.h[3]\n"
+ ".inst 0x647d41f7 // bfdot z23.s, z15.h, z5.h[3]\n"
+ ".inst 0x647e41fb // bfdot z27.s, z15.h, z6.h[3]\n"
+ ".inst 0x647f41ff // bfdot z31.s, z15.h, z7.h[3]\n"
+ "cbz %[blocks], 4f\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ "ld1h z9.h, p4/z, [%[b_ptr0]]\n"
+ "subs %[blocks], %[blocks], #0x1\n"
+ "ld1h z10.h, p4/z, [%[b_ptr1]]\n"
+ "ld1h z11.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1h z12.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ "zip1 z8.h, z9.h, z10.h\n"
+ "zip2 z9.h, z9.h, z10.h\n"
+ "zip1 z10.h, z11.h, z12.h\n"
+ "zip2 z11.h, z11.h, z12.h\n"
+ ".inst 0x64604110 // bfdot z16.s, z8.h, z0.h[0]\n"
+ ".inst 0x64614114 // bfdot z20.s, z8.h, z1.h[0]\n"
+ ".inst 0x64624118 // bfdot z24.s, z8.h, z2.h[0]\n"
+ ".inst 0x6463411c // bfdot z28.s, z8.h, z3.h[0]\n"
+ ".inst 0x64604131 // bfdot z17.s, z9.h, z0.h[0]\n"
+ ".inst 0x64614135 // bfdot z21.s, z9.h, z1.h[0]\n"
+ ".inst 0x64624139 // bfdot z25.s, z9.h, z2.h[0]\n"
+ ".inst 0x6463413d // bfdot z29.s, z9.h, z3.h[0]\n"
+ ".inst 0x64604152 // bfdot z18.s, z10.h, z0.h[0]\n"
+ ".inst 0x64614156 // bfdot z22.s, z10.h, z1.h[0]\n"
+ ".inst 0x6462415a // bfdot z26.s, z10.h, z2.h[0]\n"
+ ".inst 0x6463415e // bfdot z30.s, z10.h, z3.h[0]\n"
+ ".inst 0x64604173 // bfdot z19.s, z11.h, z0.h[0]\n"
+ ".inst 0x64614177 // bfdot z23.s, z11.h, z1.h[0]\n"
+ ".inst 0x6462417b // bfdot z27.s, z11.h, z2.h[0]\n"
+ ".inst 0x6463417f // bfdot z31.s, z11.h, z3.h[0]\n"
+ "b.eq 5f\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ "ld1h z13.h, p4/z, [%[b_ptr0]]\n"
+ "subs %[blocks], %[blocks], #0x1\n"
+ "ld1h z14.h, p4/z, [%[b_ptr1]]\n"
+ "ld1h z15.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1h z8.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ "zip1 z12.h, z13.h, z14.h\n"
+ "zip2 z13.h, z13.h, z14.h\n"
+ "zip1 z14.h, z15.h, z8.h\n"
+ "zip2 z15.h, z15.h, z8.h\n"
+ ".inst 0x64684190 // bfdot z16.s, z12.h, z0.h[1]\n"
+ ".inst 0x64694194 // bfdot z20.s, z12.h, z1.h[1]\n"
+ ".inst 0x646a4198 // bfdot z24.s, z12.h, z2.h[1]\n"
+ ".inst 0x646b419c // bfdot z28.s, z12.h, z3.h[1]\n"
+ ".inst 0x646841b1 // bfdot z17.s, z13.h, z0.h[1]\n"
+ ".inst 0x646941b5 // bfdot z21.s, z13.h, z1.h[1]\n"
+ ".inst 0x646a41b9 // bfdot z25.s, z13.h, z2.h[1]\n"
+ ".inst 0x646b41bd // bfdot z29.s, z13.h, z3.h[1]\n"
+ ".inst 0x646841d2 // bfdot z18.s, z14.h, z0.h[1]\n"
+ ".inst 0x646941d6 // bfdot z22.s, z14.h, z1.h[1]\n"
+ ".inst 0x646a41da // bfdot z26.s, z14.h, z2.h[1]\n"
+ ".inst 0x646b41de // bfdot z30.s, z14.h, z3.h[1]\n"
+ ".inst 0x646841f3 // bfdot z19.s, z15.h, z0.h[1]\n"
+ ".inst 0x646941f7 // bfdot z23.s, z15.h, z1.h[1]\n"
+ ".inst 0x646a41fb // bfdot z27.s, z15.h, z2.h[1]\n"
+ ".inst 0x646b41ff // bfdot z31.s, z15.h, z3.h[1]\n"
+ "b.eq 6f\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ "ld1h z9.h, p4/z, [%[b_ptr0]]\n"
+ "ld1h z10.h, p4/z, [%[b_ptr1]]\n"
+ "ld1h z11.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1h z12.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ "zip1 z8.h, z9.h, z10.h\n"
+ "zip2 z9.h, z9.h, z10.h\n"
+ "zip1 z10.h, z11.h, z12.h\n"
+ "zip2 z11.h, z11.h, z12.h\n"
+ ".inst 0x64704110 // bfdot z16.s, z8.h, z0.h[2]\n"
+ ".inst 0x64714114 // bfdot z20.s, z8.h, z1.h[2]\n"
+ ".inst 0x64724118 // bfdot z24.s, z8.h, z2.h[2]\n"
+ ".inst 0x6473411c // bfdot z28.s, z8.h, z3.h[2]\n"
+ ".inst 0x64704131 // bfdot z17.s, z9.h, z0.h[2]\n"
+ ".inst 0x64714135 // bfdot z21.s, z9.h, z1.h[2]\n"
+ ".inst 0x64724139 // bfdot z25.s, z9.h, z2.h[2]\n"
+ ".inst 0x6473413d // bfdot z29.s, z9.h, z3.h[2]\n"
+ ".inst 0x64704152 // bfdot z18.s, z10.h, z0.h[2]\n"
+ ".inst 0x64714156 // bfdot z22.s, z10.h, z1.h[2]\n"
+ ".inst 0x6472415a // bfdot z26.s, z10.h, z2.h[2]\n"
+ ".inst 0x6473415e // bfdot z30.s, z10.h, z3.h[2]\n"
+ ".inst 0x64704173 // bfdot z19.s, z11.h, z0.h[2]\n"
+ ".inst 0x64714177 // bfdot z23.s, z11.h, z1.h[2]\n"
+ ".inst 0x6472417b // bfdot z27.s, z11.h, z2.h[2]\n"
+ ".inst 0x6473417f // bfdot z31.s, z11.h, z3.h[2]\n"
+ "cbz %[odds], 7f\n"
+ "mov z14.h, #0\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "mov z8.h, #0\n"
+ "ld1h z13.h, p4/z, [%[b_ptr0]]\n"
+ "ld1h z15.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "zip1 z12.h, z13.h, z14.h\n"
+ "zip2 z13.h, z13.h, z14.h\n"
+ "zip1 z14.h, z15.h, z8.h\n"
+ "zip2 z15.h, z15.h, z8.h\n"
+ "8:\n"
+ ".inst 0x64784190 // bfdot z16.s, z12.h, z0.h[3]\n"
+ ".inst 0x64794194 // bfdot z20.s, z12.h, z1.h[3]\n"
+ ".inst 0x647a4198 // bfdot z24.s, z12.h, z2.h[3]\n"
+ ".inst 0x647b419c // bfdot z28.s, z12.h, z3.h[3]\n"
+ ".inst 0x647841b1 // bfdot z17.s, z13.h, z0.h[3]\n"
+ ".inst 0x647941b5 // bfdot z21.s, z13.h, z1.h[3]\n"
+ ".inst 0x647a41b9 // bfdot z25.s, z13.h, z2.h[3]\n"
+ ".inst 0x647b41bd // bfdot z29.s, z13.h, z3.h[3]\n"
+ ".inst 0x647841d2 // bfdot z18.s, z14.h, z0.h[3]\n"
+ ".inst 0x647941d6 // bfdot z22.s, z14.h, z1.h[3]\n"
+ ".inst 0x647a41da // bfdot z26.s, z14.h, z2.h[3]\n"
+ ".inst 0x647b41de // bfdot z30.s, z14.h, z3.h[3]\n"
+ ".inst 0x647841f3 // bfdot z19.s, z15.h, z0.h[3]\n"
+ ".inst 0x647941f7 // bfdot z23.s, z15.h, z1.h[3]\n"
+ ".inst 0x647a41fb // bfdot z27.s, z15.h, z2.h[3]\n"
+ ".inst 0x647b41ff // bfdot z31.s, z15.h, z3.h[3]\n"
+ "b 7f\n"
+ "6:\n"
+ "cbz %[odds], 7f\n"
+ "mov z10.h, #0\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "mov z12.h, #0\n"
+ "ld1h z9.h, p4/z, [%[b_ptr0]]\n"
+ "ld1h z11.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "zip1 z8.h, z9.h, z10.h\n"
+ "zip2 z9.h, z9.h, z10.h\n"
+ "zip1 z10.h, z11.h, z12.h\n"
+ "zip2 z11.h, z11.h, z12.h\n"
+ "9:\n"
+ ".inst 0x64704110 // bfdot z16.s, z8.h, z0.h[2]\n"
+ ".inst 0x64714114 // bfdot z20.s, z8.h, z1.h[2]\n"
+ ".inst 0x64724118 // bfdot z24.s, z8.h, z2.h[2]\n"
+ ".inst 0x6473411c // bfdot z28.s, z8.h, z3.h[2]\n"
+ ".inst 0x64704131 // bfdot z17.s, z9.h, z0.h[2]\n"
+ ".inst 0x64714135 // bfdot z21.s, z9.h, z1.h[2]\n"
+ ".inst 0x64724139 // bfdot z25.s, z9.h, z2.h[2]\n"
+ ".inst 0x6473413d // bfdot z29.s, z9.h, z3.h[2]\n"
+ ".inst 0x64704152 // bfdot z18.s, z10.h, z0.h[2]\n"
+ ".inst 0x64714156 // bfdot z22.s, z10.h, z1.h[2]\n"
+ ".inst 0x6472415a // bfdot z26.s, z10.h, z2.h[2]\n"
+ ".inst 0x6473415e // bfdot z30.s, z10.h, z3.h[2]\n"
+ ".inst 0x64704173 // bfdot z19.s, z11.h, z0.h[2]\n"
+ ".inst 0x64714177 // bfdot z23.s, z11.h, z1.h[2]\n"
+ ".inst 0x6472417b // bfdot z27.s, z11.h, z2.h[2]\n"
+ ".inst 0x6473417f // bfdot z31.s, z11.h, z3.h[2]\n"
+ "b 7f\n"
+ "5:\n"
+ "cbz %[odds], 7f\n"
+ "mov z14.h, #0\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "mov z8.h, #0\n"
+ "ld1h z13.h, p4/z, [%[b_ptr0]]\n"
+ "ld1h z15.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "zip1 z12.h, z13.h, z14.h\n"
+ "zip2 z13.h, z13.h, z14.h\n"
+ "zip1 z14.h, z15.h, z8.h\n"
+ "zip2 z15.h, z15.h, z8.h\n"
+ "10:\n"
+ ".inst 0x64684190 // bfdot z16.s, z12.h, z0.h[1]\n"
+ ".inst 0x64694194 // bfdot z20.s, z12.h, z1.h[1]\n"
+ ".inst 0x646a4198 // bfdot z24.s, z12.h, z2.h[1]\n"
+ ".inst 0x646b419c // bfdot z28.s, z12.h, z3.h[1]\n"
+ ".inst 0x646841b1 // bfdot z17.s, z13.h, z0.h[1]\n"
+ ".inst 0x646941b5 // bfdot z21.s, z13.h, z1.h[1]\n"
+ ".inst 0x646a41b9 // bfdot z25.s, z13.h, z2.h[1]\n"
+ ".inst 0x646b41bd // bfdot z29.s, z13.h, z3.h[1]\n"
+ ".inst 0x646841d2 // bfdot z18.s, z14.h, z0.h[1]\n"
+ ".inst 0x646941d6 // bfdot z22.s, z14.h, z1.h[1]\n"
+ ".inst 0x646a41da // bfdot z26.s, z14.h, z2.h[1]\n"
+ ".inst 0x646b41de // bfdot z30.s, z14.h, z3.h[1]\n"
+ ".inst 0x646841f3 // bfdot z19.s, z15.h, z0.h[1]\n"
+ ".inst 0x646941f7 // bfdot z23.s, z15.h, z1.h[1]\n"
+ ".inst 0x646a41fb // bfdot z27.s, z15.h, z2.h[1]\n"
+ ".inst 0x646b41ff // bfdot z31.s, z15.h, z3.h[1]\n"
+ "b 7f\n"
+ "4:\n"
+ "cbz %[odds], 7f\n"
+ "mov z10.h, #0\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "mov z12.h, #0\n"
+ "ld1h z9.h, p4/z, [%[b_ptr0]]\n"
+ "ld1h z11.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "zip1 z8.h, z9.h, z10.h\n"
+ "zip2 z9.h, z9.h, z10.h\n"
+ "zip1 z10.h, z11.h, z12.h\n"
+ "zip2 z11.h, z11.h, z12.h\n"
+ "11:\n"
+ ".inst 0x64604110 // bfdot z16.s, z8.h, z0.h[0]\n"
+ ".inst 0x64614114 // bfdot z20.s, z8.h, z1.h[0]\n"
+ ".inst 0x64624118 // bfdot z24.s, z8.h, z2.h[0]\n"
+ ".inst 0x6463411c // bfdot z28.s, z8.h, z3.h[0]\n"
+ ".inst 0x64604131 // bfdot z17.s, z9.h, z0.h[0]\n"
+ ".inst 0x64614135 // bfdot z21.s, z9.h, z1.h[0]\n"
+ ".inst 0x64624139 // bfdot z25.s, z9.h, z2.h[0]\n"
+ ".inst 0x6463413d // bfdot z29.s, z9.h, z3.h[0]\n"
+ ".inst 0x64604152 // bfdot z18.s, z10.h, z0.h[0]\n"
+ ".inst 0x64614156 // bfdot z22.s, z10.h, z1.h[0]\n"
+ ".inst 0x6462415a // bfdot z26.s, z10.h, z2.h[0]\n"
+ ".inst 0x6463415e // bfdot z30.s, z10.h, z3.h[0]\n"
+ ".inst 0x64604173 // bfdot z19.s, z11.h, z0.h[0]\n"
+ ".inst 0x64614177 // bfdot z23.s, z11.h, z1.h[0]\n"
+ ".inst 0x6462417b // bfdot z27.s, z11.h, z2.h[0]\n"
+ ".inst 0x6463417f // bfdot z31.s, z11.h, z3.h[0]\n"
+ "b 7f\n"
+ "3:\n"
+ ".inst 0x64604110 // bfdot z16.s, z8.h, z0.h[0]\n"
+ "ld1rqh z4.h, p6/z, [%[a_ptr0]]\n"
+ ".inst 0x64614114 // bfdot z20.s, z8.h, z1.h[0]\n"
+ "ld1rqh z5.h, p6/z, [a_ptr1]\n"
+ ".inst 0x64624118 // bfdot z24.s, z8.h, z2.h[0]\n"
+ "ld1rqh z6.h, p6/z, [a_ptr2]\n"
+ ".inst 0x6463411c // bfdot z28.s, z8.h, z3.h[0]\n"
+ "ld1h z8.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ ".inst 0x64604131 // bfdot z17.s, z9.h, z0.h[0]\n"
+ "ld1rqh z7.h, p6/z, [a_ptr3]\n"
+ ".inst 0x64614135 // bfdot z21.s, z9.h, z1.h[0]\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "zip1 z14.h, z15.h, z8.h\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ "zip2 z15.h, z15.h, z8.h\n"
+ "addvl %[a_ptr0], %[a_ptr0], #1\n"
+ ".inst 0x64624139 // bfdot z25.s, z9.h, z2.h[0]\n"
+ "addvl a_ptr1, a_ptr1, #1\n"
+ ".inst 0x6463413d // bfdot z29.s, z9.h, z3.h[0]\n"
+ "ld1h z9.h, p4/z, [%[b_ptr0]]\n"
+ ".inst 0x64604152 // bfdot z18.s, z10.h, z0.h[0]\n"
+ "addvl a_ptr2, a_ptr2, #1\n"
+ ".inst 0x64614156 // bfdot z22.s, z10.h, z1.h[0]\n"
+ "addvl a_ptr3, a_ptr3, #1\n"
+ ".inst 0x6462415a // bfdot z26.s, z10.h, z2.h[0]\n"
+ ".inst 0x6463415e // bfdot z30.s, z10.h, z3.h[0]\n"
+ "ld1h z10.h, p4/z, [%[b_ptr1]]\n"
+ ".inst 0x64604173 // bfdot z19.s, z11.h, z0.h[0]\n"
+ ".inst 0x64614177 // bfdot z23.s, z11.h, z1.h[0]\n"
+ ".inst 0x6462417b // bfdot z27.s, z11.h, z2.h[0]\n"
+ "zip1 z8.h, z9.h, z10.h\n"
+ "zip2 z9.h, z9.h, z10.h\n"
+ ".inst 0x6463417f // bfdot z31.s, z11.h, z3.h[0]\n"
+ "ld1h z11.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x64684190 // bfdot z16.s, z12.h, z0.h[1]\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ ".inst 0x64694194 // bfdot z20.s, z12.h, z1.h[1]\n"
+ ".inst 0x646a4198 // bfdot z24.s, z12.h, z2.h[1]\n"
+ ".inst 0x646b419c // bfdot z28.s, z12.h, z3.h[1]\n"
+ "ld1h z12.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ ".inst 0x646841b1 // bfdot z17.s, z13.h, z0.h[1]\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ ".inst 0x646941b5 // bfdot z21.s, z13.h, z1.h[1]\n"
+ "zip1 z10.h, z11.h, z12.h\n"
+ "zip2 z11.h, z11.h, z12.h\n"
+ ".inst 0x646a41b9 // bfdot z25.s, z13.h, z2.h[1]\n"
+ ".inst 0x646b41bd // bfdot z29.s, z13.h, z3.h[1]\n"
+ "ld1h z13.h, p4/z, [%[b_ptr0]]\n"
+ ".inst 0x646841d2 // bfdot z18.s, z14.h, z0.h[1]\n"
+ ".inst 0x646941d6 // bfdot z22.s, z14.h, z1.h[1]\n"
+ ".inst 0x646a41da // bfdot z26.s, z14.h, z2.h[1]\n"
+ ".inst 0x646b41de // bfdot z30.s, z14.h, z3.h[1]\n"
+ "ld1h z14.h, p4/z, [%[b_ptr1]]\n"
+ ".inst 0x646841f3 // bfdot z19.s, z15.h, z0.h[1]\n"
+ ".inst 0x646941f7 // bfdot z23.s, z15.h, z1.h[1]\n"
+ ".inst 0x646a41fb // bfdot z27.s, z15.h, z2.h[1]\n"
+ "zip1 z12.h, z13.h, z14.h\n"
+ "zip2 z13.h, z13.h, z14.h\n"
+ ".inst 0x646b41ff // bfdot z31.s, z15.h, z3.h[1]\n"
+ "ld1h z15.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ ".inst 0x64704110 // bfdot z16.s, z8.h, z0.h[2]\n"
+ ".inst 0x64714114 // bfdot z20.s, z8.h, z1.h[2]\n"
+ ".inst 0x64724118 // bfdot z24.s, z8.h, z2.h[2]\n"
+ ".inst 0x6473411c // bfdot z28.s, z8.h, z3.h[2]\n"
+ "ld1h z8.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ ".inst 0x64704131 // bfdot z17.s, z9.h, z0.h[2]\n"
+ ".inst 0x64714135 // bfdot z21.s, z9.h, z1.h[2]\n"
+ ".inst 0x64724139 // bfdot z25.s, z9.h, z2.h[2]\n"
+ "zip1 z14.h, z15.h, z8.h\n"
+ "zip2 z15.h, z15.h, z8.h\n"
+ ".inst 0x6473413d // bfdot z29.s, z9.h, z3.h[2]\n"
+ ".inst 0x64704152 // bfdot z18.s, z10.h, z0.h[2]\n"
+ ".inst 0x64714156 // bfdot z22.s, z10.h, z1.h[2]\n"
+ ".inst 0x6472415a // bfdot z26.s, z10.h, z2.h[2]\n"
+ ".inst 0x6473415e // bfdot z30.s, z10.h, z3.h[2]\n"
+ ".inst 0x64704173 // bfdot z19.s, z11.h, z0.h[2]\n"
+ ".inst 0x64714177 // bfdot z23.s, z11.h, z1.h[2]\n"
+ ".inst 0x6472417b // bfdot z27.s, z11.h, z2.h[2]\n"
+ ".inst 0x6473417f // bfdot z31.s, z11.h, z3.h[2]\n"
+ ".inst 0x64784190 // bfdot z16.s, z12.h, z0.h[3]\n"
+ ".inst 0x64794194 // bfdot z20.s, z12.h, z1.h[3]\n"
+ ".inst 0x647a4198 // bfdot z24.s, z12.h, z2.h[3]\n"
+ ".inst 0x647b419c // bfdot z28.s, z12.h, z3.h[3]\n"
+ ".inst 0x647841b1 // bfdot z17.s, z13.h, z0.h[3]\n"
+ ".inst 0x647941b5 // bfdot z21.s, z13.h, z1.h[3]\n"
+ ".inst 0x647a41b9 // bfdot z25.s, z13.h, z2.h[3]\n"
+ ".inst 0x647b41bd // bfdot z29.s, z13.h, z3.h[3]\n"
+ ".inst 0x647841d2 // bfdot z18.s, z14.h, z0.h[3]\n"
+ ".inst 0x647941d6 // bfdot z22.s, z14.h, z1.h[3]\n"
+ ".inst 0x647a41da // bfdot z26.s, z14.h, z2.h[3]\n"
+ ".inst 0x647b41de // bfdot z30.s, z14.h, z3.h[3]\n"
+ ".inst 0x647841f3 // bfdot z19.s, z15.h, z0.h[3]\n"
+ ".inst 0x647941f7 // bfdot z23.s, z15.h, z1.h[3]\n"
+ ".inst 0x647a41fb // bfdot z27.s, z15.h, z2.h[3]\n"
+ ".inst 0x647b41ff // bfdot z31.s, z15.h, z3.h[3]\n"
+ "cbz %[blocks], 12f\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ "ld1h z9.h, p4/z, [%[b_ptr0]]\n"
+ "subs %[blocks], %[blocks], #0x1\n"
+ "ld1h z10.h, p4/z, [%[b_ptr1]]\n"
+ "ld1h z11.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1h z12.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ "zip1 z8.h, z9.h, z10.h\n"
+ "zip2 z9.h, z9.h, z10.h\n"
+ "zip1 z10.h, z11.h, z12.h\n"
+ "zip2 z11.h, z11.h, z12.h\n"
+ ".inst 0x64644110 // bfdot z16.s, z8.h, z4.h[0]\n"
+ ".inst 0x64654114 // bfdot z20.s, z8.h, z5.h[0]\n"
+ ".inst 0x64664118 // bfdot z24.s, z8.h, z6.h[0]\n"
+ ".inst 0x6467411c // bfdot z28.s, z8.h, z7.h[0]\n"
+ ".inst 0x64644131 // bfdot z17.s, z9.h, z4.h[0]\n"
+ ".inst 0x64654135 // bfdot z21.s, z9.h, z5.h[0]\n"
+ ".inst 0x64664139 // bfdot z25.s, z9.h, z6.h[0]\n"
+ ".inst 0x6467413d // bfdot z29.s, z9.h, z7.h[0]\n"
+ ".inst 0x64644152 // bfdot z18.s, z10.h, z4.h[0]\n"
+ ".inst 0x64654156 // bfdot z22.s, z10.h, z5.h[0]\n"
+ ".inst 0x6466415a // bfdot z26.s, z10.h, z6.h[0]\n"
+ ".inst 0x6467415e // bfdot z30.s, z10.h, z7.h[0]\n"
+ ".inst 0x64644173 // bfdot z19.s, z11.h, z4.h[0]\n"
+ ".inst 0x64654177 // bfdot z23.s, z11.h, z5.h[0]\n"
+ ".inst 0x6466417b // bfdot z27.s, z11.h, z6.h[0]\n"
+ ".inst 0x6467417f // bfdot z31.s, z11.h, z7.h[0]\n"
+ "b.eq 13f\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ "ld1h z13.h, p4/z, [%[b_ptr0]]\n"
+ "subs %[blocks], %[blocks], #0x1\n"
+ "ld1h z14.h, p4/z, [%[b_ptr1]]\n"
+ "ld1h z15.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1h z8.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ "zip1 z12.h, z13.h, z14.h\n"
+ "zip2 z13.h, z13.h, z14.h\n"
+ "zip1 z14.h, z15.h, z8.h\n"
+ "zip2 z15.h, z15.h, z8.h\n"
+ ".inst 0x646c4190 // bfdot z16.s, z12.h, z4.h[1]\n"
+ ".inst 0x646d4194 // bfdot z20.s, z12.h, z5.h[1]\n"
+ ".inst 0x646e4198 // bfdot z24.s, z12.h, z6.h[1]\n"
+ ".inst 0x646f419c // bfdot z28.s, z12.h, z7.h[1]\n"
+ ".inst 0x646c41b1 // bfdot z17.s, z13.h, z4.h[1]\n"
+ ".inst 0x646d41b5 // bfdot z21.s, z13.h, z5.h[1]\n"
+ ".inst 0x646e41b9 // bfdot z25.s, z13.h, z6.h[1]\n"
+ ".inst 0x646f41bd // bfdot z29.s, z13.h, z7.h[1]\n"
+ ".inst 0x646c41d2 // bfdot z18.s, z14.h, z4.h[1]\n"
+ ".inst 0x646d41d6 // bfdot z22.s, z14.h, z5.h[1]\n"
+ ".inst 0x646e41da // bfdot z26.s, z14.h, z6.h[1]\n"
+ ".inst 0x646f41de // bfdot z30.s, z14.h, z7.h[1]\n"
+ ".inst 0x646c41f3 // bfdot z19.s, z15.h, z4.h[1]\n"
+ ".inst 0x646d41f7 // bfdot z23.s, z15.h, z5.h[1]\n"
+ ".inst 0x646e41fb // bfdot z27.s, z15.h, z6.h[1]\n"
+ ".inst 0x646f41ff // bfdot z31.s, z15.h, z7.h[1]\n"
+ "b.eq 14f\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "add %[b_ptr1], %[b_ptr1], %[ldb]\n"
+ "ld1h z9.h, p4/z, [%[b_ptr0]]\n"
+ "ld1h z10.h, p4/z, [%[b_ptr1]]\n"
+ "ld1h z11.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1h z12.h, p5/z, [%[b_ptr1], #1, MUL VL]\n"
+ "zip1 z8.h, z9.h, z10.h\n"
+ "zip2 z9.h, z9.h, z10.h\n"
+ "zip1 z10.h, z11.h, z12.h\n"
+ "zip2 z11.h, z11.h, z12.h\n"
+ ".inst 0x64744110 // bfdot z16.s, z8.h, z4.h[2]\n"
+ ".inst 0x64754114 // bfdot z20.s, z8.h, z5.h[2]\n"
+ ".inst 0x64764118 // bfdot z24.s, z8.h, z6.h[2]\n"
+ ".inst 0x6477411c // bfdot z28.s, z8.h, z7.h[2]\n"
+ ".inst 0x64744131 // bfdot z17.s, z9.h, z4.h[2]\n"
+ ".inst 0x64754135 // bfdot z21.s, z9.h, z5.h[2]\n"
+ ".inst 0x64764139 // bfdot z25.s, z9.h, z6.h[2]\n"
+ ".inst 0x6477413d // bfdot z29.s, z9.h, z7.h[2]\n"
+ ".inst 0x64744152 // bfdot z18.s, z10.h, z4.h[2]\n"
+ ".inst 0x64754156 // bfdot z22.s, z10.h, z5.h[2]\n"
+ ".inst 0x6476415a // bfdot z26.s, z10.h, z6.h[2]\n"
+ ".inst 0x6477415e // bfdot z30.s, z10.h, z7.h[2]\n"
+ ".inst 0x64744173 // bfdot z19.s, z11.h, z4.h[2]\n"
+ ".inst 0x64754177 // bfdot z23.s, z11.h, z5.h[2]\n"
+ ".inst 0x6476417b // bfdot z27.s, z11.h, z6.h[2]\n"
+ ".inst 0x6477417f // bfdot z31.s, z11.h, z7.h[2]\n"
+ "cbz %[odds], 7f\n"
+ "mov z14.h, #0\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "mov z8.h, #0\n"
+ "ld1h z13.h, p4/z, [%[b_ptr0]]\n"
+ "ld1h z15.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "zip1 z12.h, z13.h, z14.h\n"
+ "zip2 z13.h, z13.h, z14.h\n"
+ "zip1 z14.h, z15.h, z8.h\n"
+ "zip2 z15.h, z15.h, z8.h\n"
+ "15:\n"
+ ".inst 0x647c4190 // bfdot z16.s, z12.h, z4.h[3]\n"
+ ".inst 0x647d4194 // bfdot z20.s, z12.h, z5.h[3]\n"
+ ".inst 0x647e4198 // bfdot z24.s, z12.h, z6.h[3]\n"
+ ".inst 0x647f419c // bfdot z28.s, z12.h, z7.h[3]\n"
+ ".inst 0x647c41b1 // bfdot z17.s, z13.h, z4.h[3]\n"
+ ".inst 0x647d41b5 // bfdot z21.s, z13.h, z5.h[3]\n"
+ ".inst 0x647e41b9 // bfdot z25.s, z13.h, z6.h[3]\n"
+ ".inst 0x647f41bd // bfdot z29.s, z13.h, z7.h[3]\n"
+ ".inst 0x647c41d2 // bfdot z18.s, z14.h, z4.h[3]\n"
+ ".inst 0x647d41d6 // bfdot z22.s, z14.h, z5.h[3]\n"
+ ".inst 0x647e41da // bfdot z26.s, z14.h, z6.h[3]\n"
+ ".inst 0x647f41de // bfdot z30.s, z14.h, z7.h[3]\n"
+ ".inst 0x647c41f3 // bfdot z19.s, z15.h, z4.h[3]\n"
+ ".inst 0x647d41f7 // bfdot z23.s, z15.h, z5.h[3]\n"
+ ".inst 0x647e41fb // bfdot z27.s, z15.h, z6.h[3]\n"
+ ".inst 0x647f41ff // bfdot z31.s, z15.h, z7.h[3]\n"
+ "b 7f\n"
+ "14:\n"
+ "cbz %[odds], 7f\n"
+ "mov z10.h, #0\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "mov z12.h, #0\n"
+ "ld1h z9.h, p4/z, [%[b_ptr0]]\n"
+ "ld1h z11.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "zip1 z8.h, z9.h, z10.h\n"
+ "zip2 z9.h, z9.h, z10.h\n"
+ "zip1 z10.h, z11.h, z12.h\n"
+ "zip2 z11.h, z11.h, z12.h\n"
+ "16:\n"
+ ".inst 0x64744110 // bfdot z16.s, z8.h, z4.h[2]\n"
+ ".inst 0x64754114 // bfdot z20.s, z8.h, z5.h[2]\n"
+ ".inst 0x64764118 // bfdot z24.s, z8.h, z6.h[2]\n"
+ ".inst 0x6477411c // bfdot z28.s, z8.h, z7.h[2]\n"
+ ".inst 0x64744131 // bfdot z17.s, z9.h, z4.h[2]\n"
+ ".inst 0x64754135 // bfdot z21.s, z9.h, z5.h[2]\n"
+ ".inst 0x64764139 // bfdot z25.s, z9.h, z6.h[2]\n"
+ ".inst 0x6477413d // bfdot z29.s, z9.h, z7.h[2]\n"
+ ".inst 0x64744152 // bfdot z18.s, z10.h, z4.h[2]\n"
+ ".inst 0x64754156 // bfdot z22.s, z10.h, z5.h[2]\n"
+ ".inst 0x6476415a // bfdot z26.s, z10.h, z6.h[2]\n"
+ ".inst 0x6477415e // bfdot z30.s, z10.h, z7.h[2]\n"
+ ".inst 0x64744173 // bfdot z19.s, z11.h, z4.h[2]\n"
+ ".inst 0x64754177 // bfdot z23.s, z11.h, z5.h[2]\n"
+ ".inst 0x6476417b // bfdot z27.s, z11.h, z6.h[2]\n"
+ ".inst 0x6477417f // bfdot z31.s, z11.h, z7.h[2]\n"
+ "b 7f\n"
+ "13:\n"
+ "cbz %[odds], 7f\n"
+ "mov z14.h, #0\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "mov z8.h, #0\n"
+ "ld1h z13.h, p4/z, [%[b_ptr0]]\n"
+ "ld1h z15.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "zip1 z12.h, z13.h, z14.h\n"
+ "zip2 z13.h, z13.h, z14.h\n"
+ "zip1 z14.h, z15.h, z8.h\n"
+ "zip2 z15.h, z15.h, z8.h\n"
+ "17:\n"
+ ".inst 0x646c4190 // bfdot z16.s, z12.h, z4.h[1]\n"
+ ".inst 0x646d4194 // bfdot z20.s, z12.h, z5.h[1]\n"
+ ".inst 0x646e4198 // bfdot z24.s, z12.h, z6.h[1]\n"
+ ".inst 0x646f419c // bfdot z28.s, z12.h, z7.h[1]\n"
+ ".inst 0x646c41b1 // bfdot z17.s, z13.h, z4.h[1]\n"
+ ".inst 0x646d41b5 // bfdot z21.s, z13.h, z5.h[1]\n"
+ ".inst 0x646e41b9 // bfdot z25.s, z13.h, z6.h[1]\n"
+ ".inst 0x646f41bd // bfdot z29.s, z13.h, z7.h[1]\n"
+ ".inst 0x646c41d2 // bfdot z18.s, z14.h, z4.h[1]\n"
+ ".inst 0x646d41d6 // bfdot z22.s, z14.h, z5.h[1]\n"
+ ".inst 0x646e41da // bfdot z26.s, z14.h, z6.h[1]\n"
+ ".inst 0x646f41de // bfdot z30.s, z14.h, z7.h[1]\n"
+ ".inst 0x646c41f3 // bfdot z19.s, z15.h, z4.h[1]\n"
+ ".inst 0x646d41f7 // bfdot z23.s, z15.h, z5.h[1]\n"
+ ".inst 0x646e41fb // bfdot z27.s, z15.h, z6.h[1]\n"
+ ".inst 0x646f41ff // bfdot z31.s, z15.h, z7.h[1]\n"
+ "b 7f\n"
+ "12:\n"
+ "cbz %[odds], 7f\n"
+ "mov z10.h, #0\n"
+ "add %[b_ptr0], %[b_ptr0], %[ldb]\n"
+ "mov z12.h, #0\n"
+ "ld1h z9.h, p4/z, [%[b_ptr0]]\n"
+ "ld1h z11.h, p5/z, [%[b_ptr0], #1, MUL VL]\n"
+ "zip1 z8.h, z9.h, z10.h\n"
+ "zip2 z9.h, z9.h, z10.h\n"
+ "zip1 z10.h, z11.h, z12.h\n"
+ "zip2 z11.h, z11.h, z12.h\n"
+ "18:\n"
+ ".inst 0x64644110 // bfdot z16.s, z8.h, z4.h[0]\n"
+ ".inst 0x64654114 // bfdot z20.s, z8.h, z5.h[0]\n"
+ ".inst 0x64664118 // bfdot z24.s, z8.h, z6.h[0]\n"
+ ".inst 0x6467411c // bfdot z28.s, z8.h, z7.h[0]\n"
+ ".inst 0x64644131 // bfdot z17.s, z9.h, z4.h[0]\n"
+ ".inst 0x64654135 // bfdot z21.s, z9.h, z5.h[0]\n"
+ ".inst 0x64664139 // bfdot z25.s, z9.h, z6.h[0]\n"
+ ".inst 0x6467413d // bfdot z29.s, z9.h, z7.h[0]\n"
+ ".inst 0x64644152 // bfdot z18.s, z10.h, z4.h[0]\n"
+ ".inst 0x64654156 // bfdot z22.s, z10.h, z5.h[0]\n"
+ ".inst 0x6466415a // bfdot z26.s, z10.h, z6.h[0]\n"
+ ".inst 0x6467415e // bfdot z30.s, z10.h, z7.h[0]\n"
+ ".inst 0x64644173 // bfdot z19.s, z11.h, z4.h[0]\n"
+ ".inst 0x64654177 // bfdot z23.s, z11.h, z5.h[0]\n"
+ ".inst 0x6466417b // bfdot z27.s, z11.h, z6.h[0]\n"
+ ".inst 0x6467417f // bfdot z31.s, z11.h, z7.h[0]\n"
+ "7:\n"
+ "ld1rw z14.s, p7/z, [%[minptr]]\n"
+ "ld1rw z15.s, p7/z, [%[maxptr]]\n"
+ "fmax z16.s, p7/m, z16.s, z14.s\n"
+ "fmax z17.s, p7/m, z17.s, z14.s\n"
+ "fmax z18.s, p7/m, z18.s, z14.s\n"
+ "fmax z19.s, p7/m, z19.s, z14.s\n"
+ "fmin z16.s, p7/m, z16.s, z15.s\n"
+ "fmin z17.s, p7/m, z17.s, z15.s\n"
+ "fmin z18.s, p7/m, z18.s, z15.s\n"
+ "fmin z19.s, p7/m, z19.s, z15.s\n"
+ "st1w z16.s, p0, [%[c_ptr0]]\n"
+ "fmax z20.s, p7/m, z20.s, z14.s\n"
+ "fmax z21.s, p7/m, z21.s, z14.s\n"
+ "fmax z22.s, p7/m, z22.s, z14.s\n"
+ "st1w z17.s, p1, [%[c_ptr0], #1, MUL VL]\n"
+ "fmax z23.s, p7/m, z23.s, z14.s\n"
+ "fmin z20.s, p7/m, z20.s, z15.s\n"
+ "fmin z21.s, p7/m, z21.s, z15.s\n"
+ "st1w z18.s, p2, [%[c_ptr0], #2, MUL VL]\n"
+ "fmin z22.s, p7/m, z22.s, z15.s\n"
+ "fmin z23.s, p7/m, z23.s, z15.s\n"
+ "fmax z24.s, p7/m, z24.s, z14.s\n"
+ "st1w z19.s, p3, [%[c_ptr0], #3, MUL VL]\n"
+ "fmax z25.s, p7/m, z25.s, z14.s\n"
+ "addvl %[c_ptr0], %[c_ptr0], #4\n"
+ "fmax z26.s, p7/m, z26.s, z14.s\n"
+ "st1w z20.s, p0, [c_ptr1]\n"
+ "fmin z24.s, p7/m, z24.s, z15.s\n"
+ "fmin z25.s, p7/m, z25.s, z15.s\n"
+ "fmax z27.s, p7/m, z27.s, z14.s\n"
+ "st1w z21.s, p1, [c_ptr1, #1, MUL VL]\n"
+ "fmin z26.s, p7/m, z26.s, z15.s\n"
+ "fmax z28.s, p7/m, z28.s, z14.s\n"
+ "fmax z29.s, p7/m, z29.s, z14.s\n"
+ "st1w z22.s, p2, [c_ptr1, #2, MUL VL]\n"
+ "fmin z27.s, p7/m, z27.s, z15.s\n"
+ "fmax z30.s, p7/m, z30.s, z14.s\n"
+ "fmin z28.s, p7/m, z28.s, z15.s\n"
+ "st1w z23.s, p3, [c_ptr1, #3, MUL VL]\n"
+ "fmin z29.s, p7/m, z29.s, z15.s\n"
+ "fmax z31.s, p7/m, z31.s, z14.s\n"
+ "fmin z30.s, p7/m, z30.s, z15.s\n"
+ "st1w z24.s, p0, [c_ptr2]\n"
+ "fmin z31.s, p7/m, z31.s, z15.s\n"
+ "st1w z25.s, p1, [c_ptr2, #1, MUL VL]\n"
+ "st1w z26.s, p2, [c_ptr2, #2, MUL VL]\n"
+ "st1w z27.s, p3, [c_ptr2, #3, MUL VL]\n"
+ "st1w z28.s, p0, [c_ptr3]\n"
+ "st1w z29.s, p1, [c_ptr3, #1, MUL VL]\n"
+ "st1w z30.s, p2, [c_ptr3, #2, MUL VL]\n"
+ "st1w z31.s, p3, [c_ptr3, #3, MUL VL]\n"
+ ".unreq a_ptr1\n"
+ ".unreq a_ptr2\n"
+ ".unreq a_ptr3\n"
+ ".unreq c_ptr1\n"
+ ".unreq c_ptr2\n"
+ ".unreq c_ptr3\n"
+ : [a_ptr0] "+r" (a_ptr0), [b_ptr0] "+r" (b_ptr0), [b_ptr1] "+r" (b_ptr1), [c_ptr0] "+r" (c_ptr0), [loops] "+r" (loops), [regs] "+r" (regs), [temp] "+r" (temp), [blocks] "+r" (blocks), [odds] "+r" (odds)
+ : [width] "r" (width), [append] "r" (static_cast<uint64_t>(append)), [lda] "r" (ldab), [ldc] "r" (ldcb), [biasptr] "r" (biasptr), [minptr] "r" (minptr), [maxptr] "r" (maxptr), [leftovers] "r" (leftovers), [ldb] "r" (ldbb)
+ : "z0", "z1", "z2", "z3", "z4", "z5", "z6", "z7", "z8", "z9", "z10", "z11", "z12", "z13", "z14", "z15", "z16", "z17", "z18", "z19", "z20", "z21", "z22", "z23", "z24", "z25", "z26", "z27", "z28", "z29", "z30", "z31", "x0", "x1", "x2", "x3", "x4", "x5", "cc", "memory"
+ );
+ break;
+ }
+
+ }
+ }
+}
+
+} // namespace arm_gemm
+
+#endif // __ARM_FEATURE_SVE
diff --git a/src/core/NEON/kernels/arm_gemm/kernels/sve_smallK_hybrid_fp32_mla_1VLx8.hpp b/src/core/NEON/kernels/arm_gemm/kernels/sve_smallK_hybrid_fp32_mla_1VLx8.hpp
new file mode 100644
index 000000000..191262b4d
--- /dev/null
+++ b/src/core/NEON/kernels/arm_gemm/kernels/sve_smallK_hybrid_fp32_mla_1VLx8.hpp
@@ -0,0 +1,86 @@
+/*
+ * Copyright (c) 2019 ARM Limited.
+ *
+ * SPDX-License-Identifier: MIT
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+#pragma once
+
+#ifdef __ARM_FEATURE_SVE
+
+
+
+namespace arm_gemm
+{
+
+// Actual kernel implementations
+void sve_smallK_hybrid_fp32_mla_1VLx8(const float *, int, const float *, float *, int, int, int, int, const float *, Activation, bool);
+
+class smallK_hybrid_fp32_mla_1VLx8
+{
+public:
+ typedef float operand_type;
+ typedef float result_type;
+
+ typedef void (*kern_type)(const float *, int, const float *, float *, int, int, int, int, const float *, Activation, bool);
+
+ /* Kernel blocking parameters */
+ static constexpr unsigned int out_height()
+ {
+ return 8;
+ }
+
+ static unsigned int out_width()
+ {
+ return get_vector_length<float>() * 1;
+ }
+
+ static constexpr unsigned int k_unroll()
+ {
+ return 1;
+ }
+
+ static constexpr bool supports_append()
+ {
+ return false;
+ }
+
+ static constexpr bool supports_bias()
+ {
+ return true;
+ }
+
+ static constexpr bool supports_activation()
+ {
+ return true;
+ }
+
+ StdTransformsSVE<operand_type, result_type, 8, 1, 1> transforms = {};
+
+ // Default to the generic kernel
+ kern_type kernel=sve_smallK_hybrid_fp32_mla_1VLx8;
+
+ smallK_hybrid_fp32_mla_1VLx8(const CPUInfo *ci) { UNUSED(ci); }
+ }
+};
+
+} // namespace arm_gemm
+
+#endif // __ARM_FEATURE_SVE
diff --git a/src/core/NEON/kernels/arm_gemm/kernels/sve_smallK_hybrid_fp32_mla_1VLx8/generic.cpp b/src/core/NEON/kernels/arm_gemm/kernels/sve_smallK_hybrid_fp32_mla_1VLx8/generic.cpp
new file mode 100644
index 000000000..3ad609b20
--- /dev/null
+++ b/src/core/NEON/kernels/arm_gemm/kernels/sve_smallK_hybrid_fp32_mla_1VLx8/generic.cpp
@@ -0,0 +1,18807 @@
+/*
+ * Copyright (c) 2019 ARM Limited.
+ *
+ * SPDX-License-Identifier: MIT
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+#ifdef __ARM_FEATURE_SVE
+
+#include <algorithm>
+
+#include "arm_gemm.hpp"
+
+
+#include "../../asmlib.hpp"
+#include "../../utils.hpp"
+
+namespace arm_gemm {
+
+void sve_smallK_hybrid_fp32_mla_1VLx8(const float *A, int lda, const float *B, float *C, int ldc, int M, int N, int K, const float *bias, Activation act, bool) {
+ const long loops_count = iceildiv(N, (int)get_vector_length<float>()) - 1;
+ const long ldab = lda * sizeof(float);
+ const long ldcb = ldc * sizeof(float);
+ const long odd_depth = (K % 4) ? (K % 4) : 4;
+ const long last_width = N - (loops_count * get_vector_length<float>());
+ float nullbias[64];
+ if (!bias) {
+ memset(nullbias, 0, (1 * get_vector_length<float>() * sizeof(float)));
+ }
+ float minval = - static_cast<float>(std::numeric_limits<float>::infinity());
+ float maxval = static_cast<float>(std::numeric_limits<float>::infinity());
+ const float * const minptr = &minval;
+ const float * const maxptr = &maxval;
+
+ switch(act.type)
+ {
+ default:
+ case Activation::Type::None:
+ break;
+ case Activation::Type::BoundedReLU:
+ maxval = static_cast<float>(act.param1);
+ /* fall through */
+ case Activation::Type::ReLU:
+ minval = 0.0f;
+ break;
+ }
+
+ for (int y0=0; y0<M; y0+=8) {
+ long loops = loops_count;
+ long oob_rows = std::max(8 - (M-y0), 0);
+ long temp = 0;
+ const float *b_ptr0 = B;
+ const float *biasptr = bias ? bias : nullbias;
+ const uint64_t biasinc = bias ? get_vector_length<float>() * 1*sizeof(float) : 0;
+ const float *a_ptr0 = A + (y0 * lda);
+
+ float *c_ptr0 = C + (y0 * ldc);
+
+ switch(K) {
+ case 1:
+ __asm __volatile (
+ "a_ptr1 .req X0\n"
+ "a_ptr2 .req X1\n"
+ "a_ptr3 .req X2\n"
+ "a_ptr4 .req X3\n"
+ "a_ptr5 .req X4\n"
+ "a_ptr6 .req X5\n"
+ "a_ptr7 .req X6\n"
+ "c_ptr1 .req X7\n"
+ "c_ptr2 .req X8\n"
+ "c_ptr3 .req X9\n"
+ "c_ptr4 .req X10\n"
+ "c_ptr5 .req X11\n"
+ "c_ptr6 .req X12\n"
+ "c_ptr7 .req X13\n"
+ "add a_ptr1, %[a_ptr0], %[lda]\n"
+ "add c_ptr1, %[c_ptr0], %[ldc]\n"
+ "add a_ptr2, a_ptr1, %[lda]\n"
+ "add c_ptr2, c_ptr1, %[ldc]\n"
+ "add a_ptr3, a_ptr2, %[lda]\n"
+ "add c_ptr3, c_ptr2, %[ldc]\n"
+ "add a_ptr4, a_ptr3, %[lda]\n"
+ "add c_ptr4, c_ptr3, %[ldc]\n"
+ "add a_ptr5, a_ptr4, %[lda]\n"
+ "add c_ptr5, c_ptr4, %[ldc]\n"
+ "add a_ptr6, a_ptr5, %[lda]\n"
+ "add c_ptr6, c_ptr5, %[ldc]\n"
+ "add a_ptr7, a_ptr6, %[lda]\n"
+ "add c_ptr7, c_ptr6, %[ldc]\n"
+ "cbz %[oob_rows], 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr7, %[c_ptr0], #0x0\n"
+ "add a_ptr7, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr6, %[c_ptr0], #0x0\n"
+ "add a_ptr6, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr5, %[c_ptr0], #0x0\n"
+ "add a_ptr5, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr4, %[c_ptr0], #0x0\n"
+ "add a_ptr4, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr3, %[c_ptr0], #0x0\n"
+ "add a_ptr3, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr2, %[c_ptr0], #0x0\n"
+ "add a_ptr2, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr1, %[c_ptr0], #0x0\n"
+ "add a_ptr1, %[a_ptr0], #0x0\n"
+ "1:\n"
+ "ptrue p7.s\n"
+ "whilelt p6.s, %[temp], %[odd_depth]\n"
+ "whilelt p0.s, %[temp], %[last_width]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #1\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0]]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7]\n"
+ "cbz %[loops], 2f\n"
+ "ld1w z24.s, p7/z, [%[biasptr]]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "subs %[loops], %[loops], #0x1\n"
+ "mov z25.d, z24.d\n"
+ "mov z26.d, z24.d\n"
+ "mov z27.d, z24.d\n"
+ "mov z28.d, z24.d\n"
+ "mov z29.d, z24.d\n"
+ "mov z30.d, z24.d\n"
+ "mov z31.d, z24.d\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "b.eq 3f\n"
+ "4:\n"
+ "ld1rw z22.s, p7/z, [%[minptr]]\n"
+ "subs %[loops], %[loops], #0x1\n"
+ "ld1rw z23.s, p7/z, [%[maxptr]]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #1\n"
+ "fmax z24.s, p7/m, z24.s, z22.s\n"
+ "fmax z25.s, p7/m, z25.s, z22.s\n"
+ "fmax z26.s, p7/m, z26.s, z22.s\n"
+ "fmax z27.s, p7/m, z27.s, z22.s\n"
+ "fmin z24.s, p7/m, z24.s, z23.s\n"
+ "fmin z25.s, p7/m, z25.s, z23.s\n"
+ "fmin z26.s, p7/m, z26.s, z23.s\n"
+ "fmin z27.s, p7/m, z27.s, z23.s\n"
+ "st1w z24.s, p7, [%[c_ptr0]]\n"
+ "fmax z28.s, p7/m, z28.s, z22.s\n"
+ "ld1w z24.s, p7/z, [%[biasptr]]\n"
+ "fmax z29.s, p7/m, z29.s, z22.s\n"
+ "addvl %[c_ptr0], %[c_ptr0], #1\n"
+ "fmax z30.s, p7/m, z30.s, z22.s\n"
+ "st1w z25.s, p7, [c_ptr1]\n"
+ "fmin z28.s, p7/m, z28.s, z23.s\n"
+ "addvl c_ptr1, c_ptr1, #1\n"
+ "fmin z29.s, p7/m, z29.s, z23.s\n"
+ "st1w z26.s, p7, [c_ptr2]\n"
+ "fmin z30.s, p7/m, z30.s, z23.s\n"
+ "addvl c_ptr2, c_ptr2, #1\n"
+ "fmax z31.s, p7/m, z31.s, z22.s\n"
+ "st1w z27.s, p7, [c_ptr3]\n"
+ "mov z25.d, z24.d\n"
+ "addvl c_ptr3, c_ptr3, #1\n"
+ "mov z26.d, z24.d\n"
+ "st1w z28.s, p7, [c_ptr4]\n"
+ "fmin z31.s, p7/m, z31.s, z23.s\n"
+ "addvl c_ptr4, c_ptr4, #1\n"
+ "mov z27.d, z24.d\n"
+ "st1w z29.s, p7, [c_ptr5]\n"
+ "mov z28.d, z24.d\n"
+ "addvl c_ptr5, c_ptr5, #1\n"
+ "mov z29.d, z24.d\n"
+ "st1w z30.s, p7, [c_ptr6]\n"
+ "mov z30.d, z24.d\n"
+ "addvl c_ptr6, c_ptr6, #1\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "st1w z31.s, p7, [c_ptr7]\n"
+ "mov z31.d, z24.d\n"
+ "addvl c_ptr7, c_ptr7, #1\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "b.ne 4b\n"
+ "3:\n"
+ "ld1rw z22.s, p7/z, [%[minptr]]\n"
+ "ld1rw z23.s, p7/z, [%[maxptr]]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #1\n"
+ "fmax z24.s, p7/m, z24.s, z22.s\n"
+ "fmax z25.s, p7/m, z25.s, z22.s\n"
+ "fmax z26.s, p7/m, z26.s, z22.s\n"
+ "fmax z27.s, p7/m, z27.s, z22.s\n"
+ "fmin z24.s, p7/m, z24.s, z23.s\n"
+ "fmin z25.s, p7/m, z25.s, z23.s\n"
+ "fmin z26.s, p7/m, z26.s, z23.s\n"
+ "fmin z27.s, p7/m, z27.s, z23.s\n"
+ "st1w z24.s, p7, [%[c_ptr0]]\n"
+ "fmax z28.s, p7/m, z28.s, z22.s\n"
+ "ld1w z24.s, p0/z, [%[biasptr]]\n"
+ "fmax z29.s, p7/m, z29.s, z22.s\n"
+ "addvl %[c_ptr0], %[c_ptr0], #1\n"
+ "fmax z30.s, p7/m, z30.s, z22.s\n"
+ "st1w z25.s, p7, [c_ptr1]\n"
+ "fmin z28.s, p7/m, z28.s, z23.s\n"
+ "addvl c_ptr1, c_ptr1, #1\n"
+ "fmin z29.s, p7/m, z29.s, z23.s\n"
+ "st1w z26.s, p7, [c_ptr2]\n"
+ "fmin z30.s, p7/m, z30.s, z23.s\n"
+ "addvl c_ptr2, c_ptr2, #1\n"
+ "fmax z31.s, p7/m, z31.s, z22.s\n"
+ "st1w z27.s, p7, [c_ptr3]\n"
+ "mov z25.d, z24.d\n"
+ "addvl c_ptr3, c_ptr3, #1\n"
+ "mov z26.d, z24.d\n"
+ "st1w z28.s, p7, [c_ptr4]\n"
+ "fmin z31.s, p7/m, z31.s, z23.s\n"
+ "addvl c_ptr4, c_ptr4, #1\n"
+ "mov z27.d, z24.d\n"
+ "st1w z29.s, p7, [c_ptr5]\n"
+ "mov z28.d, z24.d\n"
+ "addvl c_ptr5, c_ptr5, #1\n"
+ "mov z29.d, z24.d\n"
+ "st1w z30.s, p7, [c_ptr6]\n"
+ "mov z30.d, z24.d\n"
+ "addvl c_ptr6, c_ptr6, #1\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "st1w z31.s, p7, [c_ptr7]\n"
+ "mov z31.d, z24.d\n"
+ "addvl c_ptr7, c_ptr7, #1\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "b 5f\n"
+ "2:\n"
+ "ld1w z24.s, p0/z, [%[biasptr]]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "mov z25.d, z24.d\n"
+ "mov z26.d, z24.d\n"
+ "mov z27.d, z24.d\n"
+ "mov z28.d, z24.d\n"
+ "mov z29.d, z24.d\n"
+ "mov z30.d, z24.d\n"
+ "mov z31.d, z24.d\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "5:\n"
+ "ld1rw z22.s, p7/z, [%[minptr]]\n"
+ "ld1rw z23.s, p7/z, [%[maxptr]]\n"
+ "fmax z24.s, p7/m, z24.s, z22.s\n"
+ "fmax z25.s, p7/m, z25.s, z22.s\n"
+ "fmax z26.s, p7/m, z26.s, z22.s\n"
+ "fmax z27.s, p7/m, z27.s, z22.s\n"
+ "fmin z24.s, p7/m, z24.s, z23.s\n"
+ "fmin z25.s, p7/m, z25.s, z23.s\n"
+ "fmin z26.s, p7/m, z26.s, z23.s\n"
+ "fmin z27.s, p7/m, z27.s, z23.s\n"
+ "st1w z24.s, p0, [%[c_ptr0]]\n"
+ "fmax z28.s, p7/m, z28.s, z22.s\n"
+ "addvl %[c_ptr0], %[c_ptr0], #1\n"
+ "fmax z29.s, p7/m, z29.s, z22.s\n"
+ "st1w z25.s, p0, [c_ptr1]\n"
+ "fmax z30.s, p7/m, z30.s, z22.s\n"
+ "fmin z28.s, p7/m, z28.s, z23.s\n"
+ "fmax z31.s, p7/m, z31.s, z22.s\n"
+ "st1w z26.s, p0, [c_ptr2]\n"
+ "fmin z29.s, p7/m, z29.s, z23.s\n"
+ "fmin z30.s, p7/m, z30.s, z23.s\n"
+ "fmin z31.s, p7/m, z31.s, z23.s\n"
+ "st1w z27.s, p0, [c_ptr3]\n"
+ "st1w z28.s, p0, [c_ptr4]\n"
+ "st1w z29.s, p0, [c_ptr5]\n"
+ "st1w z30.s, p0, [c_ptr6]\n"
+ "st1w z31.s, p0, [c_ptr7]\n"
+ ".unreq a_ptr1\n"
+ ".unreq a_ptr2\n"
+ ".unreq a_ptr3\n"
+ ".unreq a_ptr4\n"
+ ".unreq a_ptr5\n"
+ ".unreq a_ptr6\n"
+ ".unreq a_ptr7\n"
+ ".unreq c_ptr1\n"
+ ".unreq c_ptr2\n"
+ ".unreq c_ptr3\n"
+ ".unreq c_ptr4\n"
+ ".unreq c_ptr5\n"
+ ".unreq c_ptr6\n"
+ ".unreq c_ptr7\n"
+ : [a_ptr0] "+r" (a_ptr0), [b_ptr0] "+r" (b_ptr0), [c_ptr0] "+r" (c_ptr0), [loops] "+r" (loops), [oob_rows] "+r" (oob_rows), [temp] "+r" (temp), [biasptr] "+r" (biasptr)
+ : [lda] "r" (ldab), [ldc] "r" (ldcb), [odd_depth] "r" (odd_depth), [last_width] "r" (last_width), [biasinc] "r" (biasinc), [minptr] "r" (minptr), [maxptr] "r" (maxptr)
+ : "x0", "x1", "x2", "x3", "x4", "x5", "x6", "x7", "x8", "x9", "x10", "x11", "x12", "x13", "z0", "z1", "z2", "z3", "z4", "z5", "z6", "z7", "z8", "z9", "z10", "z11", "z12", "z13", "z14", "z15", "z16", "z17", "z18", "z19", "z20", "z21", "z22", "z23", "z24", "z25", "z26", "z27", "z28", "z29", "z30", "z31", "cc", "memory"
+ );
+ break;
+ case 2:
+ __asm __volatile (
+ "a_ptr1 .req X0\n"
+ "a_ptr2 .req X1\n"
+ "a_ptr3 .req X2\n"
+ "a_ptr4 .req X3\n"
+ "a_ptr5 .req X4\n"
+ "a_ptr6 .req X5\n"
+ "a_ptr7 .req X6\n"
+ "c_ptr1 .req X7\n"
+ "c_ptr2 .req X8\n"
+ "c_ptr3 .req X9\n"
+ "c_ptr4 .req X10\n"
+ "c_ptr5 .req X11\n"
+ "c_ptr6 .req X12\n"
+ "c_ptr7 .req X13\n"
+ "add a_ptr1, %[a_ptr0], %[lda]\n"
+ "add c_ptr1, %[c_ptr0], %[ldc]\n"
+ "add a_ptr2, a_ptr1, %[lda]\n"
+ "add c_ptr2, c_ptr1, %[ldc]\n"
+ "add a_ptr3, a_ptr2, %[lda]\n"
+ "add c_ptr3, c_ptr2, %[ldc]\n"
+ "add a_ptr4, a_ptr3, %[lda]\n"
+ "add c_ptr4, c_ptr3, %[ldc]\n"
+ "add a_ptr5, a_ptr4, %[lda]\n"
+ "add c_ptr5, c_ptr4, %[ldc]\n"
+ "add a_ptr6, a_ptr5, %[lda]\n"
+ "add c_ptr6, c_ptr5, %[ldc]\n"
+ "add a_ptr7, a_ptr6, %[lda]\n"
+ "add c_ptr7, c_ptr6, %[ldc]\n"
+ "cbz %[oob_rows], 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr7, %[c_ptr0], #0x0\n"
+ "add a_ptr7, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr6, %[c_ptr0], #0x0\n"
+ "add a_ptr6, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr5, %[c_ptr0], #0x0\n"
+ "add a_ptr5, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr4, %[c_ptr0], #0x0\n"
+ "add a_ptr4, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr3, %[c_ptr0], #0x0\n"
+ "add a_ptr3, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr2, %[c_ptr0], #0x0\n"
+ "add a_ptr2, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr1, %[c_ptr0], #0x0\n"
+ "add a_ptr1, %[a_ptr0], #0x0\n"
+ "1:\n"
+ "ptrue p7.s\n"
+ "whilelt p6.s, %[temp], %[odd_depth]\n"
+ "whilelt p0.s, %[temp], %[last_width]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0]]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #2\n"
+ "cbz %[loops], 2f\n"
+ "ld1w z24.s, p7/z, [%[biasptr]]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "subs %[loops], %[loops], #0x1\n"
+ "mov z25.d, z24.d\n"
+ "mov z26.d, z24.d\n"
+ "mov z27.d, z24.d\n"
+ "mov z28.d, z24.d\n"
+ "mov z29.d, z24.d\n"
+ "mov z30.d, z24.d\n"
+ "mov z31.d, z24.d\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "b.eq 3f\n"
+ "4:\n"
+ "ld1rw z22.s, p7/z, [%[minptr]]\n"
+ "subs %[loops], %[loops], #0x1\n"
+ "ld1rw z23.s, p7/z, [%[maxptr]]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmax z24.s, p7/m, z24.s, z22.s\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmax z25.s, p7/m, z25.s, z22.s\n"
+ "addvl %[b_ptr0], %[b_ptr0], #2\n"
+ "fmax z26.s, p7/m, z26.s, z22.s\n"
+ "fmin z24.s, p7/m, z24.s, z23.s\n"
+ "fmin z25.s, p7/m, z25.s, z23.s\n"
+ "fmax z27.s, p7/m, z27.s, z22.s\n"
+ "fmin z26.s, p7/m, z26.s, z23.s\n"
+ "st1w z24.s, p7, [%[c_ptr0]]\n"
+ "fmax z28.s, p7/m, z28.s, z22.s\n"
+ "ld1w z24.s, p7/z, [%[biasptr]]\n"
+ "fmax z29.s, p7/m, z29.s, z22.s\n"
+ "addvl %[c_ptr0], %[c_ptr0], #1\n"
+ "fmin z27.s, p7/m, z27.s, z23.s\n"
+ "st1w z25.s, p7, [c_ptr1]\n"
+ "fmin z28.s, p7/m, z28.s, z23.s\n"
+ "addvl c_ptr1, c_ptr1, #1\n"
+ "fmin z29.s, p7/m, z29.s, z23.s\n"
+ "st1w z26.s, p7, [c_ptr2]\n"
+ "fmax z30.s, p7/m, z30.s, z22.s\n"
+ "addvl c_ptr2, c_ptr2, #1\n"
+ "fmax z31.s, p7/m, z31.s, z22.s\n"
+ "st1w z27.s, p7, [c_ptr3]\n"
+ "mov z25.d, z24.d\n"
+ "addvl c_ptr3, c_ptr3, #1\n"
+ "fmin z30.s, p7/m, z30.s, z23.s\n"
+ "st1w z28.s, p7, [c_ptr4]\n"
+ "fmin z31.s, p7/m, z31.s, z23.s\n"
+ "addvl c_ptr4, c_ptr4, #1\n"
+ "mov z26.d, z24.d\n"
+ "st1w z29.s, p7, [c_ptr5]\n"
+ "mov z27.d, z24.d\n"
+ "addvl c_ptr5, c_ptr5, #1\n"
+ "mov z28.d, z24.d\n"
+ "st1w z30.s, p7, [c_ptr6]\n"
+ "mov z29.d, z24.d\n"
+ "addvl c_ptr6, c_ptr6, #1\n"
+ "mov z30.d, z24.d\n"
+ "st1w z31.s, p7, [c_ptr7]\n"
+ "mov z31.d, z24.d\n"
+ "addvl c_ptr7, c_ptr7, #1\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "b.ne 4b\n"
+ "3:\n"
+ "ld1rw z22.s, p7/z, [%[minptr]]\n"
+ "ld1rw z23.s, p7/z, [%[maxptr]]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #2\n"
+ "fmax z24.s, p7/m, z24.s, z22.s\n"
+ "fmax z25.s, p7/m, z25.s, z22.s\n"
+ "fmax z26.s, p7/m, z26.s, z22.s\n"
+ "fmax z27.s, p7/m, z27.s, z22.s\n"
+ "fmin z24.s, p7/m, z24.s, z23.s\n"
+ "fmin z25.s, p7/m, z25.s, z23.s\n"
+ "fmin z26.s, p7/m, z26.s, z23.s\n"
+ "fmin z27.s, p7/m, z27.s, z23.s\n"
+ "st1w z24.s, p7, [%[c_ptr0]]\n"
+ "fmax z28.s, p7/m, z28.s, z22.s\n"
+ "ld1w z24.s, p0/z, [%[biasptr]]\n"
+ "fmax z29.s, p7/m, z29.s, z22.s\n"
+ "addvl %[c_ptr0], %[c_ptr0], #1\n"
+ "fmax z30.s, p7/m, z30.s, z22.s\n"
+ "st1w z25.s, p7, [c_ptr1]\n"
+ "fmin z28.s, p7/m, z28.s, z23.s\n"
+ "addvl c_ptr1, c_ptr1, #1\n"
+ "fmin z29.s, p7/m, z29.s, z23.s\n"
+ "st1w z26.s, p7, [c_ptr2]\n"
+ "fmin z30.s, p7/m, z30.s, z23.s\n"
+ "addvl c_ptr2, c_ptr2, #1\n"
+ "fmax z31.s, p7/m, z31.s, z22.s\n"
+ "st1w z27.s, p7, [c_ptr3]\n"
+ "mov z25.d, z24.d\n"
+ "addvl c_ptr3, c_ptr3, #1\n"
+ "mov z26.d, z24.d\n"
+ "st1w z28.s, p7, [c_ptr4]\n"
+ "fmin z31.s, p7/m, z31.s, z23.s\n"
+ "addvl c_ptr4, c_ptr4, #1\n"
+ "mov z27.d, z24.d\n"
+ "st1w z29.s, p7, [c_ptr5]\n"
+ "mov z28.d, z24.d\n"
+ "addvl c_ptr5, c_ptr5, #1\n"
+ "mov z29.d, z24.d\n"
+ "st1w z30.s, p7, [c_ptr6]\n"
+ "mov z30.d, z24.d\n"
+ "addvl c_ptr6, c_ptr6, #1\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "st1w z31.s, p7, [c_ptr7]\n"
+ "mov z31.d, z24.d\n"
+ "addvl c_ptr7, c_ptr7, #1\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "b 5f\n"
+ "2:\n"
+ "ld1w z24.s, p0/z, [%[biasptr]]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "mov z25.d, z24.d\n"
+ "mov z26.d, z24.d\n"
+ "mov z27.d, z24.d\n"
+ "mov z28.d, z24.d\n"
+ "mov z29.d, z24.d\n"
+ "mov z30.d, z24.d\n"
+ "mov z31.d, z24.d\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "5:\n"
+ "ld1rw z22.s, p7/z, [%[minptr]]\n"
+ "ld1rw z23.s, p7/z, [%[maxptr]]\n"
+ "fmax z24.s, p7/m, z24.s, z22.s\n"
+ "fmax z25.s, p7/m, z25.s, z22.s\n"
+ "fmax z26.s, p7/m, z26.s, z22.s\n"
+ "fmax z27.s, p7/m, z27.s, z22.s\n"
+ "fmin z24.s, p7/m, z24.s, z23.s\n"
+ "fmin z25.s, p7/m, z25.s, z23.s\n"
+ "fmin z26.s, p7/m, z26.s, z23.s\n"
+ "fmin z27.s, p7/m, z27.s, z23.s\n"
+ "st1w z24.s, p0, [%[c_ptr0]]\n"
+ "fmax z28.s, p7/m, z28.s, z22.s\n"
+ "addvl %[c_ptr0], %[c_ptr0], #1\n"
+ "fmax z29.s, p7/m, z29.s, z22.s\n"
+ "st1w z25.s, p0, [c_ptr1]\n"
+ "fmax z30.s, p7/m, z30.s, z22.s\n"
+ "fmin z28.s, p7/m, z28.s, z23.s\n"
+ "fmax z31.s, p7/m, z31.s, z22.s\n"
+ "st1w z26.s, p0, [c_ptr2]\n"
+ "fmin z29.s, p7/m, z29.s, z23.s\n"
+ "fmin z30.s, p7/m, z30.s, z23.s\n"
+ "fmin z31.s, p7/m, z31.s, z23.s\n"
+ "st1w z27.s, p0, [c_ptr3]\n"
+ "st1w z28.s, p0, [c_ptr4]\n"
+ "st1w z29.s, p0, [c_ptr5]\n"
+ "st1w z30.s, p0, [c_ptr6]\n"
+ "st1w z31.s, p0, [c_ptr7]\n"
+ ".unreq a_ptr1\n"
+ ".unreq a_ptr2\n"
+ ".unreq a_ptr3\n"
+ ".unreq a_ptr4\n"
+ ".unreq a_ptr5\n"
+ ".unreq a_ptr6\n"
+ ".unreq a_ptr7\n"
+ ".unreq c_ptr1\n"
+ ".unreq c_ptr2\n"
+ ".unreq c_ptr3\n"
+ ".unreq c_ptr4\n"
+ ".unreq c_ptr5\n"
+ ".unreq c_ptr6\n"
+ ".unreq c_ptr7\n"
+ : [a_ptr0] "+r" (a_ptr0), [b_ptr0] "+r" (b_ptr0), [c_ptr0] "+r" (c_ptr0), [loops] "+r" (loops), [oob_rows] "+r" (oob_rows), [temp] "+r" (temp), [biasptr] "+r" (biasptr)
+ : [lda] "r" (ldab), [ldc] "r" (ldcb), [odd_depth] "r" (odd_depth), [last_width] "r" (last_width), [biasinc] "r" (biasinc), [minptr] "r" (minptr), [maxptr] "r" (maxptr)
+ : "x0", "x1", "x2", "x3", "x4", "x5", "x6", "x7", "x8", "x9", "x10", "x11", "x12", "x13", "z0", "z1", "z2", "z3", "z4", "z5", "z6", "z7", "z8", "z9", "z10", "z11", "z12", "z13", "z14", "z15", "z16", "z17", "z18", "z19", "z20", "z21", "z22", "z23", "z24", "z25", "z26", "z27", "z28", "z29", "z30", "z31", "cc", "memory"
+ );
+ break;
+ case 3:
+ __asm __volatile (
+ "a_ptr1 .req X0\n"
+ "a_ptr2 .req X1\n"
+ "a_ptr3 .req X2\n"
+ "a_ptr4 .req X3\n"
+ "a_ptr5 .req X4\n"
+ "a_ptr6 .req X5\n"
+ "a_ptr7 .req X6\n"
+ "c_ptr1 .req X7\n"
+ "c_ptr2 .req X8\n"
+ "c_ptr3 .req X9\n"
+ "c_ptr4 .req X10\n"
+ "c_ptr5 .req X11\n"
+ "c_ptr6 .req X12\n"
+ "c_ptr7 .req X13\n"
+ "add a_ptr1, %[a_ptr0], %[lda]\n"
+ "add c_ptr1, %[c_ptr0], %[ldc]\n"
+ "add a_ptr2, a_ptr1, %[lda]\n"
+ "add c_ptr2, c_ptr1, %[ldc]\n"
+ "add a_ptr3, a_ptr2, %[lda]\n"
+ "add c_ptr3, c_ptr2, %[ldc]\n"
+ "add a_ptr4, a_ptr3, %[lda]\n"
+ "add c_ptr4, c_ptr3, %[ldc]\n"
+ "add a_ptr5, a_ptr4, %[lda]\n"
+ "add c_ptr5, c_ptr4, %[ldc]\n"
+ "add a_ptr6, a_ptr5, %[lda]\n"
+ "add c_ptr6, c_ptr5, %[ldc]\n"
+ "add a_ptr7, a_ptr6, %[lda]\n"
+ "add c_ptr7, c_ptr6, %[ldc]\n"
+ "cbz %[oob_rows], 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr7, %[c_ptr0], #0x0\n"
+ "add a_ptr7, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr6, %[c_ptr0], #0x0\n"
+ "add a_ptr6, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr5, %[c_ptr0], #0x0\n"
+ "add a_ptr5, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr4, %[c_ptr0], #0x0\n"
+ "add a_ptr4, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr3, %[c_ptr0], #0x0\n"
+ "add a_ptr3, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr2, %[c_ptr0], #0x0\n"
+ "add a_ptr2, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr1, %[c_ptr0], #0x0\n"
+ "add a_ptr1, %[a_ptr0], #0x0\n"
+ "1:\n"
+ "ptrue p7.s\n"
+ "whilelt p6.s, %[temp], %[odd_depth]\n"
+ "whilelt p0.s, %[temp], %[last_width]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0]]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #3\n"
+ "cbz %[loops], 2f\n"
+ "ld1w z24.s, p7/z, [%[biasptr]]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "subs %[loops], %[loops], #0x1\n"
+ "mov z25.d, z24.d\n"
+ "mov z26.d, z24.d\n"
+ "mov z27.d, z24.d\n"
+ "mov z28.d, z24.d\n"
+ "mov z29.d, z24.d\n"
+ "mov z30.d, z24.d\n"
+ "mov z31.d, z24.d\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "b.eq 3f\n"
+ "4:\n"
+ "ld1rw z22.s, p7/z, [%[minptr]]\n"
+ "subs %[loops], %[loops], #0x1\n"
+ "ld1rw z23.s, p7/z, [%[maxptr]]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmax z24.s, p7/m, z24.s, z22.s\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmax z25.s, p7/m, z25.s, z22.s\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmax z26.s, p7/m, z26.s, z22.s\n"
+ "addvl %[b_ptr0], %[b_ptr0], #3\n"
+ "fmin z24.s, p7/m, z24.s, z23.s\n"
+ "fmin z25.s, p7/m, z25.s, z23.s\n"
+ "fmin z26.s, p7/m, z26.s, z23.s\n"
+ "fmax z27.s, p7/m, z27.s, z22.s\n"
+ "st1w z24.s, p7, [%[c_ptr0]]\n"
+ "fmax z28.s, p7/m, z28.s, z22.s\n"
+ "ld1w z24.s, p7/z, [%[biasptr]]\n"
+ "fmax z29.s, p7/m, z29.s, z22.s\n"
+ "addvl %[c_ptr0], %[c_ptr0], #1\n"
+ "fmin z27.s, p7/m, z27.s, z23.s\n"
+ "st1w z25.s, p7, [c_ptr1]\n"
+ "fmin z28.s, p7/m, z28.s, z23.s\n"
+ "addvl c_ptr1, c_ptr1, #1\n"
+ "fmin z29.s, p7/m, z29.s, z23.s\n"
+ "st1w z26.s, p7, [c_ptr2]\n"
+ "fmax z30.s, p7/m, z30.s, z22.s\n"
+ "addvl c_ptr2, c_ptr2, #1\n"
+ "fmax z31.s, p7/m, z31.s, z22.s\n"
+ "st1w z27.s, p7, [c_ptr3]\n"
+ "mov z25.d, z24.d\n"
+ "addvl c_ptr3, c_ptr3, #1\n"
+ "fmin z30.s, p7/m, z30.s, z23.s\n"
+ "st1w z28.s, p7, [c_ptr4]\n"
+ "fmin z31.s, p7/m, z31.s, z23.s\n"
+ "addvl c_ptr4, c_ptr4, #1\n"
+ "mov z26.d, z24.d\n"
+ "st1w z29.s, p7, [c_ptr5]\n"
+ "mov z27.d, z24.d\n"
+ "addvl c_ptr5, c_ptr5, #1\n"
+ "mov z28.d, z24.d\n"
+ "st1w z30.s, p7, [c_ptr6]\n"
+ "mov z29.d, z24.d\n"
+ "addvl c_ptr6, c_ptr6, #1\n"
+ "mov z30.d, z24.d\n"
+ "st1w z31.s, p7, [c_ptr7]\n"
+ "mov z31.d, z24.d\n"
+ "addvl c_ptr7, c_ptr7, #1\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "b.ne 4b\n"
+ "3:\n"
+ "ld1rw z22.s, p7/z, [%[minptr]]\n"
+ "ld1rw z23.s, p7/z, [%[maxptr]]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmax z24.s, p7/m, z24.s, z22.s\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmax z25.s, p7/m, z25.s, z22.s\n"
+ "addvl %[b_ptr0], %[b_ptr0], #3\n"
+ "fmax z26.s, p7/m, z26.s, z22.s\n"
+ "fmin z24.s, p7/m, z24.s, z23.s\n"
+ "fmin z25.s, p7/m, z25.s, z23.s\n"
+ "fmax z27.s, p7/m, z27.s, z22.s\n"
+ "fmin z26.s, p7/m, z26.s, z23.s\n"
+ "st1w z24.s, p7, [%[c_ptr0]]\n"
+ "fmax z28.s, p7/m, z28.s, z22.s\n"
+ "ld1w z24.s, p0/z, [%[biasptr]]\n"
+ "fmax z29.s, p7/m, z29.s, z22.s\n"
+ "addvl %[c_ptr0], %[c_ptr0], #1\n"
+ "fmin z27.s, p7/m, z27.s, z23.s\n"
+ "st1w z25.s, p7, [c_ptr1]\n"
+ "fmin z28.s, p7/m, z28.s, z23.s\n"
+ "addvl c_ptr1, c_ptr1, #1\n"
+ "fmin z29.s, p7/m, z29.s, z23.s\n"
+ "st1w z26.s, p7, [c_ptr2]\n"
+ "fmax z30.s, p7/m, z30.s, z22.s\n"
+ "addvl c_ptr2, c_ptr2, #1\n"
+ "fmax z31.s, p7/m, z31.s, z22.s\n"
+ "st1w z27.s, p7, [c_ptr3]\n"
+ "mov z25.d, z24.d\n"
+ "addvl c_ptr3, c_ptr3, #1\n"
+ "fmin z30.s, p7/m, z30.s, z23.s\n"
+ "st1w z28.s, p7, [c_ptr4]\n"
+ "fmin z31.s, p7/m, z31.s, z23.s\n"
+ "addvl c_ptr4, c_ptr4, #1\n"
+ "mov z26.d, z24.d\n"
+ "st1w z29.s, p7, [c_ptr5]\n"
+ "mov z27.d, z24.d\n"
+ "addvl c_ptr5, c_ptr5, #1\n"
+ "mov z28.d, z24.d\n"
+ "st1w z30.s, p7, [c_ptr6]\n"
+ "mov z29.d, z24.d\n"
+ "addvl c_ptr6, c_ptr6, #1\n"
+ "mov z30.d, z24.d\n"
+ "st1w z31.s, p7, [c_ptr7]\n"
+ "mov z31.d, z24.d\n"
+ "addvl c_ptr7, c_ptr7, #1\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "b 5f\n"
+ "2:\n"
+ "ld1w z24.s, p0/z, [%[biasptr]]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "mov z25.d, z24.d\n"
+ "mov z26.d, z24.d\n"
+ "mov z27.d, z24.d\n"
+ "mov z28.d, z24.d\n"
+ "mov z29.d, z24.d\n"
+ "mov z30.d, z24.d\n"
+ "mov z31.d, z24.d\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "5:\n"
+ "ld1rw z22.s, p7/z, [%[minptr]]\n"
+ "ld1rw z23.s, p7/z, [%[maxptr]]\n"
+ "fmax z24.s, p7/m, z24.s, z22.s\n"
+ "fmax z25.s, p7/m, z25.s, z22.s\n"
+ "fmax z26.s, p7/m, z26.s, z22.s\n"
+ "fmax z27.s, p7/m, z27.s, z22.s\n"
+ "fmin z24.s, p7/m, z24.s, z23.s\n"
+ "fmin z25.s, p7/m, z25.s, z23.s\n"
+ "fmin z26.s, p7/m, z26.s, z23.s\n"
+ "fmin z27.s, p7/m, z27.s, z23.s\n"
+ "st1w z24.s, p0, [%[c_ptr0]]\n"
+ "fmax z28.s, p7/m, z28.s, z22.s\n"
+ "addvl %[c_ptr0], %[c_ptr0], #1\n"
+ "fmax z29.s, p7/m, z29.s, z22.s\n"
+ "st1w z25.s, p0, [c_ptr1]\n"
+ "fmax z30.s, p7/m, z30.s, z22.s\n"
+ "fmin z28.s, p7/m, z28.s, z23.s\n"
+ "fmax z31.s, p7/m, z31.s, z22.s\n"
+ "st1w z26.s, p0, [c_ptr2]\n"
+ "fmin z29.s, p7/m, z29.s, z23.s\n"
+ "fmin z30.s, p7/m, z30.s, z23.s\n"
+ "fmin z31.s, p7/m, z31.s, z23.s\n"
+ "st1w z27.s, p0, [c_ptr3]\n"
+ "st1w z28.s, p0, [c_ptr4]\n"
+ "st1w z29.s, p0, [c_ptr5]\n"
+ "st1w z30.s, p0, [c_ptr6]\n"
+ "st1w z31.s, p0, [c_ptr7]\n"
+ ".unreq a_ptr1\n"
+ ".unreq a_ptr2\n"
+ ".unreq a_ptr3\n"
+ ".unreq a_ptr4\n"
+ ".unreq a_ptr5\n"
+ ".unreq a_ptr6\n"
+ ".unreq a_ptr7\n"
+ ".unreq c_ptr1\n"
+ ".unreq c_ptr2\n"
+ ".unreq c_ptr3\n"
+ ".unreq c_ptr4\n"
+ ".unreq c_ptr5\n"
+ ".unreq c_ptr6\n"
+ ".unreq c_ptr7\n"
+ : [a_ptr0] "+r" (a_ptr0), [b_ptr0] "+r" (b_ptr0), [c_ptr0] "+r" (c_ptr0), [loops] "+r" (loops), [oob_rows] "+r" (oob_rows), [temp] "+r" (temp), [biasptr] "+r" (biasptr)
+ : [lda] "r" (ldab), [ldc] "r" (ldcb), [odd_depth] "r" (odd_depth), [last_width] "r" (last_width), [biasinc] "r" (biasinc), [minptr] "r" (minptr), [maxptr] "r" (maxptr)
+ : "x0", "x1", "x2", "x3", "x4", "x5", "x6", "x7", "x8", "x9", "x10", "x11", "x12", "x13", "z0", "z1", "z2", "z3", "z4", "z5", "z6", "z7", "z8", "z9", "z10", "z11", "z12", "z13", "z14", "z15", "z16", "z17", "z18", "z19", "z20", "z21", "z22", "z23", "z24", "z25", "z26", "z27", "z28", "z29", "z30", "z31", "cc", "memory"
+ );
+ break;
+ case 4:
+ __asm __volatile (
+ "a_ptr1 .req X0\n"
+ "a_ptr2 .req X1\n"
+ "a_ptr3 .req X2\n"
+ "a_ptr4 .req X3\n"
+ "a_ptr5 .req X4\n"
+ "a_ptr6 .req X5\n"
+ "a_ptr7 .req X6\n"
+ "c_ptr1 .req X7\n"
+ "c_ptr2 .req X8\n"
+ "c_ptr3 .req X9\n"
+ "c_ptr4 .req X10\n"
+ "c_ptr5 .req X11\n"
+ "c_ptr6 .req X12\n"
+ "c_ptr7 .req X13\n"
+ "add a_ptr1, %[a_ptr0], %[lda]\n"
+ "add c_ptr1, %[c_ptr0], %[ldc]\n"
+ "add a_ptr2, a_ptr1, %[lda]\n"
+ "add c_ptr2, c_ptr1, %[ldc]\n"
+ "add a_ptr3, a_ptr2, %[lda]\n"
+ "add c_ptr3, c_ptr2, %[ldc]\n"
+ "add a_ptr4, a_ptr3, %[lda]\n"
+ "add c_ptr4, c_ptr3, %[ldc]\n"
+ "add a_ptr5, a_ptr4, %[lda]\n"
+ "add c_ptr5, c_ptr4, %[ldc]\n"
+ "add a_ptr6, a_ptr5, %[lda]\n"
+ "add c_ptr6, c_ptr5, %[ldc]\n"
+ "add a_ptr7, a_ptr6, %[lda]\n"
+ "add c_ptr7, c_ptr6, %[ldc]\n"
+ "cbz %[oob_rows], 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr7, %[c_ptr0], #0x0\n"
+ "add a_ptr7, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr6, %[c_ptr0], #0x0\n"
+ "add a_ptr6, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr5, %[c_ptr0], #0x0\n"
+ "add a_ptr5, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr4, %[c_ptr0], #0x0\n"
+ "add a_ptr4, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr3, %[c_ptr0], #0x0\n"
+ "add a_ptr3, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr2, %[c_ptr0], #0x0\n"
+ "add a_ptr2, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr1, %[c_ptr0], #0x0\n"
+ "add a_ptr1, %[a_ptr0], #0x0\n"
+ "1:\n"
+ "ptrue p7.s\n"
+ "whilelt p6.s, %[temp], %[odd_depth]\n"
+ "whilelt p0.s, %[temp], %[last_width]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0]]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #4\n"
+ "cbz %[loops], 2f\n"
+ "ld1w z24.s, p7/z, [%[biasptr]]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "subs %[loops], %[loops], #0x1\n"
+ "mov z25.d, z24.d\n"
+ "mov z26.d, z24.d\n"
+ "mov z27.d, z24.d\n"
+ "mov z28.d, z24.d\n"
+ "mov z29.d, z24.d\n"
+ "mov z30.d, z24.d\n"
+ "mov z31.d, z24.d\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "b.eq 3f\n"
+ "4:\n"
+ "ld1rw z22.s, p7/z, [%[minptr]]\n"
+ "subs %[loops], %[loops], #0x1\n"
+ "ld1rw z23.s, p7/z, [%[maxptr]]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmax z24.s, p7/m, z24.s, z22.s\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmax z25.s, p7/m, z25.s, z22.s\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmax z26.s, p7/m, z26.s, z22.s\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmax z27.s, p7/m, z27.s, z22.s\n"
+ "addvl %[b_ptr0], %[b_ptr0], #4\n"
+ "fmin z24.s, p7/m, z24.s, z23.s\n"
+ "fmin z25.s, p7/m, z25.s, z23.s\n"
+ "fmin z26.s, p7/m, z26.s, z23.s\n"
+ "fmin z27.s, p7/m, z27.s, z23.s\n"
+ "st1w z24.s, p7, [%[c_ptr0]]\n"
+ "fmax z28.s, p7/m, z28.s, z22.s\n"
+ "ld1w z24.s, p7/z, [%[biasptr]]\n"
+ "fmax z29.s, p7/m, z29.s, z22.s\n"
+ "addvl %[c_ptr0], %[c_ptr0], #1\n"
+ "fmax z30.s, p7/m, z30.s, z22.s\n"
+ "st1w z25.s, p7, [c_ptr1]\n"
+ "fmin z28.s, p7/m, z28.s, z23.s\n"
+ "addvl c_ptr1, c_ptr1, #1\n"
+ "fmin z29.s, p7/m, z29.s, z23.s\n"
+ "st1w z26.s, p7, [c_ptr2]\n"
+ "fmin z30.s, p7/m, z30.s, z23.s\n"
+ "addvl c_ptr2, c_ptr2, #1\n"
+ "fmax z31.s, p7/m, z31.s, z22.s\n"
+ "st1w z27.s, p7, [c_ptr3]\n"
+ "mov z25.d, z24.d\n"
+ "addvl c_ptr3, c_ptr3, #1\n"
+ "mov z26.d, z24.d\n"
+ "st1w z28.s, p7, [c_ptr4]\n"
+ "fmin z31.s, p7/m, z31.s, z23.s\n"
+ "addvl c_ptr4, c_ptr4, #1\n"
+ "mov z27.d, z24.d\n"
+ "st1w z29.s, p7, [c_ptr5]\n"
+ "mov z28.d, z24.d\n"
+ "addvl c_ptr5, c_ptr5, #1\n"
+ "mov z29.d, z24.d\n"
+ "st1w z30.s, p7, [c_ptr6]\n"
+ "mov z30.d, z24.d\n"
+ "addvl c_ptr6, c_ptr6, #1\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "st1w z31.s, p7, [c_ptr7]\n"
+ "mov z31.d, z24.d\n"
+ "addvl c_ptr7, c_ptr7, #1\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "b.ne 4b\n"
+ "3:\n"
+ "ld1rw z22.s, p7/z, [%[minptr]]\n"
+ "ld1rw z23.s, p7/z, [%[maxptr]]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmax z24.s, p7/m, z24.s, z22.s\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmax z25.s, p7/m, z25.s, z22.s\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmax z26.s, p7/m, z26.s, z22.s\n"
+ "addvl %[b_ptr0], %[b_ptr0], #4\n"
+ "fmin z24.s, p7/m, z24.s, z23.s\n"
+ "fmin z25.s, p7/m, z25.s, z23.s\n"
+ "fmin z26.s, p7/m, z26.s, z23.s\n"
+ "fmax z27.s, p7/m, z27.s, z22.s\n"
+ "st1w z24.s, p7, [%[c_ptr0]]\n"
+ "fmax z28.s, p7/m, z28.s, z22.s\n"
+ "ld1w z24.s, p0/z, [%[biasptr]]\n"
+ "fmax z29.s, p7/m, z29.s, z22.s\n"
+ "addvl %[c_ptr0], %[c_ptr0], #1\n"
+ "fmin z27.s, p7/m, z27.s, z23.s\n"
+ "st1w z25.s, p7, [c_ptr1]\n"
+ "fmin z28.s, p7/m, z28.s, z23.s\n"
+ "addvl c_ptr1, c_ptr1, #1\n"
+ "fmin z29.s, p7/m, z29.s, z23.s\n"
+ "st1w z26.s, p7, [c_ptr2]\n"
+ "fmax z30.s, p7/m, z30.s, z22.s\n"
+ "addvl c_ptr2, c_ptr2, #1\n"
+ "fmax z31.s, p7/m, z31.s, z22.s\n"
+ "st1w z27.s, p7, [c_ptr3]\n"
+ "mov z25.d, z24.d\n"
+ "addvl c_ptr3, c_ptr3, #1\n"
+ "fmin z30.s, p7/m, z30.s, z23.s\n"
+ "st1w z28.s, p7, [c_ptr4]\n"
+ "fmin z31.s, p7/m, z31.s, z23.s\n"
+ "addvl c_ptr4, c_ptr4, #1\n"
+ "mov z26.d, z24.d\n"
+ "st1w z29.s, p7, [c_ptr5]\n"
+ "mov z27.d, z24.d\n"
+ "addvl c_ptr5, c_ptr5, #1\n"
+ "mov z28.d, z24.d\n"
+ "st1w z30.s, p7, [c_ptr6]\n"
+ "mov z29.d, z24.d\n"
+ "addvl c_ptr6, c_ptr6, #1\n"
+ "mov z30.d, z24.d\n"
+ "st1w z31.s, p7, [c_ptr7]\n"
+ "mov z31.d, z24.d\n"
+ "addvl c_ptr7, c_ptr7, #1\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "b 5f\n"
+ "2:\n"
+ "ld1w z24.s, p0/z, [%[biasptr]]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "mov z25.d, z24.d\n"
+ "mov z26.d, z24.d\n"
+ "mov z27.d, z24.d\n"
+ "mov z28.d, z24.d\n"
+ "mov z29.d, z24.d\n"
+ "mov z30.d, z24.d\n"
+ "mov z31.d, z24.d\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "5:\n"
+ "ld1rw z22.s, p7/z, [%[minptr]]\n"
+ "ld1rw z23.s, p7/z, [%[maxptr]]\n"
+ "fmax z24.s, p7/m, z24.s, z22.s\n"
+ "fmax z25.s, p7/m, z25.s, z22.s\n"
+ "fmax z26.s, p7/m, z26.s, z22.s\n"
+ "fmax z27.s, p7/m, z27.s, z22.s\n"
+ "fmin z24.s, p7/m, z24.s, z23.s\n"
+ "fmin z25.s, p7/m, z25.s, z23.s\n"
+ "fmin z26.s, p7/m, z26.s, z23.s\n"
+ "fmin z27.s, p7/m, z27.s, z23.s\n"
+ "st1w z24.s, p0, [%[c_ptr0]]\n"
+ "fmax z28.s, p7/m, z28.s, z22.s\n"
+ "addvl %[c_ptr0], %[c_ptr0], #1\n"
+ "fmax z29.s, p7/m, z29.s, z22.s\n"
+ "st1w z25.s, p0, [c_ptr1]\n"
+ "fmax z30.s, p7/m, z30.s, z22.s\n"
+ "fmin z28.s, p7/m, z28.s, z23.s\n"
+ "fmax z31.s, p7/m, z31.s, z22.s\n"
+ "st1w z26.s, p0, [c_ptr2]\n"
+ "fmin z29.s, p7/m, z29.s, z23.s\n"
+ "fmin z30.s, p7/m, z30.s, z23.s\n"
+ "fmin z31.s, p7/m, z31.s, z23.s\n"
+ "st1w z27.s, p0, [c_ptr3]\n"
+ "st1w z28.s, p0, [c_ptr4]\n"
+ "st1w z29.s, p0, [c_ptr5]\n"
+ "st1w z30.s, p0, [c_ptr6]\n"
+ "st1w z31.s, p0, [c_ptr7]\n"
+ ".unreq a_ptr1\n"
+ ".unreq a_ptr2\n"
+ ".unreq a_ptr3\n"
+ ".unreq a_ptr4\n"
+ ".unreq a_ptr5\n"
+ ".unreq a_ptr6\n"
+ ".unreq a_ptr7\n"
+ ".unreq c_ptr1\n"
+ ".unreq c_ptr2\n"
+ ".unreq c_ptr3\n"
+ ".unreq c_ptr4\n"
+ ".unreq c_ptr5\n"
+ ".unreq c_ptr6\n"
+ ".unreq c_ptr7\n"
+ : [a_ptr0] "+r" (a_ptr0), [b_ptr0] "+r" (b_ptr0), [c_ptr0] "+r" (c_ptr0), [loops] "+r" (loops), [oob_rows] "+r" (oob_rows), [temp] "+r" (temp), [biasptr] "+r" (biasptr)
+ : [lda] "r" (ldab), [ldc] "r" (ldcb), [odd_depth] "r" (odd_depth), [last_width] "r" (last_width), [biasinc] "r" (biasinc), [minptr] "r" (minptr), [maxptr] "r" (maxptr)
+ : "x0", "x1", "x2", "x3", "x4", "x5", "x6", "x7", "x8", "x9", "x10", "x11", "x12", "x13", "z0", "z1", "z2", "z3", "z4", "z5", "z6", "z7", "z8", "z9", "z10", "z11", "z12", "z13", "z14", "z15", "z16", "z17", "z18", "z19", "z20", "z21", "z22", "z23", "z24", "z25", "z26", "z27", "z28", "z29", "z30", "z31", "cc", "memory"
+ );
+ break;
+ case 5:
+ __asm __volatile (
+ "a_ptr1 .req X0\n"
+ "a_ptr2 .req X1\n"
+ "a_ptr3 .req X2\n"
+ "a_ptr4 .req X3\n"
+ "a_ptr5 .req X4\n"
+ "a_ptr6 .req X5\n"
+ "a_ptr7 .req X6\n"
+ "c_ptr1 .req X7\n"
+ "c_ptr2 .req X8\n"
+ "c_ptr3 .req X9\n"
+ "c_ptr4 .req X10\n"
+ "c_ptr5 .req X11\n"
+ "c_ptr6 .req X12\n"
+ "c_ptr7 .req X13\n"
+ "add a_ptr1, %[a_ptr0], %[lda]\n"
+ "add c_ptr1, %[c_ptr0], %[ldc]\n"
+ "add a_ptr2, a_ptr1, %[lda]\n"
+ "add c_ptr2, c_ptr1, %[ldc]\n"
+ "add a_ptr3, a_ptr2, %[lda]\n"
+ "add c_ptr3, c_ptr2, %[ldc]\n"
+ "add a_ptr4, a_ptr3, %[lda]\n"
+ "add c_ptr4, c_ptr3, %[ldc]\n"
+ "add a_ptr5, a_ptr4, %[lda]\n"
+ "add c_ptr5, c_ptr4, %[ldc]\n"
+ "add a_ptr6, a_ptr5, %[lda]\n"
+ "add c_ptr6, c_ptr5, %[ldc]\n"
+ "add a_ptr7, a_ptr6, %[lda]\n"
+ "add c_ptr7, c_ptr6, %[ldc]\n"
+ "cbz %[oob_rows], 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr7, %[c_ptr0], #0x0\n"
+ "add a_ptr7, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr6, %[c_ptr0], #0x0\n"
+ "add a_ptr6, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr5, %[c_ptr0], #0x0\n"
+ "add a_ptr5, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr4, %[c_ptr0], #0x0\n"
+ "add a_ptr4, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr3, %[c_ptr0], #0x0\n"
+ "add a_ptr3, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr2, %[c_ptr0], #0x0\n"
+ "add a_ptr2, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr1, %[c_ptr0], #0x0\n"
+ "add a_ptr1, %[a_ptr0], #0x0\n"
+ "1:\n"
+ "ptrue p7.s\n"
+ "whilelt p6.s, %[temp], %[odd_depth]\n"
+ "whilelt p0.s, %[temp], %[last_width]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #5\n"
+ "cbz %[loops], 2f\n"
+ "ld1w z24.s, p7/z, [%[biasptr]]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0]]\n"
+ "subs %[loops], %[loops], #0x1\n"
+ "mov z25.d, z24.d\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1]\n"
+ "mov z26.d, z24.d\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2]\n"
+ "mov z27.d, z24.d\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3]\n"
+ "mov z28.d, z24.d\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4]\n"
+ "mov z29.d, z24.d\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5]\n"
+ "mov z30.d, z24.d\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6]\n"
+ "mov z31.d, z24.d\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0], #0x10]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1, #0x10]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2, #0x10]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3, #0x10]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4, #0x10]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5, #0x10]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6, #0x10]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7, #0x10]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "b.eq 3f\n"
+ "4:\n"
+ "ld1rw z22.s, p7/z, [%[minptr]]\n"
+ "subs %[loops], %[loops], #0x1\n"
+ "ld1rw z23.s, p7/z, [%[maxptr]]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmax z24.s, p7/m, z24.s, z22.s\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmax z25.s, p7/m, z25.s, z22.s\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmax z26.s, p7/m, z26.s, z22.s\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmax z27.s, p7/m, z27.s, z22.s\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmin z24.s, p7/m, z24.s, z23.s\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0]]\n"
+ "fmin z25.s, p7/m, z25.s, z23.s\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1]\n"
+ "fmin z26.s, p7/m, z26.s, z23.s\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2]\n"
+ "fmin z27.s, p7/m, z27.s, z23.s\n"
+ "st1w z24.s, p7, [%[c_ptr0]]\n"
+ "fmax z28.s, p7/m, z28.s, z22.s\n"
+ "ld1w z24.s, p7/z, [%[biasptr]]\n"
+ "fmax z29.s, p7/m, z29.s, z22.s\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3]\n"
+ "fmax z30.s, p7/m, z30.s, z22.s\n"
+ "st1w z25.s, p7, [c_ptr1]\n"
+ "fmax z31.s, p7/m, z31.s, z22.s\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4]\n"
+ "fmin z28.s, p7/m, z28.s, z23.s\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5]\n"
+ "fmin z29.s, p7/m, z29.s, z23.s\n"
+ "st1w z26.s, p7, [c_ptr2]\n"
+ "fmin z30.s, p7/m, z30.s, z23.s\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6]\n"
+ "fmin z31.s, p7/m, z31.s, z23.s\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7]\n"
+ "mov z25.d, z24.d\n"
+ "st1w z27.s, p7, [c_ptr3]\n"
+ "mov z26.d, z24.d\n"
+ "addvl %[c_ptr0], %[c_ptr0], #1\n"
+ "mov z27.d, z24.d\n"
+ "st1w z28.s, p7, [c_ptr4]\n"
+ "mov z28.d, z24.d\n"
+ "addvl c_ptr1, c_ptr1, #1\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "st1w z29.s, p7, [c_ptr5]\n"
+ "mov z29.d, z24.d\n"
+ "addvl c_ptr2, c_ptr2, #1\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "st1w z30.s, p7, [c_ptr6]\n"
+ "mov z30.d, z24.d\n"
+ "addvl c_ptr3, c_ptr3, #1\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "st1w z31.s, p7, [c_ptr7]\n"
+ "mov z31.d, z24.d\n"
+ "addvl c_ptr4, c_ptr4, #1\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "addvl c_ptr5, c_ptr5, #1\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "addvl c_ptr6, c_ptr6, #1\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "addvl c_ptr7, c_ptr7, #1\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #5\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0], #0x10]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1, #0x10]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2, #0x10]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3, #0x10]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4, #0x10]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5, #0x10]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6, #0x10]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7, #0x10]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "b.ne 4b\n"
+ "3:\n"
+ "ld1rw z22.s, p7/z, [%[minptr]]\n"
+ "ld1rw z23.s, p7/z, [%[maxptr]]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmax z24.s, p7/m, z24.s, z22.s\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmax z25.s, p7/m, z25.s, z22.s\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmax z26.s, p7/m, z26.s, z22.s\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmax z27.s, p7/m, z27.s, z22.s\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0]]\n"
+ "fmin z24.s, p7/m, z24.s, z23.s\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1]\n"
+ "fmin z25.s, p7/m, z25.s, z23.s\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2]\n"
+ "fmin z26.s, p7/m, z26.s, z23.s\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3]\n"
+ "fmin z27.s, p7/m, z27.s, z23.s\n"
+ "st1w z24.s, p7, [%[c_ptr0]]\n"
+ "fmax z28.s, p7/m, z28.s, z22.s\n"
+ "ld1w z24.s, p0/z, [%[biasptr]]\n"
+ "fmax z29.s, p7/m, z29.s, z22.s\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4]\n"
+ "fmax z30.s, p7/m, z30.s, z22.s\n"
+ "st1w z25.s, p7, [c_ptr1]\n"
+ "fmax z31.s, p7/m, z31.s, z22.s\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5]\n"
+ "fmin z28.s, p7/m, z28.s, z23.s\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6]\n"
+ "fmin z29.s, p7/m, z29.s, z23.s\n"
+ "st1w z26.s, p7, [c_ptr2]\n"
+ "fmin z30.s, p7/m, z30.s, z23.s\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7]\n"
+ "fmin z31.s, p7/m, z31.s, z23.s\n"
+ "addvl %[c_ptr0], %[c_ptr0], #1\n"
+ "mov z25.d, z24.d\n"
+ "st1w z27.s, p7, [c_ptr3]\n"
+ "mov z26.d, z24.d\n"
+ "addvl c_ptr1, c_ptr1, #1\n"
+ "mov z27.d, z24.d\n"
+ "st1w z28.s, p7, [c_ptr4]\n"
+ "mov z28.d, z24.d\n"
+ "addvl c_ptr2, c_ptr2, #1\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "st1w z29.s, p7, [c_ptr5]\n"
+ "mov z29.d, z24.d\n"
+ "addvl c_ptr3, c_ptr3, #1\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "st1w z30.s, p7, [c_ptr6]\n"
+ "mov z30.d, z24.d\n"
+ "addvl c_ptr4, c_ptr4, #1\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "st1w z31.s, p7, [c_ptr7]\n"
+ "mov z31.d, z24.d\n"
+ "addvl c_ptr5, c_ptr5, #1\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "addvl c_ptr6, c_ptr6, #1\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "addvl c_ptr7, c_ptr7, #1\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #5\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0], #0x10]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1, #0x10]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2, #0x10]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3, #0x10]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4, #0x10]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5, #0x10]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6, #0x10]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7, #0x10]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "b 5f\n"
+ "2:\n"
+ "ld1w z24.s, p0/z, [%[biasptr]]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0]]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1]\n"
+ "mov z25.d, z24.d\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2]\n"
+ "mov z26.d, z24.d\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3]\n"
+ "mov z27.d, z24.d\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4]\n"
+ "mov z28.d, z24.d\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5]\n"
+ "mov z29.d, z24.d\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6]\n"
+ "mov z30.d, z24.d\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7]\n"
+ "mov z31.d, z24.d\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0], #0x10]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1, #0x10]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2, #0x10]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3, #0x10]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4, #0x10]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5, #0x10]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6, #0x10]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7, #0x10]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "5:\n"
+ "ld1rw z22.s, p7/z, [%[minptr]]\n"
+ "ld1rw z23.s, p7/z, [%[maxptr]]\n"
+ "fmax z24.s, p7/m, z24.s, z22.s\n"
+ "fmax z25.s, p7/m, z25.s, z22.s\n"
+ "fmax z26.s, p7/m, z26.s, z22.s\n"
+ "fmax z27.s, p7/m, z27.s, z22.s\n"
+ "fmin z24.s, p7/m, z24.s, z23.s\n"
+ "fmin z25.s, p7/m, z25.s, z23.s\n"
+ "fmin z26.s, p7/m, z26.s, z23.s\n"
+ "fmin z27.s, p7/m, z27.s, z23.s\n"
+ "st1w z24.s, p0, [%[c_ptr0]]\n"
+ "fmax z28.s, p7/m, z28.s, z22.s\n"
+ "addvl %[c_ptr0], %[c_ptr0], #1\n"
+ "fmax z29.s, p7/m, z29.s, z22.s\n"
+ "st1w z25.s, p0, [c_ptr1]\n"
+ "fmax z30.s, p7/m, z30.s, z22.s\n"
+ "fmin z28.s, p7/m, z28.s, z23.s\n"
+ "fmax z31.s, p7/m, z31.s, z22.s\n"
+ "st1w z26.s, p0, [c_ptr2]\n"
+ "fmin z29.s, p7/m, z29.s, z23.s\n"
+ "fmin z30.s, p7/m, z30.s, z23.s\n"
+ "fmin z31.s, p7/m, z31.s, z23.s\n"
+ "st1w z27.s, p0, [c_ptr3]\n"
+ "st1w z28.s, p0, [c_ptr4]\n"
+ "st1w z29.s, p0, [c_ptr5]\n"
+ "st1w z30.s, p0, [c_ptr6]\n"
+ "st1w z31.s, p0, [c_ptr7]\n"
+ ".unreq a_ptr1\n"
+ ".unreq a_ptr2\n"
+ ".unreq a_ptr3\n"
+ ".unreq a_ptr4\n"
+ ".unreq a_ptr5\n"
+ ".unreq a_ptr6\n"
+ ".unreq a_ptr7\n"
+ ".unreq c_ptr1\n"
+ ".unreq c_ptr2\n"
+ ".unreq c_ptr3\n"
+ ".unreq c_ptr4\n"
+ ".unreq c_ptr5\n"
+ ".unreq c_ptr6\n"
+ ".unreq c_ptr7\n"
+ : [a_ptr0] "+r" (a_ptr0), [b_ptr0] "+r" (b_ptr0), [c_ptr0] "+r" (c_ptr0), [loops] "+r" (loops), [oob_rows] "+r" (oob_rows), [temp] "+r" (temp), [biasptr] "+r" (biasptr)
+ : [lda] "r" (ldab), [ldc] "r" (ldcb), [odd_depth] "r" (odd_depth), [last_width] "r" (last_width), [biasinc] "r" (biasinc), [minptr] "r" (minptr), [maxptr] "r" (maxptr)
+ : "x0", "x1", "x2", "x3", "x4", "x5", "x6", "x7", "x8", "x9", "x10", "x11", "x12", "x13", "z0", "z1", "z2", "z3", "z4", "z5", "z6", "z7", "z8", "z9", "z10", "z11", "z12", "z13", "z14", "z15", "z16", "z17", "z18", "z19", "z20", "z21", "z22", "z23", "z24", "z25", "z26", "z27", "z28", "z29", "z30", "z31", "cc", "memory"
+ );
+ break;
+ case 6:
+ __asm __volatile (
+ "a_ptr1 .req X0\n"
+ "a_ptr2 .req X1\n"
+ "a_ptr3 .req X2\n"
+ "a_ptr4 .req X3\n"
+ "a_ptr5 .req X4\n"
+ "a_ptr6 .req X5\n"
+ "a_ptr7 .req X6\n"
+ "c_ptr1 .req X7\n"
+ "c_ptr2 .req X8\n"
+ "c_ptr3 .req X9\n"
+ "c_ptr4 .req X10\n"
+ "c_ptr5 .req X11\n"
+ "c_ptr6 .req X12\n"
+ "c_ptr7 .req X13\n"
+ "add a_ptr1, %[a_ptr0], %[lda]\n"
+ "add c_ptr1, %[c_ptr0], %[ldc]\n"
+ "add a_ptr2, a_ptr1, %[lda]\n"
+ "add c_ptr2, c_ptr1, %[ldc]\n"
+ "add a_ptr3, a_ptr2, %[lda]\n"
+ "add c_ptr3, c_ptr2, %[ldc]\n"
+ "add a_ptr4, a_ptr3, %[lda]\n"
+ "add c_ptr4, c_ptr3, %[ldc]\n"
+ "add a_ptr5, a_ptr4, %[lda]\n"
+ "add c_ptr5, c_ptr4, %[ldc]\n"
+ "add a_ptr6, a_ptr5, %[lda]\n"
+ "add c_ptr6, c_ptr5, %[ldc]\n"
+ "add a_ptr7, a_ptr6, %[lda]\n"
+ "add c_ptr7, c_ptr6, %[ldc]\n"
+ "cbz %[oob_rows], 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr7, %[c_ptr0], #0x0\n"
+ "add a_ptr7, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr6, %[c_ptr0], #0x0\n"
+ "add a_ptr6, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr5, %[c_ptr0], #0x0\n"
+ "add a_ptr5, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr4, %[c_ptr0], #0x0\n"
+ "add a_ptr4, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr3, %[c_ptr0], #0x0\n"
+ "add a_ptr3, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr2, %[c_ptr0], #0x0\n"
+ "add a_ptr2, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr1, %[c_ptr0], #0x0\n"
+ "add a_ptr1, %[a_ptr0], #0x0\n"
+ "1:\n"
+ "ptrue p7.s\n"
+ "whilelt p6.s, %[temp], %[odd_depth]\n"
+ "whilelt p0.s, %[temp], %[last_width]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #6\n"
+ "cbz %[loops], 2f\n"
+ "ld1w z24.s, p7/z, [%[biasptr]]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0]]\n"
+ "subs %[loops], %[loops], #0x1\n"
+ "mov z25.d, z24.d\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1]\n"
+ "mov z26.d, z24.d\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2]\n"
+ "mov z27.d, z24.d\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3]\n"
+ "mov z28.d, z24.d\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4]\n"
+ "mov z29.d, z24.d\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5]\n"
+ "mov z30.d, z24.d\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6]\n"
+ "mov z31.d, z24.d\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0], #0x10]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1, #0x10]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2, #0x10]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3, #0x10]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4, #0x10]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5, #0x10]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6, #0x10]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7, #0x10]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "b.eq 3f\n"
+ "4:\n"
+ "ld1rw z22.s, p7/z, [%[minptr]]\n"
+ "subs %[loops], %[loops], #0x1\n"
+ "ld1rw z23.s, p7/z, [%[maxptr]]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmax z24.s, p7/m, z24.s, z22.s\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmax z25.s, p7/m, z25.s, z22.s\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmax z26.s, p7/m, z26.s, z22.s\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmax z27.s, p7/m, z27.s, z22.s\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmin z24.s, p7/m, z24.s, z23.s\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmin z25.s, p7/m, z25.s, z23.s\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0]]\n"
+ "fmin z26.s, p7/m, z26.s, z23.s\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1]\n"
+ "fmin z27.s, p7/m, z27.s, z23.s\n"
+ "st1w z24.s, p7, [%[c_ptr0]]\n"
+ "fmax z28.s, p7/m, z28.s, z22.s\n"
+ "ld1w z24.s, p7/z, [%[biasptr]]\n"
+ "fmax z29.s, p7/m, z29.s, z22.s\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2]\n"
+ "fmax z30.s, p7/m, z30.s, z22.s\n"
+ "st1w z25.s, p7, [c_ptr1]\n"
+ "fmax z31.s, p7/m, z31.s, z22.s\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3]\n"
+ "fmin z28.s, p7/m, z28.s, z23.s\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4]\n"
+ "fmin z29.s, p7/m, z29.s, z23.s\n"
+ "st1w z26.s, p7, [c_ptr2]\n"
+ "fmin z30.s, p7/m, z30.s, z23.s\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5]\n"
+ "fmin z31.s, p7/m, z31.s, z23.s\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6]\n"
+ "mov z25.d, z24.d\n"
+ "st1w z27.s, p7, [c_ptr3]\n"
+ "mov z26.d, z24.d\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7]\n"
+ "mov z27.d, z24.d\n"
+ "addvl %[c_ptr0], %[c_ptr0], #1\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "st1w z28.s, p7, [c_ptr4]\n"
+ "mov z28.d, z24.d\n"
+ "addvl c_ptr1, c_ptr1, #1\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "st1w z29.s, p7, [c_ptr5]\n"
+ "mov z29.d, z24.d\n"
+ "addvl c_ptr2, c_ptr2, #1\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "st1w z30.s, p7, [c_ptr6]\n"
+ "mov z30.d, z24.d\n"
+ "addvl c_ptr3, c_ptr3, #1\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "st1w z31.s, p7, [c_ptr7]\n"
+ "mov z31.d, z24.d\n"
+ "addvl c_ptr4, c_ptr4, #1\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "addvl c_ptr5, c_ptr5, #1\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "addvl c_ptr6, c_ptr6, #1\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "addvl c_ptr7, c_ptr7, #1\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #6\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0], #0x10]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1, #0x10]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2, #0x10]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3, #0x10]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4, #0x10]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5, #0x10]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6, #0x10]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7, #0x10]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "b.ne 4b\n"
+ "3:\n"
+ "ld1rw z22.s, p7/z, [%[minptr]]\n"
+ "ld1rw z23.s, p7/z, [%[maxptr]]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmax z24.s, p7/m, z24.s, z22.s\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmax z25.s, p7/m, z25.s, z22.s\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmax z26.s, p7/m, z26.s, z22.s\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmax z27.s, p7/m, z27.s, z22.s\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmin z24.s, p7/m, z24.s, z23.s\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0]]\n"
+ "fmin z25.s, p7/m, z25.s, z23.s\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1]\n"
+ "fmin z26.s, p7/m, z26.s, z23.s\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2]\n"
+ "fmin z27.s, p7/m, z27.s, z23.s\n"
+ "st1w z24.s, p7, [%[c_ptr0]]\n"
+ "fmax z28.s, p7/m, z28.s, z22.s\n"
+ "ld1w z24.s, p0/z, [%[biasptr]]\n"
+ "fmax z29.s, p7/m, z29.s, z22.s\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3]\n"
+ "fmax z30.s, p7/m, z30.s, z22.s\n"
+ "st1w z25.s, p7, [c_ptr1]\n"
+ "fmax z31.s, p7/m, z31.s, z22.s\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4]\n"
+ "fmin z28.s, p7/m, z28.s, z23.s\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5]\n"
+ "fmin z29.s, p7/m, z29.s, z23.s\n"
+ "st1w z26.s, p7, [c_ptr2]\n"
+ "fmin z30.s, p7/m, z30.s, z23.s\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6]\n"
+ "fmin z31.s, p7/m, z31.s, z23.s\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7]\n"
+ "mov z25.d, z24.d\n"
+ "st1w z27.s, p7, [c_ptr3]\n"
+ "mov z26.d, z24.d\n"
+ "addvl %[c_ptr0], %[c_ptr0], #1\n"
+ "mov z27.d, z24.d\n"
+ "st1w z28.s, p7, [c_ptr4]\n"
+ "mov z28.d, z24.d\n"
+ "addvl c_ptr1, c_ptr1, #1\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "st1w z29.s, p7, [c_ptr5]\n"
+ "mov z29.d, z24.d\n"
+ "addvl c_ptr2, c_ptr2, #1\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "st1w z30.s, p7, [c_ptr6]\n"
+ "mov z30.d, z24.d\n"
+ "addvl c_ptr3, c_ptr3, #1\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "st1w z31.s, p7, [c_ptr7]\n"
+ "mov z31.d, z24.d\n"
+ "addvl c_ptr4, c_ptr4, #1\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "addvl c_ptr5, c_ptr5, #1\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "addvl c_ptr6, c_ptr6, #1\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "addvl c_ptr7, c_ptr7, #1\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #6\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0], #0x10]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1, #0x10]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2, #0x10]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3, #0x10]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4, #0x10]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5, #0x10]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6, #0x10]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7, #0x10]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "b 5f\n"
+ "2:\n"
+ "ld1w z24.s, p0/z, [%[biasptr]]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0]]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1]\n"
+ "mov z25.d, z24.d\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2]\n"
+ "mov z26.d, z24.d\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3]\n"
+ "mov z27.d, z24.d\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4]\n"
+ "mov z28.d, z24.d\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5]\n"
+ "mov z29.d, z24.d\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6]\n"
+ "mov z30.d, z24.d\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7]\n"
+ "mov z31.d, z24.d\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0], #0x10]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1, #0x10]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2, #0x10]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3, #0x10]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4, #0x10]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5, #0x10]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6, #0x10]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7, #0x10]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "5:\n"
+ "ld1rw z22.s, p7/z, [%[minptr]]\n"
+ "ld1rw z23.s, p7/z, [%[maxptr]]\n"
+ "fmax z24.s, p7/m, z24.s, z22.s\n"
+ "fmax z25.s, p7/m, z25.s, z22.s\n"
+ "fmax z26.s, p7/m, z26.s, z22.s\n"
+ "fmax z27.s, p7/m, z27.s, z22.s\n"
+ "fmin z24.s, p7/m, z24.s, z23.s\n"
+ "fmin z25.s, p7/m, z25.s, z23.s\n"
+ "fmin z26.s, p7/m, z26.s, z23.s\n"
+ "fmin z27.s, p7/m, z27.s, z23.s\n"
+ "st1w z24.s, p0, [%[c_ptr0]]\n"
+ "fmax z28.s, p7/m, z28.s, z22.s\n"
+ "addvl %[c_ptr0], %[c_ptr0], #1\n"
+ "fmax z29.s, p7/m, z29.s, z22.s\n"
+ "st1w z25.s, p0, [c_ptr1]\n"
+ "fmax z30.s, p7/m, z30.s, z22.s\n"
+ "fmin z28.s, p7/m, z28.s, z23.s\n"
+ "fmax z31.s, p7/m, z31.s, z22.s\n"
+ "st1w z26.s, p0, [c_ptr2]\n"
+ "fmin z29.s, p7/m, z29.s, z23.s\n"
+ "fmin z30.s, p7/m, z30.s, z23.s\n"
+ "fmin z31.s, p7/m, z31.s, z23.s\n"
+ "st1w z27.s, p0, [c_ptr3]\n"
+ "st1w z28.s, p0, [c_ptr4]\n"
+ "st1w z29.s, p0, [c_ptr5]\n"
+ "st1w z30.s, p0, [c_ptr6]\n"
+ "st1w z31.s, p0, [c_ptr7]\n"
+ ".unreq a_ptr1\n"
+ ".unreq a_ptr2\n"
+ ".unreq a_ptr3\n"
+ ".unreq a_ptr4\n"
+ ".unreq a_ptr5\n"
+ ".unreq a_ptr6\n"
+ ".unreq a_ptr7\n"
+ ".unreq c_ptr1\n"
+ ".unreq c_ptr2\n"
+ ".unreq c_ptr3\n"
+ ".unreq c_ptr4\n"
+ ".unreq c_ptr5\n"
+ ".unreq c_ptr6\n"
+ ".unreq c_ptr7\n"
+ : [a_ptr0] "+r" (a_ptr0), [b_ptr0] "+r" (b_ptr0), [c_ptr0] "+r" (c_ptr0), [loops] "+r" (loops), [oob_rows] "+r" (oob_rows), [temp] "+r" (temp), [biasptr] "+r" (biasptr)
+ : [lda] "r" (ldab), [ldc] "r" (ldcb), [odd_depth] "r" (odd_depth), [last_width] "r" (last_width), [biasinc] "r" (biasinc), [minptr] "r" (minptr), [maxptr] "r" (maxptr)
+ : "x0", "x1", "x2", "x3", "x4", "x5", "x6", "x7", "x8", "x9", "x10", "x11", "x12", "x13", "z0", "z1", "z2", "z3", "z4", "z5", "z6", "z7", "z8", "z9", "z10", "z11", "z12", "z13", "z14", "z15", "z16", "z17", "z18", "z19", "z20", "z21", "z22", "z23", "z24", "z25", "z26", "z27", "z28", "z29", "z30", "z31", "cc", "memory"
+ );
+ break;
+ case 7:
+ __asm __volatile (
+ "a_ptr1 .req X0\n"
+ "a_ptr2 .req X1\n"
+ "a_ptr3 .req X2\n"
+ "a_ptr4 .req X3\n"
+ "a_ptr5 .req X4\n"
+ "a_ptr6 .req X5\n"
+ "a_ptr7 .req X6\n"
+ "c_ptr1 .req X7\n"
+ "c_ptr2 .req X8\n"
+ "c_ptr3 .req X9\n"
+ "c_ptr4 .req X10\n"
+ "c_ptr5 .req X11\n"
+ "c_ptr6 .req X12\n"
+ "c_ptr7 .req X13\n"
+ "add a_ptr1, %[a_ptr0], %[lda]\n"
+ "add c_ptr1, %[c_ptr0], %[ldc]\n"
+ "add a_ptr2, a_ptr1, %[lda]\n"
+ "add c_ptr2, c_ptr1, %[ldc]\n"
+ "add a_ptr3, a_ptr2, %[lda]\n"
+ "add c_ptr3, c_ptr2, %[ldc]\n"
+ "add a_ptr4, a_ptr3, %[lda]\n"
+ "add c_ptr4, c_ptr3, %[ldc]\n"
+ "add a_ptr5, a_ptr4, %[lda]\n"
+ "add c_ptr5, c_ptr4, %[ldc]\n"
+ "add a_ptr6, a_ptr5, %[lda]\n"
+ "add c_ptr6, c_ptr5, %[ldc]\n"
+ "add a_ptr7, a_ptr6, %[lda]\n"
+ "add c_ptr7, c_ptr6, %[ldc]\n"
+ "cbz %[oob_rows], 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr7, %[c_ptr0], #0x0\n"
+ "add a_ptr7, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr6, %[c_ptr0], #0x0\n"
+ "add a_ptr6, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr5, %[c_ptr0], #0x0\n"
+ "add a_ptr5, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr4, %[c_ptr0], #0x0\n"
+ "add a_ptr4, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr3, %[c_ptr0], #0x0\n"
+ "add a_ptr3, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr2, %[c_ptr0], #0x0\n"
+ "add a_ptr2, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr1, %[c_ptr0], #0x0\n"
+ "add a_ptr1, %[a_ptr0], #0x0\n"
+ "1:\n"
+ "ptrue p7.s\n"
+ "whilelt p6.s, %[temp], %[odd_depth]\n"
+ "whilelt p0.s, %[temp], %[last_width]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #7\n"
+ "cbz %[loops], 2f\n"
+ "ld1w z24.s, p7/z, [%[biasptr]]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0]]\n"
+ "subs %[loops], %[loops], #0x1\n"
+ "mov z25.d, z24.d\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1]\n"
+ "mov z26.d, z24.d\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2]\n"
+ "mov z27.d, z24.d\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3]\n"
+ "mov z28.d, z24.d\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4]\n"
+ "mov z29.d, z24.d\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5]\n"
+ "mov z30.d, z24.d\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6]\n"
+ "mov z31.d, z24.d\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0], #0x10]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1, #0x10]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2, #0x10]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3, #0x10]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4, #0x10]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5, #0x10]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6, #0x10]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7, #0x10]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "b.eq 3f\n"
+ "4:\n"
+ "ld1rw z22.s, p7/z, [%[minptr]]\n"
+ "subs %[loops], %[loops], #0x1\n"
+ "ld1rw z23.s, p7/z, [%[maxptr]]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmax z24.s, p7/m, z24.s, z22.s\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmax z25.s, p7/m, z25.s, z22.s\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmax z26.s, p7/m, z26.s, z22.s\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmax z27.s, p7/m, z27.s, z22.s\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmin z24.s, p7/m, z24.s, z23.s\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmin z25.s, p7/m, z25.s, z23.s\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0]]\n"
+ "fmin z26.s, p7/m, z26.s, z23.s\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1]\n"
+ "fmin z27.s, p7/m, z27.s, z23.s\n"
+ "st1w z24.s, p7, [%[c_ptr0]]\n"
+ "fmax z28.s, p7/m, z28.s, z22.s\n"
+ "ld1w z24.s, p7/z, [%[biasptr]]\n"
+ "fmax z29.s, p7/m, z29.s, z22.s\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2]\n"
+ "fmax z30.s, p7/m, z30.s, z22.s\n"
+ "st1w z25.s, p7, [c_ptr1]\n"
+ "fmax z31.s, p7/m, z31.s, z22.s\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmin z28.s, p7/m, z28.s, z23.s\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3]\n"
+ "fmin z29.s, p7/m, z29.s, z23.s\n"
+ "st1w z26.s, p7, [c_ptr2]\n"
+ "fmin z30.s, p7/m, z30.s, z23.s\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4]\n"
+ "fmin z31.s, p7/m, z31.s, z23.s\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5]\n"
+ "mov z25.d, z24.d\n"
+ "st1w z27.s, p7, [c_ptr3]\n"
+ "mov z26.d, z24.d\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6]\n"
+ "mov z27.d, z24.d\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7]\n"
+ "addvl %[c_ptr0], %[c_ptr0], #1\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "st1w z28.s, p7, [c_ptr4]\n"
+ "mov z28.d, z24.d\n"
+ "addvl c_ptr1, c_ptr1, #1\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "st1w z29.s, p7, [c_ptr5]\n"
+ "mov z29.d, z24.d\n"
+ "addvl c_ptr2, c_ptr2, #1\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "st1w z30.s, p7, [c_ptr6]\n"
+ "mov z30.d, z24.d\n"
+ "addvl c_ptr3, c_ptr3, #1\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "st1w z31.s, p7, [c_ptr7]\n"
+ "mov z31.d, z24.d\n"
+ "addvl c_ptr4, c_ptr4, #1\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "addvl c_ptr5, c_ptr5, #1\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "addvl c_ptr6, c_ptr6, #1\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "addvl c_ptr7, c_ptr7, #1\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #7\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0], #0x10]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1, #0x10]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2, #0x10]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3, #0x10]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4, #0x10]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5, #0x10]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6, #0x10]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7, #0x10]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "b.ne 4b\n"
+ "3:\n"
+ "ld1rw z22.s, p7/z, [%[minptr]]\n"
+ "ld1rw z23.s, p7/z, [%[maxptr]]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmax z24.s, p7/m, z24.s, z22.s\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmax z25.s, p7/m, z25.s, z22.s\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmax z26.s, p7/m, z26.s, z22.s\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmax z27.s, p7/m, z27.s, z22.s\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmin z24.s, p7/m, z24.s, z23.s\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0]]\n"
+ "fmin z25.s, p7/m, z25.s, z23.s\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1]\n"
+ "fmin z26.s, p7/m, z26.s, z23.s\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2]\n"
+ "fmin z27.s, p7/m, z27.s, z23.s\n"
+ "st1w z24.s, p7, [%[c_ptr0]]\n"
+ "fmax z28.s, p7/m, z28.s, z22.s\n"
+ "ld1w z24.s, p0/z, [%[biasptr]]\n"
+ "fmax z29.s, p7/m, z29.s, z22.s\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3]\n"
+ "fmax z30.s, p7/m, z30.s, z22.s\n"
+ "st1w z25.s, p7, [c_ptr1]\n"
+ "fmax z31.s, p7/m, z31.s, z22.s\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmin z28.s, p7/m, z28.s, z23.s\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4]\n"
+ "fmin z29.s, p7/m, z29.s, z23.s\n"
+ "st1w z26.s, p7, [c_ptr2]\n"
+ "fmin z30.s, p7/m, z30.s, z23.s\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5]\n"
+ "fmin z31.s, p7/m, z31.s, z23.s\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6]\n"
+ "mov z25.d, z24.d\n"
+ "st1w z27.s, p7, [c_ptr3]\n"
+ "mov z26.d, z24.d\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7]\n"
+ "mov z27.d, z24.d\n"
+ "addvl %[c_ptr0], %[c_ptr0], #1\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "st1w z28.s, p7, [c_ptr4]\n"
+ "mov z28.d, z24.d\n"
+ "addvl c_ptr1, c_ptr1, #1\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "st1w z29.s, p7, [c_ptr5]\n"
+ "mov z29.d, z24.d\n"
+ "addvl c_ptr2, c_ptr2, #1\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "st1w z30.s, p7, [c_ptr6]\n"
+ "mov z30.d, z24.d\n"
+ "addvl c_ptr3, c_ptr3, #1\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "st1w z31.s, p7, [c_ptr7]\n"
+ "mov z31.d, z24.d\n"
+ "addvl c_ptr4, c_ptr4, #1\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "addvl c_ptr5, c_ptr5, #1\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "addvl c_ptr6, c_ptr6, #1\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "addvl c_ptr7, c_ptr7, #1\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #7\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0], #0x10]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1, #0x10]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2, #0x10]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3, #0x10]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4, #0x10]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5, #0x10]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6, #0x10]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7, #0x10]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "b 5f\n"
+ "2:\n"
+ "ld1w z24.s, p0/z, [%[biasptr]]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0]]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1]\n"
+ "mov z25.d, z24.d\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2]\n"
+ "mov z26.d, z24.d\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3]\n"
+ "mov z27.d, z24.d\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4]\n"
+ "mov z28.d, z24.d\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5]\n"
+ "mov z29.d, z24.d\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6]\n"
+ "mov z30.d, z24.d\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7]\n"
+ "mov z31.d, z24.d\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0], #0x10]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1, #0x10]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2, #0x10]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3, #0x10]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4, #0x10]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5, #0x10]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6, #0x10]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7, #0x10]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "5:\n"
+ "ld1rw z22.s, p7/z, [%[minptr]]\n"
+ "ld1rw z23.s, p7/z, [%[maxptr]]\n"
+ "fmax z24.s, p7/m, z24.s, z22.s\n"
+ "fmax z25.s, p7/m, z25.s, z22.s\n"
+ "fmax z26.s, p7/m, z26.s, z22.s\n"
+ "fmax z27.s, p7/m, z27.s, z22.s\n"
+ "fmin z24.s, p7/m, z24.s, z23.s\n"
+ "fmin z25.s, p7/m, z25.s, z23.s\n"
+ "fmin z26.s, p7/m, z26.s, z23.s\n"
+ "fmin z27.s, p7/m, z27.s, z23.s\n"
+ "st1w z24.s, p0, [%[c_ptr0]]\n"
+ "fmax z28.s, p7/m, z28.s, z22.s\n"
+ "addvl %[c_ptr0], %[c_ptr0], #1\n"
+ "fmax z29.s, p7/m, z29.s, z22.s\n"
+ "st1w z25.s, p0, [c_ptr1]\n"
+ "fmax z30.s, p7/m, z30.s, z22.s\n"
+ "fmin z28.s, p7/m, z28.s, z23.s\n"
+ "fmax z31.s, p7/m, z31.s, z22.s\n"
+ "st1w z26.s, p0, [c_ptr2]\n"
+ "fmin z29.s, p7/m, z29.s, z23.s\n"
+ "fmin z30.s, p7/m, z30.s, z23.s\n"
+ "fmin z31.s, p7/m, z31.s, z23.s\n"
+ "st1w z27.s, p0, [c_ptr3]\n"
+ "st1w z28.s, p0, [c_ptr4]\n"
+ "st1w z29.s, p0, [c_ptr5]\n"
+ "st1w z30.s, p0, [c_ptr6]\n"
+ "st1w z31.s, p0, [c_ptr7]\n"
+ ".unreq a_ptr1\n"
+ ".unreq a_ptr2\n"
+ ".unreq a_ptr3\n"
+ ".unreq a_ptr4\n"
+ ".unreq a_ptr5\n"
+ ".unreq a_ptr6\n"
+ ".unreq a_ptr7\n"
+ ".unreq c_ptr1\n"
+ ".unreq c_ptr2\n"
+ ".unreq c_ptr3\n"
+ ".unreq c_ptr4\n"
+ ".unreq c_ptr5\n"
+ ".unreq c_ptr6\n"
+ ".unreq c_ptr7\n"
+ : [a_ptr0] "+r" (a_ptr0), [b_ptr0] "+r" (b_ptr0), [c_ptr0] "+r" (c_ptr0), [loops] "+r" (loops), [oob_rows] "+r" (oob_rows), [temp] "+r" (temp), [biasptr] "+r" (biasptr)
+ : [lda] "r" (ldab), [ldc] "r" (ldcb), [odd_depth] "r" (odd_depth), [last_width] "r" (last_width), [biasinc] "r" (biasinc), [minptr] "r" (minptr), [maxptr] "r" (maxptr)
+ : "x0", "x1", "x2", "x3", "x4", "x5", "x6", "x7", "x8", "x9", "x10", "x11", "x12", "x13", "z0", "z1", "z2", "z3", "z4", "z5", "z6", "z7", "z8", "z9", "z10", "z11", "z12", "z13", "z14", "z15", "z16", "z17", "z18", "z19", "z20", "z21", "z22", "z23", "z24", "z25", "z26", "z27", "z28", "z29", "z30", "z31", "cc", "memory"
+ );
+ break;
+ case 8:
+ __asm __volatile (
+ "a_ptr1 .req X0\n"
+ "a_ptr2 .req X1\n"
+ "a_ptr3 .req X2\n"
+ "a_ptr4 .req X3\n"
+ "a_ptr5 .req X4\n"
+ "a_ptr6 .req X5\n"
+ "a_ptr7 .req X6\n"
+ "c_ptr1 .req X7\n"
+ "c_ptr2 .req X8\n"
+ "c_ptr3 .req X9\n"
+ "c_ptr4 .req X10\n"
+ "c_ptr5 .req X11\n"
+ "c_ptr6 .req X12\n"
+ "c_ptr7 .req X13\n"
+ "add a_ptr1, %[a_ptr0], %[lda]\n"
+ "add c_ptr1, %[c_ptr0], %[ldc]\n"
+ "add a_ptr2, a_ptr1, %[lda]\n"
+ "add c_ptr2, c_ptr1, %[ldc]\n"
+ "add a_ptr3, a_ptr2, %[lda]\n"
+ "add c_ptr3, c_ptr2, %[ldc]\n"
+ "add a_ptr4, a_ptr3, %[lda]\n"
+ "add c_ptr4, c_ptr3, %[ldc]\n"
+ "add a_ptr5, a_ptr4, %[lda]\n"
+ "add c_ptr5, c_ptr4, %[ldc]\n"
+ "add a_ptr6, a_ptr5, %[lda]\n"
+ "add c_ptr6, c_ptr5, %[ldc]\n"
+ "add a_ptr7, a_ptr6, %[lda]\n"
+ "add c_ptr7, c_ptr6, %[ldc]\n"
+ "cbz %[oob_rows], 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr7, %[c_ptr0], #0x0\n"
+ "add a_ptr7, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr6, %[c_ptr0], #0x0\n"
+ "add a_ptr6, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr5, %[c_ptr0], #0x0\n"
+ "add a_ptr5, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr4, %[c_ptr0], #0x0\n"
+ "add a_ptr4, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr3, %[c_ptr0], #0x0\n"
+ "add a_ptr3, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr2, %[c_ptr0], #0x0\n"
+ "add a_ptr2, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr1, %[c_ptr0], #0x0\n"
+ "add a_ptr1, %[a_ptr0], #0x0\n"
+ "1:\n"
+ "ptrue p7.s\n"
+ "whilelt p6.s, %[temp], %[odd_depth]\n"
+ "whilelt p0.s, %[temp], %[last_width]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "cbz %[loops], 2f\n"
+ "ld1w z24.s, p7/z, [%[biasptr]]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0]]\n"
+ "subs %[loops], %[loops], #0x1\n"
+ "mov z25.d, z24.d\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1]\n"
+ "mov z26.d, z24.d\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2]\n"
+ "mov z27.d, z24.d\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3]\n"
+ "mov z28.d, z24.d\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4]\n"
+ "mov z29.d, z24.d\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5]\n"
+ "mov z30.d, z24.d\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6]\n"
+ "mov z31.d, z24.d\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0], #0x10]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1, #0x10]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2, #0x10]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3, #0x10]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4, #0x10]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5, #0x10]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6, #0x10]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7, #0x10]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "b.eq 3f\n"
+ "4:\n"
+ "ld1rw z22.s, p7/z, [%[minptr]]\n"
+ "subs %[loops], %[loops], #0x1\n"
+ "ld1rw z23.s, p7/z, [%[maxptr]]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmax z24.s, p7/m, z24.s, z22.s\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmax z25.s, p7/m, z25.s, z22.s\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmax z26.s, p7/m, z26.s, z22.s\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmax z27.s, p7/m, z27.s, z22.s\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmin z24.s, p7/m, z24.s, z23.s\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmin z25.s, p7/m, z25.s, z23.s\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0]]\n"
+ "fmin z26.s, p7/m, z26.s, z23.s\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1]\n"
+ "fmin z27.s, p7/m, z27.s, z23.s\n"
+ "st1w z24.s, p7, [%[c_ptr0]]\n"
+ "fmax z28.s, p7/m, z28.s, z22.s\n"
+ "ld1w z24.s, p7/z, [%[biasptr]]\n"
+ "fmax z29.s, p7/m, z29.s, z22.s\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2]\n"
+ "fmax z30.s, p7/m, z30.s, z22.s\n"
+ "st1w z25.s, p7, [c_ptr1]\n"
+ "fmax z31.s, p7/m, z31.s, z22.s\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmin z28.s, p7/m, z28.s, z23.s\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3]\n"
+ "fmin z29.s, p7/m, z29.s, z23.s\n"
+ "st1w z26.s, p7, [c_ptr2]\n"
+ "fmin z30.s, p7/m, z30.s, z23.s\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4]\n"
+ "fmin z31.s, p7/m, z31.s, z23.s\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "mov z25.d, z24.d\n"
+ "st1w z27.s, p7, [c_ptr3]\n"
+ "mov z26.d, z24.d\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5]\n"
+ "mov z27.d, z24.d\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7]\n"
+ "addvl %[c_ptr0], %[c_ptr0], #1\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "st1w z28.s, p7, [c_ptr4]\n"
+ "mov z28.d, z24.d\n"
+ "addvl c_ptr1, c_ptr1, #1\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "st1w z29.s, p7, [c_ptr5]\n"
+ "mov z29.d, z24.d\n"
+ "addvl c_ptr2, c_ptr2, #1\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "st1w z30.s, p7, [c_ptr6]\n"
+ "mov z30.d, z24.d\n"
+ "addvl c_ptr3, c_ptr3, #1\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "st1w z31.s, p7, [c_ptr7]\n"
+ "mov z31.d, z24.d\n"
+ "addvl c_ptr4, c_ptr4, #1\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "addvl c_ptr5, c_ptr5, #1\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "addvl c_ptr6, c_ptr6, #1\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "addvl c_ptr7, c_ptr7, #1\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0], #0x10]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1, #0x10]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2, #0x10]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3, #0x10]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4, #0x10]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5, #0x10]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6, #0x10]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7, #0x10]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "b.ne 4b\n"
+ "3:\n"
+ "ld1rw z22.s, p7/z, [%[minptr]]\n"
+ "ld1rw z23.s, p7/z, [%[maxptr]]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmax z24.s, p7/m, z24.s, z22.s\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmax z25.s, p7/m, z25.s, z22.s\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmax z26.s, p7/m, z26.s, z22.s\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmax z27.s, p7/m, z27.s, z22.s\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmin z24.s, p7/m, z24.s, z23.s\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0]]\n"
+ "fmin z25.s, p7/m, z25.s, z23.s\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1]\n"
+ "fmin z26.s, p7/m, z26.s, z23.s\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2]\n"
+ "fmin z27.s, p7/m, z27.s, z23.s\n"
+ "st1w z24.s, p7, [%[c_ptr0]]\n"
+ "fmax z28.s, p7/m, z28.s, z22.s\n"
+ "ld1w z24.s, p0/z, [%[biasptr]]\n"
+ "fmax z29.s, p7/m, z29.s, z22.s\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3]\n"
+ "fmax z30.s, p7/m, z30.s, z22.s\n"
+ "st1w z25.s, p7, [c_ptr1]\n"
+ "fmax z31.s, p7/m, z31.s, z22.s\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmin z28.s, p7/m, z28.s, z23.s\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4]\n"
+ "fmin z29.s, p7/m, z29.s, z23.s\n"
+ "st1w z26.s, p7, [c_ptr2]\n"
+ "fmin z30.s, p7/m, z30.s, z23.s\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5]\n"
+ "fmin z31.s, p7/m, z31.s, z23.s\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "mov z25.d, z24.d\n"
+ "st1w z27.s, p7, [c_ptr3]\n"
+ "mov z26.d, z24.d\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6]\n"
+ "mov z27.d, z24.d\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7]\n"
+ "addvl %[c_ptr0], %[c_ptr0], #1\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "st1w z28.s, p7, [c_ptr4]\n"
+ "mov z28.d, z24.d\n"
+ "addvl c_ptr1, c_ptr1, #1\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "st1w z29.s, p7, [c_ptr5]\n"
+ "mov z29.d, z24.d\n"
+ "addvl c_ptr2, c_ptr2, #1\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "st1w z30.s, p7, [c_ptr6]\n"
+ "mov z30.d, z24.d\n"
+ "addvl c_ptr3, c_ptr3, #1\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "st1w z31.s, p7, [c_ptr7]\n"
+ "mov z31.d, z24.d\n"
+ "addvl c_ptr4, c_ptr4, #1\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "addvl c_ptr5, c_ptr5, #1\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "addvl c_ptr6, c_ptr6, #1\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "addvl c_ptr7, c_ptr7, #1\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0], #0x10]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1, #0x10]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2, #0x10]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3, #0x10]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4, #0x10]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5, #0x10]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6, #0x10]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7, #0x10]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "b 5f\n"
+ "2:\n"
+ "ld1w z24.s, p0/z, [%[biasptr]]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0]]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1]\n"
+ "mov z25.d, z24.d\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2]\n"
+ "mov z26.d, z24.d\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3]\n"
+ "mov z27.d, z24.d\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4]\n"
+ "mov z28.d, z24.d\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5]\n"
+ "mov z29.d, z24.d\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6]\n"
+ "mov z30.d, z24.d\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7]\n"
+ "mov z31.d, z24.d\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0], #0x10]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1, #0x10]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2, #0x10]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3, #0x10]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4, #0x10]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5, #0x10]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6, #0x10]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7, #0x10]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "5:\n"
+ "ld1rw z22.s, p7/z, [%[minptr]]\n"
+ "ld1rw z23.s, p7/z, [%[maxptr]]\n"
+ "fmax z24.s, p7/m, z24.s, z22.s\n"
+ "fmax z25.s, p7/m, z25.s, z22.s\n"
+ "fmax z26.s, p7/m, z26.s, z22.s\n"
+ "fmax z27.s, p7/m, z27.s, z22.s\n"
+ "fmin z24.s, p7/m, z24.s, z23.s\n"
+ "fmin z25.s, p7/m, z25.s, z23.s\n"
+ "fmin z26.s, p7/m, z26.s, z23.s\n"
+ "fmin z27.s, p7/m, z27.s, z23.s\n"
+ "st1w z24.s, p0, [%[c_ptr0]]\n"
+ "fmax z28.s, p7/m, z28.s, z22.s\n"
+ "addvl %[c_ptr0], %[c_ptr0], #1\n"
+ "fmax z29.s, p7/m, z29.s, z22.s\n"
+ "st1w z25.s, p0, [c_ptr1]\n"
+ "fmax z30.s, p7/m, z30.s, z22.s\n"
+ "fmin z28.s, p7/m, z28.s, z23.s\n"
+ "fmax z31.s, p7/m, z31.s, z22.s\n"
+ "st1w z26.s, p0, [c_ptr2]\n"
+ "fmin z29.s, p7/m, z29.s, z23.s\n"
+ "fmin z30.s, p7/m, z30.s, z23.s\n"
+ "fmin z31.s, p7/m, z31.s, z23.s\n"
+ "st1w z27.s, p0, [c_ptr3]\n"
+ "st1w z28.s, p0, [c_ptr4]\n"
+ "st1w z29.s, p0, [c_ptr5]\n"
+ "st1w z30.s, p0, [c_ptr6]\n"
+ "st1w z31.s, p0, [c_ptr7]\n"
+ ".unreq a_ptr1\n"
+ ".unreq a_ptr2\n"
+ ".unreq a_ptr3\n"
+ ".unreq a_ptr4\n"
+ ".unreq a_ptr5\n"
+ ".unreq a_ptr6\n"
+ ".unreq a_ptr7\n"
+ ".unreq c_ptr1\n"
+ ".unreq c_ptr2\n"
+ ".unreq c_ptr3\n"
+ ".unreq c_ptr4\n"
+ ".unreq c_ptr5\n"
+ ".unreq c_ptr6\n"
+ ".unreq c_ptr7\n"
+ : [a_ptr0] "+r" (a_ptr0), [b_ptr0] "+r" (b_ptr0), [c_ptr0] "+r" (c_ptr0), [loops] "+r" (loops), [oob_rows] "+r" (oob_rows), [temp] "+r" (temp), [biasptr] "+r" (biasptr)
+ : [lda] "r" (ldab), [ldc] "r" (ldcb), [odd_depth] "r" (odd_depth), [last_width] "r" (last_width), [biasinc] "r" (biasinc), [minptr] "r" (minptr), [maxptr] "r" (maxptr)
+ : "x0", "x1", "x2", "x3", "x4", "x5", "x6", "x7", "x8", "x9", "x10", "x11", "x12", "x13", "z0", "z1", "z2", "z3", "z4", "z5", "z6", "z7", "z8", "z9", "z10", "z11", "z12", "z13", "z14", "z15", "z16", "z17", "z18", "z19", "z20", "z21", "z22", "z23", "z24", "z25", "z26", "z27", "z28", "z29", "z30", "z31", "cc", "memory"
+ );
+ break;
+ case 9:
+ __asm __volatile (
+ "a_ptr1 .req X0\n"
+ "a_ptr2 .req X1\n"
+ "a_ptr3 .req X2\n"
+ "a_ptr4 .req X3\n"
+ "a_ptr5 .req X4\n"
+ "a_ptr6 .req X5\n"
+ "a_ptr7 .req X6\n"
+ "c_ptr1 .req X7\n"
+ "c_ptr2 .req X8\n"
+ "c_ptr3 .req X9\n"
+ "c_ptr4 .req X10\n"
+ "c_ptr5 .req X11\n"
+ "c_ptr6 .req X12\n"
+ "c_ptr7 .req X13\n"
+ "add a_ptr1, %[a_ptr0], %[lda]\n"
+ "add c_ptr1, %[c_ptr0], %[ldc]\n"
+ "add a_ptr2, a_ptr1, %[lda]\n"
+ "add c_ptr2, c_ptr1, %[ldc]\n"
+ "add a_ptr3, a_ptr2, %[lda]\n"
+ "add c_ptr3, c_ptr2, %[ldc]\n"
+ "add a_ptr4, a_ptr3, %[lda]\n"
+ "add c_ptr4, c_ptr3, %[ldc]\n"
+ "add a_ptr5, a_ptr4, %[lda]\n"
+ "add c_ptr5, c_ptr4, %[ldc]\n"
+ "add a_ptr6, a_ptr5, %[lda]\n"
+ "add c_ptr6, c_ptr5, %[ldc]\n"
+ "add a_ptr7, a_ptr6, %[lda]\n"
+ "add c_ptr7, c_ptr6, %[ldc]\n"
+ "cbz %[oob_rows], 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr7, %[c_ptr0], #0x0\n"
+ "add a_ptr7, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr6, %[c_ptr0], #0x0\n"
+ "add a_ptr6, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr5, %[c_ptr0], #0x0\n"
+ "add a_ptr5, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr4, %[c_ptr0], #0x0\n"
+ "add a_ptr4, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr3, %[c_ptr0], #0x0\n"
+ "add a_ptr3, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr2, %[c_ptr0], #0x0\n"
+ "add a_ptr2, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr1, %[c_ptr0], #0x0\n"
+ "add a_ptr1, %[a_ptr0], #0x0\n"
+ "1:\n"
+ "ptrue p7.s\n"
+ "whilelt p6.s, %[temp], %[odd_depth]\n"
+ "whilelt p0.s, %[temp], %[last_width]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "cbz %[loops], 2f\n"
+ "ld1w z24.s, p7/z, [%[biasptr]]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0]]\n"
+ "subs %[loops], %[loops], #0x1\n"
+ "mov z25.d, z24.d\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1]\n"
+ "mov z26.d, z24.d\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2]\n"
+ "mov z27.d, z24.d\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3]\n"
+ "mov z28.d, z24.d\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4]\n"
+ "mov z29.d, z24.d\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5]\n"
+ "mov z30.d, z24.d\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6]\n"
+ "mov z31.d, z24.d\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #1\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x10]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x10]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x10]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x10]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x10]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x10]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x10]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x10]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0], #0x20]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1, #0x20]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2, #0x20]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3, #0x20]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4, #0x20]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5, #0x20]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6, #0x20]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7, #0x20]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "b.eq 3f\n"
+ "4:\n"
+ "ld1rw z22.s, p7/z, [%[minptr]]\n"
+ "subs %[loops], %[loops], #0x1\n"
+ "ld1rw z23.s, p7/z, [%[maxptr]]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmax z24.s, p7/m, z24.s, z22.s\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmax z25.s, p7/m, z25.s, z22.s\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmax z26.s, p7/m, z26.s, z22.s\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmax z27.s, p7/m, z27.s, z22.s\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmin z24.s, p7/m, z24.s, z23.s\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmin z25.s, p7/m, z25.s, z23.s\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0]]\n"
+ "fmin z26.s, p7/m, z26.s, z23.s\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1]\n"
+ "fmin z27.s, p7/m, z27.s, z23.s\n"
+ "st1w z24.s, p7, [%[c_ptr0]]\n"
+ "fmax z28.s, p7/m, z28.s, z22.s\n"
+ "ld1w z24.s, p7/z, [%[biasptr]]\n"
+ "fmax z29.s, p7/m, z29.s, z22.s\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2]\n"
+ "fmax z30.s, p7/m, z30.s, z22.s\n"
+ "st1w z25.s, p7, [c_ptr1]\n"
+ "fmax z31.s, p7/m, z31.s, z22.s\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmin z28.s, p7/m, z28.s, z23.s\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3]\n"
+ "fmin z29.s, p7/m, z29.s, z23.s\n"
+ "st1w z26.s, p7, [c_ptr2]\n"
+ "fmin z30.s, p7/m, z30.s, z23.s\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4]\n"
+ "fmin z31.s, p7/m, z31.s, z23.s\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "mov z25.d, z24.d\n"
+ "st1w z27.s, p7, [c_ptr3]\n"
+ "mov z26.d, z24.d\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5]\n"
+ "mov z27.d, z24.d\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7]\n"
+ "addvl %[c_ptr0], %[c_ptr0], #1\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "st1w z28.s, p7, [c_ptr4]\n"
+ "mov z28.d, z24.d\n"
+ "addvl c_ptr1, c_ptr1, #1\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "st1w z29.s, p7, [c_ptr5]\n"
+ "mov z29.d, z24.d\n"
+ "addvl c_ptr2, c_ptr2, #1\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "st1w z30.s, p7, [c_ptr6]\n"
+ "mov z30.d, z24.d\n"
+ "addvl c_ptr3, c_ptr3, #1\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "st1w z31.s, p7, [c_ptr7]\n"
+ "mov z31.d, z24.d\n"
+ "addvl c_ptr4, c_ptr4, #1\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "addvl c_ptr5, c_ptr5, #1\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "addvl c_ptr6, c_ptr6, #1\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "addvl c_ptr7, c_ptr7, #1\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #1\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x10]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x10]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x10]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x10]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x10]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x10]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x10]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x10]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0], #0x20]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1, #0x20]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2, #0x20]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3, #0x20]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4, #0x20]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5, #0x20]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6, #0x20]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7, #0x20]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "b.ne 4b\n"
+ "3:\n"
+ "ld1rw z22.s, p7/z, [%[minptr]]\n"
+ "ld1rw z23.s, p7/z, [%[maxptr]]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmax z24.s, p7/m, z24.s, z22.s\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmax z25.s, p7/m, z25.s, z22.s\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmax z26.s, p7/m, z26.s, z22.s\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmax z27.s, p7/m, z27.s, z22.s\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmin z24.s, p7/m, z24.s, z23.s\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0]]\n"
+ "fmin z25.s, p7/m, z25.s, z23.s\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1]\n"
+ "fmin z26.s, p7/m, z26.s, z23.s\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2]\n"
+ "fmin z27.s, p7/m, z27.s, z23.s\n"
+ "st1w z24.s, p7, [%[c_ptr0]]\n"
+ "fmax z28.s, p7/m, z28.s, z22.s\n"
+ "ld1w z24.s, p0/z, [%[biasptr]]\n"
+ "fmax z29.s, p7/m, z29.s, z22.s\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3]\n"
+ "fmax z30.s, p7/m, z30.s, z22.s\n"
+ "st1w z25.s, p7, [c_ptr1]\n"
+ "fmax z31.s, p7/m, z31.s, z22.s\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmin z28.s, p7/m, z28.s, z23.s\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4]\n"
+ "fmin z29.s, p7/m, z29.s, z23.s\n"
+ "st1w z26.s, p7, [c_ptr2]\n"
+ "fmin z30.s, p7/m, z30.s, z23.s\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5]\n"
+ "fmin z31.s, p7/m, z31.s, z23.s\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "mov z25.d, z24.d\n"
+ "st1w z27.s, p7, [c_ptr3]\n"
+ "mov z26.d, z24.d\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6]\n"
+ "mov z27.d, z24.d\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7]\n"
+ "addvl %[c_ptr0], %[c_ptr0], #1\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "st1w z28.s, p7, [c_ptr4]\n"
+ "mov z28.d, z24.d\n"
+ "addvl c_ptr1, c_ptr1, #1\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "st1w z29.s, p7, [c_ptr5]\n"
+ "mov z29.d, z24.d\n"
+ "addvl c_ptr2, c_ptr2, #1\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "st1w z30.s, p7, [c_ptr6]\n"
+ "mov z30.d, z24.d\n"
+ "addvl c_ptr3, c_ptr3, #1\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "st1w z31.s, p7, [c_ptr7]\n"
+ "mov z31.d, z24.d\n"
+ "addvl c_ptr4, c_ptr4, #1\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "addvl c_ptr5, c_ptr5, #1\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "addvl c_ptr6, c_ptr6, #1\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "addvl c_ptr7, c_ptr7, #1\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #1\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x10]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x10]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x10]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x10]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x10]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x10]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x10]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x10]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0], #0x20]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1, #0x20]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2, #0x20]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3, #0x20]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4, #0x20]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5, #0x20]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6, #0x20]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7, #0x20]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "b 5f\n"
+ "2:\n"
+ "ld1w z24.s, p0/z, [%[biasptr]]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0]]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1]\n"
+ "mov z25.d, z24.d\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2]\n"
+ "mov z26.d, z24.d\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3]\n"
+ "mov z27.d, z24.d\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4]\n"
+ "mov z28.d, z24.d\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5]\n"
+ "mov z29.d, z24.d\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6]\n"
+ "mov z30.d, z24.d\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7]\n"
+ "mov z31.d, z24.d\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #1\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x10]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x10]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x10]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x10]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x10]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x10]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x10]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x10]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0], #0x20]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1, #0x20]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2, #0x20]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3, #0x20]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4, #0x20]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5, #0x20]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6, #0x20]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7, #0x20]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "5:\n"
+ "ld1rw z22.s, p7/z, [%[minptr]]\n"
+ "ld1rw z23.s, p7/z, [%[maxptr]]\n"
+ "fmax z24.s, p7/m, z24.s, z22.s\n"
+ "fmax z25.s, p7/m, z25.s, z22.s\n"
+ "fmax z26.s, p7/m, z26.s, z22.s\n"
+ "fmax z27.s, p7/m, z27.s, z22.s\n"
+ "fmin z24.s, p7/m, z24.s, z23.s\n"
+ "fmin z25.s, p7/m, z25.s, z23.s\n"
+ "fmin z26.s, p7/m, z26.s, z23.s\n"
+ "fmin z27.s, p7/m, z27.s, z23.s\n"
+ "st1w z24.s, p0, [%[c_ptr0]]\n"
+ "fmax z28.s, p7/m, z28.s, z22.s\n"
+ "addvl %[c_ptr0], %[c_ptr0], #1\n"
+ "fmax z29.s, p7/m, z29.s, z22.s\n"
+ "st1w z25.s, p0, [c_ptr1]\n"
+ "fmax z30.s, p7/m, z30.s, z22.s\n"
+ "fmin z28.s, p7/m, z28.s, z23.s\n"
+ "fmax z31.s, p7/m, z31.s, z22.s\n"
+ "st1w z26.s, p0, [c_ptr2]\n"
+ "fmin z29.s, p7/m, z29.s, z23.s\n"
+ "fmin z30.s, p7/m, z30.s, z23.s\n"
+ "fmin z31.s, p7/m, z31.s, z23.s\n"
+ "st1w z27.s, p0, [c_ptr3]\n"
+ "st1w z28.s, p0, [c_ptr4]\n"
+ "st1w z29.s, p0, [c_ptr5]\n"
+ "st1w z30.s, p0, [c_ptr6]\n"
+ "st1w z31.s, p0, [c_ptr7]\n"
+ ".unreq a_ptr1\n"
+ ".unreq a_ptr2\n"
+ ".unreq a_ptr3\n"
+ ".unreq a_ptr4\n"
+ ".unreq a_ptr5\n"
+ ".unreq a_ptr6\n"
+ ".unreq a_ptr7\n"
+ ".unreq c_ptr1\n"
+ ".unreq c_ptr2\n"
+ ".unreq c_ptr3\n"
+ ".unreq c_ptr4\n"
+ ".unreq c_ptr5\n"
+ ".unreq c_ptr6\n"
+ ".unreq c_ptr7\n"
+ : [a_ptr0] "+r" (a_ptr0), [b_ptr0] "+r" (b_ptr0), [c_ptr0] "+r" (c_ptr0), [loops] "+r" (loops), [oob_rows] "+r" (oob_rows), [temp] "+r" (temp), [biasptr] "+r" (biasptr)
+ : [lda] "r" (ldab), [ldc] "r" (ldcb), [odd_depth] "r" (odd_depth), [last_width] "r" (last_width), [biasinc] "r" (biasinc), [minptr] "r" (minptr), [maxptr] "r" (maxptr)
+ : "x0", "x1", "x2", "x3", "x4", "x5", "x6", "x7", "x8", "x9", "x10", "x11", "x12", "x13", "z0", "z1", "z2", "z3", "z4", "z5", "z6", "z7", "z8", "z9", "z10", "z11", "z12", "z13", "z14", "z15", "z16", "z17", "z18", "z19", "z20", "z21", "z22", "z23", "z24", "z25", "z26", "z27", "z28", "z29", "z30", "z31", "cc", "memory"
+ );
+ break;
+ case 10:
+ __asm __volatile (
+ "a_ptr1 .req X0\n"
+ "a_ptr2 .req X1\n"
+ "a_ptr3 .req X2\n"
+ "a_ptr4 .req X3\n"
+ "a_ptr5 .req X4\n"
+ "a_ptr6 .req X5\n"
+ "a_ptr7 .req X6\n"
+ "c_ptr1 .req X7\n"
+ "c_ptr2 .req X8\n"
+ "c_ptr3 .req X9\n"
+ "c_ptr4 .req X10\n"
+ "c_ptr5 .req X11\n"
+ "c_ptr6 .req X12\n"
+ "c_ptr7 .req X13\n"
+ "add a_ptr1, %[a_ptr0], %[lda]\n"
+ "add c_ptr1, %[c_ptr0], %[ldc]\n"
+ "add a_ptr2, a_ptr1, %[lda]\n"
+ "add c_ptr2, c_ptr1, %[ldc]\n"
+ "add a_ptr3, a_ptr2, %[lda]\n"
+ "add c_ptr3, c_ptr2, %[ldc]\n"
+ "add a_ptr4, a_ptr3, %[lda]\n"
+ "add c_ptr4, c_ptr3, %[ldc]\n"
+ "add a_ptr5, a_ptr4, %[lda]\n"
+ "add c_ptr5, c_ptr4, %[ldc]\n"
+ "add a_ptr6, a_ptr5, %[lda]\n"
+ "add c_ptr6, c_ptr5, %[ldc]\n"
+ "add a_ptr7, a_ptr6, %[lda]\n"
+ "add c_ptr7, c_ptr6, %[ldc]\n"
+ "cbz %[oob_rows], 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr7, %[c_ptr0], #0x0\n"
+ "add a_ptr7, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr6, %[c_ptr0], #0x0\n"
+ "add a_ptr6, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr5, %[c_ptr0], #0x0\n"
+ "add a_ptr5, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr4, %[c_ptr0], #0x0\n"
+ "add a_ptr4, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr3, %[c_ptr0], #0x0\n"
+ "add a_ptr3, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr2, %[c_ptr0], #0x0\n"
+ "add a_ptr2, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr1, %[c_ptr0], #0x0\n"
+ "add a_ptr1, %[a_ptr0], #0x0\n"
+ "1:\n"
+ "ptrue p7.s\n"
+ "whilelt p6.s, %[temp], %[odd_depth]\n"
+ "whilelt p0.s, %[temp], %[last_width]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "cbz %[loops], 2f\n"
+ "ld1w z24.s, p7/z, [%[biasptr]]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0]]\n"
+ "subs %[loops], %[loops], #0x1\n"
+ "mov z25.d, z24.d\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1]\n"
+ "mov z26.d, z24.d\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2]\n"
+ "mov z27.d, z24.d\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3]\n"
+ "mov z28.d, z24.d\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4]\n"
+ "mov z29.d, z24.d\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5]\n"
+ "mov z30.d, z24.d\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6]\n"
+ "mov z31.d, z24.d\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #2\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x10]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x10]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x10]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x10]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x10]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x10]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x10]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x10]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0], #0x20]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1, #0x20]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2, #0x20]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3, #0x20]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4, #0x20]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5, #0x20]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6, #0x20]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7, #0x20]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "b.eq 3f\n"
+ "4:\n"
+ "ld1rw z22.s, p7/z, [%[minptr]]\n"
+ "subs %[loops], %[loops], #0x1\n"
+ "ld1rw z23.s, p7/z, [%[maxptr]]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmax z24.s, p7/m, z24.s, z22.s\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmax z25.s, p7/m, z25.s, z22.s\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmax z26.s, p7/m, z26.s, z22.s\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmax z27.s, p7/m, z27.s, z22.s\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmin z24.s, p7/m, z24.s, z23.s\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmin z25.s, p7/m, z25.s, z23.s\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0]]\n"
+ "fmin z26.s, p7/m, z26.s, z23.s\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1]\n"
+ "fmin z27.s, p7/m, z27.s, z23.s\n"
+ "st1w z24.s, p7, [%[c_ptr0]]\n"
+ "fmax z28.s, p7/m, z28.s, z22.s\n"
+ "ld1w z24.s, p7/z, [%[biasptr]]\n"
+ "fmax z29.s, p7/m, z29.s, z22.s\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2]\n"
+ "fmax z30.s, p7/m, z30.s, z22.s\n"
+ "st1w z25.s, p7, [c_ptr1]\n"
+ "fmax z31.s, p7/m, z31.s, z22.s\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmin z28.s, p7/m, z28.s, z23.s\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3]\n"
+ "fmin z29.s, p7/m, z29.s, z23.s\n"
+ "st1w z26.s, p7, [c_ptr2]\n"
+ "fmin z30.s, p7/m, z30.s, z23.s\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4]\n"
+ "fmin z31.s, p7/m, z31.s, z23.s\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "mov z25.d, z24.d\n"
+ "st1w z27.s, p7, [c_ptr3]\n"
+ "mov z26.d, z24.d\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5]\n"
+ "mov z27.d, z24.d\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7]\n"
+ "addvl %[c_ptr0], %[c_ptr0], #1\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "st1w z28.s, p7, [c_ptr4]\n"
+ "mov z28.d, z24.d\n"
+ "addvl c_ptr1, c_ptr1, #1\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "st1w z29.s, p7, [c_ptr5]\n"
+ "mov z29.d, z24.d\n"
+ "addvl c_ptr2, c_ptr2, #1\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "st1w z30.s, p7, [c_ptr6]\n"
+ "mov z30.d, z24.d\n"
+ "addvl c_ptr3, c_ptr3, #1\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "st1w z31.s, p7, [c_ptr7]\n"
+ "mov z31.d, z24.d\n"
+ "addvl c_ptr4, c_ptr4, #1\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "addvl c_ptr5, c_ptr5, #1\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "addvl c_ptr6, c_ptr6, #1\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "addvl c_ptr7, c_ptr7, #1\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #2\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x10]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x10]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x10]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x10]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x10]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x10]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x10]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x10]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0], #0x20]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1, #0x20]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2, #0x20]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3, #0x20]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4, #0x20]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5, #0x20]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6, #0x20]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7, #0x20]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "b.ne 4b\n"
+ "3:\n"
+ "ld1rw z22.s, p7/z, [%[minptr]]\n"
+ "ld1rw z23.s, p7/z, [%[maxptr]]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmax z24.s, p7/m, z24.s, z22.s\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmax z25.s, p7/m, z25.s, z22.s\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmax z26.s, p7/m, z26.s, z22.s\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmax z27.s, p7/m, z27.s, z22.s\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmin z24.s, p7/m, z24.s, z23.s\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0]]\n"
+ "fmin z25.s, p7/m, z25.s, z23.s\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1]\n"
+ "fmin z26.s, p7/m, z26.s, z23.s\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2]\n"
+ "fmin z27.s, p7/m, z27.s, z23.s\n"
+ "st1w z24.s, p7, [%[c_ptr0]]\n"
+ "fmax z28.s, p7/m, z28.s, z22.s\n"
+ "ld1w z24.s, p0/z, [%[biasptr]]\n"
+ "fmax z29.s, p7/m, z29.s, z22.s\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3]\n"
+ "fmax z30.s, p7/m, z30.s, z22.s\n"
+ "st1w z25.s, p7, [c_ptr1]\n"
+ "fmax z31.s, p7/m, z31.s, z22.s\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmin z28.s, p7/m, z28.s, z23.s\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4]\n"
+ "fmin z29.s, p7/m, z29.s, z23.s\n"
+ "st1w z26.s, p7, [c_ptr2]\n"
+ "fmin z30.s, p7/m, z30.s, z23.s\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5]\n"
+ "fmin z31.s, p7/m, z31.s, z23.s\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "mov z25.d, z24.d\n"
+ "st1w z27.s, p7, [c_ptr3]\n"
+ "mov z26.d, z24.d\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6]\n"
+ "mov z27.d, z24.d\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7]\n"
+ "addvl %[c_ptr0], %[c_ptr0], #1\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "st1w z28.s, p7, [c_ptr4]\n"
+ "mov z28.d, z24.d\n"
+ "addvl c_ptr1, c_ptr1, #1\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "st1w z29.s, p7, [c_ptr5]\n"
+ "mov z29.d, z24.d\n"
+ "addvl c_ptr2, c_ptr2, #1\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "st1w z30.s, p7, [c_ptr6]\n"
+ "mov z30.d, z24.d\n"
+ "addvl c_ptr3, c_ptr3, #1\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "st1w z31.s, p7, [c_ptr7]\n"
+ "mov z31.d, z24.d\n"
+ "addvl c_ptr4, c_ptr4, #1\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "addvl c_ptr5, c_ptr5, #1\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "addvl c_ptr6, c_ptr6, #1\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "addvl c_ptr7, c_ptr7, #1\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #2\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x10]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x10]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x10]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x10]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x10]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x10]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x10]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x10]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0], #0x20]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1, #0x20]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2, #0x20]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3, #0x20]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4, #0x20]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5, #0x20]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6, #0x20]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7, #0x20]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "b 5f\n"
+ "2:\n"
+ "ld1w z24.s, p0/z, [%[biasptr]]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0]]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1]\n"
+ "mov z25.d, z24.d\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2]\n"
+ "mov z26.d, z24.d\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3]\n"
+ "mov z27.d, z24.d\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4]\n"
+ "mov z28.d, z24.d\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5]\n"
+ "mov z29.d, z24.d\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6]\n"
+ "mov z30.d, z24.d\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7]\n"
+ "mov z31.d, z24.d\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #2\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x10]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x10]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x10]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x10]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x10]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x10]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x10]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x10]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0], #0x20]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1, #0x20]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2, #0x20]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3, #0x20]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4, #0x20]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5, #0x20]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6, #0x20]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7, #0x20]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "5:\n"
+ "ld1rw z22.s, p7/z, [%[minptr]]\n"
+ "ld1rw z23.s, p7/z, [%[maxptr]]\n"
+ "fmax z24.s, p7/m, z24.s, z22.s\n"
+ "fmax z25.s, p7/m, z25.s, z22.s\n"
+ "fmax z26.s, p7/m, z26.s, z22.s\n"
+ "fmax z27.s, p7/m, z27.s, z22.s\n"
+ "fmin z24.s, p7/m, z24.s, z23.s\n"
+ "fmin z25.s, p7/m, z25.s, z23.s\n"
+ "fmin z26.s, p7/m, z26.s, z23.s\n"
+ "fmin z27.s, p7/m, z27.s, z23.s\n"
+ "st1w z24.s, p0, [%[c_ptr0]]\n"
+ "fmax z28.s, p7/m, z28.s, z22.s\n"
+ "addvl %[c_ptr0], %[c_ptr0], #1\n"
+ "fmax z29.s, p7/m, z29.s, z22.s\n"
+ "st1w z25.s, p0, [c_ptr1]\n"
+ "fmax z30.s, p7/m, z30.s, z22.s\n"
+ "fmin z28.s, p7/m, z28.s, z23.s\n"
+ "fmax z31.s, p7/m, z31.s, z22.s\n"
+ "st1w z26.s, p0, [c_ptr2]\n"
+ "fmin z29.s, p7/m, z29.s, z23.s\n"
+ "fmin z30.s, p7/m, z30.s, z23.s\n"
+ "fmin z31.s, p7/m, z31.s, z23.s\n"
+ "st1w z27.s, p0, [c_ptr3]\n"
+ "st1w z28.s, p0, [c_ptr4]\n"
+ "st1w z29.s, p0, [c_ptr5]\n"
+ "st1w z30.s, p0, [c_ptr6]\n"
+ "st1w z31.s, p0, [c_ptr7]\n"
+ ".unreq a_ptr1\n"
+ ".unreq a_ptr2\n"
+ ".unreq a_ptr3\n"
+ ".unreq a_ptr4\n"
+ ".unreq a_ptr5\n"
+ ".unreq a_ptr6\n"
+ ".unreq a_ptr7\n"
+ ".unreq c_ptr1\n"
+ ".unreq c_ptr2\n"
+ ".unreq c_ptr3\n"
+ ".unreq c_ptr4\n"
+ ".unreq c_ptr5\n"
+ ".unreq c_ptr6\n"
+ ".unreq c_ptr7\n"
+ : [a_ptr0] "+r" (a_ptr0), [b_ptr0] "+r" (b_ptr0), [c_ptr0] "+r" (c_ptr0), [loops] "+r" (loops), [oob_rows] "+r" (oob_rows), [temp] "+r" (temp), [biasptr] "+r" (biasptr)
+ : [lda] "r" (ldab), [ldc] "r" (ldcb), [odd_depth] "r" (odd_depth), [last_width] "r" (last_width), [biasinc] "r" (biasinc), [minptr] "r" (minptr), [maxptr] "r" (maxptr)
+ : "x0", "x1", "x2", "x3", "x4", "x5", "x6", "x7", "x8", "x9", "x10", "x11", "x12", "x13", "z0", "z1", "z2", "z3", "z4", "z5", "z6", "z7", "z8", "z9", "z10", "z11", "z12", "z13", "z14", "z15", "z16", "z17", "z18", "z19", "z20", "z21", "z22", "z23", "z24", "z25", "z26", "z27", "z28", "z29", "z30", "z31", "cc", "memory"
+ );
+ break;
+ case 11:
+ __asm __volatile (
+ "a_ptr1 .req X0\n"
+ "a_ptr2 .req X1\n"
+ "a_ptr3 .req X2\n"
+ "a_ptr4 .req X3\n"
+ "a_ptr5 .req X4\n"
+ "a_ptr6 .req X5\n"
+ "a_ptr7 .req X6\n"
+ "c_ptr1 .req X7\n"
+ "c_ptr2 .req X8\n"
+ "c_ptr3 .req X9\n"
+ "c_ptr4 .req X10\n"
+ "c_ptr5 .req X11\n"
+ "c_ptr6 .req X12\n"
+ "c_ptr7 .req X13\n"
+ "add a_ptr1, %[a_ptr0], %[lda]\n"
+ "add c_ptr1, %[c_ptr0], %[ldc]\n"
+ "add a_ptr2, a_ptr1, %[lda]\n"
+ "add c_ptr2, c_ptr1, %[ldc]\n"
+ "add a_ptr3, a_ptr2, %[lda]\n"
+ "add c_ptr3, c_ptr2, %[ldc]\n"
+ "add a_ptr4, a_ptr3, %[lda]\n"
+ "add c_ptr4, c_ptr3, %[ldc]\n"
+ "add a_ptr5, a_ptr4, %[lda]\n"
+ "add c_ptr5, c_ptr4, %[ldc]\n"
+ "add a_ptr6, a_ptr5, %[lda]\n"
+ "add c_ptr6, c_ptr5, %[ldc]\n"
+ "add a_ptr7, a_ptr6, %[lda]\n"
+ "add c_ptr7, c_ptr6, %[ldc]\n"
+ "cbz %[oob_rows], 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr7, %[c_ptr0], #0x0\n"
+ "add a_ptr7, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr6, %[c_ptr0], #0x0\n"
+ "add a_ptr6, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr5, %[c_ptr0], #0x0\n"
+ "add a_ptr5, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr4, %[c_ptr0], #0x0\n"
+ "add a_ptr4, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr3, %[c_ptr0], #0x0\n"
+ "add a_ptr3, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr2, %[c_ptr0], #0x0\n"
+ "add a_ptr2, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr1, %[c_ptr0], #0x0\n"
+ "add a_ptr1, %[a_ptr0], #0x0\n"
+ "1:\n"
+ "ptrue p7.s\n"
+ "whilelt p6.s, %[temp], %[odd_depth]\n"
+ "whilelt p0.s, %[temp], %[last_width]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "cbz %[loops], 2f\n"
+ "ld1w z24.s, p7/z, [%[biasptr]]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0]]\n"
+ "subs %[loops], %[loops], #0x1\n"
+ "mov z25.d, z24.d\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1]\n"
+ "mov z26.d, z24.d\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2]\n"
+ "mov z27.d, z24.d\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3]\n"
+ "mov z28.d, z24.d\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4]\n"
+ "mov z29.d, z24.d\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5]\n"
+ "mov z30.d, z24.d\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6]\n"
+ "mov z31.d, z24.d\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x10]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x10]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x10]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x10]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x10]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x10]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x10]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x10]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #3\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0], #0x20]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1, #0x20]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2, #0x20]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3, #0x20]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4, #0x20]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5, #0x20]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6, #0x20]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7, #0x20]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "b.eq 3f\n"
+ "4:\n"
+ "ld1rw z22.s, p7/z, [%[minptr]]\n"
+ "subs %[loops], %[loops], #0x1\n"
+ "ld1rw z23.s, p7/z, [%[maxptr]]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmax z24.s, p7/m, z24.s, z22.s\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmax z25.s, p7/m, z25.s, z22.s\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmax z26.s, p7/m, z26.s, z22.s\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmax z27.s, p7/m, z27.s, z22.s\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmin z24.s, p7/m, z24.s, z23.s\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmin z25.s, p7/m, z25.s, z23.s\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0]]\n"
+ "fmin z26.s, p7/m, z26.s, z23.s\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1]\n"
+ "fmin z27.s, p7/m, z27.s, z23.s\n"
+ "st1w z24.s, p7, [%[c_ptr0]]\n"
+ "fmax z28.s, p7/m, z28.s, z22.s\n"
+ "ld1w z24.s, p7/z, [%[biasptr]]\n"
+ "fmax z29.s, p7/m, z29.s, z22.s\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2]\n"
+ "fmax z30.s, p7/m, z30.s, z22.s\n"
+ "st1w z25.s, p7, [c_ptr1]\n"
+ "fmax z31.s, p7/m, z31.s, z22.s\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmin z28.s, p7/m, z28.s, z23.s\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3]\n"
+ "fmin z29.s, p7/m, z29.s, z23.s\n"
+ "st1w z26.s, p7, [c_ptr2]\n"
+ "fmin z30.s, p7/m, z30.s, z23.s\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4]\n"
+ "fmin z31.s, p7/m, z31.s, z23.s\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "mov z25.d, z24.d\n"
+ "st1w z27.s, p7, [c_ptr3]\n"
+ "mov z26.d, z24.d\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5]\n"
+ "mov z27.d, z24.d\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7]\n"
+ "addvl %[c_ptr0], %[c_ptr0], #1\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "st1w z28.s, p7, [c_ptr4]\n"
+ "mov z28.d, z24.d\n"
+ "addvl c_ptr1, c_ptr1, #1\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "st1w z29.s, p7, [c_ptr5]\n"
+ "mov z29.d, z24.d\n"
+ "addvl c_ptr2, c_ptr2, #1\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "st1w z30.s, p7, [c_ptr6]\n"
+ "mov z30.d, z24.d\n"
+ "addvl c_ptr3, c_ptr3, #1\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "st1w z31.s, p7, [c_ptr7]\n"
+ "mov z31.d, z24.d\n"
+ "addvl c_ptr4, c_ptr4, #1\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "addvl c_ptr5, c_ptr5, #1\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "addvl c_ptr6, c_ptr6, #1\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "addvl c_ptr7, c_ptr7, #1\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x10]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x10]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x10]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x10]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x10]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x10]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x10]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x10]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #3\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0], #0x20]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1, #0x20]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2, #0x20]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3, #0x20]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4, #0x20]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5, #0x20]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6, #0x20]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7, #0x20]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "b.ne 4b\n"
+ "3:\n"
+ "ld1rw z22.s, p7/z, [%[minptr]]\n"
+ "ld1rw z23.s, p7/z, [%[maxptr]]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmax z24.s, p7/m, z24.s, z22.s\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmax z25.s, p7/m, z25.s, z22.s\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmax z26.s, p7/m, z26.s, z22.s\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmax z27.s, p7/m, z27.s, z22.s\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmin z24.s, p7/m, z24.s, z23.s\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0]]\n"
+ "fmin z25.s, p7/m, z25.s, z23.s\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1]\n"
+ "fmin z26.s, p7/m, z26.s, z23.s\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2]\n"
+ "fmin z27.s, p7/m, z27.s, z23.s\n"
+ "st1w z24.s, p7, [%[c_ptr0]]\n"
+ "fmax z28.s, p7/m, z28.s, z22.s\n"
+ "ld1w z24.s, p0/z, [%[biasptr]]\n"
+ "fmax z29.s, p7/m, z29.s, z22.s\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3]\n"
+ "fmax z30.s, p7/m, z30.s, z22.s\n"
+ "st1w z25.s, p7, [c_ptr1]\n"
+ "fmax z31.s, p7/m, z31.s, z22.s\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmin z28.s, p7/m, z28.s, z23.s\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4]\n"
+ "fmin z29.s, p7/m, z29.s, z23.s\n"
+ "st1w z26.s, p7, [c_ptr2]\n"
+ "fmin z30.s, p7/m, z30.s, z23.s\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5]\n"
+ "fmin z31.s, p7/m, z31.s, z23.s\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "mov z25.d, z24.d\n"
+ "st1w z27.s, p7, [c_ptr3]\n"
+ "mov z26.d, z24.d\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6]\n"
+ "mov z27.d, z24.d\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7]\n"
+ "addvl %[c_ptr0], %[c_ptr0], #1\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "st1w z28.s, p7, [c_ptr4]\n"
+ "mov z28.d, z24.d\n"
+ "addvl c_ptr1, c_ptr1, #1\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "st1w z29.s, p7, [c_ptr5]\n"
+ "mov z29.d, z24.d\n"
+ "addvl c_ptr2, c_ptr2, #1\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "st1w z30.s, p7, [c_ptr6]\n"
+ "mov z30.d, z24.d\n"
+ "addvl c_ptr3, c_ptr3, #1\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "st1w z31.s, p7, [c_ptr7]\n"
+ "mov z31.d, z24.d\n"
+ "addvl c_ptr4, c_ptr4, #1\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "addvl c_ptr5, c_ptr5, #1\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "addvl c_ptr6, c_ptr6, #1\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "addvl c_ptr7, c_ptr7, #1\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x10]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x10]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x10]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x10]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x10]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x10]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x10]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x10]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #3\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0], #0x20]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1, #0x20]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2, #0x20]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3, #0x20]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4, #0x20]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5, #0x20]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6, #0x20]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7, #0x20]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "b 5f\n"
+ "2:\n"
+ "ld1w z24.s, p0/z, [%[biasptr]]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0]]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1]\n"
+ "mov z25.d, z24.d\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2]\n"
+ "mov z26.d, z24.d\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3]\n"
+ "mov z27.d, z24.d\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4]\n"
+ "mov z28.d, z24.d\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5]\n"
+ "mov z29.d, z24.d\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6]\n"
+ "mov z30.d, z24.d\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7]\n"
+ "mov z31.d, z24.d\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x10]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x10]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x10]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x10]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x10]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x10]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x10]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x10]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #3\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0], #0x20]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1, #0x20]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2, #0x20]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3, #0x20]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4, #0x20]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5, #0x20]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6, #0x20]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7, #0x20]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "5:\n"
+ "ld1rw z22.s, p7/z, [%[minptr]]\n"
+ "ld1rw z23.s, p7/z, [%[maxptr]]\n"
+ "fmax z24.s, p7/m, z24.s, z22.s\n"
+ "fmax z25.s, p7/m, z25.s, z22.s\n"
+ "fmax z26.s, p7/m, z26.s, z22.s\n"
+ "fmax z27.s, p7/m, z27.s, z22.s\n"
+ "fmin z24.s, p7/m, z24.s, z23.s\n"
+ "fmin z25.s, p7/m, z25.s, z23.s\n"
+ "fmin z26.s, p7/m, z26.s, z23.s\n"
+ "fmin z27.s, p7/m, z27.s, z23.s\n"
+ "st1w z24.s, p0, [%[c_ptr0]]\n"
+ "fmax z28.s, p7/m, z28.s, z22.s\n"
+ "addvl %[c_ptr0], %[c_ptr0], #1\n"
+ "fmax z29.s, p7/m, z29.s, z22.s\n"
+ "st1w z25.s, p0, [c_ptr1]\n"
+ "fmax z30.s, p7/m, z30.s, z22.s\n"
+ "fmin z28.s, p7/m, z28.s, z23.s\n"
+ "fmax z31.s, p7/m, z31.s, z22.s\n"
+ "st1w z26.s, p0, [c_ptr2]\n"
+ "fmin z29.s, p7/m, z29.s, z23.s\n"
+ "fmin z30.s, p7/m, z30.s, z23.s\n"
+ "fmin z31.s, p7/m, z31.s, z23.s\n"
+ "st1w z27.s, p0, [c_ptr3]\n"
+ "st1w z28.s, p0, [c_ptr4]\n"
+ "st1w z29.s, p0, [c_ptr5]\n"
+ "st1w z30.s, p0, [c_ptr6]\n"
+ "st1w z31.s, p0, [c_ptr7]\n"
+ ".unreq a_ptr1\n"
+ ".unreq a_ptr2\n"
+ ".unreq a_ptr3\n"
+ ".unreq a_ptr4\n"
+ ".unreq a_ptr5\n"
+ ".unreq a_ptr6\n"
+ ".unreq a_ptr7\n"
+ ".unreq c_ptr1\n"
+ ".unreq c_ptr2\n"
+ ".unreq c_ptr3\n"
+ ".unreq c_ptr4\n"
+ ".unreq c_ptr5\n"
+ ".unreq c_ptr6\n"
+ ".unreq c_ptr7\n"
+ : [a_ptr0] "+r" (a_ptr0), [b_ptr0] "+r" (b_ptr0), [c_ptr0] "+r" (c_ptr0), [loops] "+r" (loops), [oob_rows] "+r" (oob_rows), [temp] "+r" (temp), [biasptr] "+r" (biasptr)
+ : [lda] "r" (ldab), [ldc] "r" (ldcb), [odd_depth] "r" (odd_depth), [last_width] "r" (last_width), [biasinc] "r" (biasinc), [minptr] "r" (minptr), [maxptr] "r" (maxptr)
+ : "x0", "x1", "x2", "x3", "x4", "x5", "x6", "x7", "x8", "x9", "x10", "x11", "x12", "x13", "z0", "z1", "z2", "z3", "z4", "z5", "z6", "z7", "z8", "z9", "z10", "z11", "z12", "z13", "z14", "z15", "z16", "z17", "z18", "z19", "z20", "z21", "z22", "z23", "z24", "z25", "z26", "z27", "z28", "z29", "z30", "z31", "cc", "memory"
+ );
+ break;
+ case 12:
+ __asm __volatile (
+ "a_ptr1 .req X0\n"
+ "a_ptr2 .req X1\n"
+ "a_ptr3 .req X2\n"
+ "a_ptr4 .req X3\n"
+ "a_ptr5 .req X4\n"
+ "a_ptr6 .req X5\n"
+ "a_ptr7 .req X6\n"
+ "c_ptr1 .req X7\n"
+ "c_ptr2 .req X8\n"
+ "c_ptr3 .req X9\n"
+ "c_ptr4 .req X10\n"
+ "c_ptr5 .req X11\n"
+ "c_ptr6 .req X12\n"
+ "c_ptr7 .req X13\n"
+ "add a_ptr1, %[a_ptr0], %[lda]\n"
+ "add c_ptr1, %[c_ptr0], %[ldc]\n"
+ "add a_ptr2, a_ptr1, %[lda]\n"
+ "add c_ptr2, c_ptr1, %[ldc]\n"
+ "add a_ptr3, a_ptr2, %[lda]\n"
+ "add c_ptr3, c_ptr2, %[ldc]\n"
+ "add a_ptr4, a_ptr3, %[lda]\n"
+ "add c_ptr4, c_ptr3, %[ldc]\n"
+ "add a_ptr5, a_ptr4, %[lda]\n"
+ "add c_ptr5, c_ptr4, %[ldc]\n"
+ "add a_ptr6, a_ptr5, %[lda]\n"
+ "add c_ptr6, c_ptr5, %[ldc]\n"
+ "add a_ptr7, a_ptr6, %[lda]\n"
+ "add c_ptr7, c_ptr6, %[ldc]\n"
+ "cbz %[oob_rows], 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr7, %[c_ptr0], #0x0\n"
+ "add a_ptr7, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr6, %[c_ptr0], #0x0\n"
+ "add a_ptr6, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr5, %[c_ptr0], #0x0\n"
+ "add a_ptr5, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr4, %[c_ptr0], #0x0\n"
+ "add a_ptr4, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr3, %[c_ptr0], #0x0\n"
+ "add a_ptr3, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr2, %[c_ptr0], #0x0\n"
+ "add a_ptr2, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr1, %[c_ptr0], #0x0\n"
+ "add a_ptr1, %[a_ptr0], #0x0\n"
+ "1:\n"
+ "ptrue p7.s\n"
+ "whilelt p6.s, %[temp], %[odd_depth]\n"
+ "whilelt p0.s, %[temp], %[last_width]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "cbz %[loops], 2f\n"
+ "ld1w z24.s, p7/z, [%[biasptr]]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0]]\n"
+ "subs %[loops], %[loops], #0x1\n"
+ "mov z25.d, z24.d\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1]\n"
+ "mov z26.d, z24.d\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2]\n"
+ "mov z27.d, z24.d\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3]\n"
+ "mov z28.d, z24.d\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4]\n"
+ "mov z29.d, z24.d\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5]\n"
+ "mov z30.d, z24.d\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6]\n"
+ "mov z31.d, z24.d\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x10]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x10]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x10]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x10]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x10]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x10]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x10]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x10]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #4\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0], #0x20]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1, #0x20]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2, #0x20]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3, #0x20]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4, #0x20]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5, #0x20]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6, #0x20]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7, #0x20]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "b.eq 3f\n"
+ "4:\n"
+ "ld1rw z22.s, p7/z, [%[minptr]]\n"
+ "subs %[loops], %[loops], #0x1\n"
+ "ld1rw z23.s, p7/z, [%[maxptr]]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmax z24.s, p7/m, z24.s, z22.s\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmax z25.s, p7/m, z25.s, z22.s\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmax z26.s, p7/m, z26.s, z22.s\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmax z27.s, p7/m, z27.s, z22.s\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmin z24.s, p7/m, z24.s, z23.s\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmin z25.s, p7/m, z25.s, z23.s\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0]]\n"
+ "fmin z26.s, p7/m, z26.s, z23.s\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1]\n"
+ "fmin z27.s, p7/m, z27.s, z23.s\n"
+ "st1w z24.s, p7, [%[c_ptr0]]\n"
+ "fmax z28.s, p7/m, z28.s, z22.s\n"
+ "ld1w z24.s, p7/z, [%[biasptr]]\n"
+ "fmax z29.s, p7/m, z29.s, z22.s\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2]\n"
+ "fmax z30.s, p7/m, z30.s, z22.s\n"
+ "st1w z25.s, p7, [c_ptr1]\n"
+ "fmax z31.s, p7/m, z31.s, z22.s\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmin z28.s, p7/m, z28.s, z23.s\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3]\n"
+ "fmin z29.s, p7/m, z29.s, z23.s\n"
+ "st1w z26.s, p7, [c_ptr2]\n"
+ "fmin z30.s, p7/m, z30.s, z23.s\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4]\n"
+ "fmin z31.s, p7/m, z31.s, z23.s\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "mov z25.d, z24.d\n"
+ "st1w z27.s, p7, [c_ptr3]\n"
+ "mov z26.d, z24.d\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5]\n"
+ "mov z27.d, z24.d\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7]\n"
+ "addvl %[c_ptr0], %[c_ptr0], #1\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "st1w z28.s, p7, [c_ptr4]\n"
+ "mov z28.d, z24.d\n"
+ "addvl c_ptr1, c_ptr1, #1\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "st1w z29.s, p7, [c_ptr5]\n"
+ "mov z29.d, z24.d\n"
+ "addvl c_ptr2, c_ptr2, #1\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "st1w z30.s, p7, [c_ptr6]\n"
+ "mov z30.d, z24.d\n"
+ "addvl c_ptr3, c_ptr3, #1\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "st1w z31.s, p7, [c_ptr7]\n"
+ "mov z31.d, z24.d\n"
+ "addvl c_ptr4, c_ptr4, #1\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "addvl c_ptr5, c_ptr5, #1\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "addvl c_ptr6, c_ptr6, #1\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "addvl c_ptr7, c_ptr7, #1\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x10]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x10]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x10]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x10]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x10]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x10]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x10]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x10]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #4\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0], #0x20]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1, #0x20]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2, #0x20]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3, #0x20]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4, #0x20]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5, #0x20]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6, #0x20]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7, #0x20]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "b.ne 4b\n"
+ "3:\n"
+ "ld1rw z22.s, p7/z, [%[minptr]]\n"
+ "ld1rw z23.s, p7/z, [%[maxptr]]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmax z24.s, p7/m, z24.s, z22.s\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmax z25.s, p7/m, z25.s, z22.s\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmax z26.s, p7/m, z26.s, z22.s\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmax z27.s, p7/m, z27.s, z22.s\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmin z24.s, p7/m, z24.s, z23.s\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0]]\n"
+ "fmin z25.s, p7/m, z25.s, z23.s\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1]\n"
+ "fmin z26.s, p7/m, z26.s, z23.s\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2]\n"
+ "fmin z27.s, p7/m, z27.s, z23.s\n"
+ "st1w z24.s, p7, [%[c_ptr0]]\n"
+ "fmax z28.s, p7/m, z28.s, z22.s\n"
+ "ld1w z24.s, p0/z, [%[biasptr]]\n"
+ "fmax z29.s, p7/m, z29.s, z22.s\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3]\n"
+ "fmax z30.s, p7/m, z30.s, z22.s\n"
+ "st1w z25.s, p7, [c_ptr1]\n"
+ "fmax z31.s, p7/m, z31.s, z22.s\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmin z28.s, p7/m, z28.s, z23.s\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4]\n"
+ "fmin z29.s, p7/m, z29.s, z23.s\n"
+ "st1w z26.s, p7, [c_ptr2]\n"
+ "fmin z30.s, p7/m, z30.s, z23.s\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5]\n"
+ "fmin z31.s, p7/m, z31.s, z23.s\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "mov z25.d, z24.d\n"
+ "st1w z27.s, p7, [c_ptr3]\n"
+ "mov z26.d, z24.d\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6]\n"
+ "mov z27.d, z24.d\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7]\n"
+ "addvl %[c_ptr0], %[c_ptr0], #1\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "st1w z28.s, p7, [c_ptr4]\n"
+ "mov z28.d, z24.d\n"
+ "addvl c_ptr1, c_ptr1, #1\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "st1w z29.s, p7, [c_ptr5]\n"
+ "mov z29.d, z24.d\n"
+ "addvl c_ptr2, c_ptr2, #1\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "st1w z30.s, p7, [c_ptr6]\n"
+ "mov z30.d, z24.d\n"
+ "addvl c_ptr3, c_ptr3, #1\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "st1w z31.s, p7, [c_ptr7]\n"
+ "mov z31.d, z24.d\n"
+ "addvl c_ptr4, c_ptr4, #1\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "addvl c_ptr5, c_ptr5, #1\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "addvl c_ptr6, c_ptr6, #1\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "addvl c_ptr7, c_ptr7, #1\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x10]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x10]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x10]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x10]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x10]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x10]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x10]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x10]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #4\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0], #0x20]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1, #0x20]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2, #0x20]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3, #0x20]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4, #0x20]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5, #0x20]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6, #0x20]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7, #0x20]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "b 5f\n"
+ "2:\n"
+ "ld1w z24.s, p0/z, [%[biasptr]]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0]]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1]\n"
+ "mov z25.d, z24.d\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2]\n"
+ "mov z26.d, z24.d\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3]\n"
+ "mov z27.d, z24.d\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4]\n"
+ "mov z28.d, z24.d\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5]\n"
+ "mov z29.d, z24.d\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6]\n"
+ "mov z30.d, z24.d\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7]\n"
+ "mov z31.d, z24.d\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x10]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x10]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x10]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x10]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x10]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x10]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x10]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x10]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #4\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0], #0x20]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1, #0x20]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2, #0x20]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3, #0x20]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4, #0x20]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5, #0x20]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6, #0x20]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7, #0x20]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "5:\n"
+ "ld1rw z22.s, p7/z, [%[minptr]]\n"
+ "ld1rw z23.s, p7/z, [%[maxptr]]\n"
+ "fmax z24.s, p7/m, z24.s, z22.s\n"
+ "fmax z25.s, p7/m, z25.s, z22.s\n"
+ "fmax z26.s, p7/m, z26.s, z22.s\n"
+ "fmax z27.s, p7/m, z27.s, z22.s\n"
+ "fmin z24.s, p7/m, z24.s, z23.s\n"
+ "fmin z25.s, p7/m, z25.s, z23.s\n"
+ "fmin z26.s, p7/m, z26.s, z23.s\n"
+ "fmin z27.s, p7/m, z27.s, z23.s\n"
+ "st1w z24.s, p0, [%[c_ptr0]]\n"
+ "fmax z28.s, p7/m, z28.s, z22.s\n"
+ "addvl %[c_ptr0], %[c_ptr0], #1\n"
+ "fmax z29.s, p7/m, z29.s, z22.s\n"
+ "st1w z25.s, p0, [c_ptr1]\n"
+ "fmax z30.s, p7/m, z30.s, z22.s\n"
+ "fmin z28.s, p7/m, z28.s, z23.s\n"
+ "fmax z31.s, p7/m, z31.s, z22.s\n"
+ "st1w z26.s, p0, [c_ptr2]\n"
+ "fmin z29.s, p7/m, z29.s, z23.s\n"
+ "fmin z30.s, p7/m, z30.s, z23.s\n"
+ "fmin z31.s, p7/m, z31.s, z23.s\n"
+ "st1w z27.s, p0, [c_ptr3]\n"
+ "st1w z28.s, p0, [c_ptr4]\n"
+ "st1w z29.s, p0, [c_ptr5]\n"
+ "st1w z30.s, p0, [c_ptr6]\n"
+ "st1w z31.s, p0, [c_ptr7]\n"
+ ".unreq a_ptr1\n"
+ ".unreq a_ptr2\n"
+ ".unreq a_ptr3\n"
+ ".unreq a_ptr4\n"
+ ".unreq a_ptr5\n"
+ ".unreq a_ptr6\n"
+ ".unreq a_ptr7\n"
+ ".unreq c_ptr1\n"
+ ".unreq c_ptr2\n"
+ ".unreq c_ptr3\n"
+ ".unreq c_ptr4\n"
+ ".unreq c_ptr5\n"
+ ".unreq c_ptr6\n"
+ ".unreq c_ptr7\n"
+ : [a_ptr0] "+r" (a_ptr0), [b_ptr0] "+r" (b_ptr0), [c_ptr0] "+r" (c_ptr0), [loops] "+r" (loops), [oob_rows] "+r" (oob_rows), [temp] "+r" (temp), [biasptr] "+r" (biasptr)
+ : [lda] "r" (ldab), [ldc] "r" (ldcb), [odd_depth] "r" (odd_depth), [last_width] "r" (last_width), [biasinc] "r" (biasinc), [minptr] "r" (minptr), [maxptr] "r" (maxptr)
+ : "x0", "x1", "x2", "x3", "x4", "x5", "x6", "x7", "x8", "x9", "x10", "x11", "x12", "x13", "z0", "z1", "z2", "z3", "z4", "z5", "z6", "z7", "z8", "z9", "z10", "z11", "z12", "z13", "z14", "z15", "z16", "z17", "z18", "z19", "z20", "z21", "z22", "z23", "z24", "z25", "z26", "z27", "z28", "z29", "z30", "z31", "cc", "memory"
+ );
+ break;
+ case 13:
+ __asm __volatile (
+ "a_ptr1 .req X0\n"
+ "a_ptr2 .req X1\n"
+ "a_ptr3 .req X2\n"
+ "a_ptr4 .req X3\n"
+ "a_ptr5 .req X4\n"
+ "a_ptr6 .req X5\n"
+ "a_ptr7 .req X6\n"
+ "c_ptr1 .req X7\n"
+ "c_ptr2 .req X8\n"
+ "c_ptr3 .req X9\n"
+ "c_ptr4 .req X10\n"
+ "c_ptr5 .req X11\n"
+ "c_ptr6 .req X12\n"
+ "c_ptr7 .req X13\n"
+ "add a_ptr1, %[a_ptr0], %[lda]\n"
+ "add c_ptr1, %[c_ptr0], %[ldc]\n"
+ "add a_ptr2, a_ptr1, %[lda]\n"
+ "add c_ptr2, c_ptr1, %[ldc]\n"
+ "add a_ptr3, a_ptr2, %[lda]\n"
+ "add c_ptr3, c_ptr2, %[ldc]\n"
+ "add a_ptr4, a_ptr3, %[lda]\n"
+ "add c_ptr4, c_ptr3, %[ldc]\n"
+ "add a_ptr5, a_ptr4, %[lda]\n"
+ "add c_ptr5, c_ptr4, %[ldc]\n"
+ "add a_ptr6, a_ptr5, %[lda]\n"
+ "add c_ptr6, c_ptr5, %[ldc]\n"
+ "add a_ptr7, a_ptr6, %[lda]\n"
+ "add c_ptr7, c_ptr6, %[ldc]\n"
+ "cbz %[oob_rows], 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr7, %[c_ptr0], #0x0\n"
+ "add a_ptr7, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr6, %[c_ptr0], #0x0\n"
+ "add a_ptr6, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr5, %[c_ptr0], #0x0\n"
+ "add a_ptr5, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr4, %[c_ptr0], #0x0\n"
+ "add a_ptr4, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr3, %[c_ptr0], #0x0\n"
+ "add a_ptr3, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr2, %[c_ptr0], #0x0\n"
+ "add a_ptr2, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr1, %[c_ptr0], #0x0\n"
+ "add a_ptr1, %[a_ptr0], #0x0\n"
+ "1:\n"
+ "ptrue p7.s\n"
+ "whilelt p6.s, %[temp], %[odd_depth]\n"
+ "whilelt p0.s, %[temp], %[last_width]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "cbz %[loops], 2f\n"
+ "ld1w z24.s, p7/z, [%[biasptr]]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0]]\n"
+ "subs %[loops], %[loops], #0x1\n"
+ "mov z25.d, z24.d\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1]\n"
+ "mov z26.d, z24.d\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2]\n"
+ "mov z27.d, z24.d\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3]\n"
+ "mov z28.d, z24.d\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4]\n"
+ "mov z29.d, z24.d\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5]\n"
+ "mov z30.d, z24.d\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6]\n"
+ "mov z31.d, z24.d\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x10]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x10]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x10]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x10]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x10]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x10]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x10]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x10]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #5\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x20]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x20]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x20]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x20]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x20]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x20]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x20]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x20]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0], #0x30]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1, #0x30]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2, #0x30]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3, #0x30]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4, #0x30]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5, #0x30]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6, #0x30]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7, #0x30]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "b.eq 3f\n"
+ "4:\n"
+ "ld1rw z22.s, p7/z, [%[minptr]]\n"
+ "subs %[loops], %[loops], #0x1\n"
+ "ld1rw z23.s, p7/z, [%[maxptr]]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmax z24.s, p7/m, z24.s, z22.s\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmax z25.s, p7/m, z25.s, z22.s\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmax z26.s, p7/m, z26.s, z22.s\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmax z27.s, p7/m, z27.s, z22.s\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmin z24.s, p7/m, z24.s, z23.s\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmin z25.s, p7/m, z25.s, z23.s\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0]]\n"
+ "fmin z26.s, p7/m, z26.s, z23.s\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1]\n"
+ "fmin z27.s, p7/m, z27.s, z23.s\n"
+ "st1w z24.s, p7, [%[c_ptr0]]\n"
+ "fmax z28.s, p7/m, z28.s, z22.s\n"
+ "ld1w z24.s, p7/z, [%[biasptr]]\n"
+ "fmax z29.s, p7/m, z29.s, z22.s\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2]\n"
+ "fmax z30.s, p7/m, z30.s, z22.s\n"
+ "st1w z25.s, p7, [c_ptr1]\n"
+ "fmax z31.s, p7/m, z31.s, z22.s\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmin z28.s, p7/m, z28.s, z23.s\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3]\n"
+ "fmin z29.s, p7/m, z29.s, z23.s\n"
+ "st1w z26.s, p7, [c_ptr2]\n"
+ "fmin z30.s, p7/m, z30.s, z23.s\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4]\n"
+ "fmin z31.s, p7/m, z31.s, z23.s\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "mov z25.d, z24.d\n"
+ "st1w z27.s, p7, [c_ptr3]\n"
+ "mov z26.d, z24.d\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5]\n"
+ "mov z27.d, z24.d\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7]\n"
+ "addvl %[c_ptr0], %[c_ptr0], #1\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "st1w z28.s, p7, [c_ptr4]\n"
+ "mov z28.d, z24.d\n"
+ "addvl c_ptr1, c_ptr1, #1\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "st1w z29.s, p7, [c_ptr5]\n"
+ "mov z29.d, z24.d\n"
+ "addvl c_ptr2, c_ptr2, #1\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "st1w z30.s, p7, [c_ptr6]\n"
+ "mov z30.d, z24.d\n"
+ "addvl c_ptr3, c_ptr3, #1\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "st1w z31.s, p7, [c_ptr7]\n"
+ "mov z31.d, z24.d\n"
+ "addvl c_ptr4, c_ptr4, #1\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "addvl c_ptr5, c_ptr5, #1\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "addvl c_ptr6, c_ptr6, #1\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "addvl c_ptr7, c_ptr7, #1\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x10]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x10]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x10]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x10]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x10]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x10]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x10]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x10]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #5\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x20]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x20]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x20]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x20]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x20]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x20]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x20]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x20]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0], #0x30]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1, #0x30]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2, #0x30]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3, #0x30]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4, #0x30]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5, #0x30]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6, #0x30]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7, #0x30]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "b.ne 4b\n"
+ "3:\n"
+ "ld1rw z22.s, p7/z, [%[minptr]]\n"
+ "ld1rw z23.s, p7/z, [%[maxptr]]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmax z24.s, p7/m, z24.s, z22.s\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmax z25.s, p7/m, z25.s, z22.s\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmax z26.s, p7/m, z26.s, z22.s\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmax z27.s, p7/m, z27.s, z22.s\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmin z24.s, p7/m, z24.s, z23.s\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0]]\n"
+ "fmin z25.s, p7/m, z25.s, z23.s\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1]\n"
+ "fmin z26.s, p7/m, z26.s, z23.s\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2]\n"
+ "fmin z27.s, p7/m, z27.s, z23.s\n"
+ "st1w z24.s, p7, [%[c_ptr0]]\n"
+ "fmax z28.s, p7/m, z28.s, z22.s\n"
+ "ld1w z24.s, p0/z, [%[biasptr]]\n"
+ "fmax z29.s, p7/m, z29.s, z22.s\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3]\n"
+ "fmax z30.s, p7/m, z30.s, z22.s\n"
+ "st1w z25.s, p7, [c_ptr1]\n"
+ "fmax z31.s, p7/m, z31.s, z22.s\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmin z28.s, p7/m, z28.s, z23.s\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4]\n"
+ "fmin z29.s, p7/m, z29.s, z23.s\n"
+ "st1w z26.s, p7, [c_ptr2]\n"
+ "fmin z30.s, p7/m, z30.s, z23.s\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5]\n"
+ "fmin z31.s, p7/m, z31.s, z23.s\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "mov z25.d, z24.d\n"
+ "st1w z27.s, p7, [c_ptr3]\n"
+ "mov z26.d, z24.d\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6]\n"
+ "mov z27.d, z24.d\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7]\n"
+ "addvl %[c_ptr0], %[c_ptr0], #1\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "st1w z28.s, p7, [c_ptr4]\n"
+ "mov z28.d, z24.d\n"
+ "addvl c_ptr1, c_ptr1, #1\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "st1w z29.s, p7, [c_ptr5]\n"
+ "mov z29.d, z24.d\n"
+ "addvl c_ptr2, c_ptr2, #1\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "st1w z30.s, p7, [c_ptr6]\n"
+ "mov z30.d, z24.d\n"
+ "addvl c_ptr3, c_ptr3, #1\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "st1w z31.s, p7, [c_ptr7]\n"
+ "mov z31.d, z24.d\n"
+ "addvl c_ptr4, c_ptr4, #1\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "addvl c_ptr5, c_ptr5, #1\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "addvl c_ptr6, c_ptr6, #1\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "addvl c_ptr7, c_ptr7, #1\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x10]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x10]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x10]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x10]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x10]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x10]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x10]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x10]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #5\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x20]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x20]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x20]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x20]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x20]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x20]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x20]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x20]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0], #0x30]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1, #0x30]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2, #0x30]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3, #0x30]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4, #0x30]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5, #0x30]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6, #0x30]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7, #0x30]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "b 5f\n"
+ "2:\n"
+ "ld1w z24.s, p0/z, [%[biasptr]]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0]]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1]\n"
+ "mov z25.d, z24.d\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2]\n"
+ "mov z26.d, z24.d\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3]\n"
+ "mov z27.d, z24.d\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4]\n"
+ "mov z28.d, z24.d\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5]\n"
+ "mov z29.d, z24.d\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6]\n"
+ "mov z30.d, z24.d\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7]\n"
+ "mov z31.d, z24.d\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x10]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x10]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x10]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x10]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x10]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x10]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x10]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x10]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #5\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x20]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x20]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x20]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x20]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x20]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x20]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x20]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x20]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0], #0x30]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1, #0x30]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2, #0x30]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3, #0x30]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4, #0x30]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5, #0x30]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6, #0x30]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7, #0x30]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "5:\n"
+ "ld1rw z22.s, p7/z, [%[minptr]]\n"
+ "ld1rw z23.s, p7/z, [%[maxptr]]\n"
+ "fmax z24.s, p7/m, z24.s, z22.s\n"
+ "fmax z25.s, p7/m, z25.s, z22.s\n"
+ "fmax z26.s, p7/m, z26.s, z22.s\n"
+ "fmax z27.s, p7/m, z27.s, z22.s\n"
+ "fmin z24.s, p7/m, z24.s, z23.s\n"
+ "fmin z25.s, p7/m, z25.s, z23.s\n"
+ "fmin z26.s, p7/m, z26.s, z23.s\n"
+ "fmin z27.s, p7/m, z27.s, z23.s\n"
+ "st1w z24.s, p0, [%[c_ptr0]]\n"
+ "fmax z28.s, p7/m, z28.s, z22.s\n"
+ "addvl %[c_ptr0], %[c_ptr0], #1\n"
+ "fmax z29.s, p7/m, z29.s, z22.s\n"
+ "st1w z25.s, p0, [c_ptr1]\n"
+ "fmax z30.s, p7/m, z30.s, z22.s\n"
+ "fmin z28.s, p7/m, z28.s, z23.s\n"
+ "fmax z31.s, p7/m, z31.s, z22.s\n"
+ "st1w z26.s, p0, [c_ptr2]\n"
+ "fmin z29.s, p7/m, z29.s, z23.s\n"
+ "fmin z30.s, p7/m, z30.s, z23.s\n"
+ "fmin z31.s, p7/m, z31.s, z23.s\n"
+ "st1w z27.s, p0, [c_ptr3]\n"
+ "st1w z28.s, p0, [c_ptr4]\n"
+ "st1w z29.s, p0, [c_ptr5]\n"
+ "st1w z30.s, p0, [c_ptr6]\n"
+ "st1w z31.s, p0, [c_ptr7]\n"
+ ".unreq a_ptr1\n"
+ ".unreq a_ptr2\n"
+ ".unreq a_ptr3\n"
+ ".unreq a_ptr4\n"
+ ".unreq a_ptr5\n"
+ ".unreq a_ptr6\n"
+ ".unreq a_ptr7\n"
+ ".unreq c_ptr1\n"
+ ".unreq c_ptr2\n"
+ ".unreq c_ptr3\n"
+ ".unreq c_ptr4\n"
+ ".unreq c_ptr5\n"
+ ".unreq c_ptr6\n"
+ ".unreq c_ptr7\n"
+ : [a_ptr0] "+r" (a_ptr0), [b_ptr0] "+r" (b_ptr0), [c_ptr0] "+r" (c_ptr0), [loops] "+r" (loops), [oob_rows] "+r" (oob_rows), [temp] "+r" (temp), [biasptr] "+r" (biasptr)
+ : [lda] "r" (ldab), [ldc] "r" (ldcb), [odd_depth] "r" (odd_depth), [last_width] "r" (last_width), [biasinc] "r" (biasinc), [minptr] "r" (minptr), [maxptr] "r" (maxptr)
+ : "x0", "x1", "x2", "x3", "x4", "x5", "x6", "x7", "x8", "x9", "x10", "x11", "x12", "x13", "z0", "z1", "z2", "z3", "z4", "z5", "z6", "z7", "z8", "z9", "z10", "z11", "z12", "z13", "z14", "z15", "z16", "z17", "z18", "z19", "z20", "z21", "z22", "z23", "z24", "z25", "z26", "z27", "z28", "z29", "z30", "z31", "cc", "memory"
+ );
+ break;
+ case 14:
+ __asm __volatile (
+ "a_ptr1 .req X0\n"
+ "a_ptr2 .req X1\n"
+ "a_ptr3 .req X2\n"
+ "a_ptr4 .req X3\n"
+ "a_ptr5 .req X4\n"
+ "a_ptr6 .req X5\n"
+ "a_ptr7 .req X6\n"
+ "c_ptr1 .req X7\n"
+ "c_ptr2 .req X8\n"
+ "c_ptr3 .req X9\n"
+ "c_ptr4 .req X10\n"
+ "c_ptr5 .req X11\n"
+ "c_ptr6 .req X12\n"
+ "c_ptr7 .req X13\n"
+ "add a_ptr1, %[a_ptr0], %[lda]\n"
+ "add c_ptr1, %[c_ptr0], %[ldc]\n"
+ "add a_ptr2, a_ptr1, %[lda]\n"
+ "add c_ptr2, c_ptr1, %[ldc]\n"
+ "add a_ptr3, a_ptr2, %[lda]\n"
+ "add c_ptr3, c_ptr2, %[ldc]\n"
+ "add a_ptr4, a_ptr3, %[lda]\n"
+ "add c_ptr4, c_ptr3, %[ldc]\n"
+ "add a_ptr5, a_ptr4, %[lda]\n"
+ "add c_ptr5, c_ptr4, %[ldc]\n"
+ "add a_ptr6, a_ptr5, %[lda]\n"
+ "add c_ptr6, c_ptr5, %[ldc]\n"
+ "add a_ptr7, a_ptr6, %[lda]\n"
+ "add c_ptr7, c_ptr6, %[ldc]\n"
+ "cbz %[oob_rows], 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr7, %[c_ptr0], #0x0\n"
+ "add a_ptr7, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr6, %[c_ptr0], #0x0\n"
+ "add a_ptr6, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr5, %[c_ptr0], #0x0\n"
+ "add a_ptr5, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr4, %[c_ptr0], #0x0\n"
+ "add a_ptr4, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr3, %[c_ptr0], #0x0\n"
+ "add a_ptr3, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr2, %[c_ptr0], #0x0\n"
+ "add a_ptr2, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr1, %[c_ptr0], #0x0\n"
+ "add a_ptr1, %[a_ptr0], #0x0\n"
+ "1:\n"
+ "ptrue p7.s\n"
+ "whilelt p6.s, %[temp], %[odd_depth]\n"
+ "whilelt p0.s, %[temp], %[last_width]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "cbz %[loops], 2f\n"
+ "ld1w z24.s, p7/z, [%[biasptr]]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0]]\n"
+ "subs %[loops], %[loops], #0x1\n"
+ "mov z25.d, z24.d\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1]\n"
+ "mov z26.d, z24.d\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2]\n"
+ "mov z27.d, z24.d\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3]\n"
+ "mov z28.d, z24.d\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4]\n"
+ "mov z29.d, z24.d\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5]\n"
+ "mov z30.d, z24.d\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6]\n"
+ "mov z31.d, z24.d\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x10]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x10]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x10]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x10]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x10]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x10]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x10]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x10]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #6\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x20]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x20]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x20]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x20]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x20]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x20]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x20]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x20]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0], #0x30]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1, #0x30]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2, #0x30]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3, #0x30]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4, #0x30]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5, #0x30]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6, #0x30]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7, #0x30]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "b.eq 3f\n"
+ "4:\n"
+ "ld1rw z22.s, p7/z, [%[minptr]]\n"
+ "subs %[loops], %[loops], #0x1\n"
+ "ld1rw z23.s, p7/z, [%[maxptr]]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmax z24.s, p7/m, z24.s, z22.s\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmax z25.s, p7/m, z25.s, z22.s\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmax z26.s, p7/m, z26.s, z22.s\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmax z27.s, p7/m, z27.s, z22.s\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmin z24.s, p7/m, z24.s, z23.s\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmin z25.s, p7/m, z25.s, z23.s\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0]]\n"
+ "fmin z26.s, p7/m, z26.s, z23.s\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1]\n"
+ "fmin z27.s, p7/m, z27.s, z23.s\n"
+ "st1w z24.s, p7, [%[c_ptr0]]\n"
+ "fmax z28.s, p7/m, z28.s, z22.s\n"
+ "ld1w z24.s, p7/z, [%[biasptr]]\n"
+ "fmax z29.s, p7/m, z29.s, z22.s\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2]\n"
+ "fmax z30.s, p7/m, z30.s, z22.s\n"
+ "st1w z25.s, p7, [c_ptr1]\n"
+ "fmax z31.s, p7/m, z31.s, z22.s\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmin z28.s, p7/m, z28.s, z23.s\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3]\n"
+ "fmin z29.s, p7/m, z29.s, z23.s\n"
+ "st1w z26.s, p7, [c_ptr2]\n"
+ "fmin z30.s, p7/m, z30.s, z23.s\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4]\n"
+ "fmin z31.s, p7/m, z31.s, z23.s\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "mov z25.d, z24.d\n"
+ "st1w z27.s, p7, [c_ptr3]\n"
+ "mov z26.d, z24.d\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5]\n"
+ "mov z27.d, z24.d\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7]\n"
+ "addvl %[c_ptr0], %[c_ptr0], #1\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "st1w z28.s, p7, [c_ptr4]\n"
+ "mov z28.d, z24.d\n"
+ "addvl c_ptr1, c_ptr1, #1\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "st1w z29.s, p7, [c_ptr5]\n"
+ "mov z29.d, z24.d\n"
+ "addvl c_ptr2, c_ptr2, #1\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "st1w z30.s, p7, [c_ptr6]\n"
+ "mov z30.d, z24.d\n"
+ "addvl c_ptr3, c_ptr3, #1\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "st1w z31.s, p7, [c_ptr7]\n"
+ "mov z31.d, z24.d\n"
+ "addvl c_ptr4, c_ptr4, #1\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "addvl c_ptr5, c_ptr5, #1\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "addvl c_ptr6, c_ptr6, #1\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "addvl c_ptr7, c_ptr7, #1\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x10]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x10]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x10]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x10]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x10]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x10]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x10]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x10]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #6\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x20]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x20]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x20]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x20]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x20]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x20]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x20]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x20]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0], #0x30]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1, #0x30]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2, #0x30]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3, #0x30]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4, #0x30]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5, #0x30]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6, #0x30]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7, #0x30]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "b.ne 4b\n"
+ "3:\n"
+ "ld1rw z22.s, p7/z, [%[minptr]]\n"
+ "ld1rw z23.s, p7/z, [%[maxptr]]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmax z24.s, p7/m, z24.s, z22.s\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmax z25.s, p7/m, z25.s, z22.s\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmax z26.s, p7/m, z26.s, z22.s\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmax z27.s, p7/m, z27.s, z22.s\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmin z24.s, p7/m, z24.s, z23.s\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0]]\n"
+ "fmin z25.s, p7/m, z25.s, z23.s\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1]\n"
+ "fmin z26.s, p7/m, z26.s, z23.s\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2]\n"
+ "fmin z27.s, p7/m, z27.s, z23.s\n"
+ "st1w z24.s, p7, [%[c_ptr0]]\n"
+ "fmax z28.s, p7/m, z28.s, z22.s\n"
+ "ld1w z24.s, p0/z, [%[biasptr]]\n"
+ "fmax z29.s, p7/m, z29.s, z22.s\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3]\n"
+ "fmax z30.s, p7/m, z30.s, z22.s\n"
+ "st1w z25.s, p7, [c_ptr1]\n"
+ "fmax z31.s, p7/m, z31.s, z22.s\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmin z28.s, p7/m, z28.s, z23.s\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4]\n"
+ "fmin z29.s, p7/m, z29.s, z23.s\n"
+ "st1w z26.s, p7, [c_ptr2]\n"
+ "fmin z30.s, p7/m, z30.s, z23.s\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5]\n"
+ "fmin z31.s, p7/m, z31.s, z23.s\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "mov z25.d, z24.d\n"
+ "st1w z27.s, p7, [c_ptr3]\n"
+ "mov z26.d, z24.d\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6]\n"
+ "mov z27.d, z24.d\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7]\n"
+ "addvl %[c_ptr0], %[c_ptr0], #1\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "st1w z28.s, p7, [c_ptr4]\n"
+ "mov z28.d, z24.d\n"
+ "addvl c_ptr1, c_ptr1, #1\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "st1w z29.s, p7, [c_ptr5]\n"
+ "mov z29.d, z24.d\n"
+ "addvl c_ptr2, c_ptr2, #1\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "st1w z30.s, p7, [c_ptr6]\n"
+ "mov z30.d, z24.d\n"
+ "addvl c_ptr3, c_ptr3, #1\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "st1w z31.s, p7, [c_ptr7]\n"
+ "mov z31.d, z24.d\n"
+ "addvl c_ptr4, c_ptr4, #1\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "addvl c_ptr5, c_ptr5, #1\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "addvl c_ptr6, c_ptr6, #1\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "addvl c_ptr7, c_ptr7, #1\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x10]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x10]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x10]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x10]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x10]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x10]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x10]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x10]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #6\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x20]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x20]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x20]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x20]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x20]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x20]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x20]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x20]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0], #0x30]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1, #0x30]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2, #0x30]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3, #0x30]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4, #0x30]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5, #0x30]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6, #0x30]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7, #0x30]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "b 5f\n"
+ "2:\n"
+ "ld1w z24.s, p0/z, [%[biasptr]]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0]]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1]\n"
+ "mov z25.d, z24.d\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2]\n"
+ "mov z26.d, z24.d\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3]\n"
+ "mov z27.d, z24.d\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4]\n"
+ "mov z28.d, z24.d\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5]\n"
+ "mov z29.d, z24.d\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6]\n"
+ "mov z30.d, z24.d\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7]\n"
+ "mov z31.d, z24.d\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x10]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x10]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x10]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x10]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x10]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x10]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x10]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x10]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #6\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x20]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x20]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x20]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x20]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x20]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x20]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x20]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x20]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0], #0x30]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1, #0x30]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2, #0x30]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3, #0x30]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4, #0x30]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5, #0x30]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6, #0x30]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7, #0x30]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "5:\n"
+ "ld1rw z22.s, p7/z, [%[minptr]]\n"
+ "ld1rw z23.s, p7/z, [%[maxptr]]\n"
+ "fmax z24.s, p7/m, z24.s, z22.s\n"
+ "fmax z25.s, p7/m, z25.s, z22.s\n"
+ "fmax z26.s, p7/m, z26.s, z22.s\n"
+ "fmax z27.s, p7/m, z27.s, z22.s\n"
+ "fmin z24.s, p7/m, z24.s, z23.s\n"
+ "fmin z25.s, p7/m, z25.s, z23.s\n"
+ "fmin z26.s, p7/m, z26.s, z23.s\n"
+ "fmin z27.s, p7/m, z27.s, z23.s\n"
+ "st1w z24.s, p0, [%[c_ptr0]]\n"
+ "fmax z28.s, p7/m, z28.s, z22.s\n"
+ "addvl %[c_ptr0], %[c_ptr0], #1\n"
+ "fmax z29.s, p7/m, z29.s, z22.s\n"
+ "st1w z25.s, p0, [c_ptr1]\n"
+ "fmax z30.s, p7/m, z30.s, z22.s\n"
+ "fmin z28.s, p7/m, z28.s, z23.s\n"
+ "fmax z31.s, p7/m, z31.s, z22.s\n"
+ "st1w z26.s, p0, [c_ptr2]\n"
+ "fmin z29.s, p7/m, z29.s, z23.s\n"
+ "fmin z30.s, p7/m, z30.s, z23.s\n"
+ "fmin z31.s, p7/m, z31.s, z23.s\n"
+ "st1w z27.s, p0, [c_ptr3]\n"
+ "st1w z28.s, p0, [c_ptr4]\n"
+ "st1w z29.s, p0, [c_ptr5]\n"
+ "st1w z30.s, p0, [c_ptr6]\n"
+ "st1w z31.s, p0, [c_ptr7]\n"
+ ".unreq a_ptr1\n"
+ ".unreq a_ptr2\n"
+ ".unreq a_ptr3\n"
+ ".unreq a_ptr4\n"
+ ".unreq a_ptr5\n"
+ ".unreq a_ptr6\n"
+ ".unreq a_ptr7\n"
+ ".unreq c_ptr1\n"
+ ".unreq c_ptr2\n"
+ ".unreq c_ptr3\n"
+ ".unreq c_ptr4\n"
+ ".unreq c_ptr5\n"
+ ".unreq c_ptr6\n"
+ ".unreq c_ptr7\n"
+ : [a_ptr0] "+r" (a_ptr0), [b_ptr0] "+r" (b_ptr0), [c_ptr0] "+r" (c_ptr0), [loops] "+r" (loops), [oob_rows] "+r" (oob_rows), [temp] "+r" (temp), [biasptr] "+r" (biasptr)
+ : [lda] "r" (ldab), [ldc] "r" (ldcb), [odd_depth] "r" (odd_depth), [last_width] "r" (last_width), [biasinc] "r" (biasinc), [minptr] "r" (minptr), [maxptr] "r" (maxptr)
+ : "x0", "x1", "x2", "x3", "x4", "x5", "x6", "x7", "x8", "x9", "x10", "x11", "x12", "x13", "z0", "z1", "z2", "z3", "z4", "z5", "z6", "z7", "z8", "z9", "z10", "z11", "z12", "z13", "z14", "z15", "z16", "z17", "z18", "z19", "z20", "z21", "z22", "z23", "z24", "z25", "z26", "z27", "z28", "z29", "z30", "z31", "cc", "memory"
+ );
+ break;
+ case 15:
+ __asm __volatile (
+ "a_ptr1 .req X0\n"
+ "a_ptr2 .req X1\n"
+ "a_ptr3 .req X2\n"
+ "a_ptr4 .req X3\n"
+ "a_ptr5 .req X4\n"
+ "a_ptr6 .req X5\n"
+ "a_ptr7 .req X6\n"
+ "c_ptr1 .req X7\n"
+ "c_ptr2 .req X8\n"
+ "c_ptr3 .req X9\n"
+ "c_ptr4 .req X10\n"
+ "c_ptr5 .req X11\n"
+ "c_ptr6 .req X12\n"
+ "c_ptr7 .req X13\n"
+ "add a_ptr1, %[a_ptr0], %[lda]\n"
+ "add c_ptr1, %[c_ptr0], %[ldc]\n"
+ "add a_ptr2, a_ptr1, %[lda]\n"
+ "add c_ptr2, c_ptr1, %[ldc]\n"
+ "add a_ptr3, a_ptr2, %[lda]\n"
+ "add c_ptr3, c_ptr2, %[ldc]\n"
+ "add a_ptr4, a_ptr3, %[lda]\n"
+ "add c_ptr4, c_ptr3, %[ldc]\n"
+ "add a_ptr5, a_ptr4, %[lda]\n"
+ "add c_ptr5, c_ptr4, %[ldc]\n"
+ "add a_ptr6, a_ptr5, %[lda]\n"
+ "add c_ptr6, c_ptr5, %[ldc]\n"
+ "add a_ptr7, a_ptr6, %[lda]\n"
+ "add c_ptr7, c_ptr6, %[ldc]\n"
+ "cbz %[oob_rows], 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr7, %[c_ptr0], #0x0\n"
+ "add a_ptr7, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr6, %[c_ptr0], #0x0\n"
+ "add a_ptr6, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr5, %[c_ptr0], #0x0\n"
+ "add a_ptr5, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr4, %[c_ptr0], #0x0\n"
+ "add a_ptr4, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr3, %[c_ptr0], #0x0\n"
+ "add a_ptr3, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr2, %[c_ptr0], #0x0\n"
+ "add a_ptr2, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr1, %[c_ptr0], #0x0\n"
+ "add a_ptr1, %[a_ptr0], #0x0\n"
+ "1:\n"
+ "ptrue p7.s\n"
+ "whilelt p6.s, %[temp], %[odd_depth]\n"
+ "whilelt p0.s, %[temp], %[last_width]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "cbz %[loops], 2f\n"
+ "ld1w z24.s, p7/z, [%[biasptr]]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0]]\n"
+ "subs %[loops], %[loops], #0x1\n"
+ "mov z25.d, z24.d\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1]\n"
+ "mov z26.d, z24.d\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2]\n"
+ "mov z27.d, z24.d\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3]\n"
+ "mov z28.d, z24.d\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4]\n"
+ "mov z29.d, z24.d\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5]\n"
+ "mov z30.d, z24.d\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6]\n"
+ "mov z31.d, z24.d\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x10]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x10]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x10]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x10]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x10]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x10]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x10]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x10]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x20]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x20]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x20]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x20]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x20]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x20]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x20]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x20]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #7\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0], #0x30]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1, #0x30]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2, #0x30]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3, #0x30]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4, #0x30]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5, #0x30]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6, #0x30]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7, #0x30]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "b.eq 3f\n"
+ "4:\n"
+ "ld1rw z22.s, p7/z, [%[minptr]]\n"
+ "subs %[loops], %[loops], #0x1\n"
+ "ld1rw z23.s, p7/z, [%[maxptr]]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmax z24.s, p7/m, z24.s, z22.s\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmax z25.s, p7/m, z25.s, z22.s\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmax z26.s, p7/m, z26.s, z22.s\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmax z27.s, p7/m, z27.s, z22.s\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmin z24.s, p7/m, z24.s, z23.s\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmin z25.s, p7/m, z25.s, z23.s\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0]]\n"
+ "fmin z26.s, p7/m, z26.s, z23.s\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1]\n"
+ "fmin z27.s, p7/m, z27.s, z23.s\n"
+ "st1w z24.s, p7, [%[c_ptr0]]\n"
+ "fmax z28.s, p7/m, z28.s, z22.s\n"
+ "ld1w z24.s, p7/z, [%[biasptr]]\n"
+ "fmax z29.s, p7/m, z29.s, z22.s\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2]\n"
+ "fmax z30.s, p7/m, z30.s, z22.s\n"
+ "st1w z25.s, p7, [c_ptr1]\n"
+ "fmax z31.s, p7/m, z31.s, z22.s\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmin z28.s, p7/m, z28.s, z23.s\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3]\n"
+ "fmin z29.s, p7/m, z29.s, z23.s\n"
+ "st1w z26.s, p7, [c_ptr2]\n"
+ "fmin z30.s, p7/m, z30.s, z23.s\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4]\n"
+ "fmin z31.s, p7/m, z31.s, z23.s\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "mov z25.d, z24.d\n"
+ "st1w z27.s, p7, [c_ptr3]\n"
+ "mov z26.d, z24.d\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5]\n"
+ "mov z27.d, z24.d\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7]\n"
+ "addvl %[c_ptr0], %[c_ptr0], #1\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "st1w z28.s, p7, [c_ptr4]\n"
+ "mov z28.d, z24.d\n"
+ "addvl c_ptr1, c_ptr1, #1\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "st1w z29.s, p7, [c_ptr5]\n"
+ "mov z29.d, z24.d\n"
+ "addvl c_ptr2, c_ptr2, #1\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "st1w z30.s, p7, [c_ptr6]\n"
+ "mov z30.d, z24.d\n"
+ "addvl c_ptr3, c_ptr3, #1\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "st1w z31.s, p7, [c_ptr7]\n"
+ "mov z31.d, z24.d\n"
+ "addvl c_ptr4, c_ptr4, #1\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "addvl c_ptr5, c_ptr5, #1\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "addvl c_ptr6, c_ptr6, #1\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "addvl c_ptr7, c_ptr7, #1\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x10]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x10]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x10]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x10]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x10]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x10]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x10]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x10]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x20]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x20]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x20]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x20]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x20]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x20]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x20]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x20]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #7\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0], #0x30]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1, #0x30]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2, #0x30]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3, #0x30]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4, #0x30]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5, #0x30]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6, #0x30]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7, #0x30]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "b.ne 4b\n"
+ "3:\n"
+ "ld1rw z22.s, p7/z, [%[minptr]]\n"
+ "ld1rw z23.s, p7/z, [%[maxptr]]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmax z24.s, p7/m, z24.s, z22.s\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmax z25.s, p7/m, z25.s, z22.s\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmax z26.s, p7/m, z26.s, z22.s\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmax z27.s, p7/m, z27.s, z22.s\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmin z24.s, p7/m, z24.s, z23.s\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0]]\n"
+ "fmin z25.s, p7/m, z25.s, z23.s\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1]\n"
+ "fmin z26.s, p7/m, z26.s, z23.s\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2]\n"
+ "fmin z27.s, p7/m, z27.s, z23.s\n"
+ "st1w z24.s, p7, [%[c_ptr0]]\n"
+ "fmax z28.s, p7/m, z28.s, z22.s\n"
+ "ld1w z24.s, p0/z, [%[biasptr]]\n"
+ "fmax z29.s, p7/m, z29.s, z22.s\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3]\n"
+ "fmax z30.s, p7/m, z30.s, z22.s\n"
+ "st1w z25.s, p7, [c_ptr1]\n"
+ "fmax z31.s, p7/m, z31.s, z22.s\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmin z28.s, p7/m, z28.s, z23.s\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4]\n"
+ "fmin z29.s, p7/m, z29.s, z23.s\n"
+ "st1w z26.s, p7, [c_ptr2]\n"
+ "fmin z30.s, p7/m, z30.s, z23.s\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5]\n"
+ "fmin z31.s, p7/m, z31.s, z23.s\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "mov z25.d, z24.d\n"
+ "st1w z27.s, p7, [c_ptr3]\n"
+ "mov z26.d, z24.d\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6]\n"
+ "mov z27.d, z24.d\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7]\n"
+ "addvl %[c_ptr0], %[c_ptr0], #1\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "st1w z28.s, p7, [c_ptr4]\n"
+ "mov z28.d, z24.d\n"
+ "addvl c_ptr1, c_ptr1, #1\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "st1w z29.s, p7, [c_ptr5]\n"
+ "mov z29.d, z24.d\n"
+ "addvl c_ptr2, c_ptr2, #1\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "st1w z30.s, p7, [c_ptr6]\n"
+ "mov z30.d, z24.d\n"
+ "addvl c_ptr3, c_ptr3, #1\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "st1w z31.s, p7, [c_ptr7]\n"
+ "mov z31.d, z24.d\n"
+ "addvl c_ptr4, c_ptr4, #1\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "addvl c_ptr5, c_ptr5, #1\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "addvl c_ptr6, c_ptr6, #1\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "addvl c_ptr7, c_ptr7, #1\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x10]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x10]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x10]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x10]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x10]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x10]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x10]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x10]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x20]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x20]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x20]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x20]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x20]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x20]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x20]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x20]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #7\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0], #0x30]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1, #0x30]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2, #0x30]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3, #0x30]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4, #0x30]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5, #0x30]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6, #0x30]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7, #0x30]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "b 5f\n"
+ "2:\n"
+ "ld1w z24.s, p0/z, [%[biasptr]]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0]]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1]\n"
+ "mov z25.d, z24.d\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2]\n"
+ "mov z26.d, z24.d\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3]\n"
+ "mov z27.d, z24.d\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4]\n"
+ "mov z28.d, z24.d\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5]\n"
+ "mov z29.d, z24.d\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6]\n"
+ "mov z30.d, z24.d\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7]\n"
+ "mov z31.d, z24.d\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x10]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x10]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x10]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x10]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x10]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x10]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x10]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x10]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x20]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x20]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x20]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x20]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x20]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x20]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x20]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x20]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #7\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0], #0x30]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1, #0x30]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2, #0x30]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3, #0x30]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4, #0x30]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5, #0x30]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6, #0x30]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7, #0x30]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "5:\n"
+ "ld1rw z22.s, p7/z, [%[minptr]]\n"
+ "ld1rw z23.s, p7/z, [%[maxptr]]\n"
+ "fmax z24.s, p7/m, z24.s, z22.s\n"
+ "fmax z25.s, p7/m, z25.s, z22.s\n"
+ "fmax z26.s, p7/m, z26.s, z22.s\n"
+ "fmax z27.s, p7/m, z27.s, z22.s\n"
+ "fmin z24.s, p7/m, z24.s, z23.s\n"
+ "fmin z25.s, p7/m, z25.s, z23.s\n"
+ "fmin z26.s, p7/m, z26.s, z23.s\n"
+ "fmin z27.s, p7/m, z27.s, z23.s\n"
+ "st1w z24.s, p0, [%[c_ptr0]]\n"
+ "fmax z28.s, p7/m, z28.s, z22.s\n"
+ "addvl %[c_ptr0], %[c_ptr0], #1\n"
+ "fmax z29.s, p7/m, z29.s, z22.s\n"
+ "st1w z25.s, p0, [c_ptr1]\n"
+ "fmax z30.s, p7/m, z30.s, z22.s\n"
+ "fmin z28.s, p7/m, z28.s, z23.s\n"
+ "fmax z31.s, p7/m, z31.s, z22.s\n"
+ "st1w z26.s, p0, [c_ptr2]\n"
+ "fmin z29.s, p7/m, z29.s, z23.s\n"
+ "fmin z30.s, p7/m, z30.s, z23.s\n"
+ "fmin z31.s, p7/m, z31.s, z23.s\n"
+ "st1w z27.s, p0, [c_ptr3]\n"
+ "st1w z28.s, p0, [c_ptr4]\n"
+ "st1w z29.s, p0, [c_ptr5]\n"
+ "st1w z30.s, p0, [c_ptr6]\n"
+ "st1w z31.s, p0, [c_ptr7]\n"
+ ".unreq a_ptr1\n"
+ ".unreq a_ptr2\n"
+ ".unreq a_ptr3\n"
+ ".unreq a_ptr4\n"
+ ".unreq a_ptr5\n"
+ ".unreq a_ptr6\n"
+ ".unreq a_ptr7\n"
+ ".unreq c_ptr1\n"
+ ".unreq c_ptr2\n"
+ ".unreq c_ptr3\n"
+ ".unreq c_ptr4\n"
+ ".unreq c_ptr5\n"
+ ".unreq c_ptr6\n"
+ ".unreq c_ptr7\n"
+ : [a_ptr0] "+r" (a_ptr0), [b_ptr0] "+r" (b_ptr0), [c_ptr0] "+r" (c_ptr0), [loops] "+r" (loops), [oob_rows] "+r" (oob_rows), [temp] "+r" (temp), [biasptr] "+r" (biasptr)
+ : [lda] "r" (ldab), [ldc] "r" (ldcb), [odd_depth] "r" (odd_depth), [last_width] "r" (last_width), [biasinc] "r" (biasinc), [minptr] "r" (minptr), [maxptr] "r" (maxptr)
+ : "x0", "x1", "x2", "x3", "x4", "x5", "x6", "x7", "x8", "x9", "x10", "x11", "x12", "x13", "z0", "z1", "z2", "z3", "z4", "z5", "z6", "z7", "z8", "z9", "z10", "z11", "z12", "z13", "z14", "z15", "z16", "z17", "z18", "z19", "z20", "z21", "z22", "z23", "z24", "z25", "z26", "z27", "z28", "z29", "z30", "z31", "cc", "memory"
+ );
+ break;
+ case 16:
+ __asm __volatile (
+ "a_ptr1 .req X0\n"
+ "a_ptr2 .req X1\n"
+ "a_ptr3 .req X2\n"
+ "a_ptr4 .req X3\n"
+ "a_ptr5 .req X4\n"
+ "a_ptr6 .req X5\n"
+ "a_ptr7 .req X6\n"
+ "c_ptr1 .req X7\n"
+ "c_ptr2 .req X8\n"
+ "c_ptr3 .req X9\n"
+ "c_ptr4 .req X10\n"
+ "c_ptr5 .req X11\n"
+ "c_ptr6 .req X12\n"
+ "c_ptr7 .req X13\n"
+ "add a_ptr1, %[a_ptr0], %[lda]\n"
+ "add c_ptr1, %[c_ptr0], %[ldc]\n"
+ "add a_ptr2, a_ptr1, %[lda]\n"
+ "add c_ptr2, c_ptr1, %[ldc]\n"
+ "add a_ptr3, a_ptr2, %[lda]\n"
+ "add c_ptr3, c_ptr2, %[ldc]\n"
+ "add a_ptr4, a_ptr3, %[lda]\n"
+ "add c_ptr4, c_ptr3, %[ldc]\n"
+ "add a_ptr5, a_ptr4, %[lda]\n"
+ "add c_ptr5, c_ptr4, %[ldc]\n"
+ "add a_ptr6, a_ptr5, %[lda]\n"
+ "add c_ptr6, c_ptr5, %[ldc]\n"
+ "add a_ptr7, a_ptr6, %[lda]\n"
+ "add c_ptr7, c_ptr6, %[ldc]\n"
+ "cbz %[oob_rows], 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr7, %[c_ptr0], #0x0\n"
+ "add a_ptr7, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr6, %[c_ptr0], #0x0\n"
+ "add a_ptr6, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr5, %[c_ptr0], #0x0\n"
+ "add a_ptr5, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr4, %[c_ptr0], #0x0\n"
+ "add a_ptr4, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr3, %[c_ptr0], #0x0\n"
+ "add a_ptr3, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr2, %[c_ptr0], #0x0\n"
+ "add a_ptr2, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr1, %[c_ptr0], #0x0\n"
+ "add a_ptr1, %[a_ptr0], #0x0\n"
+ "1:\n"
+ "ptrue p7.s\n"
+ "whilelt p6.s, %[temp], %[odd_depth]\n"
+ "whilelt p0.s, %[temp], %[last_width]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "cbz %[loops], 2f\n"
+ "ld1w z24.s, p7/z, [%[biasptr]]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0]]\n"
+ "subs %[loops], %[loops], #0x1\n"
+ "mov z25.d, z24.d\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1]\n"
+ "mov z26.d, z24.d\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2]\n"
+ "mov z27.d, z24.d\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3]\n"
+ "mov z28.d, z24.d\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4]\n"
+ "mov z29.d, z24.d\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5]\n"
+ "mov z30.d, z24.d\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6]\n"
+ "mov z31.d, z24.d\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x10]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x10]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x10]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x10]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x10]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x10]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x10]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x10]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x20]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x20]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x20]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x20]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x20]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x20]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x20]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x20]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0], #0x30]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1, #0x30]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2, #0x30]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3, #0x30]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4, #0x30]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5, #0x30]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6, #0x30]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7, #0x30]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "b.eq 3f\n"
+ "4:\n"
+ "ld1rw z22.s, p7/z, [%[minptr]]\n"
+ "subs %[loops], %[loops], #0x1\n"
+ "ld1rw z23.s, p7/z, [%[maxptr]]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmax z24.s, p7/m, z24.s, z22.s\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmax z25.s, p7/m, z25.s, z22.s\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmax z26.s, p7/m, z26.s, z22.s\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmax z27.s, p7/m, z27.s, z22.s\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmin z24.s, p7/m, z24.s, z23.s\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmin z25.s, p7/m, z25.s, z23.s\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0]]\n"
+ "fmin z26.s, p7/m, z26.s, z23.s\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1]\n"
+ "fmin z27.s, p7/m, z27.s, z23.s\n"
+ "st1w z24.s, p7, [%[c_ptr0]]\n"
+ "fmax z28.s, p7/m, z28.s, z22.s\n"
+ "ld1w z24.s, p7/z, [%[biasptr]]\n"
+ "fmax z29.s, p7/m, z29.s, z22.s\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2]\n"
+ "fmax z30.s, p7/m, z30.s, z22.s\n"
+ "st1w z25.s, p7, [c_ptr1]\n"
+ "fmax z31.s, p7/m, z31.s, z22.s\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmin z28.s, p7/m, z28.s, z23.s\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3]\n"
+ "fmin z29.s, p7/m, z29.s, z23.s\n"
+ "st1w z26.s, p7, [c_ptr2]\n"
+ "fmin z30.s, p7/m, z30.s, z23.s\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4]\n"
+ "fmin z31.s, p7/m, z31.s, z23.s\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "mov z25.d, z24.d\n"
+ "st1w z27.s, p7, [c_ptr3]\n"
+ "mov z26.d, z24.d\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5]\n"
+ "mov z27.d, z24.d\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7]\n"
+ "addvl %[c_ptr0], %[c_ptr0], #1\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "st1w z28.s, p7, [c_ptr4]\n"
+ "mov z28.d, z24.d\n"
+ "addvl c_ptr1, c_ptr1, #1\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "st1w z29.s, p7, [c_ptr5]\n"
+ "mov z29.d, z24.d\n"
+ "addvl c_ptr2, c_ptr2, #1\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "st1w z30.s, p7, [c_ptr6]\n"
+ "mov z30.d, z24.d\n"
+ "addvl c_ptr3, c_ptr3, #1\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "st1w z31.s, p7, [c_ptr7]\n"
+ "mov z31.d, z24.d\n"
+ "addvl c_ptr4, c_ptr4, #1\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "addvl c_ptr5, c_ptr5, #1\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "addvl c_ptr6, c_ptr6, #1\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "addvl c_ptr7, c_ptr7, #1\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x10]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x10]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x10]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x10]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x10]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x10]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x10]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x10]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x20]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x20]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x20]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x20]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x20]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x20]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x20]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x20]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0], #0x30]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1, #0x30]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2, #0x30]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3, #0x30]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4, #0x30]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5, #0x30]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6, #0x30]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7, #0x30]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "b.ne 4b\n"
+ "3:\n"
+ "ld1rw z22.s, p7/z, [%[minptr]]\n"
+ "ld1rw z23.s, p7/z, [%[maxptr]]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmax z24.s, p7/m, z24.s, z22.s\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmax z25.s, p7/m, z25.s, z22.s\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmax z26.s, p7/m, z26.s, z22.s\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmax z27.s, p7/m, z27.s, z22.s\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmin z24.s, p7/m, z24.s, z23.s\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0]]\n"
+ "fmin z25.s, p7/m, z25.s, z23.s\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1]\n"
+ "fmin z26.s, p7/m, z26.s, z23.s\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2]\n"
+ "fmin z27.s, p7/m, z27.s, z23.s\n"
+ "st1w z24.s, p7, [%[c_ptr0]]\n"
+ "fmax z28.s, p7/m, z28.s, z22.s\n"
+ "ld1w z24.s, p0/z, [%[biasptr]]\n"
+ "fmax z29.s, p7/m, z29.s, z22.s\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3]\n"
+ "fmax z30.s, p7/m, z30.s, z22.s\n"
+ "st1w z25.s, p7, [c_ptr1]\n"
+ "fmax z31.s, p7/m, z31.s, z22.s\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmin z28.s, p7/m, z28.s, z23.s\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4]\n"
+ "fmin z29.s, p7/m, z29.s, z23.s\n"
+ "st1w z26.s, p7, [c_ptr2]\n"
+ "fmin z30.s, p7/m, z30.s, z23.s\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5]\n"
+ "fmin z31.s, p7/m, z31.s, z23.s\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "mov z25.d, z24.d\n"
+ "st1w z27.s, p7, [c_ptr3]\n"
+ "mov z26.d, z24.d\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6]\n"
+ "mov z27.d, z24.d\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7]\n"
+ "addvl %[c_ptr0], %[c_ptr0], #1\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "st1w z28.s, p7, [c_ptr4]\n"
+ "mov z28.d, z24.d\n"
+ "addvl c_ptr1, c_ptr1, #1\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "st1w z29.s, p7, [c_ptr5]\n"
+ "mov z29.d, z24.d\n"
+ "addvl c_ptr2, c_ptr2, #1\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "st1w z30.s, p7, [c_ptr6]\n"
+ "mov z30.d, z24.d\n"
+ "addvl c_ptr3, c_ptr3, #1\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "st1w z31.s, p7, [c_ptr7]\n"
+ "mov z31.d, z24.d\n"
+ "addvl c_ptr4, c_ptr4, #1\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "addvl c_ptr5, c_ptr5, #1\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "addvl c_ptr6, c_ptr6, #1\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "addvl c_ptr7, c_ptr7, #1\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x10]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x10]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x10]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x10]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x10]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x10]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x10]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x10]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x20]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x20]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x20]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x20]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x20]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x20]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x20]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x20]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0], #0x30]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1, #0x30]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2, #0x30]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3, #0x30]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4, #0x30]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5, #0x30]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6, #0x30]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7, #0x30]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "b 5f\n"
+ "2:\n"
+ "ld1w z24.s, p0/z, [%[biasptr]]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0]]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1]\n"
+ "mov z25.d, z24.d\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2]\n"
+ "mov z26.d, z24.d\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3]\n"
+ "mov z27.d, z24.d\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4]\n"
+ "mov z28.d, z24.d\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5]\n"
+ "mov z29.d, z24.d\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6]\n"
+ "mov z30.d, z24.d\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7]\n"
+ "mov z31.d, z24.d\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x10]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x10]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x10]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x10]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x10]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x10]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x10]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x10]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x20]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x20]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x20]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x20]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x20]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x20]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x20]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x20]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0], #0x30]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1, #0x30]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2, #0x30]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3, #0x30]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4, #0x30]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5, #0x30]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6, #0x30]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7, #0x30]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "5:\n"
+ "ld1rw z22.s, p7/z, [%[minptr]]\n"
+ "ld1rw z23.s, p7/z, [%[maxptr]]\n"
+ "fmax z24.s, p7/m, z24.s, z22.s\n"
+ "fmax z25.s, p7/m, z25.s, z22.s\n"
+ "fmax z26.s, p7/m, z26.s, z22.s\n"
+ "fmax z27.s, p7/m, z27.s, z22.s\n"
+ "fmin z24.s, p7/m, z24.s, z23.s\n"
+ "fmin z25.s, p7/m, z25.s, z23.s\n"
+ "fmin z26.s, p7/m, z26.s, z23.s\n"
+ "fmin z27.s, p7/m, z27.s, z23.s\n"
+ "st1w z24.s, p0, [%[c_ptr0]]\n"
+ "fmax z28.s, p7/m, z28.s, z22.s\n"
+ "addvl %[c_ptr0], %[c_ptr0], #1\n"
+ "fmax z29.s, p7/m, z29.s, z22.s\n"
+ "st1w z25.s, p0, [c_ptr1]\n"
+ "fmax z30.s, p7/m, z30.s, z22.s\n"
+ "fmin z28.s, p7/m, z28.s, z23.s\n"
+ "fmax z31.s, p7/m, z31.s, z22.s\n"
+ "st1w z26.s, p0, [c_ptr2]\n"
+ "fmin z29.s, p7/m, z29.s, z23.s\n"
+ "fmin z30.s, p7/m, z30.s, z23.s\n"
+ "fmin z31.s, p7/m, z31.s, z23.s\n"
+ "st1w z27.s, p0, [c_ptr3]\n"
+ "st1w z28.s, p0, [c_ptr4]\n"
+ "st1w z29.s, p0, [c_ptr5]\n"
+ "st1w z30.s, p0, [c_ptr6]\n"
+ "st1w z31.s, p0, [c_ptr7]\n"
+ ".unreq a_ptr1\n"
+ ".unreq a_ptr2\n"
+ ".unreq a_ptr3\n"
+ ".unreq a_ptr4\n"
+ ".unreq a_ptr5\n"
+ ".unreq a_ptr6\n"
+ ".unreq a_ptr7\n"
+ ".unreq c_ptr1\n"
+ ".unreq c_ptr2\n"
+ ".unreq c_ptr3\n"
+ ".unreq c_ptr4\n"
+ ".unreq c_ptr5\n"
+ ".unreq c_ptr6\n"
+ ".unreq c_ptr7\n"
+ : [a_ptr0] "+r" (a_ptr0), [b_ptr0] "+r" (b_ptr0), [c_ptr0] "+r" (c_ptr0), [loops] "+r" (loops), [oob_rows] "+r" (oob_rows), [temp] "+r" (temp), [biasptr] "+r" (biasptr)
+ : [lda] "r" (ldab), [ldc] "r" (ldcb), [odd_depth] "r" (odd_depth), [last_width] "r" (last_width), [biasinc] "r" (biasinc), [minptr] "r" (minptr), [maxptr] "r" (maxptr)
+ : "x0", "x1", "x2", "x3", "x4", "x5", "x6", "x7", "x8", "x9", "x10", "x11", "x12", "x13", "z0", "z1", "z2", "z3", "z4", "z5", "z6", "z7", "z8", "z9", "z10", "z11", "z12", "z13", "z14", "z15", "z16", "z17", "z18", "z19", "z20", "z21", "z22", "z23", "z24", "z25", "z26", "z27", "z28", "z29", "z30", "z31", "cc", "memory"
+ );
+ break;
+ case 17:
+ __asm __volatile (
+ "a_ptr1 .req X0\n"
+ "a_ptr2 .req X1\n"
+ "a_ptr3 .req X2\n"
+ "a_ptr4 .req X3\n"
+ "a_ptr5 .req X4\n"
+ "a_ptr6 .req X5\n"
+ "a_ptr7 .req X6\n"
+ "c_ptr1 .req X7\n"
+ "c_ptr2 .req X8\n"
+ "c_ptr3 .req X9\n"
+ "c_ptr4 .req X10\n"
+ "c_ptr5 .req X11\n"
+ "c_ptr6 .req X12\n"
+ "c_ptr7 .req X13\n"
+ "add a_ptr1, %[a_ptr0], %[lda]\n"
+ "add c_ptr1, %[c_ptr0], %[ldc]\n"
+ "add a_ptr2, a_ptr1, %[lda]\n"
+ "add c_ptr2, c_ptr1, %[ldc]\n"
+ "add a_ptr3, a_ptr2, %[lda]\n"
+ "add c_ptr3, c_ptr2, %[ldc]\n"
+ "add a_ptr4, a_ptr3, %[lda]\n"
+ "add c_ptr4, c_ptr3, %[ldc]\n"
+ "add a_ptr5, a_ptr4, %[lda]\n"
+ "add c_ptr5, c_ptr4, %[ldc]\n"
+ "add a_ptr6, a_ptr5, %[lda]\n"
+ "add c_ptr6, c_ptr5, %[ldc]\n"
+ "add a_ptr7, a_ptr6, %[lda]\n"
+ "add c_ptr7, c_ptr6, %[ldc]\n"
+ "cbz %[oob_rows], 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr7, %[c_ptr0], #0x0\n"
+ "add a_ptr7, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr6, %[c_ptr0], #0x0\n"
+ "add a_ptr6, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr5, %[c_ptr0], #0x0\n"
+ "add a_ptr5, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr4, %[c_ptr0], #0x0\n"
+ "add a_ptr4, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr3, %[c_ptr0], #0x0\n"
+ "add a_ptr3, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr2, %[c_ptr0], #0x0\n"
+ "add a_ptr2, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr1, %[c_ptr0], #0x0\n"
+ "add a_ptr1, %[a_ptr0], #0x0\n"
+ "1:\n"
+ "ptrue p7.s\n"
+ "whilelt p6.s, %[temp], %[odd_depth]\n"
+ "whilelt p0.s, %[temp], %[last_width]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "cbz %[loops], 2f\n"
+ "ld1w z24.s, p7/z, [%[biasptr]]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0]]\n"
+ "subs %[loops], %[loops], #0x1\n"
+ "mov z25.d, z24.d\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1]\n"
+ "mov z26.d, z24.d\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2]\n"
+ "mov z27.d, z24.d\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3]\n"
+ "mov z28.d, z24.d\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4]\n"
+ "mov z29.d, z24.d\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5]\n"
+ "mov z30.d, z24.d\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6]\n"
+ "mov z31.d, z24.d\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x10]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x10]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x10]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x10]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x10]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x10]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x10]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x10]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x20]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x20]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x20]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x20]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x20]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x20]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x20]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x20]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #1\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x30]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x30]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x30]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x30]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x30]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x30]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x30]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x30]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0], #0x40]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1, #0x40]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2, #0x40]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3, #0x40]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4, #0x40]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5, #0x40]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6, #0x40]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7, #0x40]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "b.eq 3f\n"
+ "4:\n"
+ "ld1rw z22.s, p7/z, [%[minptr]]\n"
+ "subs %[loops], %[loops], #0x1\n"
+ "ld1rw z23.s, p7/z, [%[maxptr]]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmax z24.s, p7/m, z24.s, z22.s\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmax z25.s, p7/m, z25.s, z22.s\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmax z26.s, p7/m, z26.s, z22.s\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmax z27.s, p7/m, z27.s, z22.s\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmin z24.s, p7/m, z24.s, z23.s\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmin z25.s, p7/m, z25.s, z23.s\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0]]\n"
+ "fmin z26.s, p7/m, z26.s, z23.s\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1]\n"
+ "fmin z27.s, p7/m, z27.s, z23.s\n"
+ "st1w z24.s, p7, [%[c_ptr0]]\n"
+ "fmax z28.s, p7/m, z28.s, z22.s\n"
+ "ld1w z24.s, p7/z, [%[biasptr]]\n"
+ "fmax z29.s, p7/m, z29.s, z22.s\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2]\n"
+ "fmax z30.s, p7/m, z30.s, z22.s\n"
+ "st1w z25.s, p7, [c_ptr1]\n"
+ "fmax z31.s, p7/m, z31.s, z22.s\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmin z28.s, p7/m, z28.s, z23.s\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3]\n"
+ "fmin z29.s, p7/m, z29.s, z23.s\n"
+ "st1w z26.s, p7, [c_ptr2]\n"
+ "fmin z30.s, p7/m, z30.s, z23.s\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4]\n"
+ "fmin z31.s, p7/m, z31.s, z23.s\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "mov z25.d, z24.d\n"
+ "st1w z27.s, p7, [c_ptr3]\n"
+ "mov z26.d, z24.d\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5]\n"
+ "mov z27.d, z24.d\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7]\n"
+ "addvl %[c_ptr0], %[c_ptr0], #1\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "st1w z28.s, p7, [c_ptr4]\n"
+ "mov z28.d, z24.d\n"
+ "addvl c_ptr1, c_ptr1, #1\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "st1w z29.s, p7, [c_ptr5]\n"
+ "mov z29.d, z24.d\n"
+ "addvl c_ptr2, c_ptr2, #1\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "st1w z30.s, p7, [c_ptr6]\n"
+ "mov z30.d, z24.d\n"
+ "addvl c_ptr3, c_ptr3, #1\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "st1w z31.s, p7, [c_ptr7]\n"
+ "mov z31.d, z24.d\n"
+ "addvl c_ptr4, c_ptr4, #1\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "addvl c_ptr5, c_ptr5, #1\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "addvl c_ptr6, c_ptr6, #1\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "addvl c_ptr7, c_ptr7, #1\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x10]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x10]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x10]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x10]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x10]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x10]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x10]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x10]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x20]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x20]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x20]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x20]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x20]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x20]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x20]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x20]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #1\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x30]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x30]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x30]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x30]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x30]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x30]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x30]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x30]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0], #0x40]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1, #0x40]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2, #0x40]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3, #0x40]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4, #0x40]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5, #0x40]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6, #0x40]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7, #0x40]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "b.ne 4b\n"
+ "3:\n"
+ "ld1rw z22.s, p7/z, [%[minptr]]\n"
+ "ld1rw z23.s, p7/z, [%[maxptr]]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmax z24.s, p7/m, z24.s, z22.s\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmax z25.s, p7/m, z25.s, z22.s\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmax z26.s, p7/m, z26.s, z22.s\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmax z27.s, p7/m, z27.s, z22.s\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmin z24.s, p7/m, z24.s, z23.s\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0]]\n"
+ "fmin z25.s, p7/m, z25.s, z23.s\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1]\n"
+ "fmin z26.s, p7/m, z26.s, z23.s\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2]\n"
+ "fmin z27.s, p7/m, z27.s, z23.s\n"
+ "st1w z24.s, p7, [%[c_ptr0]]\n"
+ "fmax z28.s, p7/m, z28.s, z22.s\n"
+ "ld1w z24.s, p0/z, [%[biasptr]]\n"
+ "fmax z29.s, p7/m, z29.s, z22.s\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3]\n"
+ "fmax z30.s, p7/m, z30.s, z22.s\n"
+ "st1w z25.s, p7, [c_ptr1]\n"
+ "fmax z31.s, p7/m, z31.s, z22.s\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmin z28.s, p7/m, z28.s, z23.s\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4]\n"
+ "fmin z29.s, p7/m, z29.s, z23.s\n"
+ "st1w z26.s, p7, [c_ptr2]\n"
+ "fmin z30.s, p7/m, z30.s, z23.s\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5]\n"
+ "fmin z31.s, p7/m, z31.s, z23.s\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "mov z25.d, z24.d\n"
+ "st1w z27.s, p7, [c_ptr3]\n"
+ "mov z26.d, z24.d\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6]\n"
+ "mov z27.d, z24.d\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7]\n"
+ "addvl %[c_ptr0], %[c_ptr0], #1\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "st1w z28.s, p7, [c_ptr4]\n"
+ "mov z28.d, z24.d\n"
+ "addvl c_ptr1, c_ptr1, #1\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "st1w z29.s, p7, [c_ptr5]\n"
+ "mov z29.d, z24.d\n"
+ "addvl c_ptr2, c_ptr2, #1\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "st1w z30.s, p7, [c_ptr6]\n"
+ "mov z30.d, z24.d\n"
+ "addvl c_ptr3, c_ptr3, #1\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "st1w z31.s, p7, [c_ptr7]\n"
+ "mov z31.d, z24.d\n"
+ "addvl c_ptr4, c_ptr4, #1\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "addvl c_ptr5, c_ptr5, #1\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "addvl c_ptr6, c_ptr6, #1\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "addvl c_ptr7, c_ptr7, #1\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x10]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x10]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x10]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x10]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x10]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x10]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x10]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x10]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x20]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x20]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x20]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x20]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x20]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x20]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x20]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x20]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #1\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x30]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x30]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x30]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x30]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x30]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x30]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x30]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x30]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0], #0x40]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1, #0x40]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2, #0x40]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3, #0x40]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4, #0x40]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5, #0x40]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6, #0x40]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7, #0x40]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "b 5f\n"
+ "2:\n"
+ "ld1w z24.s, p0/z, [%[biasptr]]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0]]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1]\n"
+ "mov z25.d, z24.d\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2]\n"
+ "mov z26.d, z24.d\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3]\n"
+ "mov z27.d, z24.d\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4]\n"
+ "mov z28.d, z24.d\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5]\n"
+ "mov z29.d, z24.d\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6]\n"
+ "mov z30.d, z24.d\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7]\n"
+ "mov z31.d, z24.d\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x10]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x10]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x10]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x10]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x10]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x10]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x10]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x10]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x20]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x20]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x20]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x20]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x20]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x20]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x20]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x20]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #1\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x30]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x30]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x30]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x30]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x30]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x30]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x30]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x30]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0], #0x40]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1, #0x40]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2, #0x40]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3, #0x40]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4, #0x40]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5, #0x40]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6, #0x40]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7, #0x40]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "5:\n"
+ "ld1rw z22.s, p7/z, [%[minptr]]\n"
+ "ld1rw z23.s, p7/z, [%[maxptr]]\n"
+ "fmax z24.s, p7/m, z24.s, z22.s\n"
+ "fmax z25.s, p7/m, z25.s, z22.s\n"
+ "fmax z26.s, p7/m, z26.s, z22.s\n"
+ "fmax z27.s, p7/m, z27.s, z22.s\n"
+ "fmin z24.s, p7/m, z24.s, z23.s\n"
+ "fmin z25.s, p7/m, z25.s, z23.s\n"
+ "fmin z26.s, p7/m, z26.s, z23.s\n"
+ "fmin z27.s, p7/m, z27.s, z23.s\n"
+ "st1w z24.s, p0, [%[c_ptr0]]\n"
+ "fmax z28.s, p7/m, z28.s, z22.s\n"
+ "addvl %[c_ptr0], %[c_ptr0], #1\n"
+ "fmax z29.s, p7/m, z29.s, z22.s\n"
+ "st1w z25.s, p0, [c_ptr1]\n"
+ "fmax z30.s, p7/m, z30.s, z22.s\n"
+ "fmin z28.s, p7/m, z28.s, z23.s\n"
+ "fmax z31.s, p7/m, z31.s, z22.s\n"
+ "st1w z26.s, p0, [c_ptr2]\n"
+ "fmin z29.s, p7/m, z29.s, z23.s\n"
+ "fmin z30.s, p7/m, z30.s, z23.s\n"
+ "fmin z31.s, p7/m, z31.s, z23.s\n"
+ "st1w z27.s, p0, [c_ptr3]\n"
+ "st1w z28.s, p0, [c_ptr4]\n"
+ "st1w z29.s, p0, [c_ptr5]\n"
+ "st1w z30.s, p0, [c_ptr6]\n"
+ "st1w z31.s, p0, [c_ptr7]\n"
+ ".unreq a_ptr1\n"
+ ".unreq a_ptr2\n"
+ ".unreq a_ptr3\n"
+ ".unreq a_ptr4\n"
+ ".unreq a_ptr5\n"
+ ".unreq a_ptr6\n"
+ ".unreq a_ptr7\n"
+ ".unreq c_ptr1\n"
+ ".unreq c_ptr2\n"
+ ".unreq c_ptr3\n"
+ ".unreq c_ptr4\n"
+ ".unreq c_ptr5\n"
+ ".unreq c_ptr6\n"
+ ".unreq c_ptr7\n"
+ : [a_ptr0] "+r" (a_ptr0), [b_ptr0] "+r" (b_ptr0), [c_ptr0] "+r" (c_ptr0), [loops] "+r" (loops), [oob_rows] "+r" (oob_rows), [temp] "+r" (temp), [biasptr] "+r" (biasptr)
+ : [lda] "r" (ldab), [ldc] "r" (ldcb), [odd_depth] "r" (odd_depth), [last_width] "r" (last_width), [biasinc] "r" (biasinc), [minptr] "r" (minptr), [maxptr] "r" (maxptr)
+ : "x0", "x1", "x2", "x3", "x4", "x5", "x6", "x7", "x8", "x9", "x10", "x11", "x12", "x13", "z0", "z1", "z2", "z3", "z4", "z5", "z6", "z7", "z8", "z9", "z10", "z11", "z12", "z13", "z14", "z15", "z16", "z17", "z18", "z19", "z20", "z21", "z22", "z23", "z24", "z25", "z26", "z27", "z28", "z29", "z30", "z31", "cc", "memory"
+ );
+ break;
+ case 18:
+ __asm __volatile (
+ "a_ptr1 .req X0\n"
+ "a_ptr2 .req X1\n"
+ "a_ptr3 .req X2\n"
+ "a_ptr4 .req X3\n"
+ "a_ptr5 .req X4\n"
+ "a_ptr6 .req X5\n"
+ "a_ptr7 .req X6\n"
+ "c_ptr1 .req X7\n"
+ "c_ptr2 .req X8\n"
+ "c_ptr3 .req X9\n"
+ "c_ptr4 .req X10\n"
+ "c_ptr5 .req X11\n"
+ "c_ptr6 .req X12\n"
+ "c_ptr7 .req X13\n"
+ "add a_ptr1, %[a_ptr0], %[lda]\n"
+ "add c_ptr1, %[c_ptr0], %[ldc]\n"
+ "add a_ptr2, a_ptr1, %[lda]\n"
+ "add c_ptr2, c_ptr1, %[ldc]\n"
+ "add a_ptr3, a_ptr2, %[lda]\n"
+ "add c_ptr3, c_ptr2, %[ldc]\n"
+ "add a_ptr4, a_ptr3, %[lda]\n"
+ "add c_ptr4, c_ptr3, %[ldc]\n"
+ "add a_ptr5, a_ptr4, %[lda]\n"
+ "add c_ptr5, c_ptr4, %[ldc]\n"
+ "add a_ptr6, a_ptr5, %[lda]\n"
+ "add c_ptr6, c_ptr5, %[ldc]\n"
+ "add a_ptr7, a_ptr6, %[lda]\n"
+ "add c_ptr7, c_ptr6, %[ldc]\n"
+ "cbz %[oob_rows], 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr7, %[c_ptr0], #0x0\n"
+ "add a_ptr7, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr6, %[c_ptr0], #0x0\n"
+ "add a_ptr6, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr5, %[c_ptr0], #0x0\n"
+ "add a_ptr5, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr4, %[c_ptr0], #0x0\n"
+ "add a_ptr4, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr3, %[c_ptr0], #0x0\n"
+ "add a_ptr3, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr2, %[c_ptr0], #0x0\n"
+ "add a_ptr2, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr1, %[c_ptr0], #0x0\n"
+ "add a_ptr1, %[a_ptr0], #0x0\n"
+ "1:\n"
+ "ptrue p7.s\n"
+ "whilelt p6.s, %[temp], %[odd_depth]\n"
+ "whilelt p0.s, %[temp], %[last_width]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "cbz %[loops], 2f\n"
+ "ld1w z24.s, p7/z, [%[biasptr]]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0]]\n"
+ "subs %[loops], %[loops], #0x1\n"
+ "mov z25.d, z24.d\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1]\n"
+ "mov z26.d, z24.d\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2]\n"
+ "mov z27.d, z24.d\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3]\n"
+ "mov z28.d, z24.d\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4]\n"
+ "mov z29.d, z24.d\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5]\n"
+ "mov z30.d, z24.d\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6]\n"
+ "mov z31.d, z24.d\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x10]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x10]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x10]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x10]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x10]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x10]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x10]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x10]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x20]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x20]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x20]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x20]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x20]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x20]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x20]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x20]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #2\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x30]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x30]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x30]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x30]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x30]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x30]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x30]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x30]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0], #0x40]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1, #0x40]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2, #0x40]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3, #0x40]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4, #0x40]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5, #0x40]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6, #0x40]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7, #0x40]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "b.eq 3f\n"
+ "4:\n"
+ "ld1rw z22.s, p7/z, [%[minptr]]\n"
+ "subs %[loops], %[loops], #0x1\n"
+ "ld1rw z23.s, p7/z, [%[maxptr]]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmax z24.s, p7/m, z24.s, z22.s\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmax z25.s, p7/m, z25.s, z22.s\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmax z26.s, p7/m, z26.s, z22.s\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmax z27.s, p7/m, z27.s, z22.s\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmin z24.s, p7/m, z24.s, z23.s\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmin z25.s, p7/m, z25.s, z23.s\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0]]\n"
+ "fmin z26.s, p7/m, z26.s, z23.s\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1]\n"
+ "fmin z27.s, p7/m, z27.s, z23.s\n"
+ "st1w z24.s, p7, [%[c_ptr0]]\n"
+ "fmax z28.s, p7/m, z28.s, z22.s\n"
+ "ld1w z24.s, p7/z, [%[biasptr]]\n"
+ "fmax z29.s, p7/m, z29.s, z22.s\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2]\n"
+ "fmax z30.s, p7/m, z30.s, z22.s\n"
+ "st1w z25.s, p7, [c_ptr1]\n"
+ "fmax z31.s, p7/m, z31.s, z22.s\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmin z28.s, p7/m, z28.s, z23.s\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3]\n"
+ "fmin z29.s, p7/m, z29.s, z23.s\n"
+ "st1w z26.s, p7, [c_ptr2]\n"
+ "fmin z30.s, p7/m, z30.s, z23.s\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4]\n"
+ "fmin z31.s, p7/m, z31.s, z23.s\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "mov z25.d, z24.d\n"
+ "st1w z27.s, p7, [c_ptr3]\n"
+ "mov z26.d, z24.d\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5]\n"
+ "mov z27.d, z24.d\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7]\n"
+ "addvl %[c_ptr0], %[c_ptr0], #1\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "st1w z28.s, p7, [c_ptr4]\n"
+ "mov z28.d, z24.d\n"
+ "addvl c_ptr1, c_ptr1, #1\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "st1w z29.s, p7, [c_ptr5]\n"
+ "mov z29.d, z24.d\n"
+ "addvl c_ptr2, c_ptr2, #1\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "st1w z30.s, p7, [c_ptr6]\n"
+ "mov z30.d, z24.d\n"
+ "addvl c_ptr3, c_ptr3, #1\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "st1w z31.s, p7, [c_ptr7]\n"
+ "mov z31.d, z24.d\n"
+ "addvl c_ptr4, c_ptr4, #1\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "addvl c_ptr5, c_ptr5, #1\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "addvl c_ptr6, c_ptr6, #1\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "addvl c_ptr7, c_ptr7, #1\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x10]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x10]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x10]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x10]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x10]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x10]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x10]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x10]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x20]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x20]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x20]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x20]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x20]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x20]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x20]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x20]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #2\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x30]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x30]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x30]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x30]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x30]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x30]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x30]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x30]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0], #0x40]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1, #0x40]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2, #0x40]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3, #0x40]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4, #0x40]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5, #0x40]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6, #0x40]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7, #0x40]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "b.ne 4b\n"
+ "3:\n"
+ "ld1rw z22.s, p7/z, [%[minptr]]\n"
+ "ld1rw z23.s, p7/z, [%[maxptr]]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmax z24.s, p7/m, z24.s, z22.s\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmax z25.s, p7/m, z25.s, z22.s\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmax z26.s, p7/m, z26.s, z22.s\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmax z27.s, p7/m, z27.s, z22.s\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmin z24.s, p7/m, z24.s, z23.s\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0]]\n"
+ "fmin z25.s, p7/m, z25.s, z23.s\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1]\n"
+ "fmin z26.s, p7/m, z26.s, z23.s\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2]\n"
+ "fmin z27.s, p7/m, z27.s, z23.s\n"
+ "st1w z24.s, p7, [%[c_ptr0]]\n"
+ "fmax z28.s, p7/m, z28.s, z22.s\n"
+ "ld1w z24.s, p0/z, [%[biasptr]]\n"
+ "fmax z29.s, p7/m, z29.s, z22.s\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3]\n"
+ "fmax z30.s, p7/m, z30.s, z22.s\n"
+ "st1w z25.s, p7, [c_ptr1]\n"
+ "fmax z31.s, p7/m, z31.s, z22.s\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmin z28.s, p7/m, z28.s, z23.s\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4]\n"
+ "fmin z29.s, p7/m, z29.s, z23.s\n"
+ "st1w z26.s, p7, [c_ptr2]\n"
+ "fmin z30.s, p7/m, z30.s, z23.s\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5]\n"
+ "fmin z31.s, p7/m, z31.s, z23.s\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "mov z25.d, z24.d\n"
+ "st1w z27.s, p7, [c_ptr3]\n"
+ "mov z26.d, z24.d\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6]\n"
+ "mov z27.d, z24.d\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7]\n"
+ "addvl %[c_ptr0], %[c_ptr0], #1\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "st1w z28.s, p7, [c_ptr4]\n"
+ "mov z28.d, z24.d\n"
+ "addvl c_ptr1, c_ptr1, #1\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "st1w z29.s, p7, [c_ptr5]\n"
+ "mov z29.d, z24.d\n"
+ "addvl c_ptr2, c_ptr2, #1\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "st1w z30.s, p7, [c_ptr6]\n"
+ "mov z30.d, z24.d\n"
+ "addvl c_ptr3, c_ptr3, #1\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "st1w z31.s, p7, [c_ptr7]\n"
+ "mov z31.d, z24.d\n"
+ "addvl c_ptr4, c_ptr4, #1\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "addvl c_ptr5, c_ptr5, #1\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "addvl c_ptr6, c_ptr6, #1\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "addvl c_ptr7, c_ptr7, #1\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x10]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x10]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x10]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x10]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x10]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x10]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x10]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x10]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x20]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x20]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x20]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x20]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x20]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x20]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x20]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x20]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #2\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x30]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x30]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x30]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x30]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x30]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x30]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x30]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x30]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0], #0x40]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1, #0x40]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2, #0x40]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3, #0x40]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4, #0x40]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5, #0x40]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6, #0x40]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7, #0x40]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "b 5f\n"
+ "2:\n"
+ "ld1w z24.s, p0/z, [%[biasptr]]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0]]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1]\n"
+ "mov z25.d, z24.d\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2]\n"
+ "mov z26.d, z24.d\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3]\n"
+ "mov z27.d, z24.d\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4]\n"
+ "mov z28.d, z24.d\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5]\n"
+ "mov z29.d, z24.d\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6]\n"
+ "mov z30.d, z24.d\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7]\n"
+ "mov z31.d, z24.d\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x10]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x10]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x10]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x10]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x10]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x10]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x10]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x10]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x20]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x20]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x20]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x20]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x20]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x20]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x20]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x20]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #2\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x30]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x30]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x30]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x30]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x30]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x30]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x30]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x30]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0], #0x40]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1, #0x40]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2, #0x40]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3, #0x40]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4, #0x40]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5, #0x40]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6, #0x40]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7, #0x40]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "5:\n"
+ "ld1rw z22.s, p7/z, [%[minptr]]\n"
+ "ld1rw z23.s, p7/z, [%[maxptr]]\n"
+ "fmax z24.s, p7/m, z24.s, z22.s\n"
+ "fmax z25.s, p7/m, z25.s, z22.s\n"
+ "fmax z26.s, p7/m, z26.s, z22.s\n"
+ "fmax z27.s, p7/m, z27.s, z22.s\n"
+ "fmin z24.s, p7/m, z24.s, z23.s\n"
+ "fmin z25.s, p7/m, z25.s, z23.s\n"
+ "fmin z26.s, p7/m, z26.s, z23.s\n"
+ "fmin z27.s, p7/m, z27.s, z23.s\n"
+ "st1w z24.s, p0, [%[c_ptr0]]\n"
+ "fmax z28.s, p7/m, z28.s, z22.s\n"
+ "addvl %[c_ptr0], %[c_ptr0], #1\n"
+ "fmax z29.s, p7/m, z29.s, z22.s\n"
+ "st1w z25.s, p0, [c_ptr1]\n"
+ "fmax z30.s, p7/m, z30.s, z22.s\n"
+ "fmin z28.s, p7/m, z28.s, z23.s\n"
+ "fmax z31.s, p7/m, z31.s, z22.s\n"
+ "st1w z26.s, p0, [c_ptr2]\n"
+ "fmin z29.s, p7/m, z29.s, z23.s\n"
+ "fmin z30.s, p7/m, z30.s, z23.s\n"
+ "fmin z31.s, p7/m, z31.s, z23.s\n"
+ "st1w z27.s, p0, [c_ptr3]\n"
+ "st1w z28.s, p0, [c_ptr4]\n"
+ "st1w z29.s, p0, [c_ptr5]\n"
+ "st1w z30.s, p0, [c_ptr6]\n"
+ "st1w z31.s, p0, [c_ptr7]\n"
+ ".unreq a_ptr1\n"
+ ".unreq a_ptr2\n"
+ ".unreq a_ptr3\n"
+ ".unreq a_ptr4\n"
+ ".unreq a_ptr5\n"
+ ".unreq a_ptr6\n"
+ ".unreq a_ptr7\n"
+ ".unreq c_ptr1\n"
+ ".unreq c_ptr2\n"
+ ".unreq c_ptr3\n"
+ ".unreq c_ptr4\n"
+ ".unreq c_ptr5\n"
+ ".unreq c_ptr6\n"
+ ".unreq c_ptr7\n"
+ : [a_ptr0] "+r" (a_ptr0), [b_ptr0] "+r" (b_ptr0), [c_ptr0] "+r" (c_ptr0), [loops] "+r" (loops), [oob_rows] "+r" (oob_rows), [temp] "+r" (temp), [biasptr] "+r" (biasptr)
+ : [lda] "r" (ldab), [ldc] "r" (ldcb), [odd_depth] "r" (odd_depth), [last_width] "r" (last_width), [biasinc] "r" (biasinc), [minptr] "r" (minptr), [maxptr] "r" (maxptr)
+ : "x0", "x1", "x2", "x3", "x4", "x5", "x6", "x7", "x8", "x9", "x10", "x11", "x12", "x13", "z0", "z1", "z2", "z3", "z4", "z5", "z6", "z7", "z8", "z9", "z10", "z11", "z12", "z13", "z14", "z15", "z16", "z17", "z18", "z19", "z20", "z21", "z22", "z23", "z24", "z25", "z26", "z27", "z28", "z29", "z30", "z31", "cc", "memory"
+ );
+ break;
+ case 19:
+ __asm __volatile (
+ "a_ptr1 .req X0\n"
+ "a_ptr2 .req X1\n"
+ "a_ptr3 .req X2\n"
+ "a_ptr4 .req X3\n"
+ "a_ptr5 .req X4\n"
+ "a_ptr6 .req X5\n"
+ "a_ptr7 .req X6\n"
+ "c_ptr1 .req X7\n"
+ "c_ptr2 .req X8\n"
+ "c_ptr3 .req X9\n"
+ "c_ptr4 .req X10\n"
+ "c_ptr5 .req X11\n"
+ "c_ptr6 .req X12\n"
+ "c_ptr7 .req X13\n"
+ "add a_ptr1, %[a_ptr0], %[lda]\n"
+ "add c_ptr1, %[c_ptr0], %[ldc]\n"
+ "add a_ptr2, a_ptr1, %[lda]\n"
+ "add c_ptr2, c_ptr1, %[ldc]\n"
+ "add a_ptr3, a_ptr2, %[lda]\n"
+ "add c_ptr3, c_ptr2, %[ldc]\n"
+ "add a_ptr4, a_ptr3, %[lda]\n"
+ "add c_ptr4, c_ptr3, %[ldc]\n"
+ "add a_ptr5, a_ptr4, %[lda]\n"
+ "add c_ptr5, c_ptr4, %[ldc]\n"
+ "add a_ptr6, a_ptr5, %[lda]\n"
+ "add c_ptr6, c_ptr5, %[ldc]\n"
+ "add a_ptr7, a_ptr6, %[lda]\n"
+ "add c_ptr7, c_ptr6, %[ldc]\n"
+ "cbz %[oob_rows], 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr7, %[c_ptr0], #0x0\n"
+ "add a_ptr7, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr6, %[c_ptr0], #0x0\n"
+ "add a_ptr6, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr5, %[c_ptr0], #0x0\n"
+ "add a_ptr5, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr4, %[c_ptr0], #0x0\n"
+ "add a_ptr4, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr3, %[c_ptr0], #0x0\n"
+ "add a_ptr3, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr2, %[c_ptr0], #0x0\n"
+ "add a_ptr2, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr1, %[c_ptr0], #0x0\n"
+ "add a_ptr1, %[a_ptr0], #0x0\n"
+ "1:\n"
+ "ptrue p7.s\n"
+ "whilelt p6.s, %[temp], %[odd_depth]\n"
+ "whilelt p0.s, %[temp], %[last_width]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "cbz %[loops], 2f\n"
+ "ld1w z24.s, p7/z, [%[biasptr]]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0]]\n"
+ "subs %[loops], %[loops], #0x1\n"
+ "mov z25.d, z24.d\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1]\n"
+ "mov z26.d, z24.d\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2]\n"
+ "mov z27.d, z24.d\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3]\n"
+ "mov z28.d, z24.d\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4]\n"
+ "mov z29.d, z24.d\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5]\n"
+ "mov z30.d, z24.d\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6]\n"
+ "mov z31.d, z24.d\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x10]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x10]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x10]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x10]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x10]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x10]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x10]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x10]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x20]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x20]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x20]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x20]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x20]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x20]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x20]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x20]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x30]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x30]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x30]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x30]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x30]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x30]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x30]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x30]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #3\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0], #0x40]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1, #0x40]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2, #0x40]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3, #0x40]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4, #0x40]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5, #0x40]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6, #0x40]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7, #0x40]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "b.eq 3f\n"
+ "4:\n"
+ "ld1rw z22.s, p7/z, [%[minptr]]\n"
+ "subs %[loops], %[loops], #0x1\n"
+ "ld1rw z23.s, p7/z, [%[maxptr]]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmax z24.s, p7/m, z24.s, z22.s\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmax z25.s, p7/m, z25.s, z22.s\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmax z26.s, p7/m, z26.s, z22.s\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmax z27.s, p7/m, z27.s, z22.s\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmin z24.s, p7/m, z24.s, z23.s\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmin z25.s, p7/m, z25.s, z23.s\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0]]\n"
+ "fmin z26.s, p7/m, z26.s, z23.s\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1]\n"
+ "fmin z27.s, p7/m, z27.s, z23.s\n"
+ "st1w z24.s, p7, [%[c_ptr0]]\n"
+ "fmax z28.s, p7/m, z28.s, z22.s\n"
+ "ld1w z24.s, p7/z, [%[biasptr]]\n"
+ "fmax z29.s, p7/m, z29.s, z22.s\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2]\n"
+ "fmax z30.s, p7/m, z30.s, z22.s\n"
+ "st1w z25.s, p7, [c_ptr1]\n"
+ "fmax z31.s, p7/m, z31.s, z22.s\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmin z28.s, p7/m, z28.s, z23.s\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3]\n"
+ "fmin z29.s, p7/m, z29.s, z23.s\n"
+ "st1w z26.s, p7, [c_ptr2]\n"
+ "fmin z30.s, p7/m, z30.s, z23.s\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4]\n"
+ "fmin z31.s, p7/m, z31.s, z23.s\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "mov z25.d, z24.d\n"
+ "st1w z27.s, p7, [c_ptr3]\n"
+ "mov z26.d, z24.d\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5]\n"
+ "mov z27.d, z24.d\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7]\n"
+ "addvl %[c_ptr0], %[c_ptr0], #1\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "st1w z28.s, p7, [c_ptr4]\n"
+ "mov z28.d, z24.d\n"
+ "addvl c_ptr1, c_ptr1, #1\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "st1w z29.s, p7, [c_ptr5]\n"
+ "mov z29.d, z24.d\n"
+ "addvl c_ptr2, c_ptr2, #1\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "st1w z30.s, p7, [c_ptr6]\n"
+ "mov z30.d, z24.d\n"
+ "addvl c_ptr3, c_ptr3, #1\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "st1w z31.s, p7, [c_ptr7]\n"
+ "mov z31.d, z24.d\n"
+ "addvl c_ptr4, c_ptr4, #1\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "addvl c_ptr5, c_ptr5, #1\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "addvl c_ptr6, c_ptr6, #1\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "addvl c_ptr7, c_ptr7, #1\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x10]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x10]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x10]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x10]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x10]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x10]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x10]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x10]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x20]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x20]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x20]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x20]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x20]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x20]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x20]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x20]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x30]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x30]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x30]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x30]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x30]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x30]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x30]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x30]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #3\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0], #0x40]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1, #0x40]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2, #0x40]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3, #0x40]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4, #0x40]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5, #0x40]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6, #0x40]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7, #0x40]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "b.ne 4b\n"
+ "3:\n"
+ "ld1rw z22.s, p7/z, [%[minptr]]\n"
+ "ld1rw z23.s, p7/z, [%[maxptr]]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmax z24.s, p7/m, z24.s, z22.s\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmax z25.s, p7/m, z25.s, z22.s\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmax z26.s, p7/m, z26.s, z22.s\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmax z27.s, p7/m, z27.s, z22.s\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmin z24.s, p7/m, z24.s, z23.s\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0]]\n"
+ "fmin z25.s, p7/m, z25.s, z23.s\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1]\n"
+ "fmin z26.s, p7/m, z26.s, z23.s\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2]\n"
+ "fmin z27.s, p7/m, z27.s, z23.s\n"
+ "st1w z24.s, p7, [%[c_ptr0]]\n"
+ "fmax z28.s, p7/m, z28.s, z22.s\n"
+ "ld1w z24.s, p0/z, [%[biasptr]]\n"
+ "fmax z29.s, p7/m, z29.s, z22.s\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3]\n"
+ "fmax z30.s, p7/m, z30.s, z22.s\n"
+ "st1w z25.s, p7, [c_ptr1]\n"
+ "fmax z31.s, p7/m, z31.s, z22.s\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmin z28.s, p7/m, z28.s, z23.s\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4]\n"
+ "fmin z29.s, p7/m, z29.s, z23.s\n"
+ "st1w z26.s, p7, [c_ptr2]\n"
+ "fmin z30.s, p7/m, z30.s, z23.s\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5]\n"
+ "fmin z31.s, p7/m, z31.s, z23.s\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "mov z25.d, z24.d\n"
+ "st1w z27.s, p7, [c_ptr3]\n"
+ "mov z26.d, z24.d\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6]\n"
+ "mov z27.d, z24.d\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7]\n"
+ "addvl %[c_ptr0], %[c_ptr0], #1\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "st1w z28.s, p7, [c_ptr4]\n"
+ "mov z28.d, z24.d\n"
+ "addvl c_ptr1, c_ptr1, #1\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "st1w z29.s, p7, [c_ptr5]\n"
+ "mov z29.d, z24.d\n"
+ "addvl c_ptr2, c_ptr2, #1\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "st1w z30.s, p7, [c_ptr6]\n"
+ "mov z30.d, z24.d\n"
+ "addvl c_ptr3, c_ptr3, #1\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "st1w z31.s, p7, [c_ptr7]\n"
+ "mov z31.d, z24.d\n"
+ "addvl c_ptr4, c_ptr4, #1\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "addvl c_ptr5, c_ptr5, #1\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "addvl c_ptr6, c_ptr6, #1\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "addvl c_ptr7, c_ptr7, #1\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x10]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x10]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x10]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x10]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x10]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x10]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x10]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x10]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x20]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x20]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x20]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x20]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x20]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x20]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x20]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x20]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x30]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x30]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x30]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x30]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x30]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x30]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x30]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x30]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #3\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0], #0x40]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1, #0x40]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2, #0x40]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3, #0x40]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4, #0x40]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5, #0x40]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6, #0x40]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7, #0x40]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "b 5f\n"
+ "2:\n"
+ "ld1w z24.s, p0/z, [%[biasptr]]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0]]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1]\n"
+ "mov z25.d, z24.d\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2]\n"
+ "mov z26.d, z24.d\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3]\n"
+ "mov z27.d, z24.d\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4]\n"
+ "mov z28.d, z24.d\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5]\n"
+ "mov z29.d, z24.d\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6]\n"
+ "mov z30.d, z24.d\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7]\n"
+ "mov z31.d, z24.d\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x10]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x10]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x10]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x10]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x10]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x10]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x10]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x10]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x20]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x20]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x20]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x20]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x20]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x20]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x20]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x20]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x30]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x30]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x30]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x30]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x30]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x30]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x30]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x30]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #3\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0], #0x40]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1, #0x40]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2, #0x40]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3, #0x40]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4, #0x40]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5, #0x40]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6, #0x40]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7, #0x40]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "5:\n"
+ "ld1rw z22.s, p7/z, [%[minptr]]\n"
+ "ld1rw z23.s, p7/z, [%[maxptr]]\n"
+ "fmax z24.s, p7/m, z24.s, z22.s\n"
+ "fmax z25.s, p7/m, z25.s, z22.s\n"
+ "fmax z26.s, p7/m, z26.s, z22.s\n"
+ "fmax z27.s, p7/m, z27.s, z22.s\n"
+ "fmin z24.s, p7/m, z24.s, z23.s\n"
+ "fmin z25.s, p7/m, z25.s, z23.s\n"
+ "fmin z26.s, p7/m, z26.s, z23.s\n"
+ "fmin z27.s, p7/m, z27.s, z23.s\n"
+ "st1w z24.s, p0, [%[c_ptr0]]\n"
+ "fmax z28.s, p7/m, z28.s, z22.s\n"
+ "addvl %[c_ptr0], %[c_ptr0], #1\n"
+ "fmax z29.s, p7/m, z29.s, z22.s\n"
+ "st1w z25.s, p0, [c_ptr1]\n"
+ "fmax z30.s, p7/m, z30.s, z22.s\n"
+ "fmin z28.s, p7/m, z28.s, z23.s\n"
+ "fmax z31.s, p7/m, z31.s, z22.s\n"
+ "st1w z26.s, p0, [c_ptr2]\n"
+ "fmin z29.s, p7/m, z29.s, z23.s\n"
+ "fmin z30.s, p7/m, z30.s, z23.s\n"
+ "fmin z31.s, p7/m, z31.s, z23.s\n"
+ "st1w z27.s, p0, [c_ptr3]\n"
+ "st1w z28.s, p0, [c_ptr4]\n"
+ "st1w z29.s, p0, [c_ptr5]\n"
+ "st1w z30.s, p0, [c_ptr6]\n"
+ "st1w z31.s, p0, [c_ptr7]\n"
+ ".unreq a_ptr1\n"
+ ".unreq a_ptr2\n"
+ ".unreq a_ptr3\n"
+ ".unreq a_ptr4\n"
+ ".unreq a_ptr5\n"
+ ".unreq a_ptr6\n"
+ ".unreq a_ptr7\n"
+ ".unreq c_ptr1\n"
+ ".unreq c_ptr2\n"
+ ".unreq c_ptr3\n"
+ ".unreq c_ptr4\n"
+ ".unreq c_ptr5\n"
+ ".unreq c_ptr6\n"
+ ".unreq c_ptr7\n"
+ : [a_ptr0] "+r" (a_ptr0), [b_ptr0] "+r" (b_ptr0), [c_ptr0] "+r" (c_ptr0), [loops] "+r" (loops), [oob_rows] "+r" (oob_rows), [temp] "+r" (temp), [biasptr] "+r" (biasptr)
+ : [lda] "r" (ldab), [ldc] "r" (ldcb), [odd_depth] "r" (odd_depth), [last_width] "r" (last_width), [biasinc] "r" (biasinc), [minptr] "r" (minptr), [maxptr] "r" (maxptr)
+ : "x0", "x1", "x2", "x3", "x4", "x5", "x6", "x7", "x8", "x9", "x10", "x11", "x12", "x13", "z0", "z1", "z2", "z3", "z4", "z5", "z6", "z7", "z8", "z9", "z10", "z11", "z12", "z13", "z14", "z15", "z16", "z17", "z18", "z19", "z20", "z21", "z22", "z23", "z24", "z25", "z26", "z27", "z28", "z29", "z30", "z31", "cc", "memory"
+ );
+ break;
+ case 20:
+ __asm __volatile (
+ "a_ptr1 .req X0\n"
+ "a_ptr2 .req X1\n"
+ "a_ptr3 .req X2\n"
+ "a_ptr4 .req X3\n"
+ "a_ptr5 .req X4\n"
+ "a_ptr6 .req X5\n"
+ "a_ptr7 .req X6\n"
+ "c_ptr1 .req X7\n"
+ "c_ptr2 .req X8\n"
+ "c_ptr3 .req X9\n"
+ "c_ptr4 .req X10\n"
+ "c_ptr5 .req X11\n"
+ "c_ptr6 .req X12\n"
+ "c_ptr7 .req X13\n"
+ "add a_ptr1, %[a_ptr0], %[lda]\n"
+ "add c_ptr1, %[c_ptr0], %[ldc]\n"
+ "add a_ptr2, a_ptr1, %[lda]\n"
+ "add c_ptr2, c_ptr1, %[ldc]\n"
+ "add a_ptr3, a_ptr2, %[lda]\n"
+ "add c_ptr3, c_ptr2, %[ldc]\n"
+ "add a_ptr4, a_ptr3, %[lda]\n"
+ "add c_ptr4, c_ptr3, %[ldc]\n"
+ "add a_ptr5, a_ptr4, %[lda]\n"
+ "add c_ptr5, c_ptr4, %[ldc]\n"
+ "add a_ptr6, a_ptr5, %[lda]\n"
+ "add c_ptr6, c_ptr5, %[ldc]\n"
+ "add a_ptr7, a_ptr6, %[lda]\n"
+ "add c_ptr7, c_ptr6, %[ldc]\n"
+ "cbz %[oob_rows], 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr7, %[c_ptr0], #0x0\n"
+ "add a_ptr7, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr6, %[c_ptr0], #0x0\n"
+ "add a_ptr6, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr5, %[c_ptr0], #0x0\n"
+ "add a_ptr5, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr4, %[c_ptr0], #0x0\n"
+ "add a_ptr4, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr3, %[c_ptr0], #0x0\n"
+ "add a_ptr3, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr2, %[c_ptr0], #0x0\n"
+ "add a_ptr2, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr1, %[c_ptr0], #0x0\n"
+ "add a_ptr1, %[a_ptr0], #0x0\n"
+ "1:\n"
+ "ptrue p7.s\n"
+ "whilelt p6.s, %[temp], %[odd_depth]\n"
+ "whilelt p0.s, %[temp], %[last_width]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "cbz %[loops], 2f\n"
+ "ld1w z24.s, p7/z, [%[biasptr]]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0]]\n"
+ "subs %[loops], %[loops], #0x1\n"
+ "mov z25.d, z24.d\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1]\n"
+ "mov z26.d, z24.d\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2]\n"
+ "mov z27.d, z24.d\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3]\n"
+ "mov z28.d, z24.d\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4]\n"
+ "mov z29.d, z24.d\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5]\n"
+ "mov z30.d, z24.d\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6]\n"
+ "mov z31.d, z24.d\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x10]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x10]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x10]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x10]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x10]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x10]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x10]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x10]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x20]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x20]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x20]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x20]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x20]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x20]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x20]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x20]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x30]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x30]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x30]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x30]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x30]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x30]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x30]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x30]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #4\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0], #0x40]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1, #0x40]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2, #0x40]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3, #0x40]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4, #0x40]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5, #0x40]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6, #0x40]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7, #0x40]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "b.eq 3f\n"
+ "4:\n"
+ "ld1rw z22.s, p7/z, [%[minptr]]\n"
+ "subs %[loops], %[loops], #0x1\n"
+ "ld1rw z23.s, p7/z, [%[maxptr]]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmax z24.s, p7/m, z24.s, z22.s\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmax z25.s, p7/m, z25.s, z22.s\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmax z26.s, p7/m, z26.s, z22.s\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmax z27.s, p7/m, z27.s, z22.s\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmin z24.s, p7/m, z24.s, z23.s\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmin z25.s, p7/m, z25.s, z23.s\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0]]\n"
+ "fmin z26.s, p7/m, z26.s, z23.s\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1]\n"
+ "fmin z27.s, p7/m, z27.s, z23.s\n"
+ "st1w z24.s, p7, [%[c_ptr0]]\n"
+ "fmax z28.s, p7/m, z28.s, z22.s\n"
+ "ld1w z24.s, p7/z, [%[biasptr]]\n"
+ "fmax z29.s, p7/m, z29.s, z22.s\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2]\n"
+ "fmax z30.s, p7/m, z30.s, z22.s\n"
+ "st1w z25.s, p7, [c_ptr1]\n"
+ "fmax z31.s, p7/m, z31.s, z22.s\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmin z28.s, p7/m, z28.s, z23.s\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3]\n"
+ "fmin z29.s, p7/m, z29.s, z23.s\n"
+ "st1w z26.s, p7, [c_ptr2]\n"
+ "fmin z30.s, p7/m, z30.s, z23.s\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4]\n"
+ "fmin z31.s, p7/m, z31.s, z23.s\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "mov z25.d, z24.d\n"
+ "st1w z27.s, p7, [c_ptr3]\n"
+ "mov z26.d, z24.d\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5]\n"
+ "mov z27.d, z24.d\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7]\n"
+ "addvl %[c_ptr0], %[c_ptr0], #1\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "st1w z28.s, p7, [c_ptr4]\n"
+ "mov z28.d, z24.d\n"
+ "addvl c_ptr1, c_ptr1, #1\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "st1w z29.s, p7, [c_ptr5]\n"
+ "mov z29.d, z24.d\n"
+ "addvl c_ptr2, c_ptr2, #1\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "st1w z30.s, p7, [c_ptr6]\n"
+ "mov z30.d, z24.d\n"
+ "addvl c_ptr3, c_ptr3, #1\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "st1w z31.s, p7, [c_ptr7]\n"
+ "mov z31.d, z24.d\n"
+ "addvl c_ptr4, c_ptr4, #1\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "addvl c_ptr5, c_ptr5, #1\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "addvl c_ptr6, c_ptr6, #1\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "addvl c_ptr7, c_ptr7, #1\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x10]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x10]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x10]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x10]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x10]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x10]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x10]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x10]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x20]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x20]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x20]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x20]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x20]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x20]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x20]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x20]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x30]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x30]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x30]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x30]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x30]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x30]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x30]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x30]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #4\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0], #0x40]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1, #0x40]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2, #0x40]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3, #0x40]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4, #0x40]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5, #0x40]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6, #0x40]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7, #0x40]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "b.ne 4b\n"
+ "3:\n"
+ "ld1rw z22.s, p7/z, [%[minptr]]\n"
+ "ld1rw z23.s, p7/z, [%[maxptr]]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmax z24.s, p7/m, z24.s, z22.s\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmax z25.s, p7/m, z25.s, z22.s\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmax z26.s, p7/m, z26.s, z22.s\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmax z27.s, p7/m, z27.s, z22.s\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmin z24.s, p7/m, z24.s, z23.s\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0]]\n"
+ "fmin z25.s, p7/m, z25.s, z23.s\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1]\n"
+ "fmin z26.s, p7/m, z26.s, z23.s\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2]\n"
+ "fmin z27.s, p7/m, z27.s, z23.s\n"
+ "st1w z24.s, p7, [%[c_ptr0]]\n"
+ "fmax z28.s, p7/m, z28.s, z22.s\n"
+ "ld1w z24.s, p0/z, [%[biasptr]]\n"
+ "fmax z29.s, p7/m, z29.s, z22.s\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3]\n"
+ "fmax z30.s, p7/m, z30.s, z22.s\n"
+ "st1w z25.s, p7, [c_ptr1]\n"
+ "fmax z31.s, p7/m, z31.s, z22.s\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmin z28.s, p7/m, z28.s, z23.s\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4]\n"
+ "fmin z29.s, p7/m, z29.s, z23.s\n"
+ "st1w z26.s, p7, [c_ptr2]\n"
+ "fmin z30.s, p7/m, z30.s, z23.s\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5]\n"
+ "fmin z31.s, p7/m, z31.s, z23.s\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "mov z25.d, z24.d\n"
+ "st1w z27.s, p7, [c_ptr3]\n"
+ "mov z26.d, z24.d\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6]\n"
+ "mov z27.d, z24.d\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7]\n"
+ "addvl %[c_ptr0], %[c_ptr0], #1\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "st1w z28.s, p7, [c_ptr4]\n"
+ "mov z28.d, z24.d\n"
+ "addvl c_ptr1, c_ptr1, #1\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "st1w z29.s, p7, [c_ptr5]\n"
+ "mov z29.d, z24.d\n"
+ "addvl c_ptr2, c_ptr2, #1\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "st1w z30.s, p7, [c_ptr6]\n"
+ "mov z30.d, z24.d\n"
+ "addvl c_ptr3, c_ptr3, #1\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "st1w z31.s, p7, [c_ptr7]\n"
+ "mov z31.d, z24.d\n"
+ "addvl c_ptr4, c_ptr4, #1\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "addvl c_ptr5, c_ptr5, #1\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "addvl c_ptr6, c_ptr6, #1\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "addvl c_ptr7, c_ptr7, #1\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x10]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x10]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x10]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x10]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x10]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x10]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x10]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x10]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x20]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x20]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x20]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x20]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x20]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x20]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x20]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x20]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x30]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x30]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x30]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x30]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x30]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x30]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x30]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x30]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #4\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0], #0x40]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1, #0x40]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2, #0x40]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3, #0x40]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4, #0x40]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5, #0x40]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6, #0x40]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7, #0x40]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "b 5f\n"
+ "2:\n"
+ "ld1w z24.s, p0/z, [%[biasptr]]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0]]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1]\n"
+ "mov z25.d, z24.d\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2]\n"
+ "mov z26.d, z24.d\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3]\n"
+ "mov z27.d, z24.d\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4]\n"
+ "mov z28.d, z24.d\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5]\n"
+ "mov z29.d, z24.d\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6]\n"
+ "mov z30.d, z24.d\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7]\n"
+ "mov z31.d, z24.d\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x10]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x10]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x10]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x10]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x10]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x10]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x10]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x10]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x20]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x20]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x20]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x20]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x20]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x20]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x20]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x20]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x30]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x30]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x30]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x30]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x30]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x30]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x30]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x30]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #4\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0], #0x40]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1, #0x40]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2, #0x40]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3, #0x40]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4, #0x40]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5, #0x40]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6, #0x40]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7, #0x40]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "5:\n"
+ "ld1rw z22.s, p7/z, [%[minptr]]\n"
+ "ld1rw z23.s, p7/z, [%[maxptr]]\n"
+ "fmax z24.s, p7/m, z24.s, z22.s\n"
+ "fmax z25.s, p7/m, z25.s, z22.s\n"
+ "fmax z26.s, p7/m, z26.s, z22.s\n"
+ "fmax z27.s, p7/m, z27.s, z22.s\n"
+ "fmin z24.s, p7/m, z24.s, z23.s\n"
+ "fmin z25.s, p7/m, z25.s, z23.s\n"
+ "fmin z26.s, p7/m, z26.s, z23.s\n"
+ "fmin z27.s, p7/m, z27.s, z23.s\n"
+ "st1w z24.s, p0, [%[c_ptr0]]\n"
+ "fmax z28.s, p7/m, z28.s, z22.s\n"
+ "addvl %[c_ptr0], %[c_ptr0], #1\n"
+ "fmax z29.s, p7/m, z29.s, z22.s\n"
+ "st1w z25.s, p0, [c_ptr1]\n"
+ "fmax z30.s, p7/m, z30.s, z22.s\n"
+ "fmin z28.s, p7/m, z28.s, z23.s\n"
+ "fmax z31.s, p7/m, z31.s, z22.s\n"
+ "st1w z26.s, p0, [c_ptr2]\n"
+ "fmin z29.s, p7/m, z29.s, z23.s\n"
+ "fmin z30.s, p7/m, z30.s, z23.s\n"
+ "fmin z31.s, p7/m, z31.s, z23.s\n"
+ "st1w z27.s, p0, [c_ptr3]\n"
+ "st1w z28.s, p0, [c_ptr4]\n"
+ "st1w z29.s, p0, [c_ptr5]\n"
+ "st1w z30.s, p0, [c_ptr6]\n"
+ "st1w z31.s, p0, [c_ptr7]\n"
+ ".unreq a_ptr1\n"
+ ".unreq a_ptr2\n"
+ ".unreq a_ptr3\n"
+ ".unreq a_ptr4\n"
+ ".unreq a_ptr5\n"
+ ".unreq a_ptr6\n"
+ ".unreq a_ptr7\n"
+ ".unreq c_ptr1\n"
+ ".unreq c_ptr2\n"
+ ".unreq c_ptr3\n"
+ ".unreq c_ptr4\n"
+ ".unreq c_ptr5\n"
+ ".unreq c_ptr6\n"
+ ".unreq c_ptr7\n"
+ : [a_ptr0] "+r" (a_ptr0), [b_ptr0] "+r" (b_ptr0), [c_ptr0] "+r" (c_ptr0), [loops] "+r" (loops), [oob_rows] "+r" (oob_rows), [temp] "+r" (temp), [biasptr] "+r" (biasptr)
+ : [lda] "r" (ldab), [ldc] "r" (ldcb), [odd_depth] "r" (odd_depth), [last_width] "r" (last_width), [biasinc] "r" (biasinc), [minptr] "r" (minptr), [maxptr] "r" (maxptr)
+ : "x0", "x1", "x2", "x3", "x4", "x5", "x6", "x7", "x8", "x9", "x10", "x11", "x12", "x13", "z0", "z1", "z2", "z3", "z4", "z5", "z6", "z7", "z8", "z9", "z10", "z11", "z12", "z13", "z14", "z15", "z16", "z17", "z18", "z19", "z20", "z21", "z22", "z23", "z24", "z25", "z26", "z27", "z28", "z29", "z30", "z31", "cc", "memory"
+ );
+ break;
+ case 21:
+ __asm __volatile (
+ "a_ptr1 .req X0\n"
+ "a_ptr2 .req X1\n"
+ "a_ptr3 .req X2\n"
+ "a_ptr4 .req X3\n"
+ "a_ptr5 .req X4\n"
+ "a_ptr6 .req X5\n"
+ "a_ptr7 .req X6\n"
+ "c_ptr1 .req X7\n"
+ "c_ptr2 .req X8\n"
+ "c_ptr3 .req X9\n"
+ "c_ptr4 .req X10\n"
+ "c_ptr5 .req X11\n"
+ "c_ptr6 .req X12\n"
+ "c_ptr7 .req X13\n"
+ "add a_ptr1, %[a_ptr0], %[lda]\n"
+ "add c_ptr1, %[c_ptr0], %[ldc]\n"
+ "add a_ptr2, a_ptr1, %[lda]\n"
+ "add c_ptr2, c_ptr1, %[ldc]\n"
+ "add a_ptr3, a_ptr2, %[lda]\n"
+ "add c_ptr3, c_ptr2, %[ldc]\n"
+ "add a_ptr4, a_ptr3, %[lda]\n"
+ "add c_ptr4, c_ptr3, %[ldc]\n"
+ "add a_ptr5, a_ptr4, %[lda]\n"
+ "add c_ptr5, c_ptr4, %[ldc]\n"
+ "add a_ptr6, a_ptr5, %[lda]\n"
+ "add c_ptr6, c_ptr5, %[ldc]\n"
+ "add a_ptr7, a_ptr6, %[lda]\n"
+ "add c_ptr7, c_ptr6, %[ldc]\n"
+ "cbz %[oob_rows], 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr7, %[c_ptr0], #0x0\n"
+ "add a_ptr7, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr6, %[c_ptr0], #0x0\n"
+ "add a_ptr6, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr5, %[c_ptr0], #0x0\n"
+ "add a_ptr5, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr4, %[c_ptr0], #0x0\n"
+ "add a_ptr4, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr3, %[c_ptr0], #0x0\n"
+ "add a_ptr3, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr2, %[c_ptr0], #0x0\n"
+ "add a_ptr2, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr1, %[c_ptr0], #0x0\n"
+ "add a_ptr1, %[a_ptr0], #0x0\n"
+ "1:\n"
+ "ptrue p7.s\n"
+ "whilelt p6.s, %[temp], %[odd_depth]\n"
+ "whilelt p0.s, %[temp], %[last_width]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "cbz %[loops], 2f\n"
+ "ld1w z24.s, p7/z, [%[biasptr]]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0]]\n"
+ "subs %[loops], %[loops], #0x1\n"
+ "mov z25.d, z24.d\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1]\n"
+ "mov z26.d, z24.d\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2]\n"
+ "mov z27.d, z24.d\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3]\n"
+ "mov z28.d, z24.d\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4]\n"
+ "mov z29.d, z24.d\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5]\n"
+ "mov z30.d, z24.d\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6]\n"
+ "mov z31.d, z24.d\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x10]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x10]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x10]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x10]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x10]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x10]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x10]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x10]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x20]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x20]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x20]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x20]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x20]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x20]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x20]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x20]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x30]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x30]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x30]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x30]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x30]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x30]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x30]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x30]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #5\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x40]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x40]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x40]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x40]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x40]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x40]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x40]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x40]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0], #0x50]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1, #0x50]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2, #0x50]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3, #0x50]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4, #0x50]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5, #0x50]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6, #0x50]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7, #0x50]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "b.eq 3f\n"
+ "4:\n"
+ "ld1rw z22.s, p7/z, [%[minptr]]\n"
+ "subs %[loops], %[loops], #0x1\n"
+ "ld1rw z23.s, p7/z, [%[maxptr]]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmax z24.s, p7/m, z24.s, z22.s\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmax z25.s, p7/m, z25.s, z22.s\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmax z26.s, p7/m, z26.s, z22.s\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmax z27.s, p7/m, z27.s, z22.s\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmin z24.s, p7/m, z24.s, z23.s\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmin z25.s, p7/m, z25.s, z23.s\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0]]\n"
+ "fmin z26.s, p7/m, z26.s, z23.s\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1]\n"
+ "fmin z27.s, p7/m, z27.s, z23.s\n"
+ "st1w z24.s, p7, [%[c_ptr0]]\n"
+ "fmax z28.s, p7/m, z28.s, z22.s\n"
+ "ld1w z24.s, p7/z, [%[biasptr]]\n"
+ "fmax z29.s, p7/m, z29.s, z22.s\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2]\n"
+ "fmax z30.s, p7/m, z30.s, z22.s\n"
+ "st1w z25.s, p7, [c_ptr1]\n"
+ "fmax z31.s, p7/m, z31.s, z22.s\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmin z28.s, p7/m, z28.s, z23.s\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3]\n"
+ "fmin z29.s, p7/m, z29.s, z23.s\n"
+ "st1w z26.s, p7, [c_ptr2]\n"
+ "fmin z30.s, p7/m, z30.s, z23.s\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4]\n"
+ "fmin z31.s, p7/m, z31.s, z23.s\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "mov z25.d, z24.d\n"
+ "st1w z27.s, p7, [c_ptr3]\n"
+ "mov z26.d, z24.d\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5]\n"
+ "mov z27.d, z24.d\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7]\n"
+ "addvl %[c_ptr0], %[c_ptr0], #1\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "st1w z28.s, p7, [c_ptr4]\n"
+ "mov z28.d, z24.d\n"
+ "addvl c_ptr1, c_ptr1, #1\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "st1w z29.s, p7, [c_ptr5]\n"
+ "mov z29.d, z24.d\n"
+ "addvl c_ptr2, c_ptr2, #1\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "st1w z30.s, p7, [c_ptr6]\n"
+ "mov z30.d, z24.d\n"
+ "addvl c_ptr3, c_ptr3, #1\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "st1w z31.s, p7, [c_ptr7]\n"
+ "mov z31.d, z24.d\n"
+ "addvl c_ptr4, c_ptr4, #1\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "addvl c_ptr5, c_ptr5, #1\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "addvl c_ptr6, c_ptr6, #1\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "addvl c_ptr7, c_ptr7, #1\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x10]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x10]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x10]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x10]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x10]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x10]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x10]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x10]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x20]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x20]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x20]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x20]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x20]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x20]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x20]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x20]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x30]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x30]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x30]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x30]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x30]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x30]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x30]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x30]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #5\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x40]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x40]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x40]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x40]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x40]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x40]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x40]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x40]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0], #0x50]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1, #0x50]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2, #0x50]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3, #0x50]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4, #0x50]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5, #0x50]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6, #0x50]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7, #0x50]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "b.ne 4b\n"
+ "3:\n"
+ "ld1rw z22.s, p7/z, [%[minptr]]\n"
+ "ld1rw z23.s, p7/z, [%[maxptr]]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmax z24.s, p7/m, z24.s, z22.s\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmax z25.s, p7/m, z25.s, z22.s\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmax z26.s, p7/m, z26.s, z22.s\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmax z27.s, p7/m, z27.s, z22.s\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmin z24.s, p7/m, z24.s, z23.s\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0]]\n"
+ "fmin z25.s, p7/m, z25.s, z23.s\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1]\n"
+ "fmin z26.s, p7/m, z26.s, z23.s\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2]\n"
+ "fmin z27.s, p7/m, z27.s, z23.s\n"
+ "st1w z24.s, p7, [%[c_ptr0]]\n"
+ "fmax z28.s, p7/m, z28.s, z22.s\n"
+ "ld1w z24.s, p0/z, [%[biasptr]]\n"
+ "fmax z29.s, p7/m, z29.s, z22.s\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3]\n"
+ "fmax z30.s, p7/m, z30.s, z22.s\n"
+ "st1w z25.s, p7, [c_ptr1]\n"
+ "fmax z31.s, p7/m, z31.s, z22.s\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmin z28.s, p7/m, z28.s, z23.s\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4]\n"
+ "fmin z29.s, p7/m, z29.s, z23.s\n"
+ "st1w z26.s, p7, [c_ptr2]\n"
+ "fmin z30.s, p7/m, z30.s, z23.s\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5]\n"
+ "fmin z31.s, p7/m, z31.s, z23.s\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "mov z25.d, z24.d\n"
+ "st1w z27.s, p7, [c_ptr3]\n"
+ "mov z26.d, z24.d\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6]\n"
+ "mov z27.d, z24.d\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7]\n"
+ "addvl %[c_ptr0], %[c_ptr0], #1\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "st1w z28.s, p7, [c_ptr4]\n"
+ "mov z28.d, z24.d\n"
+ "addvl c_ptr1, c_ptr1, #1\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "st1w z29.s, p7, [c_ptr5]\n"
+ "mov z29.d, z24.d\n"
+ "addvl c_ptr2, c_ptr2, #1\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "st1w z30.s, p7, [c_ptr6]\n"
+ "mov z30.d, z24.d\n"
+ "addvl c_ptr3, c_ptr3, #1\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "st1w z31.s, p7, [c_ptr7]\n"
+ "mov z31.d, z24.d\n"
+ "addvl c_ptr4, c_ptr4, #1\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "addvl c_ptr5, c_ptr5, #1\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "addvl c_ptr6, c_ptr6, #1\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "addvl c_ptr7, c_ptr7, #1\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x10]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x10]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x10]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x10]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x10]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x10]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x10]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x10]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x20]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x20]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x20]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x20]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x20]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x20]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x20]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x20]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x30]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x30]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x30]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x30]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x30]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x30]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x30]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x30]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #5\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x40]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x40]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x40]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x40]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x40]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x40]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x40]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x40]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0], #0x50]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1, #0x50]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2, #0x50]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3, #0x50]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4, #0x50]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5, #0x50]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6, #0x50]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7, #0x50]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "b 5f\n"
+ "2:\n"
+ "ld1w z24.s, p0/z, [%[biasptr]]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0]]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1]\n"
+ "mov z25.d, z24.d\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2]\n"
+ "mov z26.d, z24.d\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3]\n"
+ "mov z27.d, z24.d\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4]\n"
+ "mov z28.d, z24.d\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5]\n"
+ "mov z29.d, z24.d\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6]\n"
+ "mov z30.d, z24.d\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7]\n"
+ "mov z31.d, z24.d\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x10]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x10]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x10]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x10]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x10]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x10]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x10]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x10]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x20]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x20]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x20]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x20]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x20]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x20]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x20]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x20]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x30]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x30]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x30]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x30]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x30]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x30]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x30]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x30]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #5\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x40]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x40]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x40]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x40]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x40]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x40]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x40]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x40]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0], #0x50]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1, #0x50]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2, #0x50]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3, #0x50]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4, #0x50]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5, #0x50]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6, #0x50]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7, #0x50]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "5:\n"
+ "ld1rw z22.s, p7/z, [%[minptr]]\n"
+ "ld1rw z23.s, p7/z, [%[maxptr]]\n"
+ "fmax z24.s, p7/m, z24.s, z22.s\n"
+ "fmax z25.s, p7/m, z25.s, z22.s\n"
+ "fmax z26.s, p7/m, z26.s, z22.s\n"
+ "fmax z27.s, p7/m, z27.s, z22.s\n"
+ "fmin z24.s, p7/m, z24.s, z23.s\n"
+ "fmin z25.s, p7/m, z25.s, z23.s\n"
+ "fmin z26.s, p7/m, z26.s, z23.s\n"
+ "fmin z27.s, p7/m, z27.s, z23.s\n"
+ "st1w z24.s, p0, [%[c_ptr0]]\n"
+ "fmax z28.s, p7/m, z28.s, z22.s\n"
+ "addvl %[c_ptr0], %[c_ptr0], #1\n"
+ "fmax z29.s, p7/m, z29.s, z22.s\n"
+ "st1w z25.s, p0, [c_ptr1]\n"
+ "fmax z30.s, p7/m, z30.s, z22.s\n"
+ "fmin z28.s, p7/m, z28.s, z23.s\n"
+ "fmax z31.s, p7/m, z31.s, z22.s\n"
+ "st1w z26.s, p0, [c_ptr2]\n"
+ "fmin z29.s, p7/m, z29.s, z23.s\n"
+ "fmin z30.s, p7/m, z30.s, z23.s\n"
+ "fmin z31.s, p7/m, z31.s, z23.s\n"
+ "st1w z27.s, p0, [c_ptr3]\n"
+ "st1w z28.s, p0, [c_ptr4]\n"
+ "st1w z29.s, p0, [c_ptr5]\n"
+ "st1w z30.s, p0, [c_ptr6]\n"
+ "st1w z31.s, p0, [c_ptr7]\n"
+ ".unreq a_ptr1\n"
+ ".unreq a_ptr2\n"
+ ".unreq a_ptr3\n"
+ ".unreq a_ptr4\n"
+ ".unreq a_ptr5\n"
+ ".unreq a_ptr6\n"
+ ".unreq a_ptr7\n"
+ ".unreq c_ptr1\n"
+ ".unreq c_ptr2\n"
+ ".unreq c_ptr3\n"
+ ".unreq c_ptr4\n"
+ ".unreq c_ptr5\n"
+ ".unreq c_ptr6\n"
+ ".unreq c_ptr7\n"
+ : [a_ptr0] "+r" (a_ptr0), [b_ptr0] "+r" (b_ptr0), [c_ptr0] "+r" (c_ptr0), [loops] "+r" (loops), [oob_rows] "+r" (oob_rows), [temp] "+r" (temp), [biasptr] "+r" (biasptr)
+ : [lda] "r" (ldab), [ldc] "r" (ldcb), [odd_depth] "r" (odd_depth), [last_width] "r" (last_width), [biasinc] "r" (biasinc), [minptr] "r" (minptr), [maxptr] "r" (maxptr)
+ : "x0", "x1", "x2", "x3", "x4", "x5", "x6", "x7", "x8", "x9", "x10", "x11", "x12", "x13", "z0", "z1", "z2", "z3", "z4", "z5", "z6", "z7", "z8", "z9", "z10", "z11", "z12", "z13", "z14", "z15", "z16", "z17", "z18", "z19", "z20", "z21", "z22", "z23", "z24", "z25", "z26", "z27", "z28", "z29", "z30", "z31", "cc", "memory"
+ );
+ break;
+ case 22:
+ __asm __volatile (
+ "a_ptr1 .req X0\n"
+ "a_ptr2 .req X1\n"
+ "a_ptr3 .req X2\n"
+ "a_ptr4 .req X3\n"
+ "a_ptr5 .req X4\n"
+ "a_ptr6 .req X5\n"
+ "a_ptr7 .req X6\n"
+ "c_ptr1 .req X7\n"
+ "c_ptr2 .req X8\n"
+ "c_ptr3 .req X9\n"
+ "c_ptr4 .req X10\n"
+ "c_ptr5 .req X11\n"
+ "c_ptr6 .req X12\n"
+ "c_ptr7 .req X13\n"
+ "add a_ptr1, %[a_ptr0], %[lda]\n"
+ "add c_ptr1, %[c_ptr0], %[ldc]\n"
+ "add a_ptr2, a_ptr1, %[lda]\n"
+ "add c_ptr2, c_ptr1, %[ldc]\n"
+ "add a_ptr3, a_ptr2, %[lda]\n"
+ "add c_ptr3, c_ptr2, %[ldc]\n"
+ "add a_ptr4, a_ptr3, %[lda]\n"
+ "add c_ptr4, c_ptr3, %[ldc]\n"
+ "add a_ptr5, a_ptr4, %[lda]\n"
+ "add c_ptr5, c_ptr4, %[ldc]\n"
+ "add a_ptr6, a_ptr5, %[lda]\n"
+ "add c_ptr6, c_ptr5, %[ldc]\n"
+ "add a_ptr7, a_ptr6, %[lda]\n"
+ "add c_ptr7, c_ptr6, %[ldc]\n"
+ "cbz %[oob_rows], 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr7, %[c_ptr0], #0x0\n"
+ "add a_ptr7, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr6, %[c_ptr0], #0x0\n"
+ "add a_ptr6, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr5, %[c_ptr0], #0x0\n"
+ "add a_ptr5, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr4, %[c_ptr0], #0x0\n"
+ "add a_ptr4, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr3, %[c_ptr0], #0x0\n"
+ "add a_ptr3, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr2, %[c_ptr0], #0x0\n"
+ "add a_ptr2, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr1, %[c_ptr0], #0x0\n"
+ "add a_ptr1, %[a_ptr0], #0x0\n"
+ "1:\n"
+ "ptrue p7.s\n"
+ "whilelt p6.s, %[temp], %[odd_depth]\n"
+ "whilelt p0.s, %[temp], %[last_width]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "cbz %[loops], 2f\n"
+ "ld1w z24.s, p7/z, [%[biasptr]]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0]]\n"
+ "subs %[loops], %[loops], #0x1\n"
+ "mov z25.d, z24.d\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1]\n"
+ "mov z26.d, z24.d\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2]\n"
+ "mov z27.d, z24.d\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3]\n"
+ "mov z28.d, z24.d\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4]\n"
+ "mov z29.d, z24.d\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5]\n"
+ "mov z30.d, z24.d\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6]\n"
+ "mov z31.d, z24.d\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x10]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x10]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x10]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x10]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x10]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x10]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x10]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x10]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x20]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x20]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x20]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x20]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x20]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x20]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x20]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x20]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x30]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x30]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x30]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x30]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x30]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x30]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x30]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x30]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #6\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x40]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x40]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x40]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x40]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x40]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x40]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x40]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x40]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0], #0x50]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1, #0x50]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2, #0x50]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3, #0x50]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4, #0x50]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5, #0x50]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6, #0x50]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7, #0x50]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "b.eq 3f\n"
+ "4:\n"
+ "ld1rw z22.s, p7/z, [%[minptr]]\n"
+ "subs %[loops], %[loops], #0x1\n"
+ "ld1rw z23.s, p7/z, [%[maxptr]]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmax z24.s, p7/m, z24.s, z22.s\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmax z25.s, p7/m, z25.s, z22.s\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmax z26.s, p7/m, z26.s, z22.s\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmax z27.s, p7/m, z27.s, z22.s\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmin z24.s, p7/m, z24.s, z23.s\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmin z25.s, p7/m, z25.s, z23.s\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0]]\n"
+ "fmin z26.s, p7/m, z26.s, z23.s\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1]\n"
+ "fmin z27.s, p7/m, z27.s, z23.s\n"
+ "st1w z24.s, p7, [%[c_ptr0]]\n"
+ "fmax z28.s, p7/m, z28.s, z22.s\n"
+ "ld1w z24.s, p7/z, [%[biasptr]]\n"
+ "fmax z29.s, p7/m, z29.s, z22.s\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2]\n"
+ "fmax z30.s, p7/m, z30.s, z22.s\n"
+ "st1w z25.s, p7, [c_ptr1]\n"
+ "fmax z31.s, p7/m, z31.s, z22.s\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmin z28.s, p7/m, z28.s, z23.s\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3]\n"
+ "fmin z29.s, p7/m, z29.s, z23.s\n"
+ "st1w z26.s, p7, [c_ptr2]\n"
+ "fmin z30.s, p7/m, z30.s, z23.s\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4]\n"
+ "fmin z31.s, p7/m, z31.s, z23.s\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "mov z25.d, z24.d\n"
+ "st1w z27.s, p7, [c_ptr3]\n"
+ "mov z26.d, z24.d\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5]\n"
+ "mov z27.d, z24.d\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7]\n"
+ "addvl %[c_ptr0], %[c_ptr0], #1\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "st1w z28.s, p7, [c_ptr4]\n"
+ "mov z28.d, z24.d\n"
+ "addvl c_ptr1, c_ptr1, #1\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "st1w z29.s, p7, [c_ptr5]\n"
+ "mov z29.d, z24.d\n"
+ "addvl c_ptr2, c_ptr2, #1\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "st1w z30.s, p7, [c_ptr6]\n"
+ "mov z30.d, z24.d\n"
+ "addvl c_ptr3, c_ptr3, #1\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "st1w z31.s, p7, [c_ptr7]\n"
+ "mov z31.d, z24.d\n"
+ "addvl c_ptr4, c_ptr4, #1\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "addvl c_ptr5, c_ptr5, #1\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "addvl c_ptr6, c_ptr6, #1\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "addvl c_ptr7, c_ptr7, #1\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x10]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x10]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x10]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x10]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x10]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x10]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x10]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x10]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x20]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x20]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x20]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x20]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x20]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x20]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x20]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x20]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x30]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x30]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x30]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x30]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x30]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x30]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x30]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x30]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #6\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x40]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x40]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x40]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x40]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x40]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x40]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x40]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x40]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0], #0x50]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1, #0x50]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2, #0x50]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3, #0x50]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4, #0x50]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5, #0x50]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6, #0x50]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7, #0x50]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "b.ne 4b\n"
+ "3:\n"
+ "ld1rw z22.s, p7/z, [%[minptr]]\n"
+ "ld1rw z23.s, p7/z, [%[maxptr]]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmax z24.s, p7/m, z24.s, z22.s\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmax z25.s, p7/m, z25.s, z22.s\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmax z26.s, p7/m, z26.s, z22.s\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmax z27.s, p7/m, z27.s, z22.s\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmin z24.s, p7/m, z24.s, z23.s\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0]]\n"
+ "fmin z25.s, p7/m, z25.s, z23.s\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1]\n"
+ "fmin z26.s, p7/m, z26.s, z23.s\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2]\n"
+ "fmin z27.s, p7/m, z27.s, z23.s\n"
+ "st1w z24.s, p7, [%[c_ptr0]]\n"
+ "fmax z28.s, p7/m, z28.s, z22.s\n"
+ "ld1w z24.s, p0/z, [%[biasptr]]\n"
+ "fmax z29.s, p7/m, z29.s, z22.s\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3]\n"
+ "fmax z30.s, p7/m, z30.s, z22.s\n"
+ "st1w z25.s, p7, [c_ptr1]\n"
+ "fmax z31.s, p7/m, z31.s, z22.s\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmin z28.s, p7/m, z28.s, z23.s\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4]\n"
+ "fmin z29.s, p7/m, z29.s, z23.s\n"
+ "st1w z26.s, p7, [c_ptr2]\n"
+ "fmin z30.s, p7/m, z30.s, z23.s\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5]\n"
+ "fmin z31.s, p7/m, z31.s, z23.s\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "mov z25.d, z24.d\n"
+ "st1w z27.s, p7, [c_ptr3]\n"
+ "mov z26.d, z24.d\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6]\n"
+ "mov z27.d, z24.d\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7]\n"
+ "addvl %[c_ptr0], %[c_ptr0], #1\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "st1w z28.s, p7, [c_ptr4]\n"
+ "mov z28.d, z24.d\n"
+ "addvl c_ptr1, c_ptr1, #1\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "st1w z29.s, p7, [c_ptr5]\n"
+ "mov z29.d, z24.d\n"
+ "addvl c_ptr2, c_ptr2, #1\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "st1w z30.s, p7, [c_ptr6]\n"
+ "mov z30.d, z24.d\n"
+ "addvl c_ptr3, c_ptr3, #1\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "st1w z31.s, p7, [c_ptr7]\n"
+ "mov z31.d, z24.d\n"
+ "addvl c_ptr4, c_ptr4, #1\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "addvl c_ptr5, c_ptr5, #1\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "addvl c_ptr6, c_ptr6, #1\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "addvl c_ptr7, c_ptr7, #1\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x10]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x10]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x10]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x10]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x10]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x10]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x10]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x10]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x20]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x20]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x20]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x20]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x20]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x20]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x20]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x20]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x30]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x30]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x30]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x30]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x30]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x30]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x30]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x30]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #6\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x40]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x40]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x40]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x40]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x40]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x40]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x40]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x40]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0], #0x50]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1, #0x50]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2, #0x50]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3, #0x50]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4, #0x50]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5, #0x50]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6, #0x50]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7, #0x50]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "b 5f\n"
+ "2:\n"
+ "ld1w z24.s, p0/z, [%[biasptr]]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0]]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1]\n"
+ "mov z25.d, z24.d\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2]\n"
+ "mov z26.d, z24.d\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3]\n"
+ "mov z27.d, z24.d\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4]\n"
+ "mov z28.d, z24.d\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5]\n"
+ "mov z29.d, z24.d\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6]\n"
+ "mov z30.d, z24.d\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7]\n"
+ "mov z31.d, z24.d\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x10]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x10]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x10]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x10]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x10]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x10]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x10]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x10]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x20]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x20]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x20]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x20]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x20]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x20]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x20]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x20]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x30]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x30]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x30]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x30]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x30]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x30]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x30]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x30]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #6\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x40]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x40]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x40]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x40]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x40]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x40]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x40]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x40]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0], #0x50]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1, #0x50]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2, #0x50]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3, #0x50]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4, #0x50]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5, #0x50]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6, #0x50]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7, #0x50]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "5:\n"
+ "ld1rw z22.s, p7/z, [%[minptr]]\n"
+ "ld1rw z23.s, p7/z, [%[maxptr]]\n"
+ "fmax z24.s, p7/m, z24.s, z22.s\n"
+ "fmax z25.s, p7/m, z25.s, z22.s\n"
+ "fmax z26.s, p7/m, z26.s, z22.s\n"
+ "fmax z27.s, p7/m, z27.s, z22.s\n"
+ "fmin z24.s, p7/m, z24.s, z23.s\n"
+ "fmin z25.s, p7/m, z25.s, z23.s\n"
+ "fmin z26.s, p7/m, z26.s, z23.s\n"
+ "fmin z27.s, p7/m, z27.s, z23.s\n"
+ "st1w z24.s, p0, [%[c_ptr0]]\n"
+ "fmax z28.s, p7/m, z28.s, z22.s\n"
+ "addvl %[c_ptr0], %[c_ptr0], #1\n"
+ "fmax z29.s, p7/m, z29.s, z22.s\n"
+ "st1w z25.s, p0, [c_ptr1]\n"
+ "fmax z30.s, p7/m, z30.s, z22.s\n"
+ "fmin z28.s, p7/m, z28.s, z23.s\n"
+ "fmax z31.s, p7/m, z31.s, z22.s\n"
+ "st1w z26.s, p0, [c_ptr2]\n"
+ "fmin z29.s, p7/m, z29.s, z23.s\n"
+ "fmin z30.s, p7/m, z30.s, z23.s\n"
+ "fmin z31.s, p7/m, z31.s, z23.s\n"
+ "st1w z27.s, p0, [c_ptr3]\n"
+ "st1w z28.s, p0, [c_ptr4]\n"
+ "st1w z29.s, p0, [c_ptr5]\n"
+ "st1w z30.s, p0, [c_ptr6]\n"
+ "st1w z31.s, p0, [c_ptr7]\n"
+ ".unreq a_ptr1\n"
+ ".unreq a_ptr2\n"
+ ".unreq a_ptr3\n"
+ ".unreq a_ptr4\n"
+ ".unreq a_ptr5\n"
+ ".unreq a_ptr6\n"
+ ".unreq a_ptr7\n"
+ ".unreq c_ptr1\n"
+ ".unreq c_ptr2\n"
+ ".unreq c_ptr3\n"
+ ".unreq c_ptr4\n"
+ ".unreq c_ptr5\n"
+ ".unreq c_ptr6\n"
+ ".unreq c_ptr7\n"
+ : [a_ptr0] "+r" (a_ptr0), [b_ptr0] "+r" (b_ptr0), [c_ptr0] "+r" (c_ptr0), [loops] "+r" (loops), [oob_rows] "+r" (oob_rows), [temp] "+r" (temp), [biasptr] "+r" (biasptr)
+ : [lda] "r" (ldab), [ldc] "r" (ldcb), [odd_depth] "r" (odd_depth), [last_width] "r" (last_width), [biasinc] "r" (biasinc), [minptr] "r" (minptr), [maxptr] "r" (maxptr)
+ : "x0", "x1", "x2", "x3", "x4", "x5", "x6", "x7", "x8", "x9", "x10", "x11", "x12", "x13", "z0", "z1", "z2", "z3", "z4", "z5", "z6", "z7", "z8", "z9", "z10", "z11", "z12", "z13", "z14", "z15", "z16", "z17", "z18", "z19", "z20", "z21", "z22", "z23", "z24", "z25", "z26", "z27", "z28", "z29", "z30", "z31", "cc", "memory"
+ );
+ break;
+ case 23:
+ __asm __volatile (
+ "a_ptr1 .req X0\n"
+ "a_ptr2 .req X1\n"
+ "a_ptr3 .req X2\n"
+ "a_ptr4 .req X3\n"
+ "a_ptr5 .req X4\n"
+ "a_ptr6 .req X5\n"
+ "a_ptr7 .req X6\n"
+ "c_ptr1 .req X7\n"
+ "c_ptr2 .req X8\n"
+ "c_ptr3 .req X9\n"
+ "c_ptr4 .req X10\n"
+ "c_ptr5 .req X11\n"
+ "c_ptr6 .req X12\n"
+ "c_ptr7 .req X13\n"
+ "add a_ptr1, %[a_ptr0], %[lda]\n"
+ "add c_ptr1, %[c_ptr0], %[ldc]\n"
+ "add a_ptr2, a_ptr1, %[lda]\n"
+ "add c_ptr2, c_ptr1, %[ldc]\n"
+ "add a_ptr3, a_ptr2, %[lda]\n"
+ "add c_ptr3, c_ptr2, %[ldc]\n"
+ "add a_ptr4, a_ptr3, %[lda]\n"
+ "add c_ptr4, c_ptr3, %[ldc]\n"
+ "add a_ptr5, a_ptr4, %[lda]\n"
+ "add c_ptr5, c_ptr4, %[ldc]\n"
+ "add a_ptr6, a_ptr5, %[lda]\n"
+ "add c_ptr6, c_ptr5, %[ldc]\n"
+ "add a_ptr7, a_ptr6, %[lda]\n"
+ "add c_ptr7, c_ptr6, %[ldc]\n"
+ "cbz %[oob_rows], 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr7, %[c_ptr0], #0x0\n"
+ "add a_ptr7, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr6, %[c_ptr0], #0x0\n"
+ "add a_ptr6, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr5, %[c_ptr0], #0x0\n"
+ "add a_ptr5, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr4, %[c_ptr0], #0x0\n"
+ "add a_ptr4, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr3, %[c_ptr0], #0x0\n"
+ "add a_ptr3, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr2, %[c_ptr0], #0x0\n"
+ "add a_ptr2, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr1, %[c_ptr0], #0x0\n"
+ "add a_ptr1, %[a_ptr0], #0x0\n"
+ "1:\n"
+ "ptrue p7.s\n"
+ "whilelt p6.s, %[temp], %[odd_depth]\n"
+ "whilelt p0.s, %[temp], %[last_width]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "cbz %[loops], 2f\n"
+ "ld1w z24.s, p7/z, [%[biasptr]]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0]]\n"
+ "subs %[loops], %[loops], #0x1\n"
+ "mov z25.d, z24.d\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1]\n"
+ "mov z26.d, z24.d\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2]\n"
+ "mov z27.d, z24.d\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3]\n"
+ "mov z28.d, z24.d\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4]\n"
+ "mov z29.d, z24.d\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5]\n"
+ "mov z30.d, z24.d\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6]\n"
+ "mov z31.d, z24.d\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x10]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x10]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x10]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x10]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x10]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x10]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x10]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x10]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x20]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x20]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x20]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x20]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x20]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x20]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x20]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x20]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x30]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x30]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x30]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x30]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x30]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x30]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x30]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x30]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x40]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x40]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x40]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x40]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x40]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x40]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x40]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x40]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #7\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0], #0x50]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1, #0x50]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2, #0x50]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3, #0x50]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4, #0x50]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5, #0x50]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6, #0x50]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7, #0x50]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "b.eq 3f\n"
+ "4:\n"
+ "ld1rw z22.s, p7/z, [%[minptr]]\n"
+ "subs %[loops], %[loops], #0x1\n"
+ "ld1rw z23.s, p7/z, [%[maxptr]]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmax z24.s, p7/m, z24.s, z22.s\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmax z25.s, p7/m, z25.s, z22.s\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmax z26.s, p7/m, z26.s, z22.s\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmax z27.s, p7/m, z27.s, z22.s\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmin z24.s, p7/m, z24.s, z23.s\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmin z25.s, p7/m, z25.s, z23.s\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0]]\n"
+ "fmin z26.s, p7/m, z26.s, z23.s\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1]\n"
+ "fmin z27.s, p7/m, z27.s, z23.s\n"
+ "st1w z24.s, p7, [%[c_ptr0]]\n"
+ "fmax z28.s, p7/m, z28.s, z22.s\n"
+ "ld1w z24.s, p7/z, [%[biasptr]]\n"
+ "fmax z29.s, p7/m, z29.s, z22.s\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2]\n"
+ "fmax z30.s, p7/m, z30.s, z22.s\n"
+ "st1w z25.s, p7, [c_ptr1]\n"
+ "fmax z31.s, p7/m, z31.s, z22.s\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmin z28.s, p7/m, z28.s, z23.s\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3]\n"
+ "fmin z29.s, p7/m, z29.s, z23.s\n"
+ "st1w z26.s, p7, [c_ptr2]\n"
+ "fmin z30.s, p7/m, z30.s, z23.s\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4]\n"
+ "fmin z31.s, p7/m, z31.s, z23.s\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "mov z25.d, z24.d\n"
+ "st1w z27.s, p7, [c_ptr3]\n"
+ "mov z26.d, z24.d\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5]\n"
+ "mov z27.d, z24.d\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7]\n"
+ "addvl %[c_ptr0], %[c_ptr0], #1\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "st1w z28.s, p7, [c_ptr4]\n"
+ "mov z28.d, z24.d\n"
+ "addvl c_ptr1, c_ptr1, #1\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "st1w z29.s, p7, [c_ptr5]\n"
+ "mov z29.d, z24.d\n"
+ "addvl c_ptr2, c_ptr2, #1\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "st1w z30.s, p7, [c_ptr6]\n"
+ "mov z30.d, z24.d\n"
+ "addvl c_ptr3, c_ptr3, #1\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "st1w z31.s, p7, [c_ptr7]\n"
+ "mov z31.d, z24.d\n"
+ "addvl c_ptr4, c_ptr4, #1\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "addvl c_ptr5, c_ptr5, #1\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "addvl c_ptr6, c_ptr6, #1\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "addvl c_ptr7, c_ptr7, #1\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x10]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x10]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x10]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x10]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x10]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x10]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x10]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x10]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x20]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x20]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x20]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x20]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x20]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x20]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x20]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x20]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x30]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x30]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x30]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x30]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x30]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x30]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x30]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x30]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x40]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x40]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x40]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x40]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x40]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x40]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x40]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x40]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #7\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0], #0x50]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1, #0x50]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2, #0x50]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3, #0x50]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4, #0x50]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5, #0x50]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6, #0x50]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7, #0x50]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "b.ne 4b\n"
+ "3:\n"
+ "ld1rw z22.s, p7/z, [%[minptr]]\n"
+ "ld1rw z23.s, p7/z, [%[maxptr]]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmax z24.s, p7/m, z24.s, z22.s\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmax z25.s, p7/m, z25.s, z22.s\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmax z26.s, p7/m, z26.s, z22.s\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmax z27.s, p7/m, z27.s, z22.s\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmin z24.s, p7/m, z24.s, z23.s\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0]]\n"
+ "fmin z25.s, p7/m, z25.s, z23.s\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1]\n"
+ "fmin z26.s, p7/m, z26.s, z23.s\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2]\n"
+ "fmin z27.s, p7/m, z27.s, z23.s\n"
+ "st1w z24.s, p7, [%[c_ptr0]]\n"
+ "fmax z28.s, p7/m, z28.s, z22.s\n"
+ "ld1w z24.s, p0/z, [%[biasptr]]\n"
+ "fmax z29.s, p7/m, z29.s, z22.s\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3]\n"
+ "fmax z30.s, p7/m, z30.s, z22.s\n"
+ "st1w z25.s, p7, [c_ptr1]\n"
+ "fmax z31.s, p7/m, z31.s, z22.s\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmin z28.s, p7/m, z28.s, z23.s\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4]\n"
+ "fmin z29.s, p7/m, z29.s, z23.s\n"
+ "st1w z26.s, p7, [c_ptr2]\n"
+ "fmin z30.s, p7/m, z30.s, z23.s\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5]\n"
+ "fmin z31.s, p7/m, z31.s, z23.s\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "mov z25.d, z24.d\n"
+ "st1w z27.s, p7, [c_ptr3]\n"
+ "mov z26.d, z24.d\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6]\n"
+ "mov z27.d, z24.d\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7]\n"
+ "addvl %[c_ptr0], %[c_ptr0], #1\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "st1w z28.s, p7, [c_ptr4]\n"
+ "mov z28.d, z24.d\n"
+ "addvl c_ptr1, c_ptr1, #1\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "st1w z29.s, p7, [c_ptr5]\n"
+ "mov z29.d, z24.d\n"
+ "addvl c_ptr2, c_ptr2, #1\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "st1w z30.s, p7, [c_ptr6]\n"
+ "mov z30.d, z24.d\n"
+ "addvl c_ptr3, c_ptr3, #1\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "st1w z31.s, p7, [c_ptr7]\n"
+ "mov z31.d, z24.d\n"
+ "addvl c_ptr4, c_ptr4, #1\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "addvl c_ptr5, c_ptr5, #1\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "addvl c_ptr6, c_ptr6, #1\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "addvl c_ptr7, c_ptr7, #1\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x10]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x10]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x10]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x10]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x10]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x10]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x10]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x10]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x20]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x20]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x20]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x20]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x20]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x20]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x20]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x20]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x30]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x30]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x30]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x30]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x30]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x30]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x30]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x30]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x40]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x40]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x40]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x40]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x40]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x40]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x40]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x40]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #7\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0], #0x50]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1, #0x50]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2, #0x50]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3, #0x50]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4, #0x50]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5, #0x50]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6, #0x50]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7, #0x50]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "b 5f\n"
+ "2:\n"
+ "ld1w z24.s, p0/z, [%[biasptr]]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0]]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1]\n"
+ "mov z25.d, z24.d\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2]\n"
+ "mov z26.d, z24.d\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3]\n"
+ "mov z27.d, z24.d\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4]\n"
+ "mov z28.d, z24.d\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5]\n"
+ "mov z29.d, z24.d\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6]\n"
+ "mov z30.d, z24.d\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7]\n"
+ "mov z31.d, z24.d\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x10]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x10]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x10]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x10]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x10]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x10]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x10]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x10]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x20]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x20]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x20]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x20]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x20]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x20]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x20]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x20]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x30]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x30]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x30]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x30]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x30]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x30]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x30]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x30]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x40]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x40]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x40]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x40]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x40]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x40]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x40]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x40]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #7\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0], #0x50]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1, #0x50]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2, #0x50]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3, #0x50]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4, #0x50]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5, #0x50]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6, #0x50]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7, #0x50]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "5:\n"
+ "ld1rw z22.s, p7/z, [%[minptr]]\n"
+ "ld1rw z23.s, p7/z, [%[maxptr]]\n"
+ "fmax z24.s, p7/m, z24.s, z22.s\n"
+ "fmax z25.s, p7/m, z25.s, z22.s\n"
+ "fmax z26.s, p7/m, z26.s, z22.s\n"
+ "fmax z27.s, p7/m, z27.s, z22.s\n"
+ "fmin z24.s, p7/m, z24.s, z23.s\n"
+ "fmin z25.s, p7/m, z25.s, z23.s\n"
+ "fmin z26.s, p7/m, z26.s, z23.s\n"
+ "fmin z27.s, p7/m, z27.s, z23.s\n"
+ "st1w z24.s, p0, [%[c_ptr0]]\n"
+ "fmax z28.s, p7/m, z28.s, z22.s\n"
+ "addvl %[c_ptr0], %[c_ptr0], #1\n"
+ "fmax z29.s, p7/m, z29.s, z22.s\n"
+ "st1w z25.s, p0, [c_ptr1]\n"
+ "fmax z30.s, p7/m, z30.s, z22.s\n"
+ "fmin z28.s, p7/m, z28.s, z23.s\n"
+ "fmax z31.s, p7/m, z31.s, z22.s\n"
+ "st1w z26.s, p0, [c_ptr2]\n"
+ "fmin z29.s, p7/m, z29.s, z23.s\n"
+ "fmin z30.s, p7/m, z30.s, z23.s\n"
+ "fmin z31.s, p7/m, z31.s, z23.s\n"
+ "st1w z27.s, p0, [c_ptr3]\n"
+ "st1w z28.s, p0, [c_ptr4]\n"
+ "st1w z29.s, p0, [c_ptr5]\n"
+ "st1w z30.s, p0, [c_ptr6]\n"
+ "st1w z31.s, p0, [c_ptr7]\n"
+ ".unreq a_ptr1\n"
+ ".unreq a_ptr2\n"
+ ".unreq a_ptr3\n"
+ ".unreq a_ptr4\n"
+ ".unreq a_ptr5\n"
+ ".unreq a_ptr6\n"
+ ".unreq a_ptr7\n"
+ ".unreq c_ptr1\n"
+ ".unreq c_ptr2\n"
+ ".unreq c_ptr3\n"
+ ".unreq c_ptr4\n"
+ ".unreq c_ptr5\n"
+ ".unreq c_ptr6\n"
+ ".unreq c_ptr7\n"
+ : [a_ptr0] "+r" (a_ptr0), [b_ptr0] "+r" (b_ptr0), [c_ptr0] "+r" (c_ptr0), [loops] "+r" (loops), [oob_rows] "+r" (oob_rows), [temp] "+r" (temp), [biasptr] "+r" (biasptr)
+ : [lda] "r" (ldab), [ldc] "r" (ldcb), [odd_depth] "r" (odd_depth), [last_width] "r" (last_width), [biasinc] "r" (biasinc), [minptr] "r" (minptr), [maxptr] "r" (maxptr)
+ : "x0", "x1", "x2", "x3", "x4", "x5", "x6", "x7", "x8", "x9", "x10", "x11", "x12", "x13", "z0", "z1", "z2", "z3", "z4", "z5", "z6", "z7", "z8", "z9", "z10", "z11", "z12", "z13", "z14", "z15", "z16", "z17", "z18", "z19", "z20", "z21", "z22", "z23", "z24", "z25", "z26", "z27", "z28", "z29", "z30", "z31", "cc", "memory"
+ );
+ break;
+ default:
+ case 24:
+ __asm __volatile (
+ "a_ptr1 .req X0\n"
+ "a_ptr2 .req X1\n"
+ "a_ptr3 .req X2\n"
+ "a_ptr4 .req X3\n"
+ "a_ptr5 .req X4\n"
+ "a_ptr6 .req X5\n"
+ "a_ptr7 .req X6\n"
+ "c_ptr1 .req X7\n"
+ "c_ptr2 .req X8\n"
+ "c_ptr3 .req X9\n"
+ "c_ptr4 .req X10\n"
+ "c_ptr5 .req X11\n"
+ "c_ptr6 .req X12\n"
+ "c_ptr7 .req X13\n"
+ "add a_ptr1, %[a_ptr0], %[lda]\n"
+ "add c_ptr1, %[c_ptr0], %[ldc]\n"
+ "add a_ptr2, a_ptr1, %[lda]\n"
+ "add c_ptr2, c_ptr1, %[ldc]\n"
+ "add a_ptr3, a_ptr2, %[lda]\n"
+ "add c_ptr3, c_ptr2, %[ldc]\n"
+ "add a_ptr4, a_ptr3, %[lda]\n"
+ "add c_ptr4, c_ptr3, %[ldc]\n"
+ "add a_ptr5, a_ptr4, %[lda]\n"
+ "add c_ptr5, c_ptr4, %[ldc]\n"
+ "add a_ptr6, a_ptr5, %[lda]\n"
+ "add c_ptr6, c_ptr5, %[ldc]\n"
+ "add a_ptr7, a_ptr6, %[lda]\n"
+ "add c_ptr7, c_ptr6, %[ldc]\n"
+ "cbz %[oob_rows], 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr7, %[c_ptr0], #0x0\n"
+ "add a_ptr7, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr6, %[c_ptr0], #0x0\n"
+ "add a_ptr6, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr5, %[c_ptr0], #0x0\n"
+ "add a_ptr5, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr4, %[c_ptr0], #0x0\n"
+ "add a_ptr4, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr3, %[c_ptr0], #0x0\n"
+ "add a_ptr3, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr2, %[c_ptr0], #0x0\n"
+ "add a_ptr2, %[a_ptr0], #0x0\n"
+ "b.eq 1f\n"
+ "subs %[oob_rows], %[oob_rows], #0x1\n"
+ "add c_ptr1, %[c_ptr0], #0x0\n"
+ "add a_ptr1, %[a_ptr0], #0x0\n"
+ "1:\n"
+ "ptrue p7.s\n"
+ "whilelt p6.s, %[temp], %[odd_depth]\n"
+ "whilelt p0.s, %[temp], %[last_width]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "cbz %[loops], 2f\n"
+ "ld1w z24.s, p7/z, [%[biasptr]]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0]]\n"
+ "subs %[loops], %[loops], #0x1\n"
+ "mov z25.d, z24.d\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1]\n"
+ "mov z26.d, z24.d\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2]\n"
+ "mov z27.d, z24.d\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3]\n"
+ "mov z28.d, z24.d\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4]\n"
+ "mov z29.d, z24.d\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5]\n"
+ "mov z30.d, z24.d\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6]\n"
+ "mov z31.d, z24.d\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x10]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x10]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x10]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x10]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x10]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x10]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x10]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x10]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x20]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x20]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x20]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x20]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x20]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x20]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x20]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x20]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x30]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x30]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x30]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x30]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x30]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x30]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x30]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x30]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x40]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x40]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x40]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x40]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x40]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x40]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x40]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x40]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0], #0x50]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1, #0x50]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2, #0x50]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3, #0x50]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4, #0x50]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5, #0x50]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6, #0x50]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7, #0x50]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "b.eq 3f\n"
+ "4:\n"
+ "ld1rw z22.s, p7/z, [%[minptr]]\n"
+ "subs %[loops], %[loops], #0x1\n"
+ "ld1rw z23.s, p7/z, [%[maxptr]]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmax z24.s, p7/m, z24.s, z22.s\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmax z25.s, p7/m, z25.s, z22.s\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmax z26.s, p7/m, z26.s, z22.s\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmax z27.s, p7/m, z27.s, z22.s\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmin z24.s, p7/m, z24.s, z23.s\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmin z25.s, p7/m, z25.s, z23.s\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0]]\n"
+ "fmin z26.s, p7/m, z26.s, z23.s\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1]\n"
+ "fmin z27.s, p7/m, z27.s, z23.s\n"
+ "st1w z24.s, p7, [%[c_ptr0]]\n"
+ "fmax z28.s, p7/m, z28.s, z22.s\n"
+ "ld1w z24.s, p7/z, [%[biasptr]]\n"
+ "fmax z29.s, p7/m, z29.s, z22.s\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2]\n"
+ "fmax z30.s, p7/m, z30.s, z22.s\n"
+ "st1w z25.s, p7, [c_ptr1]\n"
+ "fmax z31.s, p7/m, z31.s, z22.s\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmin z28.s, p7/m, z28.s, z23.s\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3]\n"
+ "fmin z29.s, p7/m, z29.s, z23.s\n"
+ "st1w z26.s, p7, [c_ptr2]\n"
+ "fmin z30.s, p7/m, z30.s, z23.s\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4]\n"
+ "fmin z31.s, p7/m, z31.s, z23.s\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "mov z25.d, z24.d\n"
+ "st1w z27.s, p7, [c_ptr3]\n"
+ "mov z26.d, z24.d\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5]\n"
+ "mov z27.d, z24.d\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7]\n"
+ "addvl %[c_ptr0], %[c_ptr0], #1\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "st1w z28.s, p7, [c_ptr4]\n"
+ "mov z28.d, z24.d\n"
+ "addvl c_ptr1, c_ptr1, #1\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "st1w z29.s, p7, [c_ptr5]\n"
+ "mov z29.d, z24.d\n"
+ "addvl c_ptr2, c_ptr2, #1\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "st1w z30.s, p7, [c_ptr6]\n"
+ "mov z30.d, z24.d\n"
+ "addvl c_ptr3, c_ptr3, #1\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "st1w z31.s, p7, [c_ptr7]\n"
+ "mov z31.d, z24.d\n"
+ "addvl c_ptr4, c_ptr4, #1\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "addvl c_ptr5, c_ptr5, #1\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "addvl c_ptr6, c_ptr6, #1\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "addvl c_ptr7, c_ptr7, #1\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x10]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x10]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x10]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x10]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x10]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x10]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x10]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x10]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x20]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x20]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x20]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x20]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x20]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x20]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x20]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x20]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x30]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x30]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x30]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x30]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x30]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x30]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x30]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x30]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x40]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x40]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x40]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x40]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x40]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x40]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x40]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x40]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0], #0x50]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1, #0x50]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2, #0x50]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3, #0x50]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4, #0x50]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5, #0x50]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6, #0x50]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7, #0x50]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "b.ne 4b\n"
+ "3:\n"
+ "ld1rw z22.s, p7/z, [%[minptr]]\n"
+ "ld1rw z23.s, p7/z, [%[maxptr]]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmax z24.s, p7/m, z24.s, z22.s\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmax z25.s, p7/m, z25.s, z22.s\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmax z26.s, p7/m, z26.s, z22.s\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmax z27.s, p7/m, z27.s, z22.s\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmin z24.s, p7/m, z24.s, z23.s\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0]]\n"
+ "fmin z25.s, p7/m, z25.s, z23.s\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1]\n"
+ "fmin z26.s, p7/m, z26.s, z23.s\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2]\n"
+ "fmin z27.s, p7/m, z27.s, z23.s\n"
+ "st1w z24.s, p7, [%[c_ptr0]]\n"
+ "fmax z28.s, p7/m, z28.s, z22.s\n"
+ "ld1w z24.s, p0/z, [%[biasptr]]\n"
+ "fmax z29.s, p7/m, z29.s, z22.s\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3]\n"
+ "fmax z30.s, p7/m, z30.s, z22.s\n"
+ "st1w z25.s, p7, [c_ptr1]\n"
+ "fmax z31.s, p7/m, z31.s, z22.s\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmin z28.s, p7/m, z28.s, z23.s\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4]\n"
+ "fmin z29.s, p7/m, z29.s, z23.s\n"
+ "st1w z26.s, p7, [c_ptr2]\n"
+ "fmin z30.s, p7/m, z30.s, z23.s\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5]\n"
+ "fmin z31.s, p7/m, z31.s, z23.s\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "mov z25.d, z24.d\n"
+ "st1w z27.s, p7, [c_ptr3]\n"
+ "mov z26.d, z24.d\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6]\n"
+ "mov z27.d, z24.d\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7]\n"
+ "addvl %[c_ptr0], %[c_ptr0], #1\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "st1w z28.s, p7, [c_ptr4]\n"
+ "mov z28.d, z24.d\n"
+ "addvl c_ptr1, c_ptr1, #1\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "st1w z29.s, p7, [c_ptr5]\n"
+ "mov z29.d, z24.d\n"
+ "addvl c_ptr2, c_ptr2, #1\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "st1w z30.s, p7, [c_ptr6]\n"
+ "mov z30.d, z24.d\n"
+ "addvl c_ptr3, c_ptr3, #1\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "st1w z31.s, p7, [c_ptr7]\n"
+ "mov z31.d, z24.d\n"
+ "addvl c_ptr4, c_ptr4, #1\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "addvl c_ptr5, c_ptr5, #1\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "addvl c_ptr6, c_ptr6, #1\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "addvl c_ptr7, c_ptr7, #1\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x10]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x10]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x10]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x10]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x10]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x10]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x10]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x10]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x20]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x20]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x20]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x20]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x20]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x20]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x20]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x20]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x30]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x30]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x30]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x30]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x30]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x30]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x30]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x30]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x40]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x40]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x40]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x40]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x40]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x40]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x40]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x40]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0], #0x50]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1, #0x50]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2, #0x50]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3, #0x50]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4, #0x50]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5, #0x50]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6, #0x50]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7, #0x50]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "b 5f\n"
+ "2:\n"
+ "ld1w z24.s, p0/z, [%[biasptr]]\n"
+ "add %[biasptr], %[biasptr], %[biasinc]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0]]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1]\n"
+ "mov z25.d, z24.d\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2]\n"
+ "mov z26.d, z24.d\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3]\n"
+ "mov z27.d, z24.d\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4]\n"
+ "mov z28.d, z24.d\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5]\n"
+ "mov z29.d, z24.d\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6]\n"
+ "mov z30.d, z24.d\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7]\n"
+ "mov z31.d, z24.d\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x10]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x10]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x10]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x10]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x10]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x10]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x10]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x10]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x20]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x20]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x20]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x20]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x20]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x20]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x20]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x20]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "ld1w z16.s, p7/z, [%[b_ptr0]]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "ld1w z17.s, p7/z, [%[b_ptr0], #1, MUL VL]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "ld1w z18.s, p7/z, [%[b_ptr0], #2, MUL VL]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x30]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x30]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x30]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x30]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x30]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x30]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x30]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x30]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "ld1w z19.s, p7/z, [%[b_ptr0], #3, MUL VL]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "ld1w z20.s, p7/z, [%[b_ptr0], #4, MUL VL]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "ld1w z21.s, p7/z, [%[b_ptr0], #5, MUL VL]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "ld1w z22.s, p7/z, [%[b_ptr0], #6, MUL VL]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "ld1rqw z0.s, p7/z, [%[a_ptr0], #0x40]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "ld1rqw z1.s, p7/z, [a_ptr1, #0x40]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "ld1rqw z2.s, p7/z, [a_ptr2, #0x40]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "ld1rqw z3.s, p7/z, [a_ptr3, #0x40]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "ld1rqw z4.s, p7/z, [a_ptr4, #0x40]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "ld1rqw z5.s, p7/z, [a_ptr5, #0x40]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "ld1rqw z6.s, p7/z, [a_ptr6, #0x40]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "ld1w z23.s, p7/z, [%[b_ptr0], #7, MUL VL]\n"
+ "fmla z24.s, z16.s, z0.s[0]\n"
+ "ld1rqw z7.s, p7/z, [a_ptr7, #0x40]\n"
+ "fmla z25.s, z16.s, z1.s[0]\n"
+ "addvl %[b_ptr0], %[b_ptr0], #8\n"
+ "fmla z26.s, z16.s, z2.s[0]\n"
+ "fmla z27.s, z16.s, z3.s[0]\n"
+ "fmla z28.s, z16.s, z4.s[0]\n"
+ "fmla z29.s, z16.s, z5.s[0]\n"
+ "fmla z30.s, z16.s, z6.s[0]\n"
+ "fmla z31.s, z16.s, z7.s[0]\n"
+ "fmla z24.s, z17.s, z0.s[1]\n"
+ "fmla z25.s, z17.s, z1.s[1]\n"
+ "fmla z26.s, z17.s, z2.s[1]\n"
+ "fmla z27.s, z17.s, z3.s[1]\n"
+ "fmla z28.s, z17.s, z4.s[1]\n"
+ "fmla z29.s, z17.s, z5.s[1]\n"
+ "fmla z30.s, z17.s, z6.s[1]\n"
+ "fmla z31.s, z17.s, z7.s[1]\n"
+ "fmla z24.s, z18.s, z0.s[2]\n"
+ "fmla z25.s, z18.s, z1.s[2]\n"
+ "fmla z26.s, z18.s, z2.s[2]\n"
+ "fmla z27.s, z18.s, z3.s[2]\n"
+ "fmla z28.s, z18.s, z4.s[2]\n"
+ "fmla z29.s, z18.s, z5.s[2]\n"
+ "fmla z30.s, z18.s, z6.s[2]\n"
+ "fmla z31.s, z18.s, z7.s[2]\n"
+ "fmla z24.s, z19.s, z0.s[3]\n"
+ "ld1rqw z0.s, p6/z, [%[a_ptr0], #0x50]\n"
+ "fmla z25.s, z19.s, z1.s[3]\n"
+ "ld1rqw z1.s, p6/z, [a_ptr1, #0x50]\n"
+ "fmla z26.s, z19.s, z2.s[3]\n"
+ "ld1rqw z2.s, p6/z, [a_ptr2, #0x50]\n"
+ "fmla z27.s, z19.s, z3.s[3]\n"
+ "ld1rqw z3.s, p6/z, [a_ptr3, #0x50]\n"
+ "fmla z28.s, z19.s, z4.s[3]\n"
+ "ld1rqw z4.s, p6/z, [a_ptr4, #0x50]\n"
+ "fmla z29.s, z19.s, z5.s[3]\n"
+ "ld1rqw z5.s, p6/z, [a_ptr5, #0x50]\n"
+ "fmla z30.s, z19.s, z6.s[3]\n"
+ "ld1rqw z6.s, p6/z, [a_ptr6, #0x50]\n"
+ "fmla z31.s, z19.s, z7.s[3]\n"
+ "ld1rqw z7.s, p6/z, [a_ptr7, #0x50]\n"
+ "fmla z24.s, z20.s, z0.s[0]\n"
+ "fmla z25.s, z20.s, z1.s[0]\n"
+ "fmla z26.s, z20.s, z2.s[0]\n"
+ "fmla z27.s, z20.s, z3.s[0]\n"
+ "fmla z28.s, z20.s, z4.s[0]\n"
+ "fmla z29.s, z20.s, z5.s[0]\n"
+ "fmla z30.s, z20.s, z6.s[0]\n"
+ "fmla z31.s, z20.s, z7.s[0]\n"
+ "fmla z24.s, z21.s, z0.s[1]\n"
+ "fmla z25.s, z21.s, z1.s[1]\n"
+ "fmla z26.s, z21.s, z2.s[1]\n"
+ "fmla z27.s, z21.s, z3.s[1]\n"
+ "fmla z28.s, z21.s, z4.s[1]\n"
+ "fmla z29.s, z21.s, z5.s[1]\n"
+ "fmla z30.s, z21.s, z6.s[1]\n"
+ "fmla z31.s, z21.s, z7.s[1]\n"
+ "fmla z24.s, z22.s, z0.s[2]\n"
+ "fmla z25.s, z22.s, z1.s[2]\n"
+ "fmla z26.s, z22.s, z2.s[2]\n"
+ "fmla z27.s, z22.s, z3.s[2]\n"
+ "fmla z28.s, z22.s, z4.s[2]\n"
+ "fmla z29.s, z22.s, z5.s[2]\n"
+ "fmla z30.s, z22.s, z6.s[2]\n"
+ "fmla z31.s, z22.s, z7.s[2]\n"
+ "fmla z24.s, z23.s, z0.s[3]\n"
+ "fmla z25.s, z23.s, z1.s[3]\n"
+ "fmla z26.s, z23.s, z2.s[3]\n"
+ "fmla z27.s, z23.s, z3.s[3]\n"
+ "fmla z28.s, z23.s, z4.s[3]\n"
+ "fmla z29.s, z23.s, z5.s[3]\n"
+ "fmla z30.s, z23.s, z6.s[3]\n"
+ "fmla z31.s, z23.s, z7.s[3]\n"
+ "5:\n"
+ "ld1rw z22.s, p7/z, [%[minptr]]\n"
+ "ld1rw z23.s, p7/z, [%[maxptr]]\n"
+ "fmax z24.s, p7/m, z24.s, z22.s\n"
+ "fmax z25.s, p7/m, z25.s, z22.s\n"
+ "fmax z26.s, p7/m, z26.s, z22.s\n"
+ "fmax z27.s, p7/m, z27.s, z22.s\n"
+ "fmin z24.s, p7/m, z24.s, z23.s\n"
+ "fmin z25.s, p7/m, z25.s, z23.s\n"
+ "fmin z26.s, p7/m, z26.s, z23.s\n"
+ "fmin z27.s, p7/m, z27.s, z23.s\n"
+ "st1w z24.s, p0, [%[c_ptr0]]\n"
+ "fmax z28.s, p7/m, z28.s, z22.s\n"
+ "addvl %[c_ptr0], %[c_ptr0], #1\n"
+ "fmax z29.s, p7/m, z29.s, z22.s\n"
+ "st1w z25.s, p0, [c_ptr1]\n"
+ "fmax z30.s, p7/m, z30.s, z22.s\n"
+ "fmin z28.s, p7/m, z28.s, z23.s\n"
+ "fmax z31.s, p7/m, z31.s, z22.s\n"
+ "st1w z26.s, p0, [c_ptr2]\n"
+ "fmin z29.s, p7/m, z29.s, z23.s\n"
+ "fmin z30.s, p7/m, z30.s, z23.s\n"
+ "fmin z31.s, p7/m, z31.s, z23.s\n"
+ "st1w z27.s, p0, [c_ptr3]\n"
+ "st1w z28.s, p0, [c_ptr4]\n"
+ "st1w z29.s, p0, [c_ptr5]\n"
+ "st1w z30.s, p0, [c_ptr6]\n"
+ "st1w z31.s, p0, [c_ptr7]\n"
+ ".unreq a_ptr1\n"
+ ".unreq a_ptr2\n"
+ ".unreq a_ptr3\n"
+ ".unreq a_ptr4\n"
+ ".unreq a_ptr5\n"
+ ".unreq a_ptr6\n"
+ ".unreq a_ptr7\n"
+ ".unreq c_ptr1\n"
+ ".unreq c_ptr2\n"
+ ".unreq c_ptr3\n"
+ ".unreq c_ptr4\n"
+ ".unreq c_ptr5\n"
+ ".unreq c_ptr6\n"
+ ".unreq c_ptr7\n"
+ : [a_ptr0] "+r" (a_ptr0), [b_ptr0] "+r" (b_ptr0), [c_ptr0] "+r" (c_ptr0), [loops] "+r" (loops), [oob_rows] "+r" (oob_rows), [temp] "+r" (temp), [biasptr] "+r" (biasptr)
+ : [lda] "r" (ldab), [ldc] "r" (ldcb), [odd_depth] "r" (odd_depth), [last_width] "r" (last_width), [biasinc] "r" (biasinc), [minptr] "r" (minptr), [maxptr] "r" (maxptr)
+ : "x0", "x1", "x2", "x3", "x4", "x5", "x6", "x7", "x8", "x9", "x10", "x11", "x12", "x13", "z0", "z1", "z2", "z3", "z4", "z5", "z6", "z7", "z8", "z9", "z10", "z11", "z12", "z13", "z14", "z15", "z16", "z17", "z18", "z19", "z20", "z21", "z22", "z23", "z24", "z25", "z26", "z27", "z28", "z29", "z30", "z31", "cc", "memory"
+ );
+ break;
+ }
+ }
+}
+
+} // namespace arm_gemm
+
+#endif // __ARM_FEATURE_SVE
diff --git a/src/core/NEON/kernels/arm_gemm/merges/a64_merge_fp16_24x8.hpp b/src/core/NEON/kernels/arm_gemm/merges/a64_merge_fp16_24x8.hpp
index f82e7b4e4..5d8eae486 100644
--- a/src/core/NEON/kernels/arm_gemm/merges/a64_merge_fp16_24x8.hpp
+++ b/src/core/NEON/kernels/arm_gemm/merges/a64_merge_fp16_24x8.hpp
@@ -29,7 +29,7 @@ template<>
void MergeResults<24, 8, false>(__fp16 *out, const __fp16 *in, const int ldout, const int y0, const int ymax, const int x0, const int xmax, const __fp16 *bias, Activation act, bool append)
{
const __fp16 *inptr = in;
- __fp16 nullbias[24] = { 0 };
+ __fp16 nullbias[24];
__fp16 minval = - static_cast<__fp16>(std::numeric_limits<float>::infinity());
__fp16 maxval = static_cast<__fp16>(std::numeric_limits<float>::infinity());
diff --git a/src/core/NEON/kernels/arm_gemm/merges/a64_merge_fp32_12x8.hpp b/src/core/NEON/kernels/arm_gemm/merges/a64_merge_fp32_12x8.hpp
index 0c5aa7eae..088353e5f 100644
--- a/src/core/NEON/kernels/arm_gemm/merges/a64_merge_fp32_12x8.hpp
+++ b/src/core/NEON/kernels/arm_gemm/merges/a64_merge_fp32_12x8.hpp
@@ -29,7 +29,7 @@ template<>
void MergeResults<12, 8, false>(float *out, const float *in, const int ldout, const int y0, const int ymax, const int x0, const int xmax, const float *bias, Activation act, bool append)
{
const float *inptr = in;
- float nullbias[12] = { 0 };
+ float nullbias[12];
float minval = - std::numeric_limits<float>::infinity();
float maxval = std::numeric_limits<float>::infinity();
diff --git a/src/core/NEON/kernels/arm_gemm/merges/a64_merge_s32_12x8.hpp b/src/core/NEON/kernels/arm_gemm/merges/a64_merge_s32_12x8.hpp
index 313f8295f..2e45d8b5d 100644
--- a/src/core/NEON/kernels/arm_gemm/merges/a64_merge_s32_12x8.hpp
+++ b/src/core/NEON/kernels/arm_gemm/merges/a64_merge_s32_12x8.hpp
@@ -31,7 +31,7 @@ void MergeResults<12, 8, false>(int32_t *out, const int32_t *in, const int ldout
UNUSED(act);
const int32_t *inptr = in;
- int32_t nullbias[12] = { 0 };
+ int32_t nullbias[12];
if (!append && !bias)
diff --git a/src/core/NEON/kernels/arm_gemm/merges/a64_merge_s32_4x4.hpp b/src/core/NEON/kernels/arm_gemm/merges/a64_merge_s32_4x4.hpp
index a93060fa5..6d869af80 100644
--- a/src/core/NEON/kernels/arm_gemm/merges/a64_merge_s32_4x4.hpp
+++ b/src/core/NEON/kernels/arm_gemm/merges/a64_merge_s32_4x4.hpp
@@ -31,7 +31,7 @@ void MergeResults<4, 4, false>(int32_t *out, const int32_t *in, const int ldout,
UNUSED(act);
const int32_t *inptr = in;
- int32_t nullbias[4] = { 0 };
+ int32_t nullbias[4];
if (!append && !bias)
diff --git a/src/core/NEON/kernels/arm_gemm/merges/a64_merge_u32_12x8.hpp b/src/core/NEON/kernels/arm_gemm/merges/a64_merge_u32_12x8.hpp
index 5569f5157..0a0594410 100644
--- a/src/core/NEON/kernels/arm_gemm/merges/a64_merge_u32_12x8.hpp
+++ b/src/core/NEON/kernels/arm_gemm/merges/a64_merge_u32_12x8.hpp
@@ -31,7 +31,7 @@ void MergeResults<12, 8, false>(uint32_t *out, const uint32_t *in, const int ldo
UNUSED(act);
const uint32_t *inptr = in;
- uint32_t nullbias[12] = { 0 };
+ uint32_t nullbias[12];
if (!append && !bias)
diff --git a/src/core/NEON/kernels/arm_gemm/merges/a64_merge_u32_4x4.hpp b/src/core/NEON/kernels/arm_gemm/merges/a64_merge_u32_4x4.hpp
index fd01bb239..efb17dc9e 100644
--- a/src/core/NEON/kernels/arm_gemm/merges/a64_merge_u32_4x4.hpp
+++ b/src/core/NEON/kernels/arm_gemm/merges/a64_merge_u32_4x4.hpp
@@ -31,7 +31,7 @@ void MergeResults<4, 4, false>(uint32_t *out, const uint32_t *in, const int ldou
UNUSED(act);
const uint32_t *inptr = in;
- uint32_t nullbias[4] = { 0 };
+ uint32_t nullbias[4];
if (!append && !bias)
diff --git a/src/core/NEON/kernels/arm_gemm/merges/sve_merge_fp16_3VLx8.hpp b/src/core/NEON/kernels/arm_gemm/merges/sve_merge_fp16_3VLx8.hpp
index e5efc09b5..a44ef55a8 100644
--- a/src/core/NEON/kernels/arm_gemm/merges/sve_merge_fp16_3VLx8.hpp
+++ b/src/core/NEON/kernels/arm_gemm/merges/sve_merge_fp16_3VLx8.hpp
@@ -29,7 +29,7 @@ template<>
void MergeResults<3, 8, true>(__fp16 *out, const __fp16 *in, const int ldout, const int y0, const int ymax, const int x0, const int xmax, const __fp16 *bias, Activation act, bool append)
{
const __fp16 *inptr = in;
- __fp16 nullbias[384] = { 0 };
+ __fp16 nullbias[384];
__fp16 minval = - static_cast<__fp16>(std::numeric_limits<float>::infinity());
__fp16 maxval = static_cast<__fp16>(std::numeric_limits<float>::infinity());
diff --git a/src/core/NEON/kernels/arm_gemm/merges/sve_merge_fp32_3VLx8.hpp b/src/core/NEON/kernels/arm_gemm/merges/sve_merge_fp32_3VLx8.hpp
index f7feec4d8..bb073e486 100644
--- a/src/core/NEON/kernels/arm_gemm/merges/sve_merge_fp32_3VLx8.hpp
+++ b/src/core/NEON/kernels/arm_gemm/merges/sve_merge_fp32_3VLx8.hpp
@@ -29,7 +29,7 @@ template<>
void MergeResults<3, 8, true>(float *out, const float *in, const int ldout, const int y0, const int ymax, const int x0, const int xmax, const float *bias, Activation act, bool append)
{
const float *inptr = in;
- float nullbias[192] = { 0 };
+ float nullbias[192];
float minval = - std::numeric_limits<float>::infinity();
float maxval = std::numeric_limits<float>::infinity();
diff --git a/src/core/NEON/kernels/arm_gemm/merges/sve_merge_s32_3VLx8.hpp b/src/core/NEON/kernels/arm_gemm/merges/sve_merge_s32_3VLx8.hpp
index 03a28241f..d4c5073f8 100644
--- a/src/core/NEON/kernels/arm_gemm/merges/sve_merge_s32_3VLx8.hpp
+++ b/src/core/NEON/kernels/arm_gemm/merges/sve_merge_s32_3VLx8.hpp
@@ -31,7 +31,7 @@ void MergeResults<3, 8, true>(int32_t *out, const int32_t *in, const int ldout,
UNUSED(act);
const int32_t *inptr = in;
- int32_t nullbias[192] = { 0 };
+ int32_t nullbias[192];
if (!append && !bias)
{
diff --git a/src/core/NEON/kernels/arm_gemm/merges/sve_merge_u32_3VLx8.hpp b/src/core/NEON/kernels/arm_gemm/merges/sve_merge_u32_3VLx8.hpp
index 67a6eb32b..f2a28fa00 100644
--- a/src/core/NEON/kernels/arm_gemm/merges/sve_merge_u32_3VLx8.hpp
+++ b/src/core/NEON/kernels/arm_gemm/merges/sve_merge_u32_3VLx8.hpp
@@ -31,7 +31,7 @@ void MergeResults<3, 8, true>(uint32_t *out, const uint32_t *in, const int ldout
UNUSED(act);
const uint32_t *inptr = in;
- uint32_t nullbias[192] = { 0 };
+ uint32_t nullbias[192];
if (!append && !bias)
{
diff --git a/src/runtime/NEON/functions/NEGEMM.cpp b/src/runtime/NEON/functions/NEGEMM.cpp
index baa22b7d3..be964457f 100644
--- a/src/runtime/NEON/functions/NEGEMM.cpp
+++ b/src/runtime/NEON/functions/NEGEMM.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017-2019 ARM Limited.
+ * Copyright (c) 2017-2020 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
@@ -175,7 +175,7 @@ Status NEGEMM::validate(const ITensorInfo *a, const ITensorInfo *b, const ITenso
const bool is_c_bias = gemm_info.reshape_b_only_on_first_run();
ARM_COMPUTE_RETURN_ERROR_ON_CPU_F16_UNSUPPORTED(a);
- ARM_COMPUTE_RETURN_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(a, 1, DataType::F16, DataType::F32);
+ ARM_COMPUTE_RETURN_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(a, 1, DataType::BFLOAT16, DataType::F16, DataType::F32);
ARM_COMPUTE_RETURN_ERROR_ON_MISMATCHING_DATA_TYPES(a, b, output);
ARM_COMPUTE_RETURN_ERROR_ON_MSG(a->dimension(0) != b->dimension(1), "The product AB is defined only if the number of columns in A is equal to the number of rows in B");
ARM_COMPUTE_RETURN_ERROR_ON_MSG(gemm_info.is_a_reshaped(), "Matrix A already reshaped is not supported");
diff --git a/src/runtime/NEON/functions/NEGEMMAssemblyDispatch.cpp b/src/runtime/NEON/functions/NEGEMMAssemblyDispatch.cpp
index 91b91d666..a3080e7f2 100644
--- a/src/runtime/NEON/functions/NEGEMMAssemblyDispatch.cpp
+++ b/src/runtime/NEON/functions/NEGEMMAssemblyDispatch.cpp
@@ -505,17 +505,17 @@ NEGEMMAssemblyDispatch::NEGEMMAssemblyDispatch(std::shared_ptr<IMemoryManager> m
Status NEGEMMAssemblyDispatch::validate(const ITensorInfo *a, const ITensorInfo *b, const ITensorInfo *c, const ITensorInfo *d, const GEMMInfo &gemm_info)
{
- ARM_COMPUTE_UNUSED(gemm_info);
- ARM_COMPUTE_UNUSED(c);
+ ARM_COMPUTE_UNUSED(gemm_info, c);
ARM_COMPUTE_RETURN_ERROR_ON_NULLPTR(a, b, d);
ARM_COMPUTE_RETURN_ERROR_ON_CPU_F16_UNSUPPORTED(a);
+ ARM_COMPUTE_RETURN_ERROR_ON_CPU_BF16_UNSUPPORTED(a);
#ifndef __aarch64__
ARM_COMPUTE_RETURN_ERROR_ON_MSG(a->element_size() == 1, "8bit integer types only supported for aarch64");
#endif /* __aarch64__ */
ARM_COMPUTE_RETURN_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(a, 1, DataType::U8, DataType::QASYMM8, DataType::QASYMM8_SIGNED, DataType::S8,
- DataType::F16, DataType::F32);
+ DataType::BFLOAT16, DataType::F16, DataType::F32);
ARM_COMPUTE_RETURN_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(b, 1, DataType::U8, DataType::QASYMM8, DataType::QASYMM8_SIGNED, DataType::QSYMM8_PER_CHANNEL, DataType::S8,
- DataType::F16, DataType::F32);
+ DataType::BFLOAT16, DataType::F16, DataType::F32);
if(is_data_type_quantized_per_channel(b->data_type()))
{
ARM_COMPUTE_RETURN_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(a, 1, DataType::QASYMM8_SIGNED, DataType::S8);
@@ -526,6 +526,7 @@ Status NEGEMMAssemblyDispatch::validate(const ITensorInfo *a, const ITensorInfo
}
ARM_COMPUTE_RETURN_ERROR_ON_MSG(a->data_type() == DataType::F32 && d->data_type() != DataType::F32, "Only F32 output supported for F32 input");
ARM_COMPUTE_RETURN_ERROR_ON_MSG(a->data_type() == DataType::F16 && d->data_type() != DataType::F16, "Only F16 output supported for F16 input");
+ ARM_COMPUTE_RETURN_ERROR_ON_MSG(a->data_type() == DataType::BFLOAT16 && d->data_type() != DataType::F32, "Only F32 output supported for BFLOAT16 input");
ARM_COMPUTE_RETURN_ERROR_ON_MSG(a->data_type() == DataType::U8 && d->data_type() != DataType::U32, "Only U32 output supported for U8 input");
ARM_COMPUTE_RETURN_ERROR_ON_MSG(a->data_type() == DataType::S8 && d->data_type() != DataType::S32, "Only S32 output supported for S8 input");
ARM_COMPUTE_RETURN_ERROR_ON_MSG(a->data_type() == DataType::QASYMM8 && d->data_type() != DataType::QASYMM8, "Only QASYMM8 output supported for QASYMM8 input");
@@ -578,6 +579,11 @@ void NEGEMMAssemblyDispatch::configure(const ITensor *a, const ITensor *b, const
}
break;
#endif /* __aarch64__ */
+#if defined(__ARM_FEATURE_BF16_VECTOR_ARITHMETIC) || defined(ARM_COMPUTE_FORCE_BF16)
+ case DataType::BFLOAT16:
+ create_arm_gemm<bfloat16, float>(_arm_gemm, _memory_group, a, b, c, d, act, gemm_info, _weights_manager);
+ break;
+#endif /* defined(__ARM_FEATURE_BF16_VECTOR_ARITHMETIC) || defined(ARM_COMPUTE_FORCE_BF16) */
#ifdef __ARM_FEATURE_FP16_VECTOR_ARITHMETIC
case DataType::F16:
create_arm_gemm<float16_t, float16_t>(_arm_gemm, _memory_group, a, b, c, d, act, gemm_info, _weights_manager);
diff --git a/src/runtime/NEON/functions/NEGEMMConvolutionLayer.cpp b/src/runtime/NEON/functions/NEGEMMConvolutionLayer.cpp
index 5701d6020..f6dc3a8f4 100644
--- a/src/runtime/NEON/functions/NEGEMMConvolutionLayer.cpp
+++ b/src/runtime/NEON/functions/NEGEMMConvolutionLayer.cpp
@@ -62,7 +62,7 @@ Status NEConvolutionLayerReshapeWeights::validate(const ITensorInfo *weights, co
ARM_COMPUTE_RETURN_ERROR_ON_NULLPTR(weights);
ARM_COMPUTE_RETURN_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(weights, 1,
DataType::QASYMM8, DataType::QASYMM8_SIGNED, DataType::QSYMM8_PER_CHANNEL,
- DataType::F16, DataType::F32);
+ DataType::BFLOAT16, DataType::F16, DataType::F32);
ARM_COMPUTE_RETURN_ERROR_ON(weights->num_dimensions() > 4);
if(biases != nullptr)
@@ -330,6 +330,7 @@ void NEGEMMConvolutionLayer::configure(const ITensor *input, const ITensor *weig
}
// Create temporary GEMM output tensor in case we cannot skip col2im
+ const DataType output_data_type = data_type == DataType::BFLOAT16 ? DataType::F32 : data_type;
if(!_skip_col2im)
{
TensorShape shape_gemm;
@@ -340,7 +341,7 @@ void NEGEMMConvolutionLayer::configure(const ITensor *input, const ITensor *weig
shape_gemm.set(1, conv_w * conv_h);
// FIXME: input->clone() doesn't work with subtensors for grouped convolutions.
- TensorInfo info_gemm(shape_gemm, 1, data_type);
+ TensorInfo info_gemm(shape_gemm, 1, output_data_type);
info_gemm.set_quantization_info(output->info()->quantization_info()).set_data_layout(input->info()->data_layout());
_gemm_output.allocator()->init(info_gemm);
_memory_group.manage(&_gemm_output);
@@ -392,8 +393,8 @@ Status NEGEMMConvolutionLayer::validate(const ITensorInfo *input, const ITensorI
{
ARM_COMPUTE_RETURN_ERROR_ON_NULLPTR(input, weights, output);
ARM_COMPUTE_RETURN_ERROR_ON_MSG(weights_info.are_reshaped(), "Weights already reshaped are not supported!");
- ARM_COMPUTE_RETURN_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(input, 1, DataType::QASYMM8, DataType::QASYMM8_SIGNED, DataType::F16, DataType::F32);
- ARM_COMPUTE_RETURN_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(weights, 1, DataType::QASYMM8, DataType::QASYMM8_SIGNED, DataType::QSYMM8_PER_CHANNEL, DataType::F16, DataType::F32);
+ ARM_COMPUTE_RETURN_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(input, 1, DataType::QASYMM8, DataType::QASYMM8_SIGNED, DataType::BFLOAT16, DataType::F16, DataType::F32);
+ ARM_COMPUTE_RETURN_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(weights, 1, DataType::QASYMM8, DataType::QASYMM8_SIGNED, DataType::QSYMM8_PER_CHANNEL, DataType::BFLOAT16, DataType::F16, DataType::F32);
ARM_COMPUTE_RETURN_ERROR_ON_MISMATCHING_DATA_LAYOUT(input, weights);
ARM_COMPUTE_RETURN_ERROR_ON_MSG(num_groups > 1, "Grouping (num_groups != 1) is not supported on NEON");
@@ -497,16 +498,17 @@ Status NEGEMMConvolutionLayer::validate(const ITensorInfo *input, const ITensorI
}
// Create temporary GEMM output tensor in case we cannot skip col2im
+ const DataType output_data_type = data_type == DataType::BFLOAT16 ? DataType::F32 : data_type;
if(!skip_col2im)
{
TensorShape shape_gemm = gemm_input_to_use->tensor_shape();
shape_gemm.set(0, mat_weights_cols);
shape_gemm.set(1, conv_w * conv_h);
- info_gemm = TensorInfo(shape_gemm, 1, data_type);
+ info_gemm = TensorInfo(shape_gemm, 1, output_data_type);
}
else
{
- info_gemm = TensorInfo(output->tensor_shape(), 1, data_type);
+ info_gemm = TensorInfo(output->tensor_shape(), 1, output_data_type);
}
info_gemm.set_quantization_info(output->quantization_info()).set_data_layout(input->data_layout());
gemm_output_to_use = &info_gemm;
diff --git a/support/Bfloat16.h b/support/Bfloat16.h
index d897e4264..65805f2ae 100644
--- a/support/Bfloat16.h
+++ b/support/Bfloat16.h
@@ -77,7 +77,7 @@ inline float bf16_to_float(const uint16_t &v)
}
/** Brain floating point representation class */
-class bfloat16
+class bfloat16 final
{
public:
/** Default Constructor */
diff --git a/tests/validation/Helpers.cpp b/tests/validation/Helpers.cpp
index 4da9742c2..093271244 100644
--- a/tests/validation/Helpers.cpp
+++ b/tests/validation/Helpers.cpp
@@ -212,18 +212,6 @@ SimpleTensor<float> convert_from_symmetric(const SimpleTensor<int16_t> &src)
return dst;
}
-SimpleTensor<float> convert_from_bfloat16(const SimpleTensor<int16_t> &src)
-{
- SimpleTensor<float> dst{ src.shape(), DataType::F32, 1, QuantizationInfo(), src.data_layout() };
- return dst;
-}
-
-SimpleTensor<int16_t> convert_to_bfloat(const SimpleTensor<float> &src)
-{
- SimpleTensor<int16_t> dst{ src.shape(), DataType::BFLOAT16, 1, QuantizationInfo(), src.data_layout() };
- return dst;
-}
-
template <typename T>
void matrix_multiply(const SimpleTensor<T> &a, const SimpleTensor<T> &b, SimpleTensor<T> &out)
{
diff --git a/tests/validation/Helpers.h b/tests/validation/Helpers.h
index 942b2396b..9c8897394 100644
--- a/tests/validation/Helpers.h
+++ b/tests/validation/Helpers.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017-2019 ARM Limited.
+ * Copyright (c) 2017-2020 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
diff --git a/tests/validation/NEON/ConvolutionLayer.cpp b/tests/validation/NEON/ConvolutionLayer.cpp
index fbc5a830a..b7dee301c 100644
--- a/tests/validation/NEON/ConvolutionLayer.cpp
+++ b/tests/validation/NEON/ConvolutionLayer.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017-2019 ARM Limited.
+ * Copyright (c) 2017-2020 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
@@ -382,6 +382,20 @@ template <typename T>
using NEGEMMConvolutionLayerFixture = ConvolutionValidationFixture<Tensor, Accessor, NEGEMMConvolutionLayer, T>;
TEST_SUITE(Float)
+#if defined(__ARM_FEATURE_BF16_VECTOR_ARITHMETIC) || defined(ARM_COMPUTE_FORCE_BF16)
+TEST_SUITE(BFLOAT16)
+FIXTURE_DATA_TEST_CASE(RunSmall, NEGEMMConvolutionLayerFixture<float>, framework::DatasetMode::PRECOMMIT, combine(combine(combine(combine(datasets::SmallConvolutionLayerDataset(),
+ framework::dataset::make("ReshapeWeights", { true })),
+ framework::dataset::make("DataType", DataType::BFLOAT16)),
+ framework::dataset::make("DataLayout", { DataLayout::NHWC })),
+ ActivationFunctionsDataset))
+{
+ // Validate output
+ validate(Accessor(_target), _reference, rel_tolerance_f32, 0.f, float(abs_tolerance_f32));
+}
+TEST_SUITE_END() // BFLOAT16
+#endif /* defined(__ARM_FEATURE_BF16_VECTOR_ARITHMETIC) || defined(ARM_COMPUTE_FORCE_BF16) */
+
#ifdef __ARM_FEATURE_FP16_VECTOR_ARITHMETIC
TEST_SUITE(FP16)
FIXTURE_DATA_TEST_CASE(RunSmall, NEGEMMConvolutionLayerFixture<half>, framework::DatasetMode::PRECOMMIT, combine(combine(combine(combine(datasets::SmallConvolutionLayerDataset(),
diff --git a/tests/validation/NEON/DepthConvertLayer.cpp b/tests/validation/NEON/DepthConvertLayer.cpp
index 163f53965..7af467be2 100644
--- a/tests/validation/NEON/DepthConvertLayer.cpp
+++ b/tests/validation/NEON/DepthConvertLayer.cpp
@@ -353,13 +353,6 @@ FIXTURE_DATA_TEST_CASE(RunSmall, NEDepthConvertLayerToF32Fixture<bfloat16>, fram
// Validate output
validate(Accessor(_target), _reference);
}
-FIXTURE_DATA_TEST_CASE(RunLarge, NEDepthConvertLayerToF32Fixture<bfloat16>, framework::DatasetMode::NIGHTLY, combine(combine(combine(datasets::LargeShapes(), DepthConvertLayerBF16toF32Dataset),
- framework::dataset::make("ConvertPolicy", { ConvertPolicy::SATURATE, ConvertPolicy::WRAP })),
- DepthConvertLayerZeroShiftDataset))
-{
- // Validate output
- validate(Accessor(_target), _reference);
-}
TEST_SUITE_END() // BFLOAT16_to_F32
TEST_SUITE(F32_to_BFLOAT16)
@@ -370,13 +363,6 @@ FIXTURE_DATA_TEST_CASE(RunSmall, NEDepthConvertLayerToBF16Fixture<float>, framew
// Validate output
validate(Accessor(_target), _reference);
}
-FIXTURE_DATA_TEST_CASE(RunLarge, NEDepthConvertLayerToBF16Fixture<float>, framework::DatasetMode::NIGHTLY, combine(combine(combine(datasets::LargeShapes(), DepthConvertLayerF32toBF16Dataset),
- framework::dataset::make("ConvertPolicy", { ConvertPolicy::SATURATE, ConvertPolicy::WRAP })),
- DepthConvertLayerZeroShiftDataset))
-{
- // Validate output
- validate(Accessor(_target), _reference);
-}
TEST_SUITE_END() // F32_to_BFLOAT16
#endif /* defined(__ARM_FEATURE_BF16_VECTOR_ARITHMETIC) || defined(ARM_COMPUTE_FORCE_BF16) */
diff --git a/tests/validation/fixtures/ConvolutionLayerFixture.h b/tests/validation/fixtures/ConvolutionLayerFixture.h
index 3c4b625ac..b4abebe18 100644
--- a/tests/validation/fixtures/ConvolutionLayerFixture.h
+++ b/tests/validation/fixtures/ConvolutionLayerFixture.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017-2019 ARM Limited.
+ * Copyright (c) 2017-2020 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
@@ -64,7 +64,9 @@ public:
_data_type = data_type;
_weights_data_type = weights_data_type;
_is_quantized = is_data_type_quantized_asymmetric(data_type);
- _bias_data_type = _is_quantized ? DataType::S32 : data_type;
+ _is_bfloat16 = data_type == DataType::BFLOAT16;
+ _bias_data_type = _is_quantized ? DataType::S32 : (_is_bfloat16 ? DataType::F32 : data_type);
+ _output_data_type = _is_bfloat16 ? DataType::F32 : data_type;
_quantization_info = quantization_info;
_weight_quantization_info = weight_quantization_info;
_data_layout = data_layout;
@@ -74,6 +76,15 @@ public:
}
protected:
+ void regularize_values(void *values, size_t size)
+ {
+ float *fvalues = static_cast<float *>(values);
+ for(size_t i = 0; i < size; ++i)
+ {
+ fvalues[i] = float(bfloat16(fvalues[i]));
+ }
+ }
+
template <typename U>
void fill(U &&tensor, int i)
{
@@ -119,6 +130,7 @@ protected:
library->fill(tensor, distribution, i);
break;
}
+ case DataType::BFLOAT16:
case DataType::F16:
case DataType::F32:
{
@@ -155,7 +167,7 @@ protected:
TensorType src = create_tensor<TensorType>(input_shape, _data_type, 1, _quantization_info, _data_layout);
TensorType weights = create_tensor<TensorType>(reshaped_weights_shape, _weights_data_type, 1, _weight_quantization_info, _data_layout);
TensorType bias = create_tensor<TensorType>(bias_shape, _bias_data_type, 1, _quantization_info, _data_layout);
- TensorType dst = create_tensor<TensorType>(output_shape, _data_type, 1, _quantization_info, _data_layout);
+ TensorType dst = create_tensor<TensorType>(output_shape, _output_data_type, 1, _quantization_info, _data_layout);
// Create and configure function
FunctionType conv;
@@ -195,16 +207,27 @@ protected:
const unsigned int num_groups = input_shape[2] / weights_shape[2];
+ // Setup reference data types
+ const DataType src_dt = _is_bfloat16 ? DataType::F32 : _data_type;
+ const DataType weights_dt = _is_bfloat16 ? DataType::F32 : _weights_data_type;
+ const DataType bias_dt = _is_bfloat16 ? DataType::F32 : _bias_data_type;
+
// Create reference
- SimpleTensor<T> src{ input_shape, _data_type, 1, _quantization_info };
- SimpleTensor<TW> weights{ weights_shape, _weights_data_type, 1, _weight_quantization_info };
- SimpleTensor<TBias> bias{ bias_shape, _bias_data_type, 1, _quantization_info };
+ SimpleTensor<T> src{ input_shape, src_dt, 1, _quantization_info };
+ SimpleTensor<TW> weights{ weights_shape, weights_dt, 1, _weight_quantization_info };
+ SimpleTensor<TBias> bias{ bias_shape, bias_dt, 1, _quantization_info };
- // Fill reference
fill(src, 0);
fill(weights, 1);
fill(bias, 2);
+ // Fill with bfloat16 to perform the conversion and reduce the mismatches in the output
+ if(_is_bfloat16)
+ {
+ regularize_values(static_cast<void *>(src.data()), src.num_elements());
+ regularize_values(static_cast<void *>(weights.data()), weights.num_elements());
+ }
+
return (act_info.enabled()) ? reference::activation_layer<T>(reference::convolution_layer<T>(src, weights, bias, output_shape, info, dilation, num_groups),
act_info) :
reference::convolution_layer<T>(src, weights, bias, output_shape, info, dilation, num_groups);
@@ -215,10 +238,12 @@ protected:
DataType _data_type{};
DataType _weights_data_type{};
DataType _bias_data_type{};
+ DataType _output_data_type{};
DataLayout _data_layout{};
QuantizationInfo _quantization_info{};
QuantizationInfo _weight_quantization_info{};
bool _is_quantized = false;
+ bool _is_bfloat16 = false;
};
template <typename TensorType, typename AccessorType, typename FunctionType, typename T>