Bug in PPC inline assembly?
Alan Lehotsky
apl@alum.mit.edu
Mon Jul 18 01:11:00 GMT 2005
On Jul 17, 2005, at 19:15, Stefan wrote:
> I have some problems with using inline PowerPC assembly in GCC
> (4.0.1). Consider the following code:
>
> void save_fp_register(double* buffer)
> {
> asm("stfd F0, 0(%0)" : : "r" (buffer) );
> }
>
Try using 'b' for the constraint - that selects for an "address base
register", as opposed to 'r'
that is any of the general registers (including R0)
More information about the Gcc
mailing list