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

Issue 2540042: code review 2540042: runtime: fix arm softfloat again for R12 (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
16 years ago by rsc
Modified:
16 years ago
Reviewers:
kaib, ken3
CC:
ken2, golang-dev
Visibility:
Public.

Description

runtime: fix arm softfloat again for R12 Missed a case, so now generalized.

Patch Set 1 #

Patch Set 2 : code review 2540042: runtime: fix arm softfloat again for R12 #

Patch Set 3 : code review 2540042: runtime: fix arm softfloat again for R12 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -34 lines) Patch
M src/pkg/runtime/arm/softfloat.c View 3 chunks +8 lines, -34 lines 0 comments Download

Messages

Total messages: 5
rsc
Hello ken2 (cc: golang-dev@googlegroups.com), I'd like you to review this change.
16 years ago (2010-10-18 17:24:17 UTC) #1
rsc
*** Submitted as 9f3acaf1a4e8 *** runtime: fix arm softfloat again for R12 Missed a case, ...
16 years ago (2010-10-18 17:24:26 UTC) #2
rsc
> +++ b/src/pkg/runtime/arm/softfloat.c > @@ -449,7 +449,7 @@ > - tlen = i>>(22 - 1)&1 ...
16 years ago (2010-10-18 17:29:44 UTC) #3
ken3
lgtm
16 years ago (2010-10-18 22:07:04 UTC) #4
kaib
16 years ago (2010-10-19 09:54:20 UTC) #5
On Mon, Oct 18, 2010 at 8:29 PM, Russ Cox <rsc@golang.org> wrote:
>> +++ b/src/pkg/runtime/arm/softfloat.c
>> @@ -449,7 +449,7 @@
>> -       tlen = i>>(22 - 1)&1 | i>>15&1;
>> +       tlen = i>>(22 - 1)&1 | i>>15&1; // NOTE(rsc): should this say
i>>(22-1)&2 (not &1)?
>
> well kai, should it?  :-)
> as written tlen is an | of two values <= 1,
> but then there is a check for tlen > 1 below.
> also as written the first half of the | is the same as wb.

it should be i>>(22-1)&2. that said, if the t1 bit (22) is set the
format is either extended, packed decimal or extended packed decimal.
none of those are supported so we do the tlen > 1 check and go to
undef. this is really a sanity check, the linker should never generate
code with t1 set..

 kai
Sign in to reply to this message.

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