PATCH: Support Intel AVX Programming Reference (December, 2008)

Uros Bizjak ubizjak@gmail.com
Tue Jan 6 07:22:00 GMT 2009


On Tue, Jan 6, 2009 at 1:49 AM, H.J. Lu <hongjiu.lu@intel.com> wrote:

> Intel AVX Programming Reference (December, 2008)
>
> http://software.intel.com/sites/avx/
>
> removed vpermil2ps/vpermil2pd.  Here is a patch to support it.  OK for
> trunk?
>
> Thanks.
>
>
> H.J.
> ---
> gcc/
>
> 2008-12-23  H.J. Lu  <hongjiu.lu@intel.com>
>
>        AVX Programming Reference (December, 2008)
>        * config/i386/avxintrin.h (_mm_permute2_pd): Removed.
>        (_mm256_permute2_pd): Likewise.
>        (_mm_permute2_ps): Likewise.
>        (_mm256_permute2_ps): Likewise.
>        * config/i386/i386.md (UNSPEC_VPERMIL2): Likewise.
>        * config/i386/sse.md (avx_vpermil2<mode>3): Likewise.
>
>        * config/i386/i386.c (ix86_builtins): Remove
>        IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
>        IX86_BUILTIN_VPERMIL2PD256 and IX86_BUILTIN_VPERMIL2PS256.
>        (ix86_builtin_type): Remove V8SF_FTYPE_V8SF_V8SF_V8SI_INT,
>        V4DF_FTYPE_V4DF_V4DF_V4DI_INT, V4SF_FTYPE_V4SF_V4SF_V4SI_INT
>        and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
>        (bdesc_args): Remove __builtin_ia32_vpermil2pd,
>        __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256 and
>        __builtin_ia32_vpermil2ps256.
>        (ix86_init_mmx_sse_builtins): Updated.
>        (ix86_expand_args_builtin): Likewise.
>
> gcc/testsuite/
>
> 2008-12-23  H.J. Lu  <hongjiu.lu@intel.com>
>
>        AVX Programming Reference (December, 2008)
>        * gcc.target/i386/avx-2.c: Remove tests for _mm_permute2_pd,
>        _mm256_permute2_pd, _mm_permute2_ps and _mm256_permute2_ps.
>        * gcc.target/i386/sse-14.c: Likewise.
>
>        * gcc.target/i386/avx-vpermil2pd-1.c: Removed.
>        * gcc.target/i386/avx-vpermil2ps-1.c: Likewise.
>        * gcc.target/i386/avx-vpermil2pd-256-1.c: Likewise.
>        * gcc.target/i386/avx-vpermil2ps-256-1.c: Likewise.

This is OK for mainline.

Thanks,
Uros.



More information about the Gcc-patches mailing list