This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Reloading does not proper work on my new 8 bit target, please help
- From: Joern Rennecke <joern dot rennecke at superh dot com>
- To: ildar at unicore dot ru
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 16 Mar 2004 17:11:57 +0000 (GMT)
- Subject: 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" .