From 2fa9ee8fe709332458ce086676c885d83c6ea7d2 Mon Sep 17 00:00:00 2001 From: Alexander Ivchenko Date: Thu, 16 Oct 2014 05:41:51 +0000 Subject: [PATCH] AVX-512. 76/n. Extend int 2 float conversions. gcc/ * config/i386/sse.md (define_expand "floatuns2"): Extend to support AVX-512VL instructions. 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: r216297 --- gcc/ChangeLog | 13 +++++++++++++ gcc/config/i386/sse.md | 8 ++++++++ 2 files changed, 21 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a936c016811..349b3037d0d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,16 @@ +2014-10-16 Alexander Ivchenko + Maxim Kuznetsov + Anna Tikhonova + Ilya Tocar + Andrey Turetskiy + Ilya Verbin + Kirill Yukhin + Michael Zolotukhin + + * config/i386/sse.md + (define_expand "floatuns2"): Extend to + support AVX-512VL instructions. + 2014-10-16 DJ Delorie * tree-core.h: Fix comment to not assume pointers are multiples of diff --git a/gcc/config/i386/sse.md b/gcc/config/i386/sse.md index a6cf3639576..dcb53dfa897 100644 --- a/gcc/config/i386/sse.md +++ b/gcc/config/i386/sse.md @@ -4013,6 +4013,14 @@ { if (mode == V16SFmode) emit_insn (gen_ufloatv16siv16sf2 (operands[0], operands[1])); + else + if (TARGET_AVX512VL) + { + if (mode == V4SFmode) + emit_insn (gen_ufloatv4siv4sf2 (operands[0], operands[1])); + else + emit_insn (gen_ufloatv8siv8sf2 (operands[0], operands[1])); + } else ix86_expand_vector_convert_uns_vsivsf (operands[0], operands[1]); -- 2.30.2