Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(204)

Issue 13602043: code review 13602043: cmd/5g, cmd/6g, cmd/8g: simplify for loop in bitmap gen... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 8 months ago by rsc
Modified:
11 years, 8 months ago
Reviewers:
mischief, ken3, ality, r, lucio, jnj
CC:
ken2, golang-dev
Visibility:
Public.

Description

cmd/5g, cmd/6g, cmd/8g: simplify for loop in bitmap generation Lucio De Re reports that the more complex loop miscompiles on Plan 9.

Patch Set 1 #

Patch Set 2 : diff -r f09e38f4b079 https://code.google.com/p/go/ #

Patch Set 3 : diff -r f09e38f4b079 https://code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -3 lines) Patch
M src/cmd/5g/ggen.c View 1 2 chunks +3 lines, -1 line 0 comments Download
M src/cmd/6g/ggen.c View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M src/cmd/8g/ggen.c View 1 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 10
rsc
Hello ken2 (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go/
11 years, 8 months ago (2013-09-06 20:49:09 UTC) #1
rsc
*** Submitted as https://code.google.com/p/go/source/detail?r=db7810a9efbc *** cmd/5g, cmd/6g, cmd/8g: simplify for loop in bitmap generation Lucio ...
11 years, 8 months ago (2013-09-06 20:49:13 UTC) #2
ken3
On 2013/09/06 20:49:13, rsc wrote: > *** Submitted as https://code.google.com/p/go/source/detail?r=db7810a9efbc *** > > cmd/5g, cmd/6g, ...
11 years, 8 months ago (2013-09-06 21:24:15 UTC) #3
jnj
On 2013/09/06 20:49:13, rsc wrote: > *** Submitted as https://code.google.com/p/go/source/detail?r=db7810a9efbc *** > > cmd/5g, cmd/6g, ...
11 years, 8 months ago (2013-09-07 01:44:47 UTC) #4
r
A little more detail would be helpful. As it stands, your message is no more ...
11 years, 8 months ago (2013-09-07 01:52:21 UTC) #5
jnj
On 2013/09/07 01:52:21, r wrote: > A little more detail would be helpful. As it ...
11 years, 8 months ago (2013-09-07 02:31:38 UTC) #6
lucio
The problem lies, if Quanstro is right, with the computation of the offset as the ...
11 years, 8 months ago (2013-09-07 05:07:13 UTC) #7
ality
Lucio De Re <lucio.dere@gmail.com> once said: > The problem lies, if Quanstro is right, with ...
11 years, 8 months ago (2013-09-07 10:32:26 UTC) #8
lucio
Thank you for the confirmation, Anthony. I hope that does not inspire the Go developers ...
11 years, 8 months ago (2013-09-07 11:42:57 UTC) #9
mischief
11 years, 8 months ago (2013-09-09 11:30:05 UTC) #10
Message was sent while issue was closed.
On 2013/09/07 11:42:57, lucio wrote:
> Thank you for the confirmation, Anthony.  I hope that does not inspire
> the Go developers to suggest we compel the Plan 9 developers to fix
> the problem on their side :-)
> 
> There is something confusing about the types involved in the loop I
> tried to simplify.  There are vlongs, uints and ints variously
> involved.  Very ugly under the covers and I could not quite identify
> the rationale for the confusion.
> 
> Lucio,
> 
> On 9/7/13, Anthony Martin <mailto:ality@pbrane.org> wrote:
> > Lucio De Re <mailto:lucio.dere@gmail.com> once said:
> >> The problem lies, if Quanstro is right, with the computation of the
> >> offset as the last argument of the appendp() invocation.  My
> >> adjustment, which is a simplification, moves the computation out of
> >> the loop.
> >
> > Erik is correct. There's a bug in 8c's 64-bit
> > code generation. Here's a minimal reproducer:
> >
> > $ cat x.c
> > unsigned long long x;
> >
> > int f(int);
> >
> > void
> > test(void)
> > {
> > 	int a;
> > 	
> > 	a = f(a-x+a);
> > }
> > % go tool 8c x.c
> > x.c:11 out of fixed registers
> > %
> >
> >   Anthony
> >

this fails in the same manner as described in the 9fans post on 9front with 8c.
using the prior cl by lucio (13456043) does work.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b