From: Nick Clifton <nickc@redhat.com>
To: Christophe Lyon <christophe.lyon@st.com>
Cc: Binutils <binutils@sourceware.org>
Subject: Re: [ARM] How to query gas for target properties?
Date: Wed, 27 Oct 2010 13:45:00 -0000 [thread overview]
Message-ID: <4CC82CF9.5000007@redhat.com> (raw)
In-Reply-To: <4CBBF909.8040206@st.com>
Hi Christophe,
> I'd like to write an assembly code fragment with some parts conditional
> to some target properties.
> For instance, on ARM, I'd like to know if the target has the Neon
> extension, ie gas if gas was invoked with -mfpu=neon.
>
> I have been able to perform some other conditions (eg architecture
> variant) through cpp, but I have found nothing enabling to know that
> -mfpu=neon was used.
Probably the easiest method would be to write the code in C as extended
assembler statements and check for the presence of the __ARM_NEON__
preprocessor variable.
Cheers
Nick
next prev parent reply other threads:[~2010-10-27 13:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-18 7:37 Christophe Lyon
2010-10-27 13:45 ` Nick Clifton [this message]
2010-11-04 15:44 ` Christophe Lyon
2010-11-05 3:23 ` Ramana Radhakrishnan
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=4CC82CF9.5000007@redhat.com \
--to=nickc@redhat.com \
--cc=binutils@sourceware.org \
--cc=christophe.lyon@st.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).