From: "Kevin D. Kissell" <kevink@mips.com>
To: "Ralf Baechle" <ralf@oss.sgi.com>
Cc: <ppopov@pacbell.net>, <linux-mips@oss.sgi.com>
Subject: Re: r4600 flag
Date: Tue, 31 Jul 2001 13:40:47 +0200 [thread overview]
Message-ID: <006901c119b5$ac8ecfe0$0deca8c0@Ulysses> (raw)
In-Reply-To: 20010731113120.B12409@bacchus.dhis.org
> > Using mips-linux-gcc from egcs-2.91.66, I don't see exactly this
> > behavior in the test case above. I *do* see that *if* I have -mcpu=4600
> > set *and* I have not otherwise set the ISA level to be MIPS I or
> > MIPS II (-mips1, -mips2), 64-bit instructions will be emitted.
> > But that's to be expected.
>
> No, it contradict the GCC documentation:
>
> `-mcpu=CPU TYPE'
> Assume the defaults for the machine type CPU TYPE when scheduling
> instructions. The choices for CPU TYPE are `r2000', `r3000',
> `r3900', `r4000', `r4100', `r4300', `r4400', `r4600', `r4650',
> `r5000', `r6000', `r8000', and `orion'. Additionally, the
> `r2000', `r3000', `r4000', `r5000', and `r6000' can be abbreviated
> as `r2k' (or `r2K'), `r3k', etc. While picking a specific CPU
> TYPE will schedule things appropriately for that particular chip,
> the compiler will not generate any code that does not meet level 1
> of the MIPS ISA (instruction set architecture) without a `-mipsX'
> or `-mabi' switch being used.
In that case, the tools that I've been using are technically
broken. Surprise surprise. Because -mcpu=4600 is
most assuredly setting the ISA level, even if it doesn't
override one explicitly set!
> > To generate 32-bit code for an
> > R4600-like platform, you need to specify both the ISA level
> > (to deal with issues like the above) and the R4600 pipeline
> > (to get the MAD instruction).
>
> No MAD on R4600. Again it would be in contradiction with above document-
> ation. Mad you get with:
Right. Sorry. I got the 4600 and 4650 confused. I no longer
understand why "4600" and not "4650" is the model for MIPS32.
Kevin K.
WARNING: multiple messages have this Message-ID (diff)
From: "Kevin D. Kissell" <kevink@mips.com>
To: Ralf Baechle <ralf@oss.sgi.com>
Cc: ppopov@pacbell.net, linux-mips@oss.sgi.com
Subject: Re: r4600 flag
Date: Tue, 31 Jul 2001 13:40:47 +0200 [thread overview]
Message-ID: <006901c119b5$ac8ecfe0$0deca8c0@Ulysses> (raw)
Message-ID: <20010731114047.5s_IutqHD6iBFJI5J_I0yFbTMoEfWUbMNYBInwT88J4@z> (raw)
In-Reply-To: 20010731113120.B12409@bacchus.dhis.org
> > Using mips-linux-gcc from egcs-2.91.66, I don't see exactly this
> > behavior in the test case above. I *do* see that *if* I have -mcpu=4600
> > set *and* I have not otherwise set the ISA level to be MIPS I or
> > MIPS II (-mips1, -mips2), 64-bit instructions will be emitted.
> > But that's to be expected.
>
> No, it contradict the GCC documentation:
>
> `-mcpu=CPU TYPE'
> Assume the defaults for the machine type CPU TYPE when scheduling
> instructions. The choices for CPU TYPE are `r2000', `r3000',
> `r3900', `r4000', `r4100', `r4300', `r4400', `r4600', `r4650',
> `r5000', `r6000', `r8000', and `orion'. Additionally, the
> `r2000', `r3000', `r4000', `r5000', and `r6000' can be abbreviated
> as `r2k' (or `r2K'), `r3k', etc. While picking a specific CPU
> TYPE will schedule things appropriately for that particular chip,
> the compiler will not generate any code that does not meet level 1
> of the MIPS ISA (instruction set architecture) without a `-mipsX'
> or `-mabi' switch being used.
In that case, the tools that I've been using are technically
broken. Surprise surprise. Because -mcpu=4600 is
most assuredly setting the ISA level, even if it doesn't
override one explicitly set!
> > To generate 32-bit code for an
> > R4600-like platform, you need to specify both the ISA level
> > (to deal with issues like the above) and the R4600 pipeline
> > (to get the MAD instruction).
>
> No MAD on R4600. Again it would be in contradiction with above document-
> ation. Mad you get with:
Right. Sorry. I got the 4600 and 4650 confused. I no longer
understand why "4600" and not "4650" is the model for MIPS32.
Kevin K.
next prev parent reply other threads:[~2001-07-31 11:36 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
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 [this message]
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='006901c119b5$ac8ecfe0$0deca8c0@Ulysses' \
--to=kevink@mips.com \
--cc=linux-mips@oss.sgi.com \
--cc=ppopov@pacbell.net \
--cc=ralf@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.