From: "H. J. Lu" <hjl@lucon.org>
To: Nick Clifton <nickc@redhat.com>
Cc: binutils@sources.redhat.com
Subject: Re: PATCH: Add --alt-nops=short|long to x86/x86-64 assemblers
Date: Thu, 15 Jun 2006 15:00:00 -0000 [thread overview]
Message-ID: <20060615145825.GB7470@lucon.org> (raw)
In-Reply-To: <449111FC.8010909@redhat.com>
On Thu, Jun 15, 2006 at 08:53:32AM +0100, Nick Clifton wrote:
> Hi H. J.
>
> >x86/x86-64 assemblers don't support -mtune/-march/-mcpu.
>
> Ahh. How does the assembler know which instruction set variants are
> valid then ? (I am thinking of the all the different SSE, PowerNow, etc
> variants).
By default, the x86/x86-64 assemblers take everything. You can limit
the instruction set with .arch directive. Until now, we never generate
instructions beyond i386 ourselves. So it isn't a problem.
>
> >We need a switch to tell
> >assembler if the new nop instructions can be used at all. Secondly,
> >not all modern processors prefer "long" versions. We need another
> >switch to tell which kind of the new nop instructions should be used,
> >short or long.
>
> In which case the default presumably ought to be the short version and
> the long version should only be enabled if explicitly requested via a
> command line switch.
>
> >Maybe I should add -march= and -mtune= to assembler.
>
> It sounds like it would be a good idea, although if it is only to
> support this new feature then you may not want to go that far.
I am considering adding -mtune= and updating document to indicate that
all instructions are allowed by default. But I will do some experiment
first.
H.J.
prev parent reply other threads:[~2006-06-15 14:58 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-13 20:45 H. J. Lu
2006-06-14 8:30 ` Nick Clifton
2006-06-14 15:14 ` H. J. Lu
2006-06-14 17:20 ` Nick Clifton
2006-06-14 18:07 ` H. J. Lu
2006-06-15 8:10 ` Nick Clifton
2006-06-15 14:51 ` Paul Brook
2006-06-15 15:15 ` H. J. Lu
2006-06-15 15:28 ` Paul Brook
2006-06-15 16:20 ` H. J. Lu
2006-06-15 17:08 ` Paul Brook
2006-06-15 17:41 ` H. J. Lu
2006-06-15 18:45 ` Paul Brook
2006-06-15 18:58 ` H. J. Lu
2006-06-15 19:02 ` Paul Brook
2006-06-16 7:27 ` PATCH: Add -march=/-mtune= to x86 assembler H. J. Lu
2006-06-16 15:26 ` H. J. Lu
2006-06-15 15:00 ` H. J. Lu [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=20060615145825.GB7470@lucon.org \
--to=hjl@lucon.org \
--cc=binutils@sources.redhat.com \
--cc=nickc@redhat.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).