[Bug tree-optimization/126160] [x86] missed vectorization for __builtin_lrintf

"cvs-commit at gcc dot gnu.org via Gcc-bugs" <[email protected]>
Newsgroups gmane.comp.gcc.bugs
Message-ID <[email protected]/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126160

--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by hongtao Liu <[email protected]>:

https://gcc.gnu.org/g:e870be66c6adb856b2ee8869801f8c4542b3a914

commit r17-2648-ge870be66c6adb856b2ee8869801f8c4542b3a914
Author: liuhongt <[email protected]>
Date:   Wed Jul 8 20:28:00 2026 -0700

    i386: Add vector lrint expanders for conversions

    Expose existing vector conversion instructions through lrint optabs so
    the vectorizer can use vcvtps2qq and vcvtpd2dq instead of scalar
    conversion sequences.

    gcc/ChangeLog:

            PR target/126160
            * config/i386/sse.md (lrint<ssePSmode2lower><mode>2): New expander.
            (lrintv2sfv2di2): Likewise.
            (ssedfsimode): New mode attribute.
            (ssedfsimodelower): Likewise.
            (lrint<mode><ssedfsimodelower>2): New expander.

    gcc/testsuite/ChangeLog:

            PR target/126160
            * gcc.target/i386/pr126160.c: New test.
            * gcc.target/i386/pr126160-2.c: New test.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.