AVX types: __m256d versus __v4sd

Ian Lance Taylor iant@google.com
Thu Mar 22 21:19:00 GMT 2012


James Cloos <cloos@jhcloos.com> writes:

>>>>>> "ILT" == Ian Lance Taylor <iant@google.com> writes:
>
> ILT> The gcc documentation does not document the use of the Intel
> ILT> intrinsics.  They are documented by Intel.
>
> I was thinking of (gcc.info.bz2)X86 Built-in Functions, documenting such
> builtins as v2df __builtin_ia32_hsubpd (v2df, v2df) and the like.

Ah, sorry, I misunderstand.

For the Intel intrinsics, use __m64 and friends.

For the __builtin_ia32 functions, it's OK to use __v2df and friends.
Really it doesn't matter too much.  But frankly I recommend using the
Intel intrinsics instead.  They are easier to understand and use
correctly.

Ian



More information about the Gcc-help mailing list