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

--- Comment #12 from CVS 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:d87483015d476a95f521f0c9dcf6988ca889063b

commit r12-6118-gd87483015d476a95f521f0c9dcf6988ca889063b
Author: H.J. Lu <hjl.to...@gmail.com>
Date:   Fri Dec 24 12:50:21 2021 -0800

    i386: Check AX input in any_mul_highpart peepholes

    When applying peephole optimization to transform

            mov imm, %reg0
            mov %reg1, %AX_REG
            imul %reg0

    to

            mov imm, %AX_REG
            imul %reg1

    disable peephole optimization if reg1 == AX_REG.

    gcc/

            PR target/103785
            * config/i386/i386.md: Swap operand order in comments and check
            AX input in any_mul_highpart peepholes.

    gcc/testsuite/

            PR target/103785
            * gcc.target/i386/pr103785.c: New test.

Reply via email to