]> git.ipfire.org Git - thirdparty/gcc.git/commit
x86: Properly handle USE_VECTOR_FP_CONVERTS/USE_VECTOR_CONVERTS
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 15 Sep 2021 06:17:58 +0000 (14:17 +0800)
committerliuhongt <hongtao.liu@intel.com>
Fri, 17 Sep 2021 08:17:57 +0000 (16:17 +0800)
commit16cca1806d2ac6f03cdc8942edd8762dab1851c4
treea2ef6b0885028e9ec58be42cab6a5d7102f75691
parentc3a2437fec1963d9150b7cf6bd03c1d8d184a301
x86: Properly handle USE_VECTOR_FP_CONVERTS/USE_VECTOR_CONVERTS

Check TARGET_USE_VECTOR_FP_CONVERTS or TARGET_USE_VECTOR_CONVERTS when
handling avx_partial_xmm_update attribute.  Don't convert AVX partial
XMM register update if vector packed SSE conversion should be used.

gcc/

PR target/101900
* config/i386/i386-features.c (remove_partial_avx_dependency):
Check TARGET_USE_VECTOR_FP_CONVERTS and TARGET_USE_VECTOR_CONVERTS
before generating vxorps.

gcc/testsuite

PR target/101900
* gcc.target/i386/pr101900-1.c: New test.
* gcc.target/i386/pr101900-2.c: Likewise.
* gcc.target/i386/pr101900-3.c: Likewise.
gcc/config/i386/i386-features.c
gcc/testsuite/gcc.target/i386/pr101900-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/pr101900-2.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/pr101900-3.c [new file with mode: 0644]