This is the mail archive of the gcc-patches@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]

Re: AMD Athlon support


On Wed, Sep 29, 1999 at 12:46:07PM +0200, Jan Hubicka wrote:
> ! 	  /* The Athlon handle ffree instruction as internal NOP, so using it
> ! 	   to pop the top of stack is preffered over the fstp %st(0) one.
> ! 
> ! 	   The AMD Athlon Code Optimization Note recommend usage of this
> ! 	   instructions and warns about bad documentation of it in the past.
> ! 	   It says that instruction works on all CPUs in x86 CPU familly but
> ! 	   says that it is not supported by some assemblers. I am not sure
> ! 	   about AT&T compatible assemblers. Maybe we can restrict it to the
> ! 	   gas, where it works.  */

"ffree %st0" and "fstp %st0" are not the same operation.  ffree marks
the register as free, but does not affect the stack-top pointer.

It would be possible to enhance reg-stack to kill %st7 (or whatever
the current bottom of the stack is) this way though.  That would save
an fxch+fstp pair...


r~


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