From: Alexander Ivchenko Date: Wed, 27 Aug 2014 11:14:16 +0000 (+0000) Subject: sse.md (define_mode_iterator VI48_AVX2_48_AVX512F): Delete. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=38f4b55004b0e6c7ffc5a8138db457ce5df12ff1;p=gcc.git sse.md (define_mode_iterator VI48_AVX2_48_AVX512F): Delete. gcc/ * config/i386/sse.md (define_mode_iterator VI48_AVX2_48_AVX512F): Delete. (define_mode_iterator VI48_AVX512BW): New. (define_insn "_v"): Delete. (define_insn "_v" with VI48_AVX2_48_AVX512F): New. (define_insn "_v" with VI2_AVX512VL): Ditto. 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: r214569 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3156965eb08..ded0288c082 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,21 @@ +2014-08-27 Alexander Ivchenko + Maxim Kuznetsov + Anna Tikhonova + Ilya Tocar + Andrey Turetskiy + Ilya Verbin + Kirill Yukhin + Michael Zolotukhin + + * config/i386/sse.md + (define_mode_iterator VI48_AVX2_48_AVX512F): Delete. + (define_mode_iterator VI48_AVX512BW): New. + (define_insn "_v"): Delete. + (define_insn "_v" + with VI48_AVX2_48_AVX512F): New. + (define_insn "_v" + with VI2_AVX512VL): Ditto. + 2014-08-27 Richard Biener PR middle-end/62239 diff --git a/gcc/config/i386/sse.md b/gcc/config/i386/sse.md index 5084892f221..cd0c08e77b6 100644 --- a/gcc/config/i386/sse.md +++ b/gcc/config/i386/sse.md @@ -359,9 +359,9 @@ (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 @@ -15320,17 +15320,28 @@ (set_attr "prefix" "maybe_evex") (set_attr "mode" "")]) -(define_insn "_v" - [(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 "_v" + [(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 && " "vpv\t{%2, %1, %0|%0, %1, %2}" [(set_attr "type" "sseishft") (set_attr "prefix" "maybe_evex") (set_attr "mode" "")]) +(define_insn "_v" + [(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" + "vpv\t{%2, %1, %0|%0, %1, %2}" + [(set_attr "type" "sseishft") + (set_attr "prefix" "maybe_evex") + (set_attr "mode" "")]) + ;; For avx_vec_concat insn pattern (define_mode_attr concat_tg_mode [(V32QI "t") (V16HI "t") (V8SI "t") (V4DI "t") (V8SF "t") (V4DF "t")