]> git.ipfire.org Git - thirdparty/gcc.git/commit
m68k: fix adddi3/subdi3 with POST_INC/PRE_DEC destination
authorAndreas Schwab <schwab@linux-m68k.org>
Mon, 29 Sep 2025 16:46:45 +0000 (18:46 +0200)
committerAndreas Schwab <schwab@linux-m68k.org>
Wed, 1 Oct 2025 17:12:06 +0000 (19:12 +0200)
commitf2586a4a6c8ae21775fecb57f46ddbaa83af49f3
treeed3d030133680e4d2837457b034cd99b606a1c94
parent8a16ca964180e6d6c4f86150cbda83ceb498b64a
m68k: fix adddi3/subdi3 with POST_INC/PRE_DEC destination

This part has never been exercised until r15-1579-g792f97b44ffc5e.

PR target/122066
* config/m68k/m68k.md (adddi3, subdi3): Strip POST_INC and PRE_DEC
when generating high part of the destination operand.

* gcc.c-torture/compile/pr122066.c: New test.
gcc/config/m68k/m68k.md
gcc/testsuite/gcc.c-torture/compile/pr122066.c [new file with mode: 0644]