From: H.J. Lu Date: Sun, 21 Oct 2018 10:46:48 +0000 (+0000) Subject: i386: Update FP add/sub with AVX512 memory broadcast X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ea1adf1d532124f2ed41e3220105562d3df3333c;p=gcc.git i386: Update FP add/sub with AVX512 memory broadcast * config/i386/sse.md (*3_bcst_1): Remove plus. Renamed to ... (*sub3_bcst): This. (*add3_bcst_2): Renamede to ... (*add3_bcst): This. From-SVN: r265352 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d4ce80617b1..505c949c013 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2018-10-21 H.J. Lu + + * config/i386/sse.md (*3_bcst_1): + Remove plus. Renamed to ... + (*sub3_bcst): This. + (*add3_bcst_2): Renamede to ... + (*add3_bcst): This. + 2018-10-21 H.J. Lu PR target/72782 diff --git a/gcc/config/i386/sse.md b/gcc/config/i386/sse.md index f29ee9df94d..520afc56272 100644 --- a/gcc/config/i386/sse.md +++ b/gcc/config/i386/sse.md @@ -1684,21 +1684,21 @@ (set_attr "prefix" "") (set_attr "mode" "")]) -(define_insn "*3_bcst_1" +(define_insn "*sub3_bcst" [(set (match_operand:VF_AVX512 0 "register_operand" "=v") - (plusminus:VF_AVX512 + (minus:VF_AVX512 (match_operand:VF_AVX512 1 "register_operand" "v") (vec_duplicate:VF_AVX512 (match_operand: 2 "memory_operand" "m"))))] "TARGET_AVX512F - && ix86_binary_operator_ok (, mode, operands) + && ix86_binary_operator_ok (MINUS, mode, operands) && " - "v\t{%2, %1, %0|%0, %1, %2}" + "vsub\t{%2, %1, %0|%0, %1, %2}" [(set_attr "prefix" "evex") (set_attr "type" "sseadd") (set_attr "mode" "")]) -(define_insn "*add3_bcst_2" +(define_insn "*add3_bcst" [(set (match_operand:VF_AVX512 0 "register_operand" "=v") (plus:VF_AVX512 (vec_duplicate:VF_AVX512