]> Cypherpunks repositories - gostls13.git/commit
[dev.cc] cmd/asm: clean up jumps
authorRob Pike <r@golang.org>
Tue, 17 Feb 2015 22:49:04 +0000 (14:49 -0800)
committerRob Pike <r@golang.org>
Tue, 17 Feb 2015 23:17:51 +0000 (23:17 +0000)
commitaa55bd44b9ed8ec8412c346977f414ee50e3e819
tree8c51d20e6b849b3fba8e04d139684481bd08699c
parente190e27143704a70ab2dbdc7d4cb818e3574bb0e
[dev.cc] cmd/asm: clean up jumps

Set TYPE_BRANCH for x(PC) in the parser and the assembler has less work to do.
This also makes the operand test handle -4(PC) correctly.

Also add a special test case for AX:DX, which should be fixed in obj really.

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