[PATCH] A new meta intrinsic header file for current and future x86 instrinsics.

rajagopal, dwarak dwarak.rajagopal@amd.com
Mon Dec 8 16:10:00 GMT 2008


> 
> H.J. Lu wrote:
> > On Wed, Dec 3, 2008 at 8:06 AM, H.J. Lu <hjl.tools@gmail.com> wrote:
> >
> >> On Wed, Dec 3, 2008 at 8:03 AM, rajagopal, dwarak
> >> <dwarak.rajagopal@amd.com> wrote:
> >>
> >>>> Dwarak, can you based on the ideas in
> >>>> immintrin.h
> >>>> provide an implementation of x86intrin.h we can add to GCC?
> >>>>
> >>>>
> >>> Attached is a patch that implements x86intrin.h. I'll add
> "x86intrin.h"
> >>> to gcc.target tests if this patch is Ok?
> >>>
> >>>
> >> Why not just include <immintrin.h> for MMX, SSE, SSE2, SSE3, SSSE4
and
> AVX?
> >>
> >>
> >>
> >
> > Will this patch work?
> >
> 
> This patch is OK (with the ChangeLog) if there are no other objections
> within 24h.
> 
> Thanks,
> Uros.
> 

Hi Uros,
Why do we need to add "immintrin.h" which contains all intrinsics
supported by Intel, instead of having MMX, SSE, SSE2, SSE3, SSSE4 and
AVX in the x86intrin.h file? Why do we think this is a better approach
than just including all the instruction set specific files in
x86intrin.h? Isn't it simpler and clearer to have all the *intrin.h
files included directly in x86intrin.h.

Thanks,
Dwarak



More information about the Gcc-patches mailing list