]> Cypherpunks repositories - gostls13.git/commit
[dev.cc] cm/asm: fix up arm after cross-check with 5a
authorRob Pike <r@golang.org>
Sat, 21 Feb 2015 00:02:11 +0000 (16:02 -0800)
committerRob Pike <r@golang.org>
Sat, 21 Feb 2015 01:53:30 +0000 (01:53 +0000)
commit5d111b898ad83fc09470f1a98f481f4e9f5a4cdf
tree28992d29e46120ca5c711f502271a66ec1690f92
parentc11dadc503dede91677cbaef67fb4a0ce2dc6fa8
[dev.cc] cm/asm: fix up arm after cross-check with 5a

As with the previous round for ppc64, this CL fixes a couple of things
that 5a supported but asm did not, both simple.

1) Allow condition code on MRC instruction; this was marked as a TODO.
2) Allow R(n) notation in ARM register shifts.  The code needs a rethink
but the tests we're leading toward will make the rewrite easier to test and
trust.

Change-Id: I5b52ad25d177a74cf07e089dddfeeab21863c424
Reviewed-on: https://go-review.googlesource.com/5422
Reviewed-by: Russ Cox <rsc@golang.org>
src/cmd/asm/internal/arch/arm.go
src/cmd/asm/internal/asm/asm.go
src/cmd/asm/internal/asm/operand_test.go
src/cmd/asm/internal/asm/parse.go