]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/arm: fix wrong encoding of MUL
authorBen Shi <powerman1st@163.com>
Fri, 11 May 2018 06:19:58 +0000 (06:19 +0000)
committerCherry Zhang <cherryyz@google.com>
Mon, 14 May 2018 01:53:39 +0000 (01:53 +0000)
commitbec2f51b07b2d5cf38ac88d21d9bf221e329e132
tree07f697d5ff4aca402b9ae5ce530b04a65a222526
parent3080b7d0af65858400b13134c1c471e2cb35e647
cmd/internal/obj/arm: fix wrong encoding of MUL

The arm assembler incorrectly encodes the following instructions.
"MUL R2, R4" -> 0xe0040492 ("MUL R4, R2, R4")
"MUL R2, R4, R4" -> 0xe0040492 ("MUL R4, R2, R4")

The CL fixes that issue.

fixes #25347

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