Re: [patch 4/7] Immediate Values - i386 Optimization

Jeremy Fitzhardinge
2007-09-18T22:27:59Z

H. Peter Anvin wrote:
> Allowing different registers should be doable, but if so, one would have
> to put 0: at the *end* of the instruction and use (0f)-4 instead, since
> the non-%eax forms are one byte longer.
>

OK, that's already a problem since its using "=r" as the constraint.

> This also seems "safer", since an imm32 is always the last thing in the
> instruction.

Good idea. If gas/gcc generates entirely the wrong addressing mode,
then we've got bigger problems.

J