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

--- Comment #21 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-14 branch has been updated by Richard Earnshaw
<[email protected]>:

https://gcc.gnu.org/g:523f778378985933d349a1d3bdcc86c179d6670e

commit r14-12559-g523f778378985933d349a1d3bdcc86c179d6670e
Author: Richard Earnshaw <[email protected]>
Date:   Tue Apr 14 14:45:38 2026 +0100

    arm: apply stronger checks on conditional-compare patterns [PR123102]

    If a conditional compare operation is generated during expand, then
    combine may try to substitute into it in order to generate better code;
    but if it does so, we need to validate that the optimized sequence is
    still a valid conditional compare.  We were skipping those checks and
    that can lead to wrong code being generated.

    gcc/ChangeLog:
            PR target/123102
            * config/arm/arm.md (*cmp_ite0): Apply stricter checks on the
            comparison mode.
            (*cmp_ite1, *cmp_and, *cmp_ior): Likewise.

    (cherry picked from commit 861a3dac61bb55f8f3fc10a6bea7b814262b9bf5)

Reply via email to