diff options
author | Rémy Oudompheng <oudomphe@phare.normalesup.org> | 2012-11-12 23:56:11 +0100 |
---|---|---|
committer | Rémy Oudompheng <oudomphe@phare.normalesup.org> | 2012-11-12 23:56:11 +0100 |
commit | eb4f4d16ae6333171c14f8da304f2bfa2829e4ff (patch) | |
tree | d38fc2952fccf46817637626cda40d9c2daa2c92 /test/torture.go | |
parent | 80f4ff226ff8fb36ba3c8b4808982c6664ce47c3 (diff) | |
download | go-eb4f4d16ae6333171c14f8da304f2bfa2829e4ff.tar.gz go-eb4f4d16ae6333171c14f8da304f2bfa2829e4ff.zip |
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
Diffstat (limited to 'test/torture.go')
-rw-r--r-- | test/torture.go | 31 |
1 files changed, 15 insertions, 16 deletions
diff --git a/test/torture.go b/test/torture.go index c510bb9237..d14d78fd14 100644 --- a/test/torture.go +++ b/test/torture.go @@ -279,12 +279,12 @@ func ChainAssertArrayIndex(u *UArr) J { Children[0].(*UArr). Children[0].(*UArr). Children[0].(*UArr). - // Children[0].(*UArr). - // Children[0].(*UArr). - // Children[0].(*UArr). - // Children[0].(*UArr). - // Children[0].(*UArr). - // Children[0].(*UArr). + Children[0].(*UArr). + Children[0].(*UArr). + Children[0].(*UArr). + Children[0].(*UArr). + Children[0].(*UArr). + Children[0].(*UArr). Children[0] } @@ -295,21 +295,20 @@ type UArrPtr struct { func (u *UArrPtr) Child(n int) J { return u.Children[n] } func ChainAssertArrayptrIndex(u *UArrPtr) J { - // TODO: don't crash on longer chains. return u. Children[0].(*UArrPtr). Children[0].(*UArrPtr). Children[0].(*UArrPtr). Children[0].(*UArrPtr). - // Children[0].(*UArrPtr). - // Children[0].(*UArrPtr). - // Children[0].(*UArrPtr). - // Children[0].(*UArrPtr). - // Children[0].(*UArrPtr). - // Children[0].(*UArrPtr). - // Children[0].(*UArrPtr). - // Children[0].(*UArrPtr). - // Children[0].(*UArrPtr). + Children[0].(*UArrPtr). + Children[0].(*UArrPtr). + Children[0].(*UArrPtr). + Children[0].(*UArrPtr). + Children[0].(*UArrPtr). + Children[0].(*UArrPtr). + Children[0].(*UArrPtr). + Children[0].(*UArrPtr). + Children[0].(*UArrPtr). Children[0] } |