]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/arm64: fix assemble movk bug
authorfanzha02 <fannie.zhang@arm.com>
Tue, 13 Jun 2017 10:16:41 +0000 (10:16 +0000)
committerCherry Zhang <cherryyz@google.com>
Tue, 22 Aug 2017 13:10:08 +0000 (13:10 +0000)
commitbdd7c01b558acdfbf10376308251cc979db066d5
tree801af4f76ae9650a9caf1de8071579a237e6f690
parent33484a6ad23d3e4d4da6c80edbae4b2a0a75e84f
cmd/internal/obj/arm64: fix assemble movk bug

The current code gets shift arguments value from prog.From3.Offset.
But prog.From3.Offset is not assigned the shift arguments value in
instructions assemble process.

The fix calls movcon() function to get the correct value.

Uncomment the movk/movkw  cases.

Fixes #21398
Change-Id: I78d40c33c24bd4e3688a04622e4af7ddb5333fa6
Reviewed-on: https://go-review.googlesource.com/54990
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/asm/testdata/arm64enc.s
src/cmd/internal/obj/arm64/asm7.go