This is the mail archive of the binutils@sourceware.cygnus.com mailing list for the binutils project.


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

Re: gas (2.9.1.0.23) on Linux2.2.10 and 3DNow !?



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.


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