From: Alexander Ivchenko Date: Wed, 27 Aug 2014 11:35:12 +0000 (+0000) Subject: sse.md (define_insn "avx512dq_broadcast_1"): Use ... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4854de0d69db23f9217635e3d681d92f4be6c7be;p=gcc.git sse.md (define_insn "avx512dq_broadcast_1"): Use `concat_tg_mode' attribute to determine asm register size. gcc/ * config/i386/sse.md (define_insn "avx512dq_broadcast_1"): Use `concat_tg_mode' attribute to determine asm register size. 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: r214571 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5ccfd6e206e..2cddc45f88c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -7,7 +7,20 @@ Kirill Yukhin Michael Zolotukhin - * config/i386/sse.md + * config/i386/sse.md + (define_insn "avx512dq_broadcast_1"): + Use `concat_tg_mode' attribute to determine asm register size. + +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_AVX512VL): New. (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete. (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New. diff --git a/gcc/config/i386/sse.md b/gcc/config/i386/sse.md index 2fac897fb4d..c0a79dfc235 100644 --- a/gcc/config/i386/sse.md +++ b/gcc/config/i386/sse.md @@ -718,6 +718,12 @@ (V16SF "ss") (V8SF "ss") (V4SF "ss") (V8DF "sd") (V4DF "sd") (V2DF "sd")]) +;; Tie mode of assembler operand to mode iterator +(define_mode_attr concat_tg_mode + [(V32QI "t") (V16HI "t") (V8SI "t") (V4DI "t") (V8SF "t") (V4DF "t") + (V64QI "g") (V32HI "g") (V16SI "g") (V8DI "g") (V16SF "g") (V8DF "g")]) + + ;; Include define_subst patterns for instructions with mask (include "subst.md") @@ -14702,7 +14708,7 @@ (match_operand:<64x2mode> 1 "nonimmediate_operand" "v,m")))] "TARGET_AVX512DQ" "@ - vshuf64x2\t{$0x0, %g1, %g1, %0|%0, %g1, %g1, 0x0} + vshuf64x2\t{$0x0, %1, %1, %0|%0, %1, %1, 0x0} vbroadcast64x2\t{%1, %0|%0, %1}" [(set_attr "type" "ssemov") (set_attr "prefix_extra" "1") @@ -15448,11 +15454,6 @@ (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") - (V64QI "g") (V32HI "g") (V16SI "g") (V8DI "g") (V16SF "g") (V8DF "g")]) - (define_insn "avx_vec_concat" [(set (match_operand:V_256_512 0 "register_operand" "=x,x") (vec_concat:V_256_512