]> Cypherpunks repositories - gostls13.git/commit
[dev.cc] cmd/asm: support ARM
authorRob Pike <r@golang.org>
Sat, 14 Feb 2015 01:01:43 +0000 (17:01 -0800)
committerRob Pike <r@golang.org>
Tue, 17 Feb 2015 03:37:17 +0000 (03:37 +0000)
commitc497349a5b03d0bdee18bdb4b4fe2d833df37d95
treefd4ab7eaa7594eada309e9429408888c8a2ab43d
parentae2b145da20b292b2a6349b5d19b67b6c82e10e0
[dev.cc] cmd/asm: support ARM

There are many peculiarites of the ARM architecture that require work:
condition codes, new instructions, new instruction arg counts, and more.

Rewrite the parser to do a cleaner job, flowing left to right through the
sequence of elements of an operand.

Add ARM to arch.
Add ARM-specific details to the arch in a new file, internal/arch/arm.
These are probably better kept away from the "portable" asm. However
there are some pieces, like MRC, that are hard to disentangle. They
can be cleaned up later.

Change-Id: I8c06aedcf61f8a3960a406c094e168182d21b972
Reviewed-on: https://go-review.googlesource.com/4923
Reviewed-by: Russ Cox <rsc@golang.org>
src/cmd/asm/internal/arch/arch.go
src/cmd/asm/internal/arch/arm.go [new file with mode: 0644]
src/cmd/asm/internal/asm/asm.go
src/cmd/asm/internal/asm/parse.go