gcc-patches@gcc.gnu.org
[Top] [All Lists]

Re: Patch to fix _mm_sqrt_sd intrinsic

Subject: Re: Patch to fix _mm_sqrt_sd intrinsic
From: Fariborz Jahanian
Date: Thu, 25 Aug 2005 08:36:27 -0700
Forgot to mention the documentation. It is available on this site:

http://developer.intel.com/design/pentium4/manuals/index_new.htm

Specifically it is documented at:

page 286 (SQRTSD) of IA-32 Intel Architecture Software Developer's Manual Volume 2B.

- fariborz

On Aug 24, 2005, at 5:45 PM, Fariborz Jahanian wrote:


Title: _mm_sqrt_sd incorrect

The Intel reference manuals say it shall be this:

     __m128d _mm_sqrt_sd( __m128d );

and the emmintrin.h header says this:

     __m128d _mm_sqrt_sd( __m128d, __m128d );

This patch fixed it.

OK for FSF checkin?

- fariborz (fjahanian@xxxxxxxxx)

ChangeLog

2005-08-24  Fariborz Jahanian <fjahanian@xxxxxxxxx>

        * config/i386/emmintrin.h (_mm_sqrt_sd): New definition.

testsuite/ChangeLog

2005-08-24  Fariborz Jahanian <fjahanian@xxxxxxxxx>

    * gcc.apple/i386-builtin-sqrt-1.c: New.



<fsf-patch.txt>


<Prev in Thread] Current Thread [Next in Thread>