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

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

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

commit r17-63-gd16bee7da570f8fc1edf004e9289708fe403c584
Author: H.J. Lu <[email protected]>
Date:   Fri Apr 24 06:39:44 2026 +0800

    x86_cse: Use integer load for CONST_VECTOR load

    CONST_VECTOR load no larger than integer register

    (set (reg:V2QI 294)
         (const_vector:V2QI [(const_int 0 [0]) repeated x2]))

    can use integer load.  Use inner mode as the scalar mode for CONST_VECTOR
    load source.

    gcc/

            PR target/125009
            * config/i386/i386-features.cc (ix86_place_single_vector_set):
            Support CONST_VECTOR load no larger than integer register.
            (ix86_broadcast_inner): Use inner mode as the scalar mode for
            CONST_VECTOR load source.
            (pass_x86_cse::x86_cse): Generate CONST_VECTOR broadcast source
            for CONST_VECTOR load no larger than integer register.

    gcc/testsuite/

            PR target/125009
            * g++.target/i386/pr125009.C: New test.
            * gcc.target/i386/pr125009.c: Likewise.

    Signed-off-by: H.J. Lu <[email protected]>

Reply via email to