i386: Fix shifts with high register input operand [PR113044]
commit2766b83759a02572b7b303aae3d4b54a351f8f96
authorUros Bizjak <ubizjak@gmail.com>
Thu, 21 Dec 2023 12:50:26 +0000 (21 13:50 +0100)
committerUros Bizjak <ubizjak@gmail.com>
Thu, 21 Dec 2023 14:58:03 +0000 (21 15:58 +0100)
treeeaba45a560e84bb4cd964454598bb38187e59124
parentbe977db17c91ad6627dee70a1904a95d229aa1be
i386: Fix shifts with high register input operand [PR113044]

The move to the output operand should use high register input operand.

PR target/113044

gcc/ChangeLog:

* config/i386/i386.md (*ashlqi_ext<mode>_1): Move from the
high register of the input operand.
(*<insn>qi_ext<mode>_1): Ditto.

gcc/testsuite/ChangeLog:

* gcc.target/i386/pr113044.c: New test.
gcc/config/i386/i386.md
gcc/testsuite/gcc.target/i386/pr113044.c [new file with mode: 0644]