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]
Other format: [Raw text]

Re: Reloading does not proper work on my new 8 bit target, please help


> #define EXTRA_MEMORY_CONSTRAINT(C)  ((C) == 'S'||(C) == 'T')
...
> (define_insn "movhi_internal"
>   [(set (match_operand:HI 0 "nonimmediate_operand" "=a, a, a, rtj, rte, S,
> T,  f, f, j")
>         (match_operand:HI 1 "general_operand"       "a, f, i,  S,   T , rtj,
> rte, a, i, R"))]
>   "(register_operand (operands[0],HImode)
>     || register_operand (operands[1],HImode) )"
> "*{ 
>    switch (which_alternative)
>     { 
>      case 0:
>           return (AS2 (mov,%A0,%A1) CR_TAB
>                   AS2 (mov,%B0,%B1));break;
> ... and so on.
>  )

This is not valid.  Look up EXTRA_MEMORY_CONSTRAINT in tm.texi.
You need to combine S and T into one constraint, say U, which can be
EXTRA_MEMORY_CONSTRAINT; S and T by themselves can't.
Then you can use "=a,a,a,rt,j,e,S,T,f,f,j" / "a,f,i,U,S,T,rtj,rte,a,i,R" .


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