]> Cypherpunks repositories - gostls13.git/commit
cmd/asm: fix operand order of ARM's MULA instruction
authorBen Shi <powerman1st@163.com>
Fri, 28 Apr 2017 10:55:41 +0000 (10:55 +0000)
committerCherry Zhang <cherryyz@google.com>
Sat, 6 May 2017 01:28:38 +0000 (01:28 +0000)
commit4b2f7b4b51180424c4e84b50d99e1fba5b6f3e89
tree2367280ea958e75ecca88e55d1373b01975b16f6
parent6d9b900a6f25274ca28a33c2cb5550dbb5f01be1
cmd/asm: fix operand order of ARM's MULA instruction

As discussion in issue #19141, the addend should be the third
argument of MULA. This patch fixes it in both the front end
and the back end of the assembler. And also tests are added to
the encoding test.

Fixes #19141

Change-Id: Idbc6f338b8fdfcad97a135f27a98c5b375b27d43
Reviewed-on: https://go-review.googlesource.com/42028
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/asm.go
src/cmd/asm/internal/asm/testdata/arm.s
src/cmd/internal/obj/arm/asm5.go
src/cmd/internal/obj/util.go