]> Cypherpunks repositories - gostls13.git/commit
cmd/asm: add rotr/drotr for mips64
authorMeng Zhuo <mzh@golangcn.org>
Tue, 16 Mar 2021 10:51:41 +0000 (18:51 +0800)
committerMeng Zhuo <mzh@golangcn.org>
Tue, 16 Mar 2021 14:31:05 +0000 (14:31 +0000)
commite31e84010e0989e1df4bd2c55d529497119bb345
tree59dc67c8c530fa09d3f71bf9c335ec057b28d340
parentbd0fc0b9c32e3697380a6484154accacdb928f97
cmd/asm: add rotr/drotr for mips64

This CL encodes:

ROTR rd, rt, sa
ROTRV rd, rt, rs

=> ROTR (SCON|REG), (REG,)? REG

DROTR rd, rt, sa
DROTR32 rd, rt, sa
DROTRV rd, rt, rs

=> ROTRV (SCON|REG), (REG,)? REG

Note: ROTRV will handle const over 32
Ref: The MIPS64® Instruction Set Reference Manual Revision 6.05
Change-Id: Ibe69f999b83eb43843d088cf1ac5a13c995269a5
Reviewed-on: https://go-review.googlesource.com/c/go/+/280114
Trust: Meng Zhuo <mzh@golangcn.org>
Run-TryBot: Meng Zhuo <mzh@golangcn.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/cmd/asm/internal/asm/testdata/mips64.s
src/cmd/internal/obj/mips/a.out.go
src/cmd/internal/obj/mips/anames.go
src/cmd/internal/obj/mips/asm0.go