From c305ca7f629af0e4799bf2147967b43eff1dc548 Mon Sep 17 00:00:00 2001 From: Alexander Ivchenko Date: Tue, 14 Oct 2014 08:45:17 +0000 Subject: [PATCH] AVX-512. 70/n. Add vpmaxmin. gcc/ * config/i386/sse.md (define_insn "*sse4_1_3"): Add masking. (define_insn "*sse4_1_3"): 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: r216187 --- gcc/ChangeLog | 13 +++++++++++++ gcc/config/i386/sse.md | 28 ++++++++++++++++------------ 2 files changed, 29 insertions(+), 12 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4416b51b219..351615149c3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,16 @@ +2014-10-14 Alexander Ivchenko + Maxim Kuznetsov + Anna Tikhonova + Ilya Tocar + Andrey Turetskiy + Ilya Verbin + Kirill Yukhin + Michael Zolotukhin + + * config/i386/sse.md + (define_insn "*sse4_1_3"): Add masking. + (define_insn "*sse4_1_3"): Ditto. + 2014-10-14 Alexander Ivchenko Maxim Kuznetsov Anna Tikhonova diff --git a/gcc/config/i386/sse.md b/gcc/config/i386/sse.md index 30fc1dc5fa1..1de21e4b687 100644 --- a/gcc/config/i386/sse.md +++ b/gcc/config/i386/sse.md @@ -10096,15 +10096,17 @@ } }) -(define_insn "*sse4_1_3" - [(set (match_operand:VI14_128 0 "register_operand" "=x,x") +(define_insn "*sse4_1_3" + [(set (match_operand:VI14_128 0 "register_operand" "=x,v") (smaxmin:VI14_128 - (match_operand:VI14_128 1 "nonimmediate_operand" "%0,x") - (match_operand:VI14_128 2 "nonimmediate_operand" "xm,xm")))] - "TARGET_SSE4_1 && ix86_binary_operator_ok (, mode, operands)" + (match_operand:VI14_128 1 "nonimmediate_operand" "%0,v") + (match_operand:VI14_128 2 "nonimmediate_operand" "xm,vm")))] + "TARGET_SSE4_1 + && + && ix86_binary_operator_ok (, mode, operands)" "@ p\t{%2, %0|%0, %2} - vp\t{%2, %1, %0|%0, %1, %2}" + vp\t{%2, %1, %0|%0, %1, %2}" [(set_attr "isa" "noavx,avx") (set_attr "type" "sseiadd") (set_attr "prefix_extra" "1,*") @@ -10177,15 +10179,17 @@ } }) -(define_insn "*sse4_1_3" - [(set (match_operand:VI24_128 0 "register_operand" "=x,x") +(define_insn "*sse4_1_3" + [(set (match_operand:VI24_128 0 "register_operand" "=x,v") (umaxmin:VI24_128 - (match_operand:VI24_128 1 "nonimmediate_operand" "%0,x") - (match_operand:VI24_128 2 "nonimmediate_operand" "xm,xm")))] - "TARGET_SSE4_1 && ix86_binary_operator_ok (, mode, operands)" + (match_operand:VI24_128 1 "nonimmediate_operand" "%0,v") + (match_operand:VI24_128 2 "nonimmediate_operand" "xm,vm")))] + "TARGET_SSE4_1 + && + && ix86_binary_operator_ok (, mode, operands)" "@ p\t{%2, %0|%0, %2} - vp\t{%2, %1, %0|%0, %1, %2}" + vp\t{%2, %1, %0|%0, %1, %2}" [(set_attr "isa" "noavx,avx") (set_attr "type" "sseiadd") (set_attr "prefix_extra" "1,*")