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

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

https://gcc.gnu.org/g:79b881df72c946f2ba61879c36ae93b0cb974617

commit r15-4350-g79b881df72c946f2ba61879c36ae93b0cb974617
Author: Richard Biener <rguent...@suse.de>
Date:   Tue Oct 15 09:48:10 2024 +0200

    middle-end/117137 - expansion issue with vector equality compares

    When expanding a COND_EXPR with a vector equality compare as condition
    expand_cond_expr_using_cmove fails to properly go the cbranch path.
    I failed to massage it's twisted logic so the simple fix is to make
    sure to expand a vector condition separately which also generates
    the expected code for the testcase:

            ptest   %xmm0, %xmm0
            cmovne  %edi, %eax

            PR middle-end/117137
            * expr.cc (expand_cond_expr_using_cmove): Make sure to
            expand vector comparisons separately.

            * gcc.dg/torture/pr117137.c: New testcase.

Reply via email to