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

--- Comment #7 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-12 branch has been updated by Uros Bizjak <u...@gcc.gnu.org>:

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

commit r12-10001-gf0445f4401c941d0aa3cc413ca4548f313cc1257
Author: Uros Bizjak <ubiz...@gmail.com>
Date:   Thu Nov 23 16:17:57 2023 +0100

    i386: Wrong code with __builtin_parityl [PR112672]

    gen_parityhi2_cmp instruction clobbers its input operand, so use
    a temporary register in the call to gen_parityhi2_cmp.

            PR target/112672

    gcc/ChangeLog:

            * config/i386/i386.md (parityhi2):
            Use temporary register in the call to gen_parityhi2_cmp.

    gcc/testsuite/ChangeLog:

            * gcc.target/i386/pr112672.c: New test.

    (cherry picked from commit b2d17bdd45b582b93e89c00b04763a45f97d7a34)

Reply via email to