9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Bruce Ellis <bruce.ellis@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] MIPS LE fp register ordering in MOVD
Date: Fri, 27 Dec 2013 15:32:46 +1100	[thread overview]
Message-ID: <CAJQxxwkLNAQ2M3aTFD3OZQ=X14TMABXGs0ow=i_79S9XYr_ohA@mail.gmail.com> (raw)
In-Reply-To: <CACzOosDxFnO2v+iHQ1ZxrkZh8oHwVEoOuQc_qDVH7Cx5dm5gAA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1270 bytes --]

You might be able to blame the play station 2 and the two different MIPS
chips it had. I did two compilers. The FP was very unusual and one was LE
and the other BE. Inferno port worked well.

brucee


On 27 December 2013 14:41, cherry <lunaria21@gmail.com> wrote:

>
>
>
> On Thu, Dec 26, 2013 at 6:46 PM, cherry <lunaria21@gmail.com> wrote:
>
>> Another issue is 0l/vl seems to output wrong bits for single precision
>> floats in little endian mode, due to a similar reason: it used bytes 4-7
>> instead of 0-3. This seems to fix it:
>>
>> % diff /sys/src/cmd/vl/asm.c asm.c
>> 672c672,675
>> <                     buf.dbuf[l] = cast[fnuxi8[i+4]];
>> ---
>> >                     if(little)
>> >                         buf.dbuf[l] = cast[fnuxi8[i]];
>> >                     else
>> >                         buf.dbuf[l] = cast[fnuxi8[i+4]];
>>
>> An alternative fix would be simply use fnuxi4 instead of fnuxi8, so that
>> both BE and LE would work (I guess, don't have BE machine to test).
>>
>
> Indeed I can test it, simply diff the output of vl before and after.
> Using, fnuxi4 does NOT work for BE, as fnuxi4 is only set for LE
> (obj.c:1385,1404), probably due to (the same or another) historical reason.
>
> - cherry
>
>

[-- Attachment #2: Type: text/html, Size: 2075 bytes --]

  reply	other threads:[~2013-12-27  4:32 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-24 17:20 cherry
2013-12-26 23:46 ` cherry
2013-12-26 23:48   ` erik quanstrom
2013-12-27  0:25     ` cherry
2013-12-27  1:40       ` cinap_lenrek
2013-12-27  3:40         ` cherry
2013-12-30  7:12       ` Skip Tavakkolian
2013-12-27  3:41   ` cherry
2013-12-27  4:32     ` Bruce Ellis [this message]
2013-12-27  4:41       ` lucio
2013-12-27 22:32         ` Bruce Ellis
2013-12-28  1:22       ` cherry
2013-12-28  1:47         ` Bruce Ellis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAJQxxwkLNAQ2M3aTFD3OZQ=X14TMABXGs0ow=i_79S9XYr_ohA@mail.gmail.com' \
    --to=bruce.ellis@gmail.com \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).