AVX-512. 80/n. Extend expand_sse2_mulvxdi3.
authorAlexander Ivchenko <alexander.ivchenko@intel.com>
Fri, 17 Oct 2014 12:53:24 +0000 (12:53 +0000)
committerKirill Yukhin <kyukhin@gcc.gnu.org>
Fri, 17 Oct 2014 12:53:24 +0000 (12:53 +0000)
gcc/
* config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Extend
expand_sse2_mulvxdi3.

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: r216400

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

index 5cacce59a8386ecba79106fd18698c635b75e9b5..c756191683336be5a550466ab6c1754467ff496b 100644 (file)
@@ -1,3 +1,15 @@
+2014-10-17  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_sse2_mulvxdi3): Extend
+       expand_sse2_mulvxdi3.
+
 2014-10-17  Richard Biener  <rguenther@suse.de>
 
        * fold-const.c (fold_comparison): Remove redundant constant
index 7e8a32b790a002d8f6dee8ff1ab47f49f9475c0e..52b411f9f1ce023ddfe6a70a9b31ca80590a05a2 100644 (file)
@@ -45623,7 +45623,22 @@ ix86_expand_sse2_mulvxdi3 (rtx op0, rtx op1, rtx op2)
   enum machine_mode mode = GET_MODE (op0);
   rtx t1, t2, t3, t4, t5, t6;
 
-  if (TARGET_XOP && mode == V2DImode)
+  if (TARGET_AVX512DQ)
+    {
+      rtx (*gen) (rtx, rtx, rtx);
+
+      if (mode == V8DImode)
+       gen = gen_avx512dq_mulv8di3;
+      else if (TARGET_AVX512VL)
+       {
+         if (mode == V4DImode)
+           gen = gen_avx512dq_mulv4di3;
+         else if (mode == V2DImode)
+           gen = gen_avx512dq_mulv2di3;
+       }
+      emit_insn (gen (op0, op1, op2));
+    }
+  else if (TARGET_XOP && mode == V2DImode)
     {
       /* op1: A,B,C,D, op2: E,F,G,H */
       op1 = gen_lowpart (V4SImode, op1);