sse.md (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
authorAlexander Ivchenko <alexander.ivchenko@intel.com>
Wed, 27 Aug 2014 11:14:16 +0000 (11:14 +0000)
committerKirill Yukhin <kyukhin@gcc.gnu.org>
Wed, 27 Aug 2014 11:14:16 +0000 (11:14 +0000)
gcc/
        * config/i386/sse.md
(define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
(define_mode_iterator VI48_AVX512BW): New.
(define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
(define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
with VI48_AVX2_48_AVX512F): New.
(define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
with VI2_AVX512VL): Ditto.

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

gcc/ChangeLog
gcc/config/i386/sse.md

index 3156965eb08058b90059d7c35c3411f94b1d83f1..ded0288c0827815b15bff56772ca60ad437d8be2 100644 (file)
@@ -1,3 +1,21 @@
+2014-08-27  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/sse.md
+       (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
+       (define_mode_iterator VI48_AVX512BW): New.
+       (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
+       (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
+       with VI48_AVX2_48_AVX512F): New.
+       (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
+       with VI2_AVX512VL): Ditto.
+
 2014-08-27  Richard Biener  <rguenther@suse.de>
 
        PR middle-end/62239
index 5084892f2216f63e1e6698a701cf3bdbd69511a2..cd0c08e77b678eae3dad8af570a2901a8b9d5f04 100644 (file)
    (V8SI "TARGET_AVX2") V4SI
    (V8DI "TARGET_AVX512F") (V4DI "TARGET_AVX2") V2DI])
 
-(define_mode_iterator VI48_AVX2_48_AVX512F
-  [(V16SI "TARGET_AVX512F") (V8SI "TARGET_AVX2") V4SI
-   (V8DI "TARGET_AVX512F") (V4DI "TARGET_AVX2") V2DI])
+(define_mode_iterator VI48_AVX512F
+  [(V16SI "TARGET_AVX512F") V8SI V4SI
+   (V8DI "TARGET_AVX512F") V4DI V2DI])
 
 (define_mode_iterator V48_AVX2
   [V4SF V2DF
    (set_attr "prefix" "maybe_evex")
    (set_attr "mode" "<sseinsnmode>")])
 
-(define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"
-  [(set (match_operand:VI48_AVX2_48_AVX512F 0 "register_operand" "=v")
-       (any_lshift:VI48_AVX2_48_AVX512F
-         (match_operand:VI48_AVX2_48_AVX512F 1 "register_operand" "v")
-         (match_operand:VI48_AVX2_48_AVX512F 2 "nonimmediate_operand" "vm")))]
+(define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
+  [(set (match_operand:VI48_AVX512F 0 "register_operand" "=v")
+       (any_lshift:VI48_AVX512F
+         (match_operand:VI48_AVX512F 1 "register_operand" "v")
+         (match_operand:VI48_AVX512F 2 "nonimmediate_operand" "vm")))]
   "TARGET_AVX2 && <mask_mode512bit_condition>"
   "vp<vshift>v<ssemodesuffix>\t{%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %2}"
   [(set_attr "type" "sseishft")
    (set_attr "prefix" "maybe_evex")
    (set_attr "mode" "<sseinsnmode>")])
 
+(define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
+  [(set (match_operand:VI2_AVX512VL 0 "register_operand" "=v")
+       (any_lshift:VI2_AVX512VL
+         (match_operand:VI2_AVX512VL 1 "register_operand" "v")
+         (match_operand:VI2_AVX512VL 2 "nonimmediate_operand" "vm")))]
+  "TARGET_AVX512BW"
+  "vp<vshift>v<ssemodesuffix>\t{%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %2}"
+  [(set_attr "type" "sseishft")
+   (set_attr "prefix" "maybe_evex")
+   (set_attr "mode" "<sseinsnmode>")])
+
 ;; For avx_vec_concat<mode> insn pattern
 (define_mode_attr concat_tg_mode
   [(V32QI "t") (V16HI "t") (V8SI "t") (V4DI "t") (V8SF "t") (V4DF "t")