From: Alexander Ivchenko Date: Wed, 24 Sep 2014 08:06:30 +0000 (+0000) Subject: AVX-512. Add cvtps2 insn patterns. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=415ebad0b3ed751ffd1ea991350ac770b66c1a97;p=gcc.git AVX-512. Add cvtps2 insn patterns. gcc/ * config/i386/sse.md (define_insn "_fix_notrunc"): Add masking. (define_insn "fix_truncv8sfv8si2"): Ditto. (define_insn "fix_truncv4sfv4si2"): 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: r215545 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a9707a3b8ac..c227481021c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,19 @@ +2014-09-24 Alexander Ivchenko + Maxim Kuznetsov + Anna Tikhonova + Ilya Tocar + Andrey Turetskiy + Ilya Verbin + Kirill Yukhin + Michael Zolotukhin + + * config/i386/sse.md + (define_insn + "_fix_notrunc"): + Add masking. + (define_insn "fix_truncv8sfv8si2"): Ditto. + (define_insn "fix_truncv4sfv4si2"): Ditto. + 2014-09-24 Alexander Ivchenko Maxim Kuznetsov Anna Tikhonova diff --git a/gcc/config/i386/sse.md b/gcc/config/i386/sse.md index d1c399c5755..287fd115e11 100644 --- a/gcc/config/i386/sse.md +++ b/gcc/config/i386/sse.md @@ -3937,13 +3937,13 @@ (define_mode_attr sf2simodelower [(V16SI "v16sf") (V8SI "v8sf") (V4SI "v4sf")]) -(define_insn "_fix_notrunc" +(define_insn "_fix_notrunc" [(set (match_operand:VI4_AVX 0 "register_operand" "=v") (unspec:VI4_AVX [(match_operand: 1 "nonimmediate_operand" "vm")] UNSPEC_FIX_NOTRUNC))] - "TARGET_SSE2" - "%vcvtps2dq\t{%1, %0|%0, %1}" + "TARGET_SSE2 && " + "%vcvtps2dq\t{%1, %0|%0, %1}" [(set_attr "type" "ssecvt") (set (attr "prefix_data16") (if_then_else @@ -4031,20 +4031,20 @@ (set_attr "prefix" "evex") (set_attr "mode" "XI")]) -(define_insn "fix_truncv8sfv8si2" - [(set (match_operand:V8SI 0 "register_operand" "=x") - (fix:V8SI (match_operand:V8SF 1 "nonimmediate_operand" "xm")))] - "TARGET_AVX" - "vcvttps2dq\t{%1, %0|%0, %1}" +(define_insn "fix_truncv8sfv8si2" + [(set (match_operand:V8SI 0 "register_operand" "=v") + (fix:V8SI (match_operand:V8SF 1 "nonimmediate_operand" "vm")))] + "TARGET_AVX && " + "vcvttps2dq\t{%1, %0|%0, %1}" [(set_attr "type" "ssecvt") - (set_attr "prefix" "vex") + (set_attr "prefix" "") (set_attr "mode" "OI")]) -(define_insn "fix_truncv4sfv4si2" - [(set (match_operand:V4SI 0 "register_operand" "=x") - (fix:V4SI (match_operand:V4SF 1 "nonimmediate_operand" "xm")))] - "TARGET_SSE2" - "%vcvttps2dq\t{%1, %0|%0, %1}" +(define_insn "fix_truncv4sfv4si2" + [(set (match_operand:V4SI 0 "register_operand" "=v") + (fix:V4SI (match_operand:V4SF 1 "nonimmediate_operand" "vm")))] + "TARGET_SSE2 && " + "%vcvttps2dq\t{%1, %0|%0, %1}" [(set_attr "type" "ssecvt") (set (attr "prefix_rep") (if_then_else @@ -4057,7 +4057,7 @@ (const_string "*") (const_string "0"))) (set_attr "prefix_data16" "0") - (set_attr "prefix" "maybe_vex") + (set_attr "prefix" "") (set_attr "mode" "TI")]) (define_expand "fixuns_trunc2"