[Bug target/102811] vcvtph2ps and vcvtps2ph should be used to convert _Float16 to SFmode with -mf16c

ubizjak at gmail dot com gcc-bugzilla@gcc.gnu.org
Fri Nov 26 10:41:17 GMT 2021


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102811

--- Comment #6 from Uroš Bizjak <ubizjak at gmail dot com> ---
Created attachment 51879
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51879&action=edit
Improve HI/HFmode scalar insert

The attached patch further improves HFmode -> SFmode conversion. HFmode values
are passed in XMM registers, but PINSRW insn inserts only from memory or GPR.

The patch introduces *vec_set<V8_128:mode>_0 insn pattern that also adds
PBLENDW instruction that handles insert to element 0 from XMM source.


More information about the Gcc-bugs mailing list