AVX512FP16: Add expander for ceil/floor/trunc/roundeven.
authorliuhongt <hongtao.liu@intel.com>
Mon, 13 Jul 2020 06:19:21 +0000 (14:19 +0800)
committerliuhongt <hongtao.liu@intel.com>
Wed, 22 Sep 2021 04:56:31 +0000 (12:56 +0800)
commit338abd0bf777f671f4bf48d8ee5fe1f67f3ea3d9
treeebd150ef9c13563dc5dbb76ae7db8a93b5749332
parent59e9c4cbe665951f3f3714c966ecf7776b36894c
AVX512FP16: Add expander for ceil/floor/trunc/roundeven.

gcc/ChangeLog:

* config/i386/i386.md (<rounding_insn>hf2): New expander.
(sse4_1_round<mode>2): Extend from MODEF to MODEFH.
* config/i386/sse.md (*sse4_1_round<ssescalarmodesuffix>):
Extend from VF_128 to VFH_128.

gcc/testsuite/ChangeLog:

* gcc.target/i386/avx512fp16-builtin-round-1.c: New test.
gcc/config/i386/i386.md
gcc/config/i386/sse.md
gcc/testsuite/gcc.target/i386/avx512fp16-builtin-round-1.c [new file with mode: 0644]