[Bug target/121230] [13/14/15/16 regression] x86: Inefficient code generation with -m3dnow -msse since GCC 12 since r12-7612

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Dec 9 14:09:34 GMT 2025


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

--- Comment #9 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Biener <rguenth@gcc.gnu.org>:

https://gcc.gnu.org/g:3222a8493ccfec1a2e9c71103f1a693abb97cf83

commit r16-5994-g3222a8493ccfec1a2e9c71103f1a693abb97cf83
Author: Richard Biener <rguenther@suse.de>
Date:   Mon Dec 8 14:36:58 2025 +0100

    target/121230 - x86 vector CTOR cost with 387 math

    The following adjusts costing of vector construction from scalars for
    FP modes which with 387 math can reside in FP regs which need spilling
    to be reloaded to XMM.  I've played on the safe side with mixed
    SSE/387 math.

            PR target/121230
            * config/i386/i386.cc (ix86_vector_costs::add_stmt_cost):
            With FP mode and 387 math cost spill/reload.

            * gcc.target/i386/pr121230.c: New testcase.


More information about the Gcc-bugs mailing list