This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: inline assembly
- From: Ian Lance Taylor <iant at google dot com>
- To: reed kotler <rkotler at mips dot com>
- Cc: <gcc at gcc dot gnu dot org>
- Date: Fri, 24 Feb 2012 19:07:19 -0800
- Subject: Re: inline assembly
- Authentication-results: mr.google.com; spf=pass (google.com: domain of iant@google.com designates 10.224.34.196 as permitted sender) smtp.mail=iant@google.com; dkim=pass header.i=iant@google.com
- References: <4F480841.7050107@mips.com>
reed kotler <rkotler@mips.com> writes:
> For extended inline assembly, there are constraints. Some seem to be
> supported by all architectures and some specific to a particular
> architecture.
>
> Where are these defined in gcc source?
>
> Some seem to be in constraints.md and some not.
Machine-specific constraints are normally defined in, as you say,
config/CPU/constraints.md.
The generic constraints are handled in a few different places, notably
ira-*.c, reload.c and recog.c. Probably the easiest way to find them is
to grep for REG_CLASS_FROM_CONSTRAINT and check the code around the
places where that is used.
Ian