]> Cypherpunks repositories - gostls13.git/commit
cmd/5g, cmd/6g: pass the full torture test.
authorRémy Oudompheng <oudomphe@phare.normalesup.org>
Mon, 12 Nov 2012 22:56:11 +0000 (23:56 +0100)
committerRémy Oudompheng <oudomphe@phare.normalesup.org>
Mon, 12 Nov 2012 22:56:11 +0000 (23:56 +0100)
commiteb4f4d16ae6333171c14f8da304f2bfa2829e4ff
treed38fc2952fccf46817637626cda40d9c2daa2c92
parent80f4ff226ff8fb36ba3c8b4808982c6664ce47c3
cmd/5g, cmd/6g: pass the full torture test.

The patch adds more cases to agenr to allocate registers later,
and makes 6g generate addresses for sgen in something else than
SI and DI. It avoids a complex save/restore sequence that
amounts to allocate a register before descending in subtrees.

Fixes #4207.

R=golang-dev, dave, rsc
CC=golang-dev
https://golang.org/cl/6817080
src/cmd/5g/cgen.c
src/cmd/5g/gsubr.c
src/cmd/6g/cgen.c
test/torture.go