]> Cypherpunks repositories - gostls13.git/commit
internal/bytealg: mask high bit for riscv64 regabi
authorMeng Zhuo <mzh@golangcn.org>
Thu, 28 Apr 2022 15:20:53 +0000 (23:20 +0800)
committermzh <mzh@golangcn.org>
Tue, 3 May 2022 14:36:37 +0000 (14:36 +0000)
commitd0cda4d95f4c889fdb4988750f704604553c35a4
tree7112385eb0ec07f29cf8f43ef84d9bf60d0e8247
parentb75e492b35746ca3b327f7b353f4912e705a3125
internal/bytealg: mask high bit for riscv64 regabi

This CL masks byte params which high bits(~0xff) is unused for riscv64
regabi.
Currently the compiler only guarantees the low bits contains value.

Change-Id: I6dd6c867e60d2143fefde92c866f78c4b007a2f7
Reviewed-on: https://go-review.googlesource.com/c/go/+/402894
Reviewed-by: Cherry Mui <cherryyz@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: mzh <mzh@golangcn.org>
Reviewed-by: Benny Siegert <bsiegert@gmail.com>
src/internal/bytealg/count_riscv64.s
src/internal/bytealg/indexbyte_riscv64.s