swap (a, b) suggestion

Richard Henderson rth@cygnus.com
Sun Jan 4 22:09:00 GMT 1998


On Sun, Jan 04, 1998 at 08:32:58AM -0500, Alan Lehotsky wrote:
> That's the way I did this in my enhancements to the SHARC DSP port
> of GCC.  It has an instruction that allows parallel register
> assignments, so I can do
> 
> 		ra=pass rb, rb=ra;

And the way it should probably be done on x86 as well, since 
it has an xchg instruction.


r~



More information about the Gcc mailing list