AVX-512. 84/n. Add missing immediate checks.
authorAlexander Ivchenko <alexander.ivchenko@intel.com>
Tue, 28 Oct 2014 14:01:00 +0000 (14:01 +0000)
committerKirill Yukhin <kyukhin@gcc.gnu.org>
Tue, 28 Oct 2014 14:01:00 +0000 (14:01 +0000)
gcc/
* config/i386/i386.c
(ix86_expand_args_builtin): Handle avx_vpermilv4df_mask,
avx_shufpd256_mask, avx_vpermilv2df_mask.

Co-Authored-By: Andrey Turetskiy <andrey.turetskiy@intel.com>
Co-Authored-By: Anna Tikhonova <anna.tikhonova@intel.com>
Co-Authored-By: Ilya Tocar <ilya.tocar@intel.com>
Co-Authored-By: Ilya Verbin <ilya.verbin@intel.com>
Co-Authored-By: Kirill Yukhin <kirill.yukhin@intel.com>
Co-Authored-By: Maxim Kuznetsov <maxim.kuznetsov@intel.com>
Co-Authored-By: Michael Zolotukhin <michael.v.zolotukhin@intel.com>
From-SVN: r216797

gcc/ChangeLog
gcc/config/i386/i386.c

index e0c27a2a98f27e8f744f9483667eeec8dc9a605b..a7da6e766d410da73ae5eb89467886ac279983fa 100644 (file)
@@ -1,3 +1,16 @@
+2014-10-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
+           Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
+           Anna Tikhonova  <anna.tikhonova@intel.com>
+           Ilya Tocar  <ilya.tocar@intel.com>
+           Andrey Turetskiy  <andrey.turetskiy@intel.com>
+           Ilya Verbin  <ilya.verbin@intel.com>
+           Kirill Yukhin  <kirill.yukhin@intel.com>
+           Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
+
+       * config/i386/i386.c
+       (ix86_expand_args_builtin): Handle avx_vpermilv4df_mask,
+       avx_shufpd256_mask, avx_vpermilv2df_mask.
+
 2014-10-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
            Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
            Anna Tikhonova  <anna.tikhonova@intel.com>
index 8148b11a93c55295f1f0cd019b58a2a6a05d0d53..71a4f6a3996a7c140dbc60bcbab972162ff83c4c 100644 (file)
@@ -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: