Problem in global register allocation
Christian Iseli
chris@lslsun.epfl.ch
Mon Sep 29 01:53:00 GMT 1997
> Try changing the mode of operand 2 to HImode.
That might avoid the problem, though I didn't check.
> In general, mixing modes like that in patterns has lead to problems
> in the past and should be avoided. I've also seen mixing modes like
> that pessimize code, though I didn't investigate why.
Well, it seems I'm not the only one to use such a scheme, the h8300 target
uses it as well, and maybe others too. The thing is that I'm compiling
for a small 8-bit micro with precious few registers. Using 2 or even 4
registers when one is plenty is a *bad* thing on such a beast. I'd rather
try to fix the compiler than put a kludge in the machine description, though
of course, that might not be easy. Any pointer as to where the problem might
come from would be greatly appreciated...
Christian
More information about the Gcc
mailing list