]> git.ipfire.org Git - thirdparty/gcc.git/commit
Support 32/64-bit vectorization for conversion between _Float16 and integer/float.
authorliuhongt <hongtao.liu@intel.com>
Wed, 11 Oct 2023 09:14:47 +0000 (17:14 +0800)
committerliuhongt <hongtao.liu@intel.com>
Mon, 16 Oct 2023 01:08:09 +0000 (09:08 +0800)
commite6d063086726ccb2c5219611319285099a628878
tree36accd9d50a57a2a93f5d9cbd8c733200c7f86c0
parent96f12b9f9b9646deb0f7678a3f8d544e8d48cb91
Support 32/64-bit vectorization for conversion between _Float16 and integer/float.

gcc/ChangeLog:

* config/i386/mmx.md (V2FI_32): New mode iterator
(movd_v2hf_to_sse): Rename to ..
(movd_<mode>_to_sse): .. this.
(movd_v2hf_to_sse_reg): Rename to ..
(movd_<mode>_to_sse_reg): .. this.
(fix<fixunssuffix>_trunc<mode><mmxintvecmodelower>2): New
expander.
(fix<fixunssuffix>_truncv2hfv2si2): Ditto.
(float<floatunssuffix><mmxintvecmodelower><mode>2): Ditto.
(float<floatunssuffix>v2siv2hf2): Ditto.
(extendv2hfv2sf2): Ditto.
(truncv2sfv2hf2): Ditto.
* config/i386/sse.md (*vec_concatv8hf_movss): Rename to ..
(*vec_concat<mode>_movss): .. this.

gcc/testsuite/ChangeLog:

* gcc.target/i386/part-vect-hf-convert-1.c: New test.
gcc/config/i386/mmx.md
gcc/config/i386/sse.md
gcc/testsuite/gcc.target/i386/part-vect-hf-convert-1.c [new file with mode: 0644]