From be13cead34e566bdd561ad3ffc3f645b460e482e Mon Sep 17 00:00:00 2001 From: Michael Tyler Date: Tue, 17 Jan 2023 11:04:14 +0000 Subject: Revert "Update CPU kernels to remove x19" This reverts commit 3c59f01c209d2732a15d97d65565ead964787a8b. Resolves: COMPMID-5817 Change-Id: Ie2443a21854a95db1e3d0cafa2121c0187a5e237 Signed-off-by: Michael Tyler Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/8974 Comments-Addressed: Arm Jenkins Tested-by: Arm Jenkins Reviewed-by: Gian Marco Iodice Benchmark: Arm Jenkins --- .../kernels/sve_ffhybrid_fp32_mla_6x4VL/a64fx.cpp | 1508 ++++++++++---------- 1 file changed, 754 insertions(+), 754 deletions(-) (limited to 'src/core/NEON/kernels/arm_gemm/kernels/sve_ffhybrid_fp32_mla_6x4VL/a64fx.cpp') diff --git a/src/core/NEON/kernels/arm_gemm/kernels/sve_ffhybrid_fp32_mla_6x4VL/a64fx.cpp b/src/core/NEON/kernels/arm_gemm/kernels/sve_ffhybrid_fp32_mla_6x4VL/a64fx.cpp index 32fcac3a45..7dd4e234d5 100644 --- a/src/core/NEON/kernels/arm_gemm/kernels/sve_ffhybrid_fp32_mla_6x4VL/a64fx.cpp +++ b/src/core/NEON/kernels/arm_gemm/kernels/sve_ffhybrid_fp32_mla_6x4VL/a64fx.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022-2023 Arm Limited. + * Copyright (c) 2022 Arm Limited. * * SPDX-License-Identifier: MIT * @@ -10,16 +10,16 @@ * 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 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. + * 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_COMPUTE_ENABLE_SVE @@ -105,53 +105,53 @@ void sve_ffhybrid_fp32_mla_6x4VL_a64fx ( "cmp %x[M], #0x2\n" "bgt 27f\n" "beq 14f\n" - "ldr x20, [%x[args_ptr], %[offsetof_B_ptr]]\n" - "mov x15, %x[bias]\n" - "ldr x14, [%x[args_ptr], %[offsetof_N]]\n" - "str x20, [%x[args_ptr], %[offsetof_cur_B_ptr]]\n" - "mov x13, %x[output_ptr]\n" + "ldr x19, [%x[args_ptr], %[offsetof_B_ptr]]\n" + "mov x14, %x[bias]\n" + "ldr x13, [%x[args_ptr], %[offsetof_N]]\n" + "str x19, [%x[args_ptr], %[offsetof_cur_B_ptr]]\n" + "mov x12, %x[output_ptr]\n" "2:" // Height 1: Column loop - "ldr x12, [%x[args_ptr], %[offsetof_cur_B_ptr]]\n" - "ldr x20, [%x[args_ptr], %[offsetof_B_stride]]\n" - "add x11, x12, x20, LSL #2\n" - "cntw x21, ALL, MUL #3\n" - "add x10, x11, x20, LSL #2\n" - "add x9, x10, x20, LSL #2\n" - "add x20, x9, x20, LSL #2\n" - "cmp x14, x21\n" - "str x20, [%x[args_ptr], %[offsetof_cur_B_ptr]]\n" + "ldr x11, [%x[args_ptr], %[offsetof_cur_B_ptr]]\n" + "ldr x19, [%x[args_ptr], %[offsetof_B_stride]]\n" + "add x10, x11, x19, LSL #2\n" + "cntw x20, ALL, MUL #3\n" + "add x9, x10, x19, LSL #2\n" + "add x28, x9, x19, LSL #2\n" + "add x19, x28, x19, LSL #2\n" + "cmp x13, x20\n" + "str x19, [%x[args_ptr], %[offsetof_cur_B_ptr]]\n" "bgt 3f\n" - "decw x21\n" - "cmp x14, x21\n" - "mov x9, x12\n" + "decw x20\n" + "cmp x13, x20\n" + "mov x28, x11\n" "bgt 3f\n" - "decw x21\n" - "cmp x14, x21\n" - "mov x10, x12\n" + "decw x20\n" + "cmp x13, x20\n" + "mov x9, x11\n" "bgt 3f\n" - "mov x11, x12\n" + "mov x10, x11\n" "3:" // Height 1: B setup done - "mov x20, #0x0\n" - "whilelt p3.s, x20, x14\n" - "incw x20\n" - "whilelt p2.s, x20, x14\n" - "incw x20\n" - "whilelt p1.s, x20, x14\n" - "incw x20\n" - "whilelt p0.s, x20, x14\n" - "cbz x15, 4f\n" - "ld1w { z8.s }, p4/Z, [x15]\n" - "ld1w { z9.s }, p4/Z, [x15, #1, MUL VL]\n" - "ld1w { z10.s }, p4/Z, [x15, #2, MUL VL]\n" - "ld1w { z11.s }, p4/Z, [x15, #3, MUL VL]\n" - "addvl x15, x15, #4\n" + "mov x19, #0x0\n" + "whilelt p3.s, x19, x13\n" + "incw x19\n" + "whilelt p2.s, x19, x13\n" + "incw x19\n" + "whilelt p1.s, x19, x13\n" + "incw x19\n" + "whilelt p0.s, x19, x13\n" + "cbz x14, 4f\n" + "ld1w { z8.s }, p4/Z, [x14]\n" + "ld1w { z9.s }, p4/Z, [x14, #1, MUL VL]\n" + "ld1w { z10.s }, p4/Z, [x14, #2, MUL VL]\n" + "ld1w { z11.s }, p4/Z, [x14, #3, MUL VL]\n" + "addvl x14, x14, #4\n" "b 6f\n" "4:" // Height 1: no bias "tbz %x[flags], #0, 5f\n" - "ld1w { z8.s }, p3/Z, [x13]\n" - "ld1w { z9.s }, p2/Z, [x13, #1, MUL VL]\n" - "ld1w { z10.s }, p1/Z, [x13, #2, MUL VL]\n" - "ld1w { z11.s }, p0/Z, [x13, #3, MUL VL]\n" + "ld1w { z8.s }, p3/Z, [x12]\n" + "ld1w { z9.s }, p2/Z, [x12, #1, MUL VL]\n" + "ld1w { z10.s }, p1/Z, [x12, #2, MUL VL]\n" + "ld1w { z11.s }, p0/Z, [x12, #3, MUL VL]\n" "b 6f\n" "5:" // Height 1: no accumulate "mov z8.b, #0x0\n" @@ -159,64 +159,64 @@ void sve_ffhybrid_fp32_mla_6x4VL_a64fx ( "mov z10.b, #0x0\n" "mov z11.b, #0x0\n" "6:" // Height 1: setup done - "mov x28, #0x0\n" + "mov x27, #0x0\n" "7:" // Height 1: String loop - "ldr x20, [%x[args_ptr], %[offsetof_string_lengths]]\n" - "ldr w27, [x20, x28, LSL #0x2]\n" - "ldr x20, [%x[args_ptr], %[offsetof_input_offset]]\n" + "ldr x19, [%x[args_ptr], %[offsetof_string_lengths]]\n" + "ldr w26, [x19, x27, LSL #0x2]\n" + "ldr x19, [%x[args_ptr], %[offsetof_input_offset]]\n" "tbz %x[flags], #3, 8f\n" - "ldr x21, [%x[input_ptr], x28, LSL #0x3]\n" - "add x21, x21, x20, LSL #3\n" - "ldr x26, [x21, #0x0]\n" - "cbnz x28, 9f\n" - "ldr x20, [%x[args_ptr], %[offsetof_input_initial_col]]\n" - "add x26, x26, x20, LSL #2\n" + "ldr x20, [%x[input_ptr], x27, LSL #0x3]\n" + "add x20, x20, x19, LSL #3\n" + "ldr x25, [x20, #0x0]\n" + "cbnz x27, 9f\n" + "ldr x19, [%x[args_ptr], %[offsetof_input_initial_col]]\n" + "add x25, x25, x19, LSL #2\n" "b 9f\n" "8:" // Height 1: setup direct input - "mov x26, %x[input_ptr]\n" + "mov x25, %x[input_ptr]\n" "9:" // Height 1: input setup done - "subs x27, x27, #0x1\n" - "ld1rw { z0.s }, p4/Z, [x26]\n" - "ld1w { z6.s }, p4/Z, [x12]\n" - "ld1w { z7.s }, p4/Z, [x11]\n" + "subs x26, x26, #0x1\n" + "ld1rw { z0.s }, p4/Z, [x25]\n" + "ld1w { z6.s }, p4/Z, [x11]\n" + "ld1w { z7.s }, p4/Z, [x10]\n" "ble 11f\n" "10:" // Height 1: Multiply loop: Main loop "fmla z8.s, p4/M, z6.s, z0.s\n" "fmla z9.s, p4/M, z7.s, z0.s\n" - "ld1w { z6.s }, p4/Z, [x10]\n" - "ld1w { z7.s }, p4/Z, [x9]\n" - "addvl x12, x12, #1\n" + "ld1w { z6.s }, p4/Z, [x9]\n" + "ld1w { z7.s }, p4/Z, [x28]\n" "addvl x11, x11, #1\n" + "addvl x10, x10, #1\n" "fmla z10.s, p4/M, z6.s, z0.s\n" "fmla z11.s, p4/M, z7.s, z0.s\n" - "add x26, x26, #0x4\n" - "subs x27, x27, #0x1\n" - "ld1rw { z0.s }, p4/Z, [x26]\n" - "ld1w { z6.s }, p4/Z, [x12]\n" - "addvl x10, x10, #1\n" + "add x25, x25, #0x4\n" + "subs x26, x26, #0x1\n" + "ld1rw { z0.s }, p4/Z, [x25]\n" + "ld1w { z6.s }, p4/Z, [x11]\n" "addvl x9, x9, #1\n" - "ld1w { z7.s }, p4/Z, [x11]\n" + "addvl x28, x28, #1\n" + "ld1w { z7.s }, p4/Z, [x10]\n" "bgt 10b\n" "11:" // Height 1: Multiply loop: Main loop skip - "ldr w20, [%x[args_ptr], %[offsetof_num_strings]]\n" + "ldr w19, [%x[args_ptr], %[offsetof_num_strings]]\n" "fmla z8.s, p4/M, z6.s, z0.s\n" "fmla z9.s, p4/M, z7.s, z0.s\n" - "ld1w { z6.s }, p4/Z, [x10]\n" - "ld1w { z7.s }, p4/Z, [x9]\n" - "add x28, x28, #0x1\n" - "cmp x28, x20\n" + "ld1w { z6.s }, p4/Z, [x9]\n" + "ld1w { z7.s }, p4/Z, [x28]\n" + "add x27, x27, #0x1\n" + "cmp x27, x19\n" "fmla z10.s, p4/M, z6.s, z0.s\n" "fmla z11.s, p4/M, z7.s, z0.s\n" - "addvl x12, x12, #1\n" "addvl x11, x11, #1\n" "addvl x10, x10, #1\n" "addvl x9, x9, #1\n" + "addvl x28, x28, #1\n" "bne 7b\n" "tbz %x[flags], #1, 12f\n" - "add x20, %x[args_ptr], %[offset_max]\n" - "ld1rw { z1.s }, p4/Z, [x20]\n" - "add x20, %x[args_ptr], %[offset_min]\n" - "ld1rw { z0.s }, p4/Z, [x20]\n" + "add x19, %x[args_ptr], %[offset_max]\n" + "ld1rw { z1.s }, p4/Z, [x19]\n" + "add x19, %x[args_ptr], %[offset_min]\n" + "ld1rw { z0.s }, p4/Z, [x19]\n" "fmin z8.s, p4/M, z8.s, z1.s\n" "fmin z9.s, p4/M, z9.s, z1.s\n" "fmin z10.s, p4/M, z10.s, z1.s\n" @@ -226,74 +226,74 @@ void sve_ffhybrid_fp32_mla_6x4VL_a64fx ( "fmax z10.s, p4/M, z10.s, z0.s\n" "fmax z11.s, p4/M, z11.s, z0.s\n" "12:" // Height 1: No activation - "st1w { z8.s }, p3, [x13]\n" - "st1w { z9.s }, p2, [x13, #1, MUL VL]\n" - "st1w { z10.s }, p1, [x13, #2, MUL VL]\n" - "st1w { z11.s }, p0, [x13, #3, MUL VL]\n" - "addvl x13, x13, #4\n" + "st1w { z8.s }, p3, [x12]\n" + "st1w { z9.s }, p2, [x12, #1, MUL VL]\n" + "st1w { z10.s }, p1, [x12, #2, MUL VL]\n" + "st1w { z11.s }, p0, [x12, #3, MUL VL]\n" + "addvl x12, x12, #4\n" "13:" // Height 1: Writeback done - "decw x14, ALL, MUL #4\n" - "cmp x14, XZR\n" + "decw x13, ALL, MUL #4\n" + "cmp x13, XZR\n" "bgt 2b\n" "b 80f\n" "14:" // Height 2 - "ldr x20, [%x[args_ptr], %[offsetof_B_ptr]]\n" - "mov x15, %x[bias]\n" - "ldr x14, [%x[args_ptr], %[offsetof_N]]\n" - "str x20, [%x[args_ptr], %[offsetof_cur_B_ptr]]\n" - "mov x13, %x[output_ptr]\n" + "ldr x19, [%x[args_ptr], %[offsetof_B_ptr]]\n" + "mov x14, %x[bias]\n" + "ldr x13, [%x[args_ptr], %[offsetof_N]]\n" + "str x19, [%x[args_ptr], %[offsetof_cur_B_ptr]]\n" + "mov x12, %x[output_ptr]\n" "15:" // Height 2: Column loop - "ldr x12, [%x[args_ptr], %[offsetof_cur_B_ptr]]\n" - "ldr x20, [%x[args_ptr], %[offsetof_B_stride]]\n" - "add x11, x12, x20, LSL #2\n" - "cntw x21, ALL, MUL #3\n" - "add x10, x11, x20, LSL #2\n" - "add x9, x10, x20, LSL #2\n" - "add x20, x9, x20, LSL #2\n" - "cmp x14, x21\n" - "str x20, [%x[args_ptr], %[offsetof_cur_B_ptr]]\n" + "ldr x11, [%x[args_ptr], %[offsetof_cur_B_ptr]]\n" + "ldr x19, [%x[args_ptr], %[offsetof_B_stride]]\n" + "add x10, x11, x19, LSL #2\n" + "cntw x20, ALL, MUL #3\n" + "add x9, x10, x19, LSL #2\n" + "add x28, x9, x19, LSL #2\n" + "add x19, x28, x19, LSL #2\n" + "cmp x13, x20\n" + "str x19, [%x[args_ptr], %[offsetof_cur_B_ptr]]\n" "bgt 16f\n" - "decw x21\n" - "cmp x14, x21\n" - "mov x9, x12\n" + "decw x20\n" + "cmp x13, x20\n" + "mov x28, x11\n" "bgt 16f\n" - "decw x21\n" - "cmp x14, x21\n" - "mov x10, x12\n" + "decw x20\n" + "cmp x13, x20\n" + "mov x9, x11\n" "bgt 16f\n" - "mov x11, x12\n" + "mov x10, x11\n" "16:" // Height 2: B setup done - "mov x20, #0x0\n" - "whilelt p3.s, x20, x14\n" - "incw x20\n" - "whilelt p2.s, x20, x14\n" - "incw x20\n" - "whilelt p1.s, x20, x14\n" - "incw x20\n" - "whilelt p0.s, x20, x14\n" - "cbz x15, 17f\n" - "ld1w { z8.s }, p4/Z, [x15]\n" - "ld1w { z9.s }, p4/Z, [x15, #1, MUL VL]\n" + "mov x19, #0x0\n" + "whilelt p3.s, x19, x13\n" + "incw x19\n" + "whilelt p2.s, x19, x13\n" + "incw x19\n" + "whilelt p1.s, x19, x13\n" + "incw x19\n" + "whilelt p0.s, x19, x13\n" + "cbz x14, 17f\n" + "ld1w { z8.s }, p4/Z, [x14]\n" + "ld1w { z9.s }, p4/Z, [x14, #1, MUL VL]\n" "mov z12.d, z8.d\n" "mov z13.d, z9.d\n" - "ld1w { z10.s }, p4/Z, [x15, #2, MUL VL]\n" - "ld1w { z11.s }, p4/Z, [x15, #3, MUL VL]\n" + "ld1w { z10.s }, p4/Z, [x14, #2, MUL VL]\n" + "ld1w { z11.s }, p4/Z, [x14, #3, MUL VL]\n" "mov z14.d, z10.d\n" "mov z15.d, z11.d\n" - "addvl x15, x15, #4\n" + "addvl x14, x14, #4\n" "b 19f\n" "17:" // Height 2: no bias "tbz %x[flags], #0, 18f\n" - "ldr x20, [%x[args_ptr], %[offsetof_output_offset]]\n" - "add x25, x13, x20, LSL #2\n" - "ld1w { z8.s }, p3/Z, [x13]\n" - "ld1w { z9.s }, p2/Z, [x13, #1, MUL VL]\n" - "ld1w { z10.s }, p1/Z, [x13, #2, MUL VL]\n" - "ld1w { z11.s }, p0/Z, [x13, #3, MUL VL]\n" - "ld1w { z12.s }, p3/Z, [x25]\n" - "ld1w { z13.s }, p2/Z, [x25, #1, MUL VL]\n" - "ld1w { z14.s }, p1/Z, [x25, #2, MUL VL]\n" - "ld1w { z15.s }, p0/Z, [x25, #3, MUL VL]\n" + "ldr x19, [%x[args_ptr], %[offsetof_output_offset]]\n" + "add x24, x12, x19, LSL #2\n" + "ld1w { z8.s }, p3/Z, [x12]\n" + "ld1w { z9.s }, p2/Z, [x12, #1, MUL VL]\n" + "ld1w { z10.s }, p1/Z, [x12, #2, MUL VL]\n" + "ld1w { z11.s }, p0/Z, [x12, #3, MUL VL]\n" + "ld1w { z12.s }, p3/Z, [x24]\n" + "ld1w { z13.s }, p2/Z, [x24, #1, MUL VL]\n" + "ld1w { z14.s }, p1/Z, [x24, #2, MUL VL]\n" + "ld1w { z15.s }, p0/Z, [x24, #3, MUL VL]\n" "b 19f\n" "18:" // Height 2: no accumulate "mov z8.b, #0x0\n" @@ -305,80 +305,80 @@ void sve_ffhybrid_fp32_mla_6x4VL_a64fx ( "mov z14.b, #0x0\n" "mov z15.b, #0x0\n" "19:" // Height 2: setup done - "mov x28, #0x0\n" + "mov x27, #0x0\n" "20:" // Height 2: String loop - "ldr x20, [%x[args_ptr], %[offsetof_string_lengths]]\n" - "ldr w27, [x20, x28, LSL #0x2]\n" - "ldr x20, [%x[args_ptr], %[offsetof_input_offset]]\n" + "ldr x19, [%x[args_ptr], %[offsetof_string_lengths]]\n" + "ldr w26, [x19, x27, LSL #0x2]\n" + "ldr x19, [%x[args_ptr], %[offsetof_input_offset]]\n" "tbz %x[flags], #3, 21f\n" - "ldr x21, [%x[input_ptr], x28, LSL #0x3]\n" - "add x21, x21, x20, LSL #3\n" - "ldr x26, [x21, #0x0]\n" - "ldr x25, [x21, #0x8]\n" - "cbnz x28, 22f\n" - "ldr x20, [%x[args_ptr], %[offsetof_input_initial_col]]\n" - "add x26, x26, x20, LSL #2\n" - "add x25, x25, x20, LSL #2\n" + "ldr x20, [%x[input_ptr], x27, LSL #0x3]\n" + "add x20, x20, x19, LSL #3\n" + "ldr x25, [x20, #0x0]\n" + "ldr x24, [x20, #0x8]\n" + "cbnz x27, 22f\n" + "ldr x19, [%x[args_ptr], %[offsetof_input_initial_col]]\n" + "add x25, x25, x19, LSL #2\n" + "add x24, x24, x19, LSL #2\n" "b 22f\n" "21:" // Height 2: setup direct input - "mov x26, %x[input_ptr]\n" - "add x25, x26, x20, LSL #2\n" + "mov x25, %x[input_ptr]\n" + "add x24, x25, x19, LSL #2\n" "22:" // Height 2: input setup done - "subs x27, x27, #0x1\n" - "ld1rw { z0.s }, p4/Z, [x26]\n" - "ld1rw { z1.s }, p4/Z, [x25]\n" - "ld1w { z6.s }, p4/Z, [x12]\n" - "ld1w { z7.s }, p4/Z, [x11]\n" + "subs x26, x26, #0x1\n" + "ld1rw { z0.s }, p4/Z, [x25]\n" + "ld1rw { z1.s }, p4/Z, [x24]\n" + "ld1w { z6.s }, p4/Z, [x11]\n" + "ld1w { z7.s }, p4/Z, [x10]\n" "ble 24f\n" "23:" // Height 2: Multiply loop: Main loop "fmla z8.s, p4/M, z6.s, z0.s\n" "fmla z12.s, p4/M, z6.s, z1.s\n" - "ld1w { z6.s }, p4/Z, [x10]\n" - "addvl x12, x12, #1\n" + "ld1w { z6.s }, p4/Z, [x9]\n" + "addvl x11, x11, #1\n" "fmla z9.s, p4/M, z7.s, z0.s\n" "fmla z13.s, p4/M, z7.s, z1.s\n" - "ld1w { z7.s }, p4/Z, [x9]\n" - "addvl x11, x11, #1\n" - "add x26, x26, #0x4\n" - "subs x27, x27, #0x1\n" + "ld1w { z7.s }, p4/Z, [x28]\n" + "addvl x10, x10, #1\n" + "add x25, x25, #0x4\n" + "subs x26, x26, #0x1\n" "fmla z10.s, p4/M, z6.s, z0.s\n" "fmla z14.s, p4/M, z6.s, z1.s\n" - "add x25, x25, #0x4\n" + "add x24, x24, #0x4\n" "fmla z11.s, p4/M, z7.s, z0.s\n" "fmla z15.s, p4/M, z7.s, z1.s\n" - "addvl x10, x10, #1\n" - "ld1rw { z0.s }, p4/Z, [x26]\n" - "ld1rw { z1.s }, p4/Z, [x25]\n" "addvl x9, x9, #1\n" - "ld1w { z6.s }, p4/Z, [x12]\n" - "ld1w { z7.s }, p4/Z, [x11]\n" + "ld1rw { z0.s }, p4/Z, [x25]\n" + "ld1rw { z1.s }, p4/Z, [x24]\n" + "addvl x28, x28, #1\n" + "ld1w { z6.s }, p4/Z, [x11]\n" + "ld1w { z7.s }, p4/Z, [x10]\n" "bgt 23b\n" "24:" // Height 2: Multiply loop: Main loop skip - "ldr w20, [%x[args_ptr], %[offsetof_num_strings]]\n" + "ldr w19, [%x[args_ptr], %[offsetof_num_strings]]\n" "fmla z8.s, p4/M, z6.s, z0.s\n" "fmla z12.s, p4/M, z6.s, z1.s\n" - "ld1w { z6.s }, p4/Z, [x10]\n" + "ld1w { z6.s }, p4/Z, [x9]\n" "fmla z9.s, p4/M, z7.s, z0.s\n" "fmla z13.s, p4/M, z7.s, z1.s\n" - "ld1w { z7.s }, p4/Z, [x9]\n" - "add x28, x28, #0x1\n" - "cmp x28, x20\n" + "ld1w { z7.s }, p4/Z, [x28]\n" + "add x27, x27, #0x1\n" + "cmp x27, x19\n" "fmla z10.s, p4/M, z6.s, z0.s\n" "fmla z14.s, p4/M, z6.s, z1.s\n" - "addvl x12, x12, #1\n" "addvl x11, x11, #1\n" + "addvl x10, x10, #1\n" "fmla z11.s, p4/M, z7.s, z0.s\n" "fmla z15.s, p4/M, z7.s, z1.s\n" - "addvl x10, x10, #1\n" "addvl x9, x9, #1\n" + "addvl x28, x28, #1\n" "bne 20b\n" - "ldr x20, [%x[args_ptr], %[offsetof_output_offset]]\n" - "add x25, x13, x20, LSL #2\n" + "ldr x19, [%x[args_ptr], %[offsetof_output_offset]]\n" + "add x24, x12, x19, LSL #2\n" "tbz %x[flags], #1, 25f\n" - "add x20, %x[args_ptr], %[offset_max]\n" - "ld1rw { z1.s }, p4/Z, [x20]\n" - "add x20, %x[args_ptr], %[offset_min]\n" - "ld1rw { z0.s }, p4/Z, [x20]\n" + "add x19, %x[args_ptr], %[offset_max]\n" + "ld1rw { z1.s }, p4/Z, [x19]\n" + "add x19, %x[args_ptr], %[offset_min]\n" + "ld1rw { z0.s }, p4/Z, [x19]\n" "fmin z8.s, p4/M, z8.s, z1.s\n" "fmin z9.s, p4/M, z9.s, z1.s\n" "fmin z10.s, p4/M, z10.s, z1.s\n" @@ -396,87 +396,87 @@ void sve_ffhybrid_fp32_mla_6x4VL_a64fx ( "fmax z14.s, p4/M, z14.s, z0.s\n" "fmax z15.s, p4/M, z15.s, z0.s\n" "25:" // Height 2: No activation - "st1w { z8.s }, p3, [x13]\n" - "st1w { z9.s }, p2, [x13, #1, MUL VL]\n" - "st1w { z10.s }, p1, [x13, #2, MUL VL]\n" - "st1w { z11.s }, p0, [x13, #3, MUL VL]\n" - "addvl x13, x13, #4\n" - "st1w { z12.s }, p3, [x25]\n" - "st1w { z13.s }, p2, [x25, #1, MUL VL]\n" - "st1w { z14.s }, p1, [x25, #2, MUL VL]\n" - "st1w { z15.s }, p0, [x25, #3, MUL VL]\n" + "st1w { z8.s }, p3, [x12]\n" + "st1w { z9.s }, p2, [x12, #1, MUL VL]\n" + "st1w { z10.s }, p1, [x12, #2, MUL VL]\n" + "st1w { z11.s }, p0, [x12, #3, MUL VL]\n" + "addvl x12, x12, #4\n" + "st1w { z12.s }, p3, [x24]\n" + "st1w { z13.s }, p2, [x24, #1, MUL VL]\n" + "st1w { z14.s }, p1, [x24, #2, MUL VL]\n" + "st1w { z15.s }, p0, [x24, #3, MUL VL]\n" "26:" // Height 2: Writeback done - "decw x14, ALL, MUL #4\n" - "cmp x14, XZR\n" + "decw x13, ALL, MUL #4\n" + "cmp x13, XZR\n" "bgt 15b\n" "b 80f\n" "27:" // Height 3 - "ldr x20, [%x[args_ptr], %[offsetof_B_ptr]]\n" - "mov x15, %x[bias]\n" - "ldr x14, [%x[args_ptr], %[offsetof_N]]\n" - "str x20, [%x[args_ptr], %[offsetof_cur_B_ptr]]\n" - "mov x13, %x[output_ptr]\n" + "ldr x19, [%x[args_ptr], %[offsetof_B_ptr]]\n" + "mov x14, %x[bias]\n" + "ldr x13, [%x[args_ptr], %[offsetof_N]]\n" + "str x19, [%x[args_ptr], %[offsetof_cur_B_ptr]]\n" + "mov x12, %x[output_ptr]\n" "28:" // Height 3: Column loop - "ldr x12, [%x[args_ptr], %[offsetof_cur_B_ptr]]\n" - "ldr x20, [%x[args_ptr], %[offsetof_B_stride]]\n" - "add x11, x12, x20, LSL #2\n" - "cntw x21, ALL, MUL #3\n" - "add x10, x11, x20, LSL #2\n" - "add x9, x10, x20, LSL #2\n" - "add x20, x9, x20, LSL #2\n" - "cmp x14, x21\n" - "str x20, [%x[args_ptr], %[offsetof_cur_B_ptr]]\n" + "ldr x11, [%x[args_ptr], %[offsetof_cur_B_ptr]]\n" + "ldr x19, [%x[args_ptr], %[offsetof_B_stride]]\n" + "add x10, x11, x19, LSL #2\n" + "cntw x20, ALL, MUL #3\n" + "add x9, x10, x19, LSL #2\n" + "add x28, x9, x19, LSL #2\n" + "add x19, x28, x19, LSL #2\n" + "cmp x13, x20\n" + "str x19, [%x[args_ptr], %[offsetof_cur_B_ptr]]\n" "bgt 29f\n" - "decw x21\n" - "cmp x14, x21\n" - "mov x9, x12\n" + "decw x20\n" + "cmp x13, x20\n" + "mov x28, x11\n" "bgt 29f\n" - "decw x21\n" - "cmp x14, x21\n" - "mov x10, x12\n" + "decw x20\n" + "cmp x13, x20\n" + "mov x9, x11\n" "bgt 29f\n" - "mov x11, x12\n" + "mov x10, x11\n" "29:" // Height 3: B setup done - "mov x20, #0x0\n" - "whilelt p3.s, x20, x14\n" - "incw x20\n" - "whilelt p2.s, x20, x14\n" - "incw x20\n" - "whilelt p1.s, x20, x14\n" - "incw x20\n" - "whilelt p0.s, x20, x14\n" - "cbz x15, 30f\n" - "ld1w { z8.s }, p4/Z, [x15]\n" - "ld1w { z9.s }, p4/Z, [x15, #1, MUL VL]\n" + "mov x19, #0x0\n" + "whilelt p3.s, x19, x13\n" + "incw x19\n" + "whilelt p2.s, x19, x13\n" + "incw x19\n" + "whilelt p1.s, x19, x13\n" + "incw x19\n" + "whilelt p0.s, x19, x13\n" + "cbz x14, 30f\n" + "ld1w { z8.s }, p4/Z, [x14]\n" + "ld1w { z9.s }, p4/Z, [x14, #1, MUL VL]\n" "mov z12.d, z8.d\n" "mov z13.d, z9.d\n" - "ld1w { z10.s }, p4/Z, [x15, #2, MUL VL]\n" - "ld1w { z11.s }, p4/Z, [x15, #3, MUL VL]\n" + "ld1w { z10.s }, p4/Z, [x14, #2, MUL VL]\n" + "ld1w { z11.s }, p4/Z, [x14, #3, MUL VL]\n" "mov z14.d, z10.d\n" "mov z15.d, z11.d\n" "mov z16.d, z8.d\n" "mov z17.d, z9.d\n" - "addvl x15, x15, #4\n" + "addvl x14, x14, #4\n" "mov z18.d, z10.d\n" "mov z19.d, z11.d\n" "b 32f\n" "30:" // Height 3: no bias "tbz %x[flags], #0, 31f\n" - "ldr x20, [%x[args_ptr], %[offsetof_output_offset]]\n" - "add x25, x13, x20, LSL #2\n" - "add x24, x25, x20, LSL #2\n" - "ld1w { z8.s }, p3/Z, [x13]\n" - "ld1w { z9.s }, p2/Z, [x13, #1, MUL VL]\n" - "ld1w { z10.s }, p1/Z, [x13, #2, MUL VL]\n" - "ld1w { z11.s }, p0/Z, [x13, #3, MUL VL]\n" - "ld1w { z12.s }, p3/Z, [x25]\n" - "ld1w { z13.s }, p2/Z, [x25, #1, MUL VL]\n" - "ld1w { z14.s }, p1/Z, [x25, #2, MUL VL]\n" - "ld1w { z15.s }, p0/Z, [x25, #3, MUL VL]\n" - "ld1w { z16.s }, p3/Z, [x24]\n" - "ld1w { z17.s }, p2/Z, [x24, #1, MUL VL]\n" - "ld1w { z18.s }, p1/Z, [x24, #2, MUL VL]\n" - "ld1w { z19.s }, p0/Z, [x24, #3, MUL VL]\n" + "ldr x19, [%x[args_ptr], %[offsetof_output_offset]]\n" + "add x24, x12, x19, LSL #2\n" + "add x23, x24, x19, LSL #2\n" + "ld1w { z8.s }, p3/Z, [x12]\n" + "ld1w { z9.s }, p2/Z, [x12, #1, MUL VL]\n" + "ld1w { z10.s }, p1/Z, [x12, #2, MUL VL]\n" + "ld1w { z11.s }, p0/Z, [x12, #3, MUL VL]\n" + "ld1w { z12.s }, p3/Z, [x24]\n" + "ld1w { z13.s }, p2/Z, [x24, #1, MUL VL]\n" + "ld1w { z14.s }, p1/Z, [x24, #2, MUL VL]\n" + "ld1w { z15.s }, p0/Z, [x24, #3, MUL VL]\n" + "ld1w { z16.s }, p3/Z, [x23]\n" + "ld1w { z17.s }, p2/Z, [x23, #1, MUL VL]\n" + "ld1w { z18.s }, p1/Z, [x23, #2, MUL VL]\n" + "ld1w { z19.s }, p0/Z, [x23, #3, MUL VL]\n" "b 32f\n" "31:" // Height 3: no accumulate "mov z8.b, #0x0\n" @@ -492,95 +492,95 @@ void sve_ffhybrid_fp32_mla_6x4VL_a64fx ( "mov z18.b, #0x0\n" "mov z19.b, #0x0\n" "32:" // Height 3: setup done - "mov x28, #0x0\n" + "mov x27, #0x0\n" "33:" // Height 3: String loop - "ldr x20, [%x[args_ptr], %[offsetof_string_lengths]]\n" - "ldr w27, [x20, x28, LSL #0x2]\n" - "ldr x20, [%x[args_ptr], %[offsetof_input_offset]]\n" + "ldr x19, [%x[args_ptr], %[offsetof_string_lengths]]\n" + "ldr w26, [x19, x27, LSL #0x2]\n" + "ldr x19, [%x[args_ptr], %[offsetof_input_offset]]\n" "tbz %x[flags], #3, 34f\n" - "ldr x21, [%x[input_ptr], x28, LSL #0x3]\n" - "add x21, x21, x20, LSL #3\n" - "ldr x26, [x21, #0x0]\n" - "ldr x25, [x21, #0x8]\n" - "ldr x24, [x21, #0x10]\n" - "cbnz x28, 35f\n" - "ldr x20, [%x[args_ptr], %[offsetof_input_initial_col]]\n" - "add x26, x26, x20, LSL #2\n" - "add x25, x25, x20, LSL #2\n" - "add x24, x24, x20, LSL #2\n" + "ldr x20, [%x[input_ptr], x27, LSL #0x3]\n" + "add x20, x20, x19, LSL #3\n" + "ldr x25, [x20, #0x0]\n" + "ldr x24, [x20, #0x8]\n" + "ldr x23, [x20, #0x10]\n" + "cbnz x27, 35f\n" + "ldr x19, [%x[args_ptr], %[offsetof_input_initial_col]]\n" + "add x25, x25, x19, LSL #2\n" + "add x24, x24, x19, LSL #2\n" + "add x23, x23, x19, LSL #2\n" "b 35f\n" "34:" // Height 3: setup direct input - "mov x26, %x[input_ptr]\n" - "add x25, x26, x20, LSL #2\n" - "add x24, x25, x20, LSL #2\n" + "mov x25, %x[input_ptr]\n" + "add x24, x25, x19, LSL #2\n" + "add x23, x24, x19, LSL #2\n" "35:" // Height 3: input setup done - "subs x27, x27, #0x1\n" - "ld1rw { z0.s }, p4/Z, [x26]\n" - "ld1rw { z1.s }, p4/Z, [x25]\n" - "ld1rw { z2.s }, p4/Z, [x24]\n" - "ld1w { z6.s }, p4/Z, [x12]\n" - "ld1w { z7.s }, p4/Z, [x11]\n" + "subs x26, x26, #0x1\n" + "ld1rw { z0.s }, p4/Z, [x25]\n" + "ld1rw { z1.s }, p4/Z, [x24]\n" + "ld1rw { z2.s }, p4/Z, [x23]\n" + "ld1w { z6.s }, p4/Z, [x11]\n" + "ld1w { z7.s }, p4/Z, [x10]\n" "ble 37f\n" "36:" // Height 3: Multiply loop: Main loop "fmla z8.s, p4/M, z6.s, z0.s\n" "fmla z12.s, p4/M, z6.s, z1.s\n" - "addvl x12, x12, #1\n" "addvl x11, x11, #1\n" + "addvl x10, x10, #1\n" "fmla z16.s, p4/M, z6.s, z2.s\n" "fmla z9.s, p4/M, z7.s, z0.s\n" - "ld1w { z6.s }, p4/Z, [x10]\n" - "add x26, x26, #0x4\n" + "ld1w { z6.s }, p4/Z, [x9]\n" + "add x25, x25, #0x4\n" "fmla z13.s, p4/M, z7.s, z1.s\n" "fmla z17.s, p4/M, z7.s, z2.s\n" - "ld1w { z7.s }, p4/Z, [x9]\n" - "subs x27, x27, #0x1\n" - "add x25, x25, #0x4\n" + "ld1w { z7.s }, p4/Z, [x28]\n" + "subs x26, x26, #0x1\n" "add x24, x24, #0x4\n" + "add x23, x23, #0x4\n" "fmla z10.s, p4/M, z6.s, z0.s\n" "fmla z14.s, p4/M, z6.s, z1.s\n" "fmla z18.s, p4/M, z6.s, z2.s\n" "fmla z11.s, p4/M, z7.s, z0.s\n" - "addvl x10, x10, #1\n" "addvl x9, x9, #1\n" + "addvl x28, x28, #1\n" "fmla z15.s, p4/M, z7.s, z1.s\n" "fmla z19.s, p4/M, z7.s, z2.s\n" - "ld1rw { z0.s }, p4/Z, [x26]\n" - "ld1rw { z1.s }, p4/Z, [x25]\n" - "ld1rw { z2.s }, p4/Z, [x24]\n" - "ld1w { z6.s }, p4/Z, [x12]\n" - "ld1w { z7.s }, p4/Z, [x11]\n" + "ld1rw { z0.s }, p4/Z, [x25]\n" + "ld1rw { z1.s }, p4/Z, [x24]\n" + "ld1rw { z2.s }, p4/Z, [x23]\n" + "ld1w { z6.s }, p4/Z, [x11]\n" + "ld1w { z7.s }, p4/Z, [x10]\n" "bgt 36b\n" "37:" // Height 3: Multiply loop: Main loop skip - "ldr w20, [%x[args_ptr], %[offsetof_num_strings]]\n" + "ldr w19, [%x[args_ptr], %[offsetof_num_strings]]\n" "fmla z8.s, p4/M, z6.s, z0.s\n" "fmla z12.s, p4/M, z6.s, z1.s\n" - "add x28, x28, #0x1\n" + "add x27, x27, #0x1\n" "fmla z16.s, p4/M, z6.s, z2.s\n" "fmla z9.s, p4/M, z7.s, z0.s\n" - "ld1w { z6.s }, p4/Z, [x10]\n" - "cmp x28, x20\n" + "ld1w { z6.s }, p4/Z, [x9]\n" + "cmp x27, x19\n" "fmla z13.s, p4/M, z7.s, z1.s\n" "fmla z17.s, p4/M, z7.s, z2.s\n" - "ld1w { z7.s }, p4/Z, [x9]\n" - "addvl x12, x12, #1\n" + "ld1w { z7.s }, p4/Z, [x28]\n" + "addvl x11, x11, #1\n" "fmla z10.s, p4/M, z6.s, z0.s\n" "fmla z14.s, p4/M, z6.s, z1.s\n" - "addvl x11, x11, #1\n" "addvl x10, x10, #1\n" + "addvl x9, x9, #1\n" "fmla z18.s, p4/M, z6.s, z2.s\n" "fmla z11.s, p4/M, z7.s, z0.s\n" - "addvl x9, x9, #1\n" + "addvl x28, x28, #1\n" "fmla z15.s, p4/M, z7.s, z1.s\n" "fmla z19.s, p4/M, z7.s, z2.s\n" "bne 33b\n" - "ldr x20, [%x[args_ptr], %[offsetof_output_offset]]\n" - "add x25, x13, x20, LSL #2\n" - "add x24, x25, x20, LSL #2\n" + "ldr x19, [%x[args_ptr], %[offsetof_output_offset]]\n" + "add x24, x12, x19, LSL #2\n" + "add x23, x24, x19, LSL #2\n" "tbz %x[flags], #1, 38f\n" - "add x20, %x[args_ptr], %[offset_max]\n" - "ld1rw { z1.s }, p4/Z, [x20]\n" - "add x20, %x[args_ptr], %[offset_min]\n" - "ld1rw { z0.s }, p4/Z, [x20]\n" + "add x19, %x[args_ptr], %[offset_max]\n" + "ld1rw { z1.s }, p4/Z, [x19]\n" + "add x19, %x[args_ptr], %[offset_min]\n" + "ld1rw { z0.s }, p4/Z, [x19]\n" "fmin z8.s, p4/M, z8.s, z1.s\n" "fmin z9.s, p4/M, z9.s, z1.s\n" "fmin z10.s, p4/M, z10.s, z1.s\n" @@ -606,71 +606,71 @@ void sve_ffhybrid_fp32_mla_6x4VL_a64fx ( "fmax z18.s, p4/M, z18.s, z0.s\n" "fmax z19.s, p4/M, z19.s, z0.s\n" "38:" // Height 3: No activation - "st1w { z8.s }, p3, [x13]\n" - "st1w { z9.s }, p2, [x13, #1, MUL VL]\n" - "st1w { z10.s }, p1, [x13, #2, MUL VL]\n" - "st1w { z11.s }, p0, [x13, #3, MUL VL]\n" - "addvl x13, x13, #4\n" - "st1w { z12.s }, p3, [x25]\n" - "st1w { z13.s }, p2, [x25, #1, MUL VL]\n" - "st1w { z14.s }, p1, [x25, #2, MUL VL]\n" - "st1w { z15.s }, p0, [x25, #3, MUL VL]\n" - "st1w { z16.s }, p3, [x24]\n" - "st1w { z17.s }, p2, [x24, #1, MUL VL]\n" - "st1w { z18.s }, p1, [x24, #2, MUL VL]\n" - "st1w { z19.s }, p0, [x24, #3, MUL VL]\n" + "st1w { z8.s }, p3, [x12]\n" + "st1w { z9.s }, p2, [x12, #1, MUL VL]\n" + "st1w { z10.s }, p1, [x12, #2, MUL VL]\n" + "st1w { z11.s }, p0, [x12, #3, MUL VL]\n" + "addvl x12, x12, #4\n" + "st1w { z12.s }, p3, [x24]\n" + "st1w { z13.s }, p2, [x24, #1, MUL VL]\n" + "st1w { z14.s }, p1, [x24, #2, MUL VL]\n" + "st1w { z15.s }, p0, [x24, #3, MUL VL]\n" + "st1w { z16.s }, p3, [x23]\n" + "st1w { z17.s }, p2, [x23, #1, MUL VL]\n" + "st1w { z18.s }, p1, [x23, #2, MUL VL]\n" + "st1w { z19.s }, p0, [x23, #3, MUL VL]\n" "39:" // Height 3: Writeback done - "decw x14, ALL, MUL #4\n" - "cmp x14, XZR\n" + "decw x13, ALL, MUL #4\n" + "cmp x13, XZR\n" "bgt 28b\n" "b 80f\n" "40:" // Height 4 - "ldr x20, [%x[args_ptr], %[offsetof_B_ptr]]\n" - "mov x15, %x[bias]\n" - "ldr x14, [%x[args_ptr], %[offsetof_N]]\n" - "str x20, [%x[args_ptr], %[offsetof_cur_B_ptr]]\n" - "mov x13, %x[output_ptr]\n" + "ldr x19, [%x[args_ptr], %[offsetof_B_ptr]]\n" + "mov x14, %x[bias]\n" + "ldr x13, [%x[args_ptr], %[offsetof_N]]\n" + "str x19, [%x[args_ptr], %[offsetof_cur_B_ptr]]\n" + "mov x12, %x[output_ptr]\n" "41:" // Height 4: Column loop - "ldr x12, [%x[args_ptr], %[offsetof_cur_B_ptr]]\n" - "ldr x20, [%x[args_ptr], %[offsetof_B_stride]]\n" - "add x11, x12, x20, LSL #2\n" - "cntw x21, ALL, MUL #3\n" - "add x10, x11, x20, LSL #2\n" - "add x9, x10, x20, LSL #2\n" - "add x20, x9, x20, LSL #2\n" - "cmp x14, x21\n" - "str x20, [%x[args_ptr], %[offsetof_cur_B_ptr]]\n" + "ldr x11, [%x[args_ptr], %[offsetof_cur_B_ptr]]\n" + "ldr x19, [%x[args_ptr], %[offsetof_B_stride]]\n" + "add x10, x11, x19, LSL #2\n" + "cntw x20, ALL, MUL #3\n" + "add x9, x10, x19, LSL #2\n" + "add x28, x9, x19, LSL #2\n" + "add x19, x28, x19, LSL #2\n" + "cmp x13, x20\n" + "str x19, [%x[args_ptr], %[offsetof_cur_B_ptr]]\n" "bgt 42f\n" - "decw x21\n" - "cmp x14, x21\n" - "mov x9, x12\n" + "decw x20\n" + "cmp x13, x20\n" + "mov x28, x11\n" "bgt 42f\n" - "decw x21\n" - "cmp x14, x21\n" - "mov x10, x12\n" + "decw x20\n" + "cmp x13, x20\n" + "mov x9, x11\n" "bgt 42f\n" - "mov x11, x12\n" + "mov x10, x11\n" "42:" // Height 4: B setup done - "mov x20, #0x0\n" - "whilelt p3.s, x20, x14\n" - "incw x20\n" - "whilelt p2.s, x20, x14\n" - "incw x20\n" - "whilelt p1.s, x20, x14\n" - "incw x20\n" - "whilelt p0.s, x20, x14\n" - "cbz x15, 43f\n" - "ld1w { z8.s }, p4/Z, [x15]\n" - "ld1w { z9.s }, p4/Z, [x15, #1, MUL VL]\n" + "mov x19, #0x0\n" + "whilelt p3.s, x19, x13\n" + "incw x19\n" + "whilelt p2.s, x19, x13\n" + "incw x19\n" + "whilelt p1.s, x19, x13\n" + "incw x19\n" + "whilelt p0.s, x19, x13\n" + "cbz x14, 43f\n" + "ld1w { z8.s }, p4/Z, [x14]\n" + "ld1w { z9.s }, p4/Z, [x14, #1, MUL VL]\n" "mov z12.d, z8.d\n" "mov z13.d, z9.d\n" - "ld1w { z10.s }, p4/Z, [x15, #2, MUL VL]\n" - "ld1w { z11.s }, p4/Z, [x15, #3, MUL VL]\n" + "ld1w { z10.s }, p4/Z, [x14, #2, MUL VL]\n" + "ld1w { z11.s }, p4/Z, [x14, #3, MUL VL]\n" "mov z14.d, z10.d\n" "mov z15.d, z11.d\n" "mov z16.d, z8.d\n" "mov z17.d, z9.d\n" - "addvl x15, x15, #4\n" + "addvl x14, x14, #4\n" "mov z18.d, z10.d\n" "mov z19.d, z11.d\n" "mov z20.d, z8.d\n" @@ -680,26 +680,26 @@ void sve_ffhybrid_fp32_mla_6x4VL_a64fx ( "b 45f\n" "43:" // Height 4: no bias "tbz %x[flags], #0, 44f\n" - "ldr x20, [%x[args_ptr], %[offsetof_output_offset]]\n" - "add x25, x13, x20, LSL #2\n" - "add x24, x25, x20, LSL #2\n" - "ld1w { z8.s }, p3/Z, [x13]\n" - "add x23, x24, x20, LSL #2\n" - "ld1w { z9.s }, p2/Z, [x13, #1, MUL VL]\n" - "ld1w { z10.s }, p1/Z, [x13, #2, MUL VL]\n" - "ld1w { z11.s }, p0/Z, [x13, #3, MUL VL]\n" - "ld1w { z12.s }, p3/Z, [x25]\n" - "ld1w { z13.s }, p2/Z, [x25, #1, MUL VL]\n" - "ld1w { z14.s }, p1/Z, [x25, #2, MUL VL]\n" - "ld1w { z15.s }, p0/Z, [x25, #3, MUL VL]\n" - "ld1w { z16.s }, p3/Z, [x24]\n" - "ld1w { z17.s }, p2/Z, [x24, #1, MUL VL]\n" - "ld1w { z18.s }, p1/Z, [x24, #2, MUL VL]\n" - "ld1w { z19.s }, p0/Z, [x24, #3, MUL VL]\n" - "ld1w { z20.s }, p3/Z, [x23]\n" - "ld1w { z21.s }, p2/Z, [x23, #1, MUL VL]\n" - "ld1w { z22.s }, p1/Z, [x23, #2, MUL VL]\n" - "ld1w { z23.s }, p0/Z, [x23, #3, MUL VL]\n" + "ldr x19, [%x[args_ptr], %[offsetof_output_offset]]\n" + "add x24, x12, x19, LSL #2\n" + "add x23, x24, x19, LSL #2\n" + "ld1w { z8.s }, p3/Z, [x12]\n" + "add x22, x23, x19, LSL #2\n" + "ld1w { z9.s }, p2/Z, [x12, #1, MUL VL]\n" + "ld1w { z10.s }, p1/Z, [x12, #2, MUL VL]\n" + "ld1w { z11.s }, p0/Z, [x12, #3, MUL VL]\n" + "ld1w { z12.s }, p3/Z, [x24]\n" + "ld1w { z13.s }, p2/Z, [x24, #1, MUL VL]\n" + "ld1w { z14.s }, p1/Z, [x24, #2, MUL VL]\n" + "ld1w { z15.s }, p0/Z, [x24, #3, MUL VL]\n" + "ld1w { z16.s }, p3/Z, [x23]\n" + "ld1w { z17.s }, p2/Z, [x23, #1, MUL VL]\n" + "ld1w { z18.s }, p1/Z, [x23, #2, MUL VL]\n" + "ld1w { z19.s }, p0/Z, [x23, #3, MUL VL]\n" + "ld1w { z20.s }, p3/Z, [x22]\n" + "ld1w { z21.s }, p2/Z, [x22, #1, MUL VL]\n" + "ld1w { z22.s }, p1/Z, [x22, #2, MUL VL]\n" + "ld1w { z23.s }, p0/Z, [x22, #3, MUL VL]\n" "b 45f\n" "44:" // Height 4: no accumulate "mov z8.b, #0x0\n" @@ -719,94 +719,94 @@ void sve_ffhybrid_fp32_mla_6x4VL_a64fx ( "mov z22.b, #0x0\n" "mov z23.b, #0x0\n" "45:" // Height 4: setup done - "mov x28, #0x0\n" + "mov x27, #0x0\n" "46:" // Height 4: String loop - "ldr x20, [%x[args_ptr], %[offsetof_string_lengths]]\n" - "ldr w27, [x20, x28, LSL #0x2]\n" - "ldr x20, [%x[args_ptr], %[offsetof_input_offset]]\n" + "ldr x19, [%x[args_ptr], %[offsetof_string_lengths]]\n" + "ldr w26, [x19, x27, LSL #0x2]\n" + "ldr x19, [%x[args_ptr], %[offsetof_input_offset]]\n" "tbz %x[flags], #3, 47f\n" - "ldr x21, [%x[input_ptr], x28, LSL #0x3]\n" - "add x21, x21, x20, LSL #3\n" - "ldr x26, [x21, #0x0]\n" - "ldr x25, [x21, #0x8]\n" - "ldr x24, [x21, #0x10]\n" - "ldr x23, [x21, #0x18]\n" - "cbnz x28, 48f\n" - "ldr x20, [%x[args_ptr], %[offsetof_input_initial_col]]\n" - "add x26, x26, x20, LSL #2\n" - "add x25, x25, x20, LSL #2\n" - "add x24, x24, x20, LSL #2\n" - "add x23, x23, x20, LSL #2\n" + "ldr x20, [%x[input_ptr], x27, LSL #0x3]\n" + "add x20, x20, x19, LSL #3\n" + "ldr x25, [x20, #0x0]\n" + "ldr x24, [x20, #0x8]\n" + "ldr x23, [x20, #0x10]\n" + "ldr x22, [x20, #0x18]\n" + "cbnz x27, 48f\n" + "ldr x19, [%x[args_ptr], %[offsetof_input_initial_col]]\n" + "add x25, x25, x19, LSL #2\n" + "add x24, x24, x19, LSL #2\n" + "add x23, x23, x19, LSL #2\n" + "add x22, x22, x19, LSL #2\n" "b 48f\n" "47:" // Height 4: setup direct input - "mov x26, %x[input_ptr]\n" - "add x25, x26, x20, LSL #2\n" - "add x24, x25, x20, LSL #2\n" - "add x23, x24, x20, LSL #2\n" + "mov x25, %x[input_ptr]\n" + "add x24, x25, x19, LSL #2\n" + "add x23, x24, x19, LSL #2\n" + "add x22, x23, x19, LSL #2\n" "48:" // Height 4: input setup done - "subs x27, x27, #0x1\n" - "ld1rw { z0.s }, p4/Z, [x26]\n" - "ld1rw { z1.s }, p4/Z, [x25]\n" - "ld1rw { z2.s }, p4/Z, [x24]\n" - "ld1rw { z3.s }, p4/Z, [x23]\n" - "ld1w { z6.s }, p4/Z, [x12]\n" - "ld1w { z7.s }, p4/Z, [x11]\n" + "subs x26, x26, #0x1\n" + "ld1rw { z0.s }, p4/Z, [x25]\n" + "ld1rw { z1.s }, p4/Z, [x24]\n" + "ld1rw { z2.s }, p4/Z, [x23]\n" + "ld1rw { z3.s }, p4/Z, [x22]\n" + "ld1w { z6.s }, p4/Z, [x11]\n" + "ld1w { z7.s }, p4/Z, [x10]\n" "ble 50f\n" "49:" // Height 4: Multiply loop: Main loop "fmla z8.s, p4/M, z6.s, z0.s\n" "fmla z12.s, p4/M, z6.s, z1.s\n" - "addvl x12, x12, #1\n" "addvl x11, x11, #1\n" + "addvl x10, x10, #1\n" "fmla z16.s, p4/M, z6.s, z2.s\n" "fmla z20.s, p4/M, z6.s, z3.s\n" - "ld1w { z6.s }, p4/Z, [x10]\n" - "add x26, x26, #0x4\n" + "ld1w { z6.s }, p4/Z, [x9]\n" + "add x25, x25, #0x4\n" "fmla z9.s, p4/M, z7.s, z0.s\n" "fmla z13.s, p4/M, z7.s, z1.s\n" - "subs x27, x27, #0x1\n" - "add x25, x25, #0x4\n" + "subs x26, x26, #0x1\n" + "add x24, x24, #0x4\n" "fmla z17.s, p4/M, z7.s, z2.s\n" "fmla z21.s, p4/M, z7.s, z3.s\n" - "ld1w { z7.s }, p4/Z, [x9]\n" - "add x24, x24, #0x4\n" + "ld1w { z7.s }, p4/Z, [x28]\n" "add x23, x23, #0x4\n" + "add x22, x22, #0x4\n" "fmla z10.s, p4/M, z6.s, z0.s\n" "fmla z14.s, p4/M, z6.s, z1.s\n" - "addvl x10, x10, #1\n" + "addvl x9, x9, #1\n" "fmla z18.s, p4/M, z6.s, z2.s\n" "fmla z22.s, p4/M, z6.s, z3.s\n" - "addvl x9, x9, #1\n" - "ld1w { z6.s }, p4/Z, [x12]\n" + "addvl x28, x28, #1\n" + "ld1w { z6.s }, p4/Z, [x11]\n" "fmla z11.s, p4/M, z7.s, z0.s\n" "fmla z15.s, p4/M, z7.s, z1.s\n" - "ld1rw { z0.s }, p4/Z, [x26]\n" - "ld1rw { z1.s }, p4/Z, [x25]\n" + "ld1rw { z0.s }, p4/Z, [x25]\n" + "ld1rw { z1.s }, p4/Z, [x24]\n" "fmla z19.s, p4/M, z7.s, z2.s\n" "fmla z23.s, p4/M, z7.s, z3.s\n" - "ld1rw { z2.s }, p4/Z, [x24]\n" - "ld1rw { z3.s }, p4/Z, [x23]\n" - "ld1w { z7.s }, p4/Z, [x11]\n" + "ld1rw { z2.s }, p4/Z, [x23]\n" + "ld1rw { z3.s }, p4/Z, [x22]\n" + "ld1w { z7.s }, p4/Z, [x10]\n" "bgt 49b\n" "50:" // Height 4: Multiply loop: Main loop skip - "ldr w20, [%x[args_ptr], %[offsetof_num_strings]]\n" + "ldr w19, [%x[args_ptr], %[offsetof_num_strings]]\n" "fmla z8.s, p4/M, z6.s, z0.s\n" "fmla z12.s, p4/M, z6.s, z1.s\n" - "add x28, x28, #0x1\n" + "add x27, x27, #0x1\n" "fmla z16.s, p4/M, z6.s, z2.s\n" "fmla z20.s, p4/M, z6.s, z3.s\n" - "ld1w { z6.s }, p4/Z, [x10]\n" - "cmp x28, x20\n" + "ld1w { z6.s }, p4/Z, [x9]\n" + "cmp x27, x19\n" "fmla z9.s, p4/M, z7.s, z0.s\n" "fmla z13.s, p4/M, z7.s, z1.s\n" - "addvl x12, x12, #1\n" "addvl x11, x11, #1\n" + "addvl x10, x10, #1\n" "fmla z17.s, p4/M, z7.s, z2.s\n" "fmla z21.s, p4/M, z7.s, z3.s\n" - "ld1w { z7.s }, p4/Z, [x9]\n" - "addvl x10, x10, #1\n" + "ld1w { z7.s }, p4/Z, [x28]\n" + "addvl x9, x9, #1\n" "fmla z10.s, p4/M, z6.s, z0.s\n" "fmla z14.s, p4/M, z6.s, z1.s\n" - "addvl x9, x9, #1\n" + "addvl x28, x28, #1\n" "fmla z18.s, p4/M, z6.s, z2.s\n" "fmla z22.s, p4/M, z6.s, z3.s\n" "fmla z11.s, p4/M, z7.s, z0.s\n" @@ -814,15 +814,15 @@ void sve_ffhybrid_fp32_mla_6x4VL_a64fx ( "fmla z19.s, p4/M, z7.s, z2.s\n" "fmla z23.s, p4/M, z7.s, z3.s\n" "bne 46b\n" - "ldr x20, [%x[args_ptr], %[offsetof_output_offset]]\n" - "add x25, x13, x20, LSL #2\n" - "add x24, x25, x20, LSL #2\n" - "add x23, x24, x20, LSL #2\n" + "ldr x19, [%x[args_ptr], %[offsetof_output_offset]]\n" + "add x24, x12, x19, LSL #2\n" + "add x23, x24, x19, LSL #2\n" + "add x22, x23, x19, LSL #2\n" "tbz %x[flags], #1, 51f\n" - "add x20, %x[args_ptr], %[offset_max]\n" - "ld1rw { z1.s }, p4/Z, [x20]\n" - "add x20, %x[args_ptr], %[offset_min]\n" - "ld1rw { z0.s }, p4/Z, [x20]\n" + "add x19, %x[args_ptr], %[offset_max]\n" + "ld1rw { z1.s }, p4/Z, [x19]\n" + "add x19, %x[args_ptr], %[offset_min]\n" + "ld1rw { z0.s }, p4/Z, [x19]\n" "fmin z8.s, p4/M, z8.s, z1.s\n" "fmin z9.s, p4/M, z9.s, z1.s\n" "fmin z10.s, p4/M, z10.s, z1.s\n" @@ -856,75 +856,75 @@ void sve_ffhybrid_fp32_mla_6x4VL_a64fx ( "fmax z22.s, p4/M, z22.s, z0.s\n" "fmax z23.s, p4/M, z23.s, z0.s\n" "51:" // Height 4: No activation - "st1w { z8.s }, p3, [x13]\n" - "st1w { z9.s }, p2, [x13, #1, MUL VL]\n" - "st1w { z10.s }, p1, [x13, #2, MUL VL]\n" - "st1w { z11.s }, p0, [x13, #3, MUL VL]\n" - "addvl x13, x13, #4\n" - "st1w { z12.s }, p3, [x25]\n" - "st1w { z13.s }, p2, [x25, #1, MUL VL]\n" - "st1w { z14.s }, p1, [x25, #2, MUL VL]\n" - "st1w { z15.s }, p0, [x25, #3, MUL VL]\n" - "st1w { z16.s }, p3, [x24]\n" - "st1w { z17.s }, p2, [x24, #1, MUL VL]\n" - "st1w { z18.s }, p1, [x24, #2, MUL VL]\n" - "st1w { z19.s }, p0, [x24, #3, MUL VL]\n" - "st1w { z20.s }, p3, [x23]\n" - "st1w { z21.s }, p2, [x23, #1, MUL VL]\n" - "st1w { z22.s }, p1, [x23, #2, MUL VL]\n" - "st1w { z23.s }, p0, [x23, #3, MUL VL]\n" + "st1w { z8.s }, p3, [x12]\n" + "st1w { z9.s }, p2, [x12, #1, MUL VL]\n" + "st1w { z10.s }, p1, [x12, #2, MUL VL]\n" + "st1w { z11.s }, p0, [x12, #3, MUL VL]\n" + "addvl x12, x12, #4\n" + "st1w { z12.s }, p3, [x24]\n" + "st1w { z13.s }, p2, [x24, #1, MUL VL]\n" + "st1w { z14.s }, p1, [x24, #2, MUL VL]\n" + "st1w { z15.s }, p0, [x24, #3, MUL VL]\n" + "st1w { z16.s }, p3, [x23]\n" + "st1w { z17.s }, p2, [x23, #1, MUL VL]\n" + "st1w { z18.s }, p1, [x23, #2, MUL VL]\n" + "st1w { z19.s }, p0, [x23, #3, MUL VL]\n" + "st1w { z20.s }, p3, [x22]\n" + "st1w { z21.s }, p2, [x22, #1, MUL VL]\n" + "st1w { z22.s }, p1, [x22, #2, MUL VL]\n" + "st1w { z23.s }, p0, [x22, #3, MUL VL]\n" "52:" // Height 4: Writeback done - "decw x14, ALL, MUL #4\n" - "cmp x14, XZR\n" + "decw x13, ALL, MUL #4\n" + "cmp x13, XZR\n" "bgt 41b\n" "b 80f\n" "53:" // Height 5 - "ldr x20, [%x[args_ptr], %[offsetof_B_ptr]]\n" - "mov x15, %x[bias]\n" - "ldr x14, [%x[args_ptr], %[offsetof_N]]\n" - "str x20, [%x[args_ptr], %[offsetof_cur_B_ptr]]\n" - "mov x13, %x[output_ptr]\n" + "ldr x19, [%x[args_ptr], %[offsetof_B_ptr]]\n" + "mov x14, %x[bias]\n" + "ldr x13, [%x[args_ptr], %[offsetof_N]]\n" + "str x19, [%x[args_ptr], %[offsetof_cur_B_ptr]]\n" + "mov x12, %x[output_ptr]\n" "54:" // Height 5: Column loop - "ldr x12, [%x[args_ptr], %[offsetof_cur_B_ptr]]\n" - "ldr x20, [%x[args_ptr], %[offsetof_B_stride]]\n" - "add x11, x12, x20, LSL #2\n" - "cntw x21, ALL, MUL #3\n" - "add x10, x11, x20, LSL #2\n" - "add x9, x10, x20, LSL #2\n" - "add x20, x9, x20, LSL #2\n" - "cmp x14, x21\n" - "str x20, [%x[args_ptr], %[offsetof_cur_B_ptr]]\n" + "ldr x11, [%x[args_ptr], %[offsetof_cur_B_ptr]]\n" + "ldr x19, [%x[args_ptr], %[offsetof_B_stride]]\n" + "add x10, x11, x19, LSL #2\n" + "cntw x20, ALL, MUL #3\n" + "add x9, x10, x19, LSL #2\n" + "add x28, x9, x19, LSL #2\n" + "add x19, x28, x19, LSL #2\n" + "cmp x13, x20\n" + "str x19, [%x[args_ptr], %[offsetof_cur_B_ptr]]\n" "bgt 55f\n" - "decw x21\n" - "cmp x14, x21\n" - "mov x9, x12\n" + "decw x20\n" + "cmp x13, x20\n" + "mov x28, x11\n" "bgt 55f\n" - "decw x21\n" - "cmp x14, x21\n" - "mov x10, x12\n" + "decw x20\n" + "cmp x13, x20\n" + "mov x9, x11\n" "bgt 55f\n" - "mov x11, x12\n" + "mov x10, x11\n" "55:" // Height 5: B setup done - "mov x20, #0x0\n" - "whilelt p3.s, x20, x14\n" - "incw x20\n" - "whilelt p2.s, x20, x14\n" - "incw x20\n" - "whilelt p1.s, x20, x14\n" - "incw x20\n" - "whilelt p0.s, x20, x14\n" - "cbz x15, 56f\n" - "ld1w { z8.s }, p4/Z, [x15]\n" - "ld1w { z9.s }, p4/Z, [x15, #1, MUL VL]\n" + "mov x19, #0x0\n" + "whilelt p3.s, x19, x13\n" + "incw x19\n" + "whilelt p2.s, x19, x13\n" + "incw x19\n" + "whilelt p1.s, x19, x13\n" + "incw x19\n" + "whilelt p0.s, x19, x13\n" + "cbz x14, 56f\n" + "ld1w { z8.s }, p4/Z, [x14]\n" + "ld1w { z9.s }, p4/Z, [x14, #1, MUL VL]\n" "mov z12.d, z8.d\n" "mov z13.d, z9.d\n" - "ld1w { z10.s }, p4/Z, [x15, #2, MUL VL]\n" - "ld1w { z11.s }, p4/Z, [x15, #3, MUL VL]\n" + "ld1w { z10.s }, p4/Z, [x14, #2, MUL VL]\n" + "ld1w { z11.s }, p4/Z, [x14, #3, MUL VL]\n" "mov z14.d, z10.d\n" "mov z15.d, z11.d\n" "mov z16.d, z8.d\n" "mov z17.d, z9.d\n" - "addvl x15, x15, #4\n" + "addvl x14, x14, #4\n" "mov z18.d, z10.d\n" "mov z19.d, z11.d\n" "mov z20.d, z8.d\n" @@ -938,31 +938,31 @@ void sve_ffhybrid_fp32_mla_6x4VL_a64fx ( "b 58f\n" "56:" // Height 5: no bias "tbz %x[flags], #0, 57f\n" - "ldr x20, [%x[args_ptr], %[offsetof_output_offset]]\n" - "add x25, x13, x20, LSL #2\n" - "add x24, x25, x20, LSL #2\n" - "ld1w { z8.s }, p3/Z, [x13]\n" - "add x23, x24, x20, LSL #2\n" - "add x22, x23, x20, LSL #2\n" - "ld1w { z9.s }, p2/Z, [x13, #1, MUL VL]\n" - "ld1w { z10.s }, p1/Z, [x13, #2, MUL VL]\n" - "ld1w { z11.s }, p0/Z, [x13, #3, MUL VL]\n" - "ld1w { z12.s }, p3/Z, [x25]\n" - "ld1w { z13.s }, p2/Z, [x25, #1, MUL VL]\n" - "ld1w { z14.s }, p1/Z, [x25, #2, MUL VL]\n" - "ld1w { z15.s }, p0/Z, [x25, #3, MUL VL]\n" - "ld1w { z16.s }, p3/Z, [x24]\n" - "ld1w { z17.s }, p2/Z, [x24, #1, MUL VL]\n" - "ld1w { z18.s }, p1/Z, [x24, #2, MUL VL]\n" - "ld1w { z19.s }, p0/Z, [x24, #3, MUL VL]\n" - "ld1w { z20.s }, p3/Z, [x23]\n" - "ld1w { z21.s }, p2/Z, [x23, #1, MUL VL]\n" - "ld1w { z22.s }, p1/Z, [x23, #2, MUL VL]\n" - "ld1w { z23.s }, p0/Z, [x23, #3, MUL VL]\n" - "ld1w { z24.s }, p3/Z, [x22]\n" - "ld1w { z25.s }, p2/Z, [x22, #1, MUL VL]\n" - "ld1w { z26.s }, p1/Z, [x22, #2, MUL VL]\n" - "ld1w { z27.s }, p0/Z, [x22, #3, MUL VL]\n" + "ldr x19, [%x[args_ptr], %[offsetof_output_offset]]\n" + "add x24, x12, x19, LSL #2\n" + "add x23, x24, x19, LSL #2\n" + "ld1w { z8.s }, p3/Z, [x12]\n" + "add x22, x23, x19, LSL #2\n" + "add x21, x22, x19, LSL #2\n" + "ld1w { z9.s }, p2/Z, [x12, #1, MUL VL]\n" + "ld1w { z10.s }, p1/Z, [x12, #2, MUL VL]\n" + "ld1w { z11.s }, p0/Z, [x12, #3, MUL VL]\n" + "ld1w { z12.s }, p3/Z, [x24]\n" + "ld1w { z13.s }, p2/Z, [x24, #1, MUL VL]\n" + "ld1w { z14.s }, p1/Z, [x24, #2, MUL VL]\n" + "ld1w { z15.s }, p0/Z, [x24, #3, MUL VL]\n" + "ld1w { z16.s }, p3/Z, [x23]\n" + "ld1w { z17.s }, p2/Z, [x23, #1, MUL VL]\n" + "ld1w { z18.s }, p1/Z, [x23, #2, MUL VL]\n" + "ld1w { z19.s }, p0/Z, [x23, #3, MUL VL]\n" + "ld1w { z20.s }, p3/Z, [x22]\n" + "ld1w { z21.s }, p2/Z, [x22, #1, MUL VL]\n" + "ld1w { z22.s }, p1/Z, [x22, #2, MUL VL]\n" + "ld1w { z23.s }, p0/Z, [x22, #3, MUL VL]\n" + "ld1w { z24.s }, p3/Z, [x21]\n" + "ld1w { z25.s }, p2/Z, [x21, #1, MUL VL]\n" + "ld1w { z26.s }, p1/Z, [x21, #2, MUL VL]\n" + "ld1w { z27.s }, p0/Z, [x21, #3, MUL VL]\n" "b 58f\n" "57:" // Height 5: no accumulate "mov z8.b, #0x0\n" @@ -986,104 +986,104 @@ void sve_ffhybrid_fp32_mla_6x4VL_a64fx ( "mov z26.b, #0x0\n" "mov z27.b, #0x0\n" "58:" // Height 5: setup done - "mov x28, #0x0\n" + "mov x27, #0x0\n" "59:" // Height 5: String loop - "ldr x20, [%x[args_ptr], %[offsetof_string_lengths]]\n" - "ldr w27, [x20, x28, LSL #0x2]\n" - "ldr x20, [%x[args_ptr], %[offsetof_input_offset]]\n" + "ldr x19, [%x[args_ptr], %[offsetof_string_lengths]]\n" + "ldr w26, [x19, x27, LSL #0x2]\n" + "ldr x19, [%x[args_ptr], %[offsetof_input_offset]]\n" "tbz %x[flags], #3, 60f\n" - "ldr x21, [%x[input_ptr], x28, LSL #0x3]\n" - "add x21, x21, x20, LSL #3\n" - "ldr x26, [x21, #0x0]\n" - "ldr x25, [x21, #0x8]\n" - "ldr x24, [x21, #0x10]\n" - "ldr x23, [x21, #0x18]\n" - "ldr x22, [x21, #0x20]\n" - "cbnz x28, 61f\n" - "ldr x20, [%x[args_ptr], %[offsetof_input_initial_col]]\n" - "add x26, x26, x20, LSL #2\n" - "add x25, x25, x20, LSL #2\n" - "add x24, x24, x20, LSL #2\n" - "add x23, x23, x20, LSL #2\n" - "add x22, x22, x20, LSL #2\n" + "ldr x20, [%x[input_ptr], x27, LSL #0x3]\n" + "add x20, x20, x19, LSL #3\n" + "ldr x25, [x20, #0x0]\n" + "ldr x24, [x20, #0x8]\n" + "ldr x23, [x20, #0x10]\n" + "ldr x22, [x20, #0x18]\n" + "ldr x21, [x20, #0x20]\n" + "cbnz x27, 61f\n" + "ldr x19, [%x[args_ptr], %[offsetof_input_initial_col]]\n" + "add x25, x25, x19, LSL #2\n" + "add x24, x24, x19, LSL #2\n" + "add x23, x23, x19, LSL #2\n" + "add x22, x22, x19, LSL #2\n" + "add x21, x21, x19, LSL #2\n" "b 61f\n" "60:" // Height 5: setup direct input - "mov x26, %x[input_ptr]\n" - "add x25, x26, x20, LSL #2\n" - "add x24, x25, x20, LSL #2\n" - "add x23, x24, x20, LSL #2\n" - "add x22, x23, x20, LSL #2\n" + "mov x25, %x[input_ptr]\n" + "add x24, x25, x19, LSL #2\n" + "add x23, x24, x19, LSL #2\n" + "add x22, x23, x19, LSL #2\n" + "add x21, x22, x19, LSL #2\n" "61:" // Height 5: input setup done - "subs x27, x27, #0x1\n" - "ld1rw { z0.s }, p4/Z, [x26]\n" - "ld1rw { z1.s }, p4/Z, [x25]\n" - "ld1rw { z2.s }, p4/Z, [x24]\n" - "ld1rw { z3.s }, p4/Z, [x23]\n" - "ld1rw { z4.s }, p4/Z, [x22]\n" - "ld1w { z6.s }, p4/Z, [x12]\n" - "ld1w { z7.s }, p4/Z, [x11]\n" + "subs x26, x26, #0x1\n" + "ld1rw { z0.s }, p4/Z, [x25]\n" + "ld1rw { z1.s }, p4/Z, [x24]\n" + "ld1rw { z2.s }, p4/Z, [x23]\n" + "ld1rw { z3.s }, p4/Z, [x22]\n" + "ld1rw { z4.s }, p4/Z, [x21]\n" + "ld1w { z6.s }, p4/Z, [x11]\n" + "ld1w { z7.s }, p4/Z, [x10]\n" "ble 63f\n" "62:" // Height 5: Multiply loop: Main loop "fmla z8.s, p4/M, z6.s, z0.s\n" "fmla z12.s, p4/M, z6.s, z1.s\n" - "addvl x12, x12, #1\n" "addvl x11, x11, #1\n" + "addvl x10, x10, #1\n" "fmla z16.s, p4/M, z6.s, z2.s\n" "fmla z20.s, p4/M, z6.s, z3.s\n" - "add x26, x26, #0x4\n" - "subs x27, x27, #0x1\n" + "add x25, x25, #0x4\n" + "subs x26, x26, #0x1\n" "fmla z24.s, p4/M, z6.s, z4.s\n" "fmla z9.s, p4/M, z7.s, z0.s\n" - "ld1w { z6.s }, p4/Z, [x10]\n" - "add x25, x25, #0x4\n" + "ld1w { z6.s }, p4/Z, [x9]\n" + "add x24, x24, #0x4\n" "fmla z13.s, p4/M, z7.s, z1.s\n" "fmla z17.s, p4/M, z7.s, z2.s\n" - "add x24, x24, #0x4\n" "add x23, x23, #0x4\n" + "add x22, x22, #0x4\n" "fmla z21.s, p4/M, z7.s, z3.s\n" "fmla z25.s, p4/M, z7.s, z4.s\n" - "ld1w { z7.s }, p4/Z, [x9]\n" - "add x22, x22, #0x4\n" + "ld1w { z7.s }, p4/Z, [x28]\n" + "add x21, x21, #0x4\n" "fmla z10.s, p4/M, z6.s, z0.s\n" "fmla z14.s, p4/M, z6.s, z1.s\n" - "addvl x10, x10, #1\n" "addvl x9, x9, #1\n" + "addvl x28, x28, #1\n" "fmla z18.s, p4/M, z6.s, z2.s\n" "fmla z22.s, p4/M, z6.s, z3.s\n" "fmla z26.s, p4/M, z6.s, z4.s\n" "fmla z11.s, p4/M, z7.s, z0.s\n" - "ld1rw { z0.s }, p4/Z, [x26]\n" - "ld1w { z6.s }, p4/Z, [x12]\n" + "ld1rw { z0.s }, p4/Z, [x25]\n" + "ld1w { z6.s }, p4/Z, [x11]\n" "fmla z15.s, p4/M, z7.s, z1.s\n" "fmla z19.s, p4/M, z7.s, z2.s\n" - "ld1rw { z1.s }, p4/Z, [x25]\n" - "ld1rw { z2.s }, p4/Z, [x24]\n" + "ld1rw { z1.s }, p4/Z, [x24]\n" + "ld1rw { z2.s }, p4/Z, [x23]\n" "fmla z23.s, p4/M, z7.s, z3.s\n" "fmla z27.s, p4/M, z7.s, z4.s\n" - "ld1rw { z3.s }, p4/Z, [x23]\n" - "ld1rw { z4.s }, p4/Z, [x22]\n" - "ld1w { z7.s }, p4/Z, [x11]\n" + "ld1rw { z3.s }, p4/Z, [x22]\n" + "ld1rw { z4.s }, p4/Z, [x21]\n" + "ld1w { z7.s }, p4/Z, [x10]\n" "bgt 62b\n" "63:" // Height 5: Multiply loop: Main loop skip - "ldr w20, [%x[args_ptr], %[offsetof_num_strings]]\n" + "ldr w19, [%x[args_ptr], %[offsetof_num_strings]]\n" "fmla z8.s, p4/M, z6.s, z0.s\n" "fmla z12.s, p4/M, z6.s, z1.s\n" - "add x28, x28, #0x1\n" + "add x27, x27, #0x1\n" "fmla z16.s, p4/M, z6.s, z2.s\n" "fmla z20.s, p4/M, z6.s, z3.s\n" - "cmp x28, x20\n" - "addvl x12, x12, #1\n" + "cmp x27, x19\n" + "addvl x11, x11, #1\n" "fmla z24.s, p4/M, z6.s, z4.s\n" "fmla z9.s, p4/M, z7.s, z0.s\n" - "ld1w { z6.s }, p4/Z, [x10]\n" - "addvl x11, x11, #1\n" + "ld1w { z6.s }, p4/Z, [x9]\n" + "addvl x10, x10, #1\n" "fmla z13.s, p4/M, z7.s, z1.s\n" "fmla z17.s, p4/M, z7.s, z2.s\n" - "addvl x10, x10, #1\n" + "addvl x9, x9, #1\n" "fmla z21.s, p4/M, z7.s, z3.s\n" "fmla z25.s, p4/M, z7.s, z4.s\n" - "ld1w { z7.s }, p4/Z, [x9]\n" - "addvl x9, x9, #1\n" + "ld1w { z7.s }, p4/Z, [x28]\n" + "addvl x28, x28, #1\n" "fmla z10.s, p4/M, z6.s, z0.s\n" "fmla z14.s, p4/M, z6.s, z1.s\n" "fmla z18.s, p4/M, z6.s, z2.s\n" @@ -1095,16 +1095,16 @@ void sve_ffhybrid_fp32_mla_6x4VL_a64fx ( "fmla z23.s, p4/M, z7.s, z3.s\n" "fmla z27.s, p4/M, z7.s, z4.s\n" "bne 59b\n" - "ldr x20, [%x[args_ptr], %[offsetof_output_offset]]\n" - "add x25, x13, x20, LSL #2\n" - "add x24, x25, x20, LSL #2\n" - "add x23, x24, x20, LSL #2\n" - "add x22, x23, x20, LSL #2\n" + "ldr x19, [%x[args_ptr], %[offsetof_output_offset]]\n" + "add x24, x12, x19, LSL #2\n" + "add x23, x24, x19, LSL #2\n" + "add x22, x23, x19, LSL #2\n" + "add x21, x22, x19, LSL #2\n" "tbz %x[flags], #1, 64f\n" - "add x20, %x[args_ptr], %[offset_max]\n" - "ld1rw { z1.s }, p4/Z, [x20]\n" - "add x20, %x[args_ptr], %[offset_min]\n" - "ld1rw { z0.s }, p4/Z, [x20]\n" + "add x19, %x[args_ptr], %[offset_max]\n" + "ld1rw { z1.s }, p4/Z, [x19]\n" + "add x19, %x[args_ptr], %[offset_min]\n" + "ld1rw { z0.s }, p4/Z, [x19]\n" "fmin z8.s, p4/M, z8.s, z1.s\n" "fmin z9.s, p4/M, z9.s, z1.s\n" "fmin z10.s, p4/M, z10.s, z1.s\n" @@ -1146,82 +1146,82 @@ void sve_ffhybrid_fp32_mla_6x4VL_a64fx ( "fmax z26.s, p4/M, z26.s, z0.s\n" "fmax z27.s, p4/M, z27.s, z0.s\n" "64:" // Height 5: No activation - "st1w { z8.s }, p3, [x13]\n" - "st1w { z9.s }, p2, [x13, #1, MUL VL]\n" - "st1w { z10.s }, p1, [x13, #2, MUL VL]\n" - "st1w { z11.s }, p0, [x13, #3, MUL VL]\n" - "addvl x13, x13, #4\n" - "st1w { z12.s }, p3, [x25]\n" - "st1w { z13.s }, p2, [x25, #1, MUL VL]\n" - "st1w { z14.s }, p1, [x25, #2, MUL VL]\n" - "st1w { z15.s }, p0, [x25, #3, MUL VL]\n" - "st1w { z16.s }, p3, [x24]\n" - "st1w { z17.s }, p2, [x24, #1, MUL VL]\n" - "st1w { z18.s }, p1, [x24, #2, MUL VL]\n" - "st1w { z19.s }, p0, [x24, #3, MUL VL]\n" - "st1w { z20.s }, p3, [x23]\n" - "st1w { z21.s }, p2, [x23, #1, MUL VL]\n" - "st1w { z22.s }, p1, [x23, #2, MUL VL]\n" - "st1w { z23.s }, p0, [x23, #3, MUL VL]\n" - "st1w { z24.s }, p3, [x22]\n" - "st1w { z25.s }, p2, [x22, #1, MUL VL]\n" - "st1w { z26.s }, p1, [x22, #2, MUL VL]\n" - "st1w { z27.s }, p0, [x22, #3, MUL VL]\n" + "st1w { z8.s }, p3, [x12]\n" + "st1w { z9.s }, p2, [x12, #1, MUL VL]\n" + "st1w { z10.s }, p1, [x12, #2, MUL VL]\n" + "st1w { z11.s }, p0, [x12, #3, MUL VL]\n" + "addvl x12, x12, #4\n" + "st1w { z12.s }, p3, [x24]\n" + "st1w { z13.s }, p2, [x24, #1, MUL VL]\n" + "st1w { z14.s }, p1, [x24, #2, MUL VL]\n" + "st1w { z15.s }, p0, [x24, #3, MUL VL]\n" + "st1w { z16.s }, p3, [x23]\n" + "st1w { z17.s }, p2, [x23, #1, MUL VL]\n" + "st1w { z18.s }, p1, [x23, #2, MUL VL]\n" + "st1w { z19.s }, p0, [x23, #3, MUL VL]\n" + "st1w { z20.s }, p3, [x22]\n" + "st1w { z21.s }, p2, [x22, #1, MUL VL]\n" + "st1w { z22.s }, p1, [x22, #2, MUL VL]\n" + "st1w { z23.s }, p0, [x22, #3, MUL VL]\n" + "st1w { z24.s }, p3, [x21]\n" + "st1w { z25.s }, p2, [x21, #1, MUL VL]\n" + "st1w { z26.s }, p1, [x21, #2, MUL VL]\n" + "st1w { z27.s }, p0, [x21, #3, MUL VL]\n" "65:" // Height 5: Writeback done - "decw x14, ALL, MUL #4\n" - "cmp x14, XZR\n" + "decw x13, ALL, MUL #4\n" + "cmp x13, XZR\n" "bgt 54b\n" "b 80f\n" "66:" // Height 6 - "ldr x20, [%x[args_ptr], %[offsetof_B_ptr]]\n" - "ldr x14, [%x[args_ptr], %[offsetof_N]]\n" - "str x20, [%x[args_ptr], %[offsetof_cur_B_ptr]]\n" - "mov x21, #0x18\n" - "ldr x20, [%x[args_ptr], %[offsetof_output_offset]]\n" - "mov x15, %x[bias]\n" - "mov x13, %x[output_ptr]\n" - "madd %x[output_ptr], x20, x21, %x[output_ptr]\n" + "ldr x19, [%x[args_ptr], %[offsetof_B_ptr]]\n" + "ldr x13, [%x[args_ptr], %[offsetof_N]]\n" + "str x19, [%x[args_ptr], %[offsetof_cur_B_ptr]]\n" + "mov x20, #0x18\n" + "ldr x19, [%x[args_ptr], %[offsetof_output_offset]]\n" + "mov x14, %x[bias]\n" + "mov x12, %x[output_ptr]\n" + "madd %x[output_ptr], x19, x20, %x[output_ptr]\n" "67:" // Height 6: Column loop - "ldr x12, [%x[args_ptr], %[offsetof_cur_B_ptr]]\n" - "ldr x20, [%x[args_ptr], %[offsetof_B_stride]]\n" - "add x11, x12, x20, LSL #2\n" - "cntw x21, ALL, MUL #3\n" - "add x10, x11, x20, LSL #2\n" - "add x9, x10, x20, LSL #2\n" - "add x20, x9, x20, LSL #2\n" - "cmp x14, x21\n" - "str x20, [%x[args_ptr], %[offsetof_cur_B_ptr]]\n" + "ldr x11, [%x[args_ptr], %[offsetof_cur_B_ptr]]\n" + "ldr x19, [%x[args_ptr], %[offsetof_B_stride]]\n" + "add x10, x11, x19, LSL #2\n" + "cntw x20, ALL, MUL #3\n" + "add x9, x10, x19, LSL #2\n" + "add x28, x9, x19, LSL #2\n" + "add x19, x28, x19, LSL #2\n" + "cmp x13, x20\n" + "str x19, [%x[args_ptr], %[offsetof_cur_B_ptr]]\n" "bgt 68f\n" - "decw x21\n" - "cmp x14, x21\n" - "mov x9, x12\n" + "decw x20\n" + "cmp x13, x20\n" + "mov x28, x11\n" "bgt 68f\n" - "decw x21\n" - "cmp x14, x21\n" - "mov x10, x12\n" + "decw x20\n" + "cmp x13, x20\n" + "mov x9, x11\n" "bgt 68f\n" - "mov x11, x12\n" + "mov x10, x11\n" "68:" // Height 6: B setup done - "mov x20, #0x0\n" - "whilelt p3.s, x20, x14\n" - "incw x20\n" - "whilelt p2.s, x20, x14\n" - "incw x20\n" - "whilelt p1.s, x20, x14\n" - "incw x20\n" - "whilelt p0.s, x20, x14\n" - "cbz x15, 69f\n" - "ld1w { z8.s }, p4/Z, [x15]\n" - "ld1w { z9.s }, p4/Z, [x15, #1, MUL VL]\n" + "mov x19, #0x0\n" + "whilelt p3.s, x19, x13\n" + "incw x19\n" + "whilelt p2.s, x19, x13\n" + "incw x19\n" + "whilelt p1.s, x19, x13\n" + "incw x19\n" + "whilelt p0.s, x19, x13\n" + "cbz x14, 69f\n" + "ld1w { z8.s }, p4/Z, [x14]\n" + "ld1w { z9.s }, p4/Z, [x14, #1, MUL VL]\n" "mov z12.d, z8.d\n" "mov z13.d, z9.d\n" - "ld1w { z10.s }, p4/Z, [x15, #2, MUL VL]\n" - "ld1w { z11.s }, p4/Z, [x15, #3, MUL VL]\n" + "ld1w { z10.s }, p4/Z, [x14, #2, MUL VL]\n" + "ld1w { z11.s }, p4/Z, [x14, #3, MUL VL]\n" "mov z14.d, z10.d\n" "mov z15.d, z11.d\n" "mov z16.d, z8.d\n" "mov z17.d, z9.d\n" - "addvl x15, x15, #4\n" + "addvl x14, x14, #4\n" "mov z18.d, z10.d\n" "mov z19.d, z11.d\n" "mov z20.d, z8.d\n" @@ -1239,36 +1239,36 @@ void sve_ffhybrid_fp32_mla_6x4VL_a64fx ( "b 71f\n" "69:" // Height 6: no bias "tbz %x[flags], #0, 70f\n" - "ldr x20, [%x[args_ptr], %[offsetof_output_offset]]\n" - "add x25, x13, x20, LSL #2\n" - "add x24, x25, x20, LSL #2\n" - "ld1w { z8.s }, p3/Z, [x13]\n" - "add x23, x24, x20, LSL #2\n" - "add x22, x23, x20, LSL #2\n" - "ld1w { z9.s }, p2/Z, [x13, #1, MUL VL]\n" - "ld1w { z10.s }, p1/Z, [x13, #2, MUL VL]\n" - "add x21, x22, x20, LSL #2\n" - "ld1w { z11.s }, p0/Z, [x13, #3, MUL VL]\n" - "ld1w { z12.s }, p3/Z, [x25]\n" - "ld1w { z13.s }, p2/Z, [x25, #1, MUL VL]\n" - "ld1w { z14.s }, p1/Z, [x25, #2, MUL VL]\n" - "ld1w { z15.s }, p0/Z, [x25, #3, MUL VL]\n" - "ld1w { z16.s }, p3/Z, [x24]\n" - "ld1w { z17.s }, p2/Z, [x24, #1, MUL VL]\n" - "ld1w { z18.s }, p1/Z, [x24, #2, MUL VL]\n" - "ld1w { z19.s }, p0/Z, [x24, #3, MUL VL]\n" - "ld1w { z20.s }, p3/Z, [x23]\n" - "ld1w { z21.s }, p2/Z, [x23, #1, MUL VL]\n" - "ld1w { z22.s }, p1/Z, [x23, #2, MUL VL]\n" - "ld1w { z23.s }, p0/Z, [x23, #3, MUL VL]\n" - "ld1w { z24.s }, p3/Z, [x22]\n" - "ld1w { z25.s }, p2/Z, [x22, #1, MUL VL]\n" - "ld1w { z26.s }, p1/Z, [x22, #2, MUL VL]\n" - "ld1w { z27.s }, p0/Z, [x22, #3, MUL VL]\n" - "ld1w { z28.s }, p3/Z, [x21]\n" - "ld1w { z29.s }, p2/Z, [x21, #1, MUL VL]\n" - "ld1w { z30.s }, p1/Z, [x21, #2, MUL VL]\n" - "ld1w { z31.s }, p0/Z, [x21, #3, MUL VL]\n" + "ldr x19, [%x[args_ptr], %[offsetof_output_offset]]\n" + "add x24, x12, x19, LSL #2\n" + "add x23, x24, x19, LSL #2\n" + "ld1w { z8.s }, p3/Z, [x12]\n" + "add x22, x23, x19, LSL #2\n" + "add x21, x22, x19, LSL #2\n" + "ld1w { z9.s }, p2/Z, [x12, #1, MUL VL]\n" + "ld1w { z10.s }, p1/Z, [x12, #2, MUL VL]\n" + "add x20, x21, x19, LSL #2\n" + "ld1w { z11.s }, p0/Z, [x12, #3, MUL VL]\n" + "ld1w { z12.s }, p3/Z, [x24]\n" + "ld1w { z13.s }, p2/Z, [x24, #1, MUL VL]\n" + "ld1w { z14.s }, p1/Z, [x24, #2, MUL VL]\n" + "ld1w { z15.s }, p0/Z, [x24, #3, MUL VL]\n" + "ld1w { z16.s }, p3/Z, [x23]\n" + "ld1w { z17.s }, p2/Z, [x23, #1, MUL VL]\n" + "ld1w { z18.s }, p1/Z, [x23, #2, MUL VL]\n" + "ld1w { z19.s }, p0/Z, [x23, #3, MUL VL]\n" + "ld1w { z20.s }, p3/Z, [x22]\n" + "ld1w { z21.s }, p2/Z, [x22, #1, MUL VL]\n" + "ld1w { z22.s }, p1/Z, [x22, #2, MUL VL]\n" + "ld1w { z23.s }, p0/Z, [x22, #3, MUL VL]\n" + "ld1w { z24.s }, p3/Z, [x21]\n" + "ld1w { z25.s }, p2/Z, [x21, #1, MUL VL]\n" + "ld1w { z26.s }, p1/Z, [x21, #2, MUL VL]\n" + "ld1w { z27.s }, p0/Z, [x21, #3, MUL VL]\n" + "ld1w { z28.s }, p3/Z, [x20]\n" + "ld1w { z29.s }, p2/Z, [x20, #1, MUL VL]\n" + "ld1w { z30.s }, p1/Z, [x20, #2, MUL VL]\n" + "ld1w { z31.s }, p0/Z, [x20, #3, MUL VL]\n" "b 71f\n" "70:" // Height 6: no accumulate "mov z8.b, #0x0\n" @@ -1296,116 +1296,116 @@ void sve_ffhybrid_fp32_mla_6x4VL_a64fx ( "mov z30.b, #0x0\n" "mov z31.b, #0x0\n" "71:" // Height 6: setup done - "mov x28, #0x0\n" + "mov x27, #0x0\n" "72:" // Height 6: String loop - "ldr x20, [%x[args_ptr], %[offsetof_string_lengths]]\n" - "ldr w27, [x20, x28, LSL #0x2]\n" - "ldr x20, [%x[args_ptr], %[offsetof_input_offset]]\n" + "ldr x19, [%x[args_ptr], %[offsetof_string_lengths]]\n" + "ldr w26, [x19, x27, LSL #0x2]\n" + "ldr x19, [%x[args_ptr], %[offsetof_input_offset]]\n" "tbz %x[flags], #3, 73f\n" - "ldr x21, [%x[input_ptr], x28, LSL #0x3]\n" - "add x21, x21, x20, LSL #3\n" - "ldr x26, [x21, #0x0]\n" - "ldr x25, [x21, #0x8]\n" - "ldr x24, [x21, #0x10]\n" - "ldr x23, [x21, #0x18]\n" - "ldr x22, [x21, #0x20]\n" - "ldr x21, [x21, #0x28]\n" - "cbnz x28, 74f\n" - "ldr x20, [%x[args_ptr], %[offsetof_input_initial_col]]\n" - "add x26, x26, x20, LSL #2\n" - "add x25, x25, x20, LSL #2\n" - "add x24, x24, x20, LSL #2\n" - "add x23, x23, x20, LSL #2\n" - "add x22, x22, x20, LSL #2\n" - "add x21, x21, x20, LSL #2\n" + "ldr x20, [%x[input_ptr], x27, LSL #0x3]\n" + "add x20, x20, x19, LSL #3\n" + "ldr x25, [x20, #0x0]\n" + "ldr x24, [x20, #0x8]\n" + "ldr x23, [x20, #0x10]\n" + "ldr x22, [x20, #0x18]\n" + "ldr x21, [x20, #0x20]\n" + "ldr x20, [x20, #0x28]\n" + "cbnz x27, 74f\n" + "ldr x19, [%x[args_ptr], %[offsetof_input_initial_col]]\n" + "add x25, x25, x19, LSL #2\n" + "add x24, x24, x19, LSL #2\n" + "add x23, x23, x19, LSL #2\n" + "add x22, x22, x19, LSL #2\n" + "add x21, x21, x19, LSL #2\n" + "add x20, x20, x19, LSL #2\n" "b 74f\n" "73:" // Height 6: setup direct input - "mov x26, %x[input_ptr]\n" - "add x25, x26, x20, LSL #2\n" - "add x24, x25, x20, LSL #2\n" - "add x23, x24, x20, LSL #2\n" - "add x22, x23, x20, LSL #2\n" - "add x21, x22, x20, LSL #2\n" + "mov x25, %x[input_ptr]\n" + "add x24, x25, x19, LSL #2\n" + "add x23, x24, x19, LSL #2\n" + "add x22, x23, x19, LSL #2\n" + "add x21, x22, x19, LSL #2\n" + "add x20, x21, x19, LSL #2\n" "74:" // Height 6: input setup done - "subs x27, x27, #0x1\n" - "ld1rw { z0.s }, p4/Z, [x26]\n" - "ld1rw { z1.s }, p4/Z, [x25]\n" - "ld1rw { z2.s }, p4/Z, [x24]\n" - "ld1rw { z3.s }, p4/Z, [x23]\n" - "ld1rw { z4.s }, p4/Z, [x22]\n" - "ld1rw { z5.s }, p4/Z, [x21]\n" - "ld1w { z6.s }, p4/Z, [x12]\n" - "ld1w { z7.s }, p4/Z, [x11]\n" + "subs x26, x26, #0x1\n" + "ld1rw { z0.s }, p4/Z, [x25]\n" + "ld1rw { z1.s }, p4/Z, [x24]\n" + "ld1rw { z2.s }, p4/Z, [x23]\n" + "ld1rw { z3.s }, p4/Z, [x22]\n" + "ld1rw { z4.s }, p4/Z, [x21]\n" + "ld1rw { z5.s }, p4/Z, [x20]\n" + "ld1w { z6.s }, p4/Z, [x11]\n" + "ld1w { z7.s }, p4/Z, [x10]\n" "ble 76f\n" "75:" // Height 6: Multiply loop: Main loop "fmla z8.s, p4/M, z6.s, z0.s\n" "fmla z12.s, p4/M, z6.s, z1.s\n" - "addvl x12, x12, #1\n" "addvl x11, x11, #1\n" + "addvl x10, x10, #1\n" "fmla z16.s, p4/M, z6.s, z2.s\n" "fmla z20.s, p4/M, z6.s, z3.s\n" - "add x26, x26, #0x4\n" - "subs x27, x27, #0x1\n" + "add x25, x25, #0x4\n" + "subs x26, x26, #0x1\n" "fmla z24.s, p4/M, z6.s, z4.s\n" "fmla z28.s, p4/M, z6.s, z5.s\n" - "ld1w { z6.s }, p4/Z, [x10]\n" - "add x25, x25, #0x4\n" + "ld1w { z6.s }, p4/Z, [x9]\n" + "add x24, x24, #0x4\n" "fmla z9.s, p4/M, z7.s, z0.s\n" "fmla z13.s, p4/M, z7.s, z1.s\n" - "add x24, x24, #0x4\n" "add x23, x23, #0x4\n" + "add x22, x22, #0x4\n" "fmla z17.s, p4/M, z7.s, z2.s\n" "fmla z21.s, p4/M, z7.s, z3.s\n" - "add x22, x22, #0x4\n" "add x21, x21, #0x4\n" + "add x20, x20, #0x4\n" "fmla z25.s, p4/M, z7.s, z4.s\n" "fmla z29.s, p4/M, z7.s, z5.s\n" - "ld1w { z7.s }, p4/Z, [x9]\n" - "addvl x10, x10, #1\n" + "ld1w { z7.s }, p4/Z, [x28]\n" + "addvl x9, x9, #1\n" "fmla z10.s, p4/M, z6.s, z0.s\n" "fmla z14.s, p4/M, z6.s, z1.s\n" - "addvl x9, x9, #1\n" + "addvl x28, x28, #1\n" "fmla z18.s, p4/M, z6.s, z2.s\n" "fmla z22.s, p4/M, z6.s, z3.s\n" "fmla z26.s, p4/M, z6.s, z4.s\n" "fmla z30.s, p4/M, z6.s, z5.s\n" - "ld1w { z6.s }, p4/Z, [x12]\n" + "ld1w { z6.s }, p4/Z, [x11]\n" "fmla z11.s, p4/M, z7.s, z0.s\n" "fmla z15.s, p4/M, z7.s, z1.s\n" - "ld1rw { z0.s }, p4/Z, [x26]\n" - "ld1rw { z1.s }, p4/Z, [x25]\n" + "ld1rw { z0.s }, p4/Z, [x25]\n" + "ld1rw { z1.s }, p4/Z, [x24]\n" "fmla z19.s, p4/M, z7.s, z2.s\n" "fmla z23.s, p4/M, z7.s, z3.s\n" - "ld1rw { z2.s }, p4/Z, [x24]\n" - "ld1rw { z3.s }, p4/Z, [x23]\n" + "ld1rw { z2.s }, p4/Z, [x23]\n" + "ld1rw { z3.s }, p4/Z, [x22]\n" "fmla z27.s, p4/M, z7.s, z4.s\n" "fmla z31.s, p4/M, z7.s, z5.s\n" - "ld1rw { z4.s }, p4/Z, [x22]\n" - "ld1rw { z5.s }, p4/Z, [x21]\n" - "ld1w { z7.s }, p4/Z, [x11]\n" + "ld1rw { z4.s }, p4/Z, [x21]\n" + "ld1rw { z5.s }, p4/Z, [x20]\n" + "ld1w { z7.s }, p4/Z, [x10]\n" "bgt 75b\n" "76:" // Height 6: Multiply loop: Main loop skip - "ldr w20, [%x[args_ptr], %[offsetof_num_strings]]\n" + "ldr w19, [%x[args_ptr], %[offsetof_num_strings]]\n" "fmla z8.s, p4/M, z6.s, z0.s\n" "fmla z12.s, p4/M, z6.s, z1.s\n" - "add x28, x28, #0x1\n" + "add x27, x27, #0x1\n" "fmla z16.s, p4/M, z6.s, z2.s\n" "fmla z20.s, p4/M, z6.s, z3.s\n" - "cmp x28, x20\n" - "addvl x12, x12, #1\n" + "cmp x27, x19\n" + "addvl x11, x11, #1\n" "fmla z24.s, p4/M, z6.s, z4.s\n" "fmla z28.s, p4/M, z6.s, z5.s\n" - "ld1w { z6.s }, p4/Z, [x10]\n" - "addvl x11, x11, #1\n" + "ld1w { z6.s }, p4/Z, [x9]\n" + "addvl x10, x10, #1\n" "fmla z9.s, p4/M, z7.s, z0.s\n" "fmla z13.s, p4/M, z7.s, z1.s\n" - "addvl x10, x10, #1\n" + "addvl x9, x9, #1\n" "fmla z17.s, p4/M, z7.s, z2.s\n" "fmla z21.s, p4/M, z7.s, z3.s\n" "fmla z25.s, p4/M, z7.s, z4.s\n" "fmla z29.s, p4/M, z7.s, z5.s\n" - "ld1w { z7.s }, p4/Z, [x9]\n" - "addvl x9, x9, #1\n" + "ld1w { z7.s }, p4/Z, [x28]\n" + "addvl x28, x28, #1\n" "fmla z10.s, p4/M, z6.s, z0.s\n" "fmla z14.s, p4/M, z6.s, z1.s\n" "fmla z18.s, p4/M, z6.s, z2.s\n" @@ -1419,17 +1419,17 @@ void sve_ffhybrid_fp32_mla_6x4VL_a64fx ( "fmla z27.s, p4/M, z7.s, z4.s\n" "fmla z31.s, p4/M, z7.s, z5.s\n" "bne 72b\n" - "ldr x20, [%x[args_ptr], %[offsetof_output_offset]]\n" - "add x25, x13, x20, LSL #2\n" - "add x24, x25, x20, LSL #2\n" - "add x23, x24, x20, LSL #2\n" - "add x22, x23, x20, LSL #2\n" - "add x21, x22, x20, LSL #2\n" + "ldr x19, [%x[args_ptr], %[offsetof_output_offset]]\n" + "add x24, x12, x19, LSL #2\n" + "add x23, x24, x19, LSL #2\n" + "add x22, x23, x19, LSL #2\n" + "add x21, x22, x19, LSL #2\n" + "add x20, x21, x19, LSL #2\n" "tbz %x[flags], #1, 77f\n" - "add x20, %x[args_ptr], %[offset_max]\n" - "ld1rw { z1.s }, p4/Z, [x20]\n" - "add x20, %x[args_ptr], %[offset_min]\n" - "ld1rw { z0.s }, p4/Z, [x20]\n" + "add x19, %x[args_ptr], %[offset_max]\n" + "ld1rw { z1.s }, p4/Z, [x19]\n" + "add x19, %x[args_ptr], %[offset_min]\n" + "ld1rw { z0.s }, p4/Z, [x19]\n" "fmin z8.s, p4/M, z8.s, z1.s\n" "fmin z9.s, p4/M, z9.s, z1.s\n" "fmin z10.s, p4/M, z10.s, z1.s\n" @@ -1479,50 +1479,50 @@ void sve_ffhybrid_fp32_mla_6x4VL_a64fx ( "fmax z30.s, p4/M, z30.s, z0.s\n" "fmax z31.s, p4/M, z31.s, z0.s\n" "77:" // Height 6: No activation - "st1w { z8.s }, p3, [x13]\n" - "st1w { z9.s }, p2, [x13, #1, MUL VL]\n" - "st1w { z10.s }, p1, [x13, #2, MUL VL]\n" - "st1w { z11.s }, p0, [x13, #3, MUL VL]\n" - "addvl x13, x13, #4\n" - "st1w { z12.s }, p3, [x25]\n" - "st1w { z13.s }, p2, [x25, #1, MUL VL]\n" - "st1w { z14.s }, p1, [x25, #2, MUL VL]\n" - "st1w { z15.s }, p0, [x25, #3, MUL VL]\n" - "st1w { z16.s }, p3, [x24]\n" - "st1w { z17.s }, p2, [x24, #1, MUL VL]\n" - "st1w { z18.s }, p1, [x24, #2, MUL VL]\n" - "st1w { z19.s }, p0, [x24, #3, MUL VL]\n" - "st1w { z20.s }, p3, [x23]\n" - "st1w { z21.s }, p2, [x23, #1, MUL VL]\n" - "st1w { z22.s }, p1, [x23, #2, MUL VL]\n" - "st1w { z23.s }, p0, [x23, #3, MUL VL]\n" - "st1w { z24.s }, p3, [x22]\n" - "st1w { z25.s }, p2, [x22, #1, MUL VL]\n" - "st1w { z26.s }, p1, [x22, #2, MUL VL]\n" - "st1w { z27.s }, p0, [x22, #3, MUL VL]\n" - "st1w { z28.s }, p3, [x21]\n" - "st1w { z29.s }, p2, [x21, #1, MUL VL]\n" - "st1w { z30.s }, p1, [x21, #2, MUL VL]\n" - "st1w { z31.s }, p0, [x21, #3, MUL VL]\n" + "st1w { z8.s }, p3, [x12]\n" + "st1w { z9.s }, p2, [x12, #1, MUL VL]\n" + "st1w { z10.s }, p1, [x12, #2, MUL VL]\n" + "st1w { z11.s }, p0, [x12, #3, MUL VL]\n" + "addvl x12, x12, #4\n" + "st1w { z12.s }, p3, [x24]\n" + "st1w { z13.s }, p2, [x24, #1, MUL VL]\n" + "st1w { z14.s }, p1, [x24, #2, MUL VL]\n" + "st1w { z15.s }, p0, [x24, #3, MUL VL]\n" + "st1w { z16.s }, p3, [x23]\n" + "st1w { z17.s }, p2, [x23, #1, MUL VL]\n" + "st1w { z18.s }, p1, [x23, #2, MUL VL]\n" + "st1w { z19.s }, p0, [x23, #3, MUL VL]\n" + "st1w { z20.s }, p3, [x22]\n" + "st1w { z21.s }, p2, [x22, #1, MUL VL]\n" + "st1w { z22.s }, p1, [x22, #2, MUL VL]\n" + "st1w { z23.s }, p0, [x22, #3, MUL VL]\n" + "st1w { z24.s }, p3, [x21]\n" + "st1w { z25.s }, p2, [x21, #1, MUL VL]\n" + "st1w { z26.s }, p1, [x21, #2, MUL VL]\n" + "st1w { z27.s }, p0, [x21, #3, MUL VL]\n" + "st1w { z28.s }, p3, [x20]\n" + "st1w { z29.s }, p2, [x20, #1, MUL VL]\n" + "st1w { z30.s }, p1, [x20, #2, MUL VL]\n" + "st1w { z31.s }, p0, [x20, #3, MUL VL]\n" "78:" // Height 6: Writeback done - "decw x14, ALL, MUL #4\n" - "cmp x14, XZR\n" + "decw x13, ALL, MUL #4\n" + "cmp x13, XZR\n" "bgt 67b\n" "subs %x[M], %x[M], #0x6\n" "beq 80f\n" - "ldr x21, [%x[args_ptr], %[offsetof_input_offset]]\n" + "ldr x20, [%x[args_ptr], %[offsetof_input_offset]]\n" "tbz %x[flags], #3, 79f\n" - "add x21, x21, #0x6\n" - "str x21, [%x[args_ptr], %[offsetof_input_offset]]\n" + "add x20, x20, #0x6\n" + "str x20, [%x[args_ptr], %[offsetof_input_offset]]\n" "b 1b\n" "79:" // Update direct input - "mov x20, #0x18\n" - "madd %x[input_ptr], x20, x21, %x[input_ptr]\n" + "mov x19, #0x18\n" + "madd %x[input_ptr], x19, x20, %x[input_ptr]\n" "b 1b\n" "80:" // Exit : [M] "+&r" (M), [input_ptr] "+&r" (input_ptr), [output_ptr] "+&r" (output_ptr) : [args_ptr] "r" (&ka), [bias] "r" (bias), [flags] "r" (flags), [offset_max] "I" (offsetof(KernelArgs, maxval)), [offset_min] "I" (offsetof(KernelArgs, minval)), [offsetof_B_ptr] "I" (offsetof(KernelArgs, B_ptr)), [offsetof_B_stride] "I" (offsetof(KernelArgs, B_stride)), [offsetof_N] "I" (offsetof(KernelArgs, N)), [offsetof_cur_B_ptr] "I" (offsetof(KernelArgs, cur_B_ptr)), [offsetof_input_initial_col] "I" (offsetof(KernelArgs, input_initial_col)), [offsetof_input_offset] "I" (offsetof(KernelArgs, input_offset)), [offsetof_num_strings] "I" (offsetof(KernelArgs, num_strings)), [offsetof_output_offset] "I" (offsetof(KernelArgs, output_offset)), [offsetof_string_lengths] "I" (offsetof(KernelArgs, string_lengths)) - : "cc", "memory", "p0", "p1", "p2", "p3", "p4", "x9", "x10", "x11", "x12", "x13", "x14", "x15", "x20", "x21", "x22", "x23", "x24", "x25", "x26", "x27", "x28", "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", "p0", "p1", "p2", "p3", "p4", "x9", "x10", "x11", "x12", "x13", "x14", "x19", "x20", "x21", "x22", "x23", "x24", "x25", "x26", "x27", "x28", "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" ); } -- cgit v1.2.1