This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Bug in PPC inline assembly?



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)



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]