From: Alexander Ivchenko Date: Tue, 28 Oct 2014 14:01:00 +0000 (+0000) Subject: AVX-512. 84/n. Add missing immediate checks. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a40be84c87e346b41c6086a11fc8ccf74e011687;p=gcc.git AVX-512. 84/n. Add missing immediate checks. gcc/ * config/i386/i386.c (ix86_expand_args_builtin): Handle avx_vpermilv4df_mask, avx_shufpd256_mask, avx_vpermilv2df_mask. Co-Authored-By: Andrey Turetskiy Co-Authored-By: Anna Tikhonova Co-Authored-By: Ilya Tocar Co-Authored-By: Ilya Verbin Co-Authored-By: Kirill Yukhin Co-Authored-By: Maxim Kuznetsov Co-Authored-By: Michael Zolotukhin From-SVN: r216797 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e0c27a2a98f..a7da6e766d4 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,16 @@ +2014-10-28 Alexander Ivchenko + Maxim Kuznetsov + Anna Tikhonova + Ilya Tocar + Andrey Turetskiy + Ilya Verbin + Kirill Yukhin + Michael Zolotukhin + + * config/i386/i386.c + (ix86_expand_args_builtin): Handle avx_vpermilv4df_mask, + avx_shufpd256_mask, avx_vpermilv2df_mask. + 2014-10-28 Alexander Ivchenko Maxim Kuznetsov Anna Tikhonova diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 8148b11a93c..71a4f6a3996 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -36630,6 +36630,7 @@ ix86_expand_args_builtin (const struct builtin_description *d, case CODE_FOR_sse4_1_blendps: case CODE_FOR_avx_blendpd256: case CODE_FOR_avx_vpermilv4df: + case CODE_FOR_avx_vpermilv4df_mask: case CODE_FOR_avx512f_getmantv8df_mask: case CODE_FOR_avx512f_getmantv16sf_mask: case CODE_FOR_avx512vl_getmantv8sf_mask: @@ -36642,12 +36643,14 @@ ix86_expand_args_builtin (const struct builtin_description *d, case CODE_FOR_avx512dq_rangepv8sf_mask: case CODE_FOR_avx512dq_rangepv2df_mask: case CODE_FOR_avx512dq_rangepv4sf_mask: + case CODE_FOR_avx_shufpd256_mask: error ("the last argument must be a 4-bit immediate"); return const0_rtx; case CODE_FOR_sha1rnds4: case CODE_FOR_sse4_1_blendpd: case CODE_FOR_avx_vpermilv2df: + case CODE_FOR_avx_vpermilv2df_mask: case CODE_FOR_xop_vpermil2v2df3: case CODE_FOR_xop_vpermil2v4sf3: case CODE_FOR_xop_vpermil2v4df3: