This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: need more constant constraints


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>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]