This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[RFT PATCH, AVX512]: Implement scalar unsigned int->float conversions with AVX512F


Hello!

Attached patch implements scalar unsigned int->float conversions with AVX512F.

2018-05-22  Uros Bizjak  <ubizjak@gmail.com>

    * config/i386/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
    New insn pattern.
    (floatunssi<mode>2): Also enable for AVX512F and TARGET_SSE_MATH.
    Rewrite expander pattern.  Emit gen_floatunssi<mode>2_i387_with_xmm
    for non-SSE modes.
    (floatunsdisf2): Rewrite expander pattern.  Hanlde TARGET_AVX512F.
    (floatunsdidf2): Ditto.

testsuite/ChangeLog:

2018-05-22  Uros Bizjak  <ubizjak@gmail.com>

    * gcc.target/i386/cvt-3.c: New test.

Patch was bootstrapped and regression tested on x86_64-linux-gnu
{,-m32}., but not tested on AVX512 target.

Uros.

Attachment: ufloat.diff.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]