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

--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by H.J. Lu <h...@gcc.gnu.org>:

https://gcc.gnu.org/g:207a506ee50d6510ff4c53db39a52ba1082842e4

commit r16-3459-g207a506ee50d6510ff4c53db39a52ba1082842e4
Author: H.J. Lu <hjl.to...@gmail.com>
Date:   Thu Aug 28 20:30:35 2025 -0700

    x86: Handle constant in any modes in setmem_epilogue_gen_val

    Since the constant passed to setmem_epilogue_gen_val may not be in
    word_mode, update setmem_epilogue_gen_val to handle any integer modes.

    gcc/

            PR target/121108
            * config/i386/i386-expand.cc (setmem_epilogue_gen_val): Don't
            assert op_mode == word_mode and handle any integer modes.

    gcc/testsuite/

            PR target/121108
            * gcc.target/i386/memset-strategy-16.c: New test.

    Signed-off-by: H.J. Lu <hjl.to...@gmail.com>

Reply via email to