Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: Ralf Baechle <ralf@oss.sgi.com>
To: Thiemo Seufer <ica2_ts@csv.ica.uni-stuttgart.de>
Cc: linux-mips@oss.sgi.com
Subject: Re: r4600 flag
Date: Tue, 31 Jul 2001 11:25:31 +0200	[thread overview]
Message-ID: <20010731112530.A12409@bacchus.dhis.org> (raw)
In-Reply-To: <20010731092822.L27008@rembrandt.csv.ica.uni-stuttgart.de>; from ica2_ts@csv.ica.uni-stuttgart.de on Tue, Jul 31, 2001 at 09:28:22AM +0200

On Tue, Jul 31, 2001 at 09:28:22AM +0200, Thiemo Seufer wrote:

> > The la macro is split into a lui and a daddiu. The daddiu is not correct 
> > for a mips32 cpu. Getting rid of the -mcpu=4600 fixes the problem and 
> > the daddiu is then changed addiu.
> 
> This is IIRC a known bug in at least current binutils CVS, a patch
> to fix it really was already discussed.

Is this macro expaned by the compiler or assembler?  Just -mcpu=r4600
should not make cc1 generate any instructions beyond MIPS I.

In the past we already had inline assembler fragments that left the assembler
in .misp3 mode thus resulting the rest of the file bein assembled in
mips3 mode.

> > Is there a truly correct -mcpu option for a mips32 cpu?

None is really good, none is really bad ...

> In theory, no -mcpu option (which is to be deprecated in
> favor of -march/-mtune) and -mips32 as ISA flag _should_ work.
> 
> In practice, the patch which adds this to gas was discussed on the
> binutils list the last days and is likely to go in CVS
> today or tomorrow.

  Ralf

  reply	other threads:[~2001-07-31 11:27 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-07-31  5:55 r4600 flag Pete Popov
2001-07-31  7:28 ` Thiemo Seufer
2001-07-31  9:25   ` Ralf Baechle [this message]
2001-07-31 12:58     ` Thiemo Seufer
2001-07-31 13:38     ` Carsten Langgaard
2001-07-31 15:29       ` John D. Davis
2001-08-02 11:54         ` Ralf Baechle
2001-07-31  8:06 ` Kevin D. Kissell
2001-07-31  8:06   ` Kevin D. Kissell
2001-07-31  9:31   ` Ralf Baechle
2001-07-31 11:40     ` Kevin D. Kissell
2001-07-31 11:40       ` Kevin D. Kissell
2001-07-31 13:08       ` Thiemo Seufer

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=20010731112530.A12409@bacchus.dhis.org \
    --to=ralf@oss.sgi.com \
    --cc=ica2_ts@csv.ica.uni-stuttgart.de \
    --cc=linux-mips@oss.sgi.com \
    /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