From: Alexander Ivchenko Date: Fri, 12 Sep 2014 07:38:47 +0000 (+0000) Subject: AVX-512. Extend vpternlog, valign, vrotate insns. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6ead0238de25faf67f38a61ac5cacde8125d9fa2;p=gcc.git AVX-512. Extend vpternlog, valign, vrotate insns. gcc/ * config/i386/sse.md (define_mode_iterator VI48_AVX512VL): New. (define_expand "_vternlog_maskz"): Rename from "avx512f_vternlog_maskz" and update mode iterator. (define_insn "_vternlog"): Rename from "avx512f_vternlog" and update mode iterator. (define_insn "_vternlog_mask"): Rename from "avx512f_vternlog_mask" and update mode iterator. (define_insn "_align"): Rename from "avx512f_align" and update mode iterator. (define_insn "_v"): Rename from "avx512f_v" and update mode iterator. (define_insn "_"): Rename from "avx512f_" and update mode iterator. (define_insn "clz2"): Use VI48_AVX512VL mode iterator. (define_insn "conflict"): 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: r215203 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d6cdc269b10..4b70dd5e01f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,30 @@ +2014-09-12 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_expand "_vternlog_maskz"): Rename from + "avx512f_vternlog_maskz" and update mode iterator. + (define_insn "_vternlog"): Rename + from "avx512f_vternlog" and update mode iterator. + (define_insn "_vternlog_mask"): Rename from + "avx512f_vternlog_mask" and update mode iterator. + (define_insn "_align"): Rename + from "avx512f_align" and update mode + iterator. + (define_insn "_v"): Rename from + "avx512f_v" and update mode iterator. + (define_insn "_"): Rename from + "avx512f_" and update mode iterator. + (define_insn "clz2"): Use VI48_AVX512VL mode iterator. + (define_insn "conflict"): Ditto. + 2014-09-12 Alexander Ivchenko Maxim Kuznetsov Anna Tikhonova diff --git a/gcc/config/i386/sse.md b/gcc/config/i386/sse.md index 92f94b98cb5..73bdd224a67 100644 --- a/gcc/config/i386/sse.md +++ b/gcc/config/i386/sse.md @@ -7158,27 +7158,27 @@ [(set_attr "prefix" "evex") (set_attr "mode" "")]) -(define_expand "avx512f_vternlog_maskz" - [(match_operand:VI48_512 0 "register_operand") - (match_operand:VI48_512 1 "register_operand") - (match_operand:VI48_512 2 "register_operand") - (match_operand:VI48_512 3 "nonimmediate_operand") +(define_expand "_vternlog_maskz" + [(match_operand:VI48_AVX512VL 0 "register_operand") + (match_operand:VI48_AVX512VL 1 "register_operand") + (match_operand:VI48_AVX512VL 2 "register_operand") + (match_operand:VI48_AVX512VL 3 "nonimmediate_operand") (match_operand:SI 4 "const_0_to_255_operand") (match_operand: 5 "register_operand")] "TARGET_AVX512F" { - emit_insn (gen_avx512f_vternlog_maskz_1 ( + emit_insn (gen__vternlog_maskz_1 ( operands[0], operands[1], operands[2], operands[3], operands[4], CONST0_RTX (mode), operands[5])); DONE; }) -(define_insn "avx512f_vternlog" - [(set (match_operand:VI48_512 0 "register_operand" "=v") - (unspec:VI48_512 - [(match_operand:VI48_512 1 "register_operand" "0") - (match_operand:VI48_512 2 "register_operand" "v") - (match_operand:VI48_512 3 "nonimmediate_operand" "vm") +(define_insn "_vternlog" + [(set (match_operand:VI48_AVX512VL 0 "register_operand" "=v") + (unspec:VI48_AVX512VL + [(match_operand:VI48_AVX512VL 1 "register_operand" "0") + (match_operand:VI48_AVX512VL 2 "register_operand" "v") + (match_operand:VI48_AVX512VL 3 "nonimmediate_operand" "vm") (match_operand:SI 4 "const_0_to_255_operand")] UNSPEC_VTERNLOG))] "TARGET_AVX512F" @@ -7187,13 +7187,13 @@ (set_attr "prefix" "evex") (set_attr "mode" "")]) -(define_insn "avx512f_vternlog_mask" - [(set (match_operand:VI48_512 0 "register_operand" "=v") - (vec_merge:VI48_512 - (unspec:VI48_512 - [(match_operand:VI48_512 1 "register_operand" "0") - (match_operand:VI48_512 2 "register_operand" "v") - (match_operand:VI48_512 3 "nonimmediate_operand" "vm") +(define_insn "_vternlog_mask" + [(set (match_operand:VI48_AVX512VL 0 "register_operand" "=v") + (vec_merge:VI48_AVX512VL + (unspec:VI48_AVX512VL + [(match_operand:VI48_AVX512VL 1 "register_operand" "0") + (match_operand:VI48_AVX512VL 2 "register_operand" "v") + (match_operand:VI48_AVX512VL 3 "nonimmediate_operand" "vm") (match_operand:SI 4 "const_0_to_255_operand")] UNSPEC_VTERNLOG) (match_dup 1) @@ -7227,12 +7227,12 @@ [(set_attr "prefix" "evex") (set_attr "mode" "")]) -(define_insn "avx512f_align" - [(set (match_operand:VI48_512 0 "register_operand" "=v") - (unspec:VI48_512 [(match_operand:VI48_512 1 "register_operand" "v") - (match_operand:VI48_512 2 "nonimmediate_operand" "vm") - (match_operand:SI 3 "const_0_to_255_operand")] - UNSPEC_ALIGN))] +(define_insn "_align" + [(set (match_operand:VI48_AVX512VL 0 "register_operand" "=v") + (unspec:VI48_AVX512VL [(match_operand:VI48_AVX512VL 1 "register_operand" "v") + (match_operand:VI48_AVX512VL 2 "nonimmediate_operand" "vm") + (match_operand:SI 3 "const_0_to_255_operand")] + UNSPEC_ALIGN))] "TARGET_AVX512F" "valign\t{%3, %2, %1, %0|%0, %1, %2, %3}"; [(set_attr "prefix" "evex") @@ -9430,20 +9430,20 @@ (set_attr "prefix" "orig,vex") (set_attr "mode" "")]) -(define_insn "avx512f_v" - [(set (match_operand:VI48_512 0 "register_operand" "=v") - (any_rotate:VI48_512 - (match_operand:VI48_512 1 "register_operand" "v") - (match_operand:VI48_512 2 "nonimmediate_operand" "vm")))] +(define_insn "_v" + [(set (match_operand:VI48_AVX512VL 0 "register_operand" "=v") + (any_rotate:VI48_AVX512VL + (match_operand:VI48_AVX512VL 1 "register_operand" "v") + (match_operand:VI48_AVX512VL 2 "nonimmediate_operand" "vm")))] "TARGET_AVX512F" "vpv\t{%2, %1, %0|%0, %1, %2}" [(set_attr "prefix" "evex") (set_attr "mode" "")]) -(define_insn "avx512f_" - [(set (match_operand:VI48_512 0 "register_operand" "=v") - (any_rotate:VI48_512 - (match_operand:VI48_512 1 "nonimmediate_operand" "vm") +(define_insn "_" + [(set (match_operand:VI48_AVX512VL 0 "register_operand" "=v") + (any_rotate:VI48_AVX512VL + (match_operand:VI48_AVX512VL 1 "nonimmediate_operand" "vm") (match_operand:SI 2 "const_0_to_255_operand")))] "TARGET_AVX512F" "vp\t{%2, %1, %0|%0, %1, %2}" @@ -17011,9 +17011,9 @@ (set_attr "mode" "")]) (define_insn "clz2" - [(set (match_operand:VI48_512 0 "register_operand" "=v") - (clz:VI48_512 - (match_operand:VI48_512 1 "nonimmediate_operand" "vm")))] + [(set (match_operand:VI48_AVX512VL 0 "register_operand" "=v") + (clz:VI48_AVX512VL + (match_operand:VI48_AVX512VL 1 "nonimmediate_operand" "vm")))] "TARGET_AVX512CD" "vplzcnt\t{%1, %0|%0, %1}" [(set_attr "type" "sse") @@ -17021,9 +17021,9 @@ (set_attr "mode" "")]) (define_insn "conflict" - [(set (match_operand:VI48_512 0 "register_operand" "=v") - (unspec:VI48_512 - [(match_operand:VI48_512 1 "nonimmediate_operand" "vm")] + [(set (match_operand:VI48_AVX512VL 0 "register_operand" "=v") + (unspec:VI48_AVX512VL + [(match_operand:VI48_AVX512VL 1 "nonimmediate_operand" "vm")] UNSPEC_CONFLICT))] "TARGET_AVX512CD" "vpconflict\t{%1, %0|%0, %1}"