]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/mips: add SEB/SEH instructions
authorJunxian Zhu <zhujunxian@oss.cipunited.com>
Thu, 3 Aug 2023 06:44:01 +0000 (14:44 +0800)
committerJoel Sing <joel@sing.id.au>
Tue, 8 Aug 2023 12:17:12 +0000 (12:17 +0000)
commit24f83ed4e29495d5b8b6375aeaa2d34d14629c7d
tree932f6991ef81eecd665e8eadea98c4274c92463b
parent87fe5faffca1bce0db513a3c1bb640ccf6a04bc7
cmd/internal/obj/mips: add SEB/SEH instructions

Add support for SEB/SEH instructions, which are introduced in mips32r2.

SEB/SEH can be used to sign-extend byte/halfword in registers directly without passing through memory.

Ref: The MIPS32 Instruction Set, Revision 5.04: https://s3-eu-west-1.amazonaws.com/downloads-mips/documents/MD00086-2B-MIPS32BIS-AFP-05.04.pdf

Updates #60072

Change-Id: I33175ae9d943ead5983ac004bd2a158039046d65
Reviewed-on: https://go-review.googlesource.com/c/go/+/515475
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Run-TryBot: Joel Sing <joel@sing.id.au>
src/cmd/asm/internal/asm/testdata/mips.s
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