9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Charles Forsyth <forsyth@terzarima.net>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] sparc compiler bug
Date: Mon, 10 Jan 2005 10:44:41 +0000	[thread overview]
Message-ID: <adc5e295842f7e20cd7e91e0e9dbf0b2@terzarima.net> (raw)
In-Reply-To: <Pine.BSI.4.58.0501091248230.10670@malasada.lava.net>

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

only the linker knows the details, so any change would be made to kl.
it's using the same approach for inherently 2-address FP instructions as
it does for 3 address FP/INT instructions where only two operands are specified
(set the third register to one of the others).

i know the change needed but i'm curious whether they've added a trap
check to the hardware that wasn't there before, or whether it's just
something else complaining (but the hardware still doesn't).

when i say i know the change needed, i'm assuming i'm `supposed'
to set the field to 0 (even though that's also a valid register number).
i can't find my sparc handbook today.

[-- Attachment #2: Type: message/rfc822, Size: 2628 bytes --]

From: Tim Newsham <newsham@lava.net>
To: 9fans@cse.psu.edu
Subject: [9fans] sparc compiler bug
Date: Sun, 9 Jan 2005 12:52:49 -1000 (HST)
Message-ID: <Pine.BSI.4.58.0501091248230.10670@malasada.lava.net>

When generating conversion like "FsTOd" the compiler
is generating invalid opcodes.  The format for this
and related instructions has an rs2 and an rd field but
designates the rs1 field as reserved.  The compiler/assembler/linker
is generating:

    opcode=FsToD, rd=6, rs1=6, rs2=10

for the opcode "FSTOD F10, F6."  This is an illegal use of a
reserved field.  I've tried to track this down
but I'm still unfamiliar with the compiler suite.

Tim N.

      reply	other threads:[~2005-01-10 10:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-09 22:52 Tim Newsham
2005-01-10 10:44 ` Charles Forsyth [this message]

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=adc5e295842f7e20cd7e91e0e9dbf0b2@terzarima.net \
    --to=forsyth@terzarima.net \
    --cc=9fans@cse.psu.edu \
    /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).