]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/arm: support BFX/BFXU instructions
authorBen Shi <powerman1st@163.com>
Wed, 16 Aug 2017 07:05:34 +0000 (07:05 +0000)
committerCherry Zhang <cherryyz@google.com>
Mon, 21 Aug 2017 16:29:59 +0000 (16:29 +0000)
commit9bf521b2b467f00f21752cafd97cadabbc2e8879
treef4239b9ea4015ac199f46c20c73ecd474c9e7cf9
parent07ec4385f16ad5d10933f4540624aba8b48b1891
cmd/internal/obj/arm: support BFX/BFXU instructions

BFX extracts given bits from the source register, sign extends them
to 32-bit, and writes to destination register. BFXU does the similar
operation with zero extention.

They were introduced in ARMv6T2.

Change-Id: I6822ebf663497a87a662d3645eddd7c611de2b1e
Reviewed-on: https://go-review.googlesource.com/56071
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/cmd/asm/internal/arch/arm.go
src/cmd/asm/internal/asm/asm.go
src/cmd/asm/internal/asm/testdata/arm.s
src/cmd/asm/internal/asm/testdata/armerror.s
src/cmd/internal/obj/arm/a.out.go
src/cmd/internal/obj/arm/anames.go
src/cmd/internal/obj/arm/asm5.go