AVX512FP16: add truncmn2/extendmn2 expanders
authorHongyu Wang <hongyu.wang@intel.com>
Mon, 12 Jul 2021 06:02:10 +0000 (14:02 +0800)
committerliuhongt <hongtao.liu@intel.com>
Thu, 23 Sep 2021 09:05:02 +0000 (17:05 +0800)
commit3829793c50e44a524757020cebf23c54c016d5af
tree8c94b25371414d449fa524c4bc035e6bf9efdb79
parent25faed6f37969a72ea8257736a6821a5c3a54bba
AVX512FP16: add truncmn2/extendmn2 expanders

gcc/ChangeLog:

* config/i386/sse.md (extend<ssePHmodelower><mode>2):
New expander.
(extendv4hf<mode>2): Likewise.
(extendv2hfv2df2): Likewise.
(trunc<mode><ssePHmodelower>2): Likewise.
(avx512fp16_vcvt<castmode>2ph_<mode>): Rename to ...
(trunc<mode>v4hf2): ... this, and drop constraints.
(avx512fp16_vcvtpd2ph_v2df): Rename to ...
(truncv2dfv2hf2): ... this, and likewise.

gcc/testsuite/ChangeLog:

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