diff options
| author | Wayne Zuo <wdvxdr@golangcn.org> | 2022-10-17 21:58:56 +0800 |
|---|---|---|
| committer | Wayne Zuo <wdvxdr@golangcn.org> | 2022-10-26 00:52:05 +0000 |
| commit | 5d59fa143ae1d0d8fdcc677297ce58bbfc592111 (patch) | |
| tree | d2a14ba8bd1f336905d7080aa3682f3d4e8f25c1 /src/internal/bytealg | |
| parent | 3dc13023c1d20ec48e2d0c69908b0a1cc3681462 (diff) | |
| download | go-5d59fa143ae1d0d8fdcc677297ce58bbfc592111.tar.xz | |
all: delete riscv64 non-register ABI fallback path
Change-Id: I9e997b59ffb868575b780b9660df1f5ac322b79a
Reviewed-on: https://go-review.googlesource.com/c/go/+/443556
Reviewed-by: Cherry Mui <cherryyz@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Wayne Zuo <wdvxdr@golangcn.org>
Reviewed-by: David Chase <drchase@google.com>
Diffstat (limited to 'src/internal/bytealg')
| -rw-r--r-- | src/internal/bytealg/compare_riscv64.s | 18 | ||||
| -rw-r--r-- | src/internal/bytealg/count_riscv64.s | 19 | ||||
| -rw-r--r-- | src/internal/bytealg/equal_riscv64.s | 20 | ||||
| -rw-r--r-- | src/internal/bytealg/indexbyte_riscv64.s | 22 |
4 files changed, 0 insertions, 79 deletions
diff --git a/src/internal/bytealg/compare_riscv64.s b/src/internal/bytealg/compare_riscv64.s index e616577d53..44a743d3af 100644 --- a/src/internal/bytealg/compare_riscv64.s +++ b/src/internal/bytealg/compare_riscv64.s @@ -6,13 +6,6 @@ #include "textflag.h" TEXT ·Compare<ABIInternal>(SB),NOSPLIT|NOFRAME,$0-56 -#ifndef GOEXPERIMENT_regabiargs - MOV a_base+0(FP), X10 - MOV a_len+8(FP), X11 - MOV b_base+24(FP), X12 - MOV b_len+32(FP), X13 - MOV $ret+48(FP), X14 -#else // X10 = a_base // X11 = a_len // X12 = a_cap (unused) @@ -21,17 +14,9 @@ TEXT ·Compare<ABIInternal>(SB),NOSPLIT|NOFRAME,$0-56 // X15 = b_cap (unused) MOV X13, X12 MOV X14, X13 -#endif JMP compare<>(SB) TEXT runtime·cmpstring<ABIInternal>(SB),NOSPLIT|NOFRAME,$0-40 -#ifndef GOEXPERIMENT_regabiargs - MOV a_base+0(FP), X10 - MOV a_len+8(FP), X11 - MOV b_base+16(FP), X12 - MOV b_len+24(FP), X13 - MOV $ret+32(FP), X14 -#endif // X10 = a_base // X11 = a_len // X12 = b_base @@ -199,7 +184,4 @@ cmp: SLTU X8, X9, X6 cmp_ret: SUB X5, X6, X10 -#ifndef GOEXPERIMENT_regabiargs - MOV X10, (X14) -#endif RET diff --git a/src/internal/bytealg/count_riscv64.s b/src/internal/bytealg/count_riscv64.s index a15d07d768..d123cbd7c6 100644 --- a/src/internal/bytealg/count_riscv64.s +++ b/src/internal/bytealg/count_riscv64.s @@ -6,17 +6,11 @@ #include "textflag.h" TEXT ·Count<ABIInternal>(SB),NOSPLIT,$0-40 -#ifndef GOEXPERIMENT_regabiargs - MOV b_base+0(FP), X10 - MOV b_len+8(FP), X11 - MOVBU c+24(FP), X12 // byte to count -#else // X10 = b_base // X11 = b_len // X12 = b_cap (unused) // X13 = byte to count (want in X12) AND $0xff, X13, X12 -#endif MOV ZERO, X14 // count ADD X10, X11 // end @@ -29,19 +23,10 @@ loop: JMP loop done: -#ifndef GOEXPERIMENT_regabiargs - MOV X14, ret+32(FP) -#else MOV X14, X10 -#endif RET TEXT ·CountString<ABIInternal>(SB),NOSPLIT,$0-32 -#ifndef GOEXPERIMENT_regabiargs - MOV s_base+0(FP), X10 - MOV s_len+8(FP), X11 - MOVBU c+16(FP), X12 // byte to count -#endif // X10 = s_base // X11 = s_len // X12 = byte to count @@ -58,9 +43,5 @@ loop: JMP loop done: -#ifndef GOEXPERIMENT_regabiargs - MOV X14, ret+24(FP) -#else MOV X14, X10 -#endif RET diff --git a/src/internal/bytealg/equal_riscv64.s b/src/internal/bytealg/equal_riscv64.s index 1e070beb3e..3834083ec9 100644 --- a/src/internal/bytealg/equal_riscv64.s +++ b/src/internal/bytealg/equal_riscv64.s @@ -9,12 +9,6 @@ // func memequal(a, b unsafe.Pointer, size uintptr) bool TEXT runtime·memequal<ABIInternal>(SB),NOSPLIT|NOFRAME,$0-25 -#ifndef GOEXPERIMENT_regabiargs - MOV a+0(FP), X10 - MOV b+8(FP), X11 - MOV size+16(FP), X12 - MOV $ret+24(FP), X13 -#endif // X10 = a_base // X11 = b_base // X12 = size @@ -23,11 +17,6 @@ TEXT runtime·memequal<ABIInternal>(SB),NOSPLIT|NOFRAME,$0-25 // func memequal_varlen(a, b unsafe.Pointer) bool TEXT runtime·memequal_varlen<ABIInternal>(SB),NOSPLIT|NOFRAME,$0-17 MOV 8(CTXT), X12 // compiler stores size at offset 8 in the closure -#ifndef GOEXPERIMENT_regabiargs - MOV a+0(FP), X10 - MOV b+8(FP), X11 - MOV $ret+16(FP), X13 -#endif // X10 = a_base // X11 = b_base JMP memequal<>(SB) @@ -128,17 +117,8 @@ loop1: JMP loop1 not_eq: -#ifndef GOEXPERIMENT_regabiargs - MOVB ZERO, (X13) -#else MOVB ZERO, X10 -#endif RET eq: -#ifndef GOEXPERIMENT_regabiargs MOV $1, X10 - MOVB X10, (X13) -#else - MOV $1, X10 -#endif RET diff --git a/src/internal/bytealg/indexbyte_riscv64.s b/src/internal/bytealg/indexbyte_riscv64.s index a20396592b..8be78ed950 100644 --- a/src/internal/bytealg/indexbyte_riscv64.s +++ b/src/internal/bytealg/indexbyte_riscv64.s @@ -6,11 +6,6 @@ #include "textflag.h" TEXT ·IndexByte<ABIInternal>(SB),NOSPLIT,$0-40 -#ifndef GOEXPERIMENT_regabiargs - MOV b_base+0(FP), X10 - MOV b_len+8(FP), X11 - MOVBU c+24(FP), X13 // byte to find -#endif // X10 = b_base // X11 = b_len // X12 = b_cap (unused) @@ -27,24 +22,13 @@ loop: BNE X13, X14, loop SUB X12, X10 // remove base -#ifndef GOEXPERIMENT_regabiargs - MOV X10, ret+32(FP) -#endif RET notfound: MOV $-1, X10 -#ifndef GOEXPERIMENT_regabiargs - MOV X10, ret+32(FP) -#endif RET TEXT ·IndexByteString<ABIInternal>(SB),NOSPLIT,$0-32 -#ifndef GOEXPERIMENT_regabiargs - MOV s_base+0(FP), X10 - MOV s_len+8(FP), X11 - MOVBU c+16(FP), X12 // byte to find -#endif // X10 = b_base // X11 = b_len // X12 = byte to find @@ -60,14 +44,8 @@ loop: BNE X12, X14, loop SUB X13, X10 // remove base -#ifndef GOEXPERIMENT_regabiargs - MOV X10, ret+24(FP) -#endif RET notfound: MOV $-1, X10 -#ifndef GOEXPERIMENT_regabiargs - MOV X10, ret+24(FP) -#endif RET |
