]> Cypherpunks repositories - gostls13.git/commit
cmd/asm: add PRFM instruction on ARM64
authorfanzha02 <fannie.zhang@arm.com>
Thu, 30 Nov 2017 08:30:53 +0000 (08:30 +0000)
committerCherry Zhang <cherryyz@google.com>
Wed, 14 Feb 2018 17:09:52 +0000 (17:09 +0000)
commitebd4950e3b52dda243baf8330b5cac49125a4a9a
tree99ebd03f9436895771dd9b0da22ea7daea5215f2
parent0938e4cf90101ed718aebf63b583970267c87701
cmd/asm: add PRFM instruction on ARM64

The current assembler cannot handle PRFM(immediate) instruciton.
The fix creates a prfopfield struct that contains the eight
prefetch operations and the value to use in instruction. And add
the test cases.

Fixes #22932

Change-Id: I621d611bd930ef3c42306a4372447c46d53b2ccf
Reviewed-on: https://go-review.googlesource.com/81675
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/arch.go
src/cmd/asm/internal/asm/testdata/arm64.s
src/cmd/internal/obj/arm64/a.out.go
src/cmd/internal/obj/arm64/asm7.go
src/cmd/internal/obj/arm64/doc.go
src/cmd/internal/obj/arm64/list7.go