This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: need more constant constraints
- To: Aldy Hernandez <aldyh at redhat dot com>
- Subject: Re: need more constant constraints
- From: Geoff Keating <geoffk at geoffk dot org>
- Date: 27 Sep 2001 14:39:06 -0700
- CC: gcc at gcc dot gnu dot org
- References: <1001617562.19574.22.camel@culebra.cygnus.com>
Aldy Hernandez <aldyh@redhat.com> writes:
> hi guys.
>
> we have I,J,K,L,M,N,O,P as possible constant constraints to be used in
> CONST_OK_FOR_LETTER_P and friends.
>
> i'm working on altivec support for powerpc and all these letters are
> already used.
>
> can i add new cases to:
>
> recog.c
> regclass.c
> reload.c
>
> see patch below.
>
> what is the recommended approach, or is this correct?
This is probably not correct, unless you've checked that no port uses
'A' ... 'D' for other things.
Have you tried using EXTRA_CONSTRAINT?
It's also possible that some of the new constraints would be better
expressed as predicates.
--
- Geoffrey Keating <geoffk@geoffk.org>