From 63bcabed498a53a24da51ca1264b338c1149be07 Mon Sep 17 00:00:00 2001 From: Keith Randall Date: Mon, 5 Mar 2018 07:11:23 -0800 Subject: [PATCH] internal/bytealg: fix arm64 Index function Missed removing the argument loading from the indexbody function. Change-Id: Ia1391231fc99771d00410a09fe80a09f08ceed02 Reviewed-on: https://go-review.googlesource.com/98575 Run-TryBot: Keith Randall Reviewed-by: Elias Naur TryBot-Result: Gobot Gobot --- src/internal/bytealg/index_arm64.s | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/internal/bytealg/index_arm64.s b/src/internal/bytealg/index_arm64.s index 8cffcd10b5..6c93ef3ce8 100644 --- a/src/internal/bytealg/index_arm64.s +++ b/src/internal/bytealg/index_arm64.s @@ -31,10 +31,6 @@ TEXT indexbody<>(SB),NOSPLIT,$0-56 // main idea is to load 'sep' into separate register(s) // to avoid repeatedly re-load it again and again // for sebsequent substring comparisons - MOVD a_base+0(FP), R0 - MOVD a_len+8(FP), R1 - MOVD b_base+24(FP), R2 - MOVD b_len+32(FP), R3 SUB R3, R1, R4 // R4 contains the start of last substring for comparsion ADD R0, R4, R4 -- 2.48.1