From: Alexander Ivchenko Date: Tue, 14 Oct 2014 08:28:33 +0000 (+0000) Subject: AVX-512. 64/n. Add rest of VI1-AVX2: vpack[us]wb. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d281ef4281b3948df177898bccd54cd267f522a4;p=gcc.git AVX-512. 64/n. Add rest of VI1-AVX2: vpack[us]wb. gcc/ * config/i386/sse.md (define_insn "_packsswb"): Add masking. (define_insn "_packuswb"): 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: r216181 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ff14980dd31..a3f8471e1f9 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 "_packsswb"): Add masking. + (define_insn "_packuswb"): 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 a71f969535c..2673ddf3073 100644 --- a/gcc/config/i386/sse.md +++ b/gcc/config/i386/sse.md @@ -10840,21 +10840,21 @@ DONE; }) -(define_insn "_packsswb" - [(set (match_operand:VI1_AVX2 0 "register_operand" "=x,x") +(define_insn "_packsswb" + [(set (match_operand:VI1_AVX2 0 "register_operand" "=x,v") (vec_concat:VI1_AVX2 (ss_truncate: - (match_operand: 1 "register_operand" "0,x")) + (match_operand: 1 "register_operand" "0,v")) (ss_truncate: - (match_operand: 2 "nonimmediate_operand" "xm,xm"))))] - "TARGET_SSE2" + (match_operand: 2 "nonimmediate_operand" "xm,vm"))))] + "TARGET_SSE2 && && " "@ packsswb\t{%2, %0|%0, %2} - vpacksswb\t{%2, %1, %0|%0, %1, %2}" + vpacksswb\t{%2, %1, %0|%0, %1, %2}" [(set_attr "isa" "noavx,avx") (set_attr "type" "sselog") (set_attr "prefix_data16" "1,*") - (set_attr "prefix" "orig,vex") + (set_attr "prefix" "orig,maybe_evex") (set_attr "mode" "")]) (define_insn "_packssdw" @@ -10874,17 +10874,17 @@ (set_attr "prefix" "orig,vex") (set_attr "mode" "")]) -(define_insn "_packuswb" - [(set (match_operand:VI1_AVX2 0 "register_operand" "=x,x") +(define_insn "_packuswb" + [(set (match_operand:VI1_AVX2 0 "register_operand" "=x,v") (vec_concat:VI1_AVX2 (us_truncate: - (match_operand: 1 "register_operand" "0,x")) + (match_operand: 1 "register_operand" "0,v")) (us_truncate: - (match_operand: 2 "nonimmediate_operand" "xm,xm"))))] - "TARGET_SSE2" + (match_operand: 2 "nonimmediate_operand" "xm,vm"))))] + "TARGET_SSE2 && && " "@ packuswb\t{%2, %0|%0, %2} - vpackuswb\t{%2, %1, %0|%0, %1, %2}" + vpackuswb\t{%2, %1, %0|%0, %1, %2}" [(set_attr "isa" "noavx,avx") (set_attr "type" "sselog") (set_attr "prefix_data16" "1,*")