This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Re: gas (2.9.1.0.23) on Linux2.2.10 and 3DNow !?
- To: Mathias Puetz <mpuetz@unm.edu>
- Subject: Re: gas (2.9.1.0.23) on Linux2.2.10 and 3DNow !?
- From: Alan Modra <alan@SPRI.Levels.UniSA.Edu.Au>
- Date: Fri, 20 Aug 1999 14:15:50 +0930 (CST)
- cc: binutils@sourceware.cygnus.com
On Thu, 19 Aug 1999, Mathias Puetz wrote:
> /* now add the two using a single 3DNow SIMD addition */
>
> asm ("femms
> movq a,%mm0
> pfadd b,%mm0
> movq %mm0,c" );
>
> printf("%f %f\n",c.f[0],c.f[1]);
You need another "femms" at the end of your asm to clear the mmx register
state. ie. before printf uses normal floating point instructions to print
your results.