]> gcc.gnu.org Git - gcc.git/commit
i386: Check AX input in any_mul_highpart peepholes
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 24 Dec 2021 20:50:21 +0000 (12:50 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Sun, 26 Dec 2021 13:09:22 +0000 (05:09 -0800)
commitd87483015d476a95f521f0c9dcf6988ca889063b
treef14bea73b5701ee6a518e70956110b1a378734c5
parent9525c26bf19318bed72d3bc3b99dceac5217102f
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.
gcc/config/i386/i386.md
gcc/testsuite/gcc.target/i386/pr103785.c [new file with mode: 0644]
This page took 0.081001 seconds and 6 git commands to generate.