]> git.ipfire.org Git - thirdparty/gcc.git/commit
AVR: target/98762 - Handle partial clobber in movqi output.
authorGeorg-Johann Lay <avr@gjlay.de>
Wed, 3 Jul 2024 08:29:18 +0000 (10:29 +0200)
committerGeorg-Johann Lay <avr@gjlay.de>
Wed, 3 Jul 2024 08:46:59 +0000 (10:46 +0200)
commit5f699cb08eed44a903393f601009e9c6d0b59c59
tree02b3c32bc3cecd047b9342c683f87c994a8a30bf
parentca6eea0eb33de8b2e23e0bef3466575bb14ab63f
AVR: target/98762 - Handle partial clobber in movqi output.

PR target/98762
gcc/
* config/avr/avr.cc (avr_out_movqi_r_mr_reg_disp_tiny): Properly
restore the base register when it is partially clobbered.
gcc/testsuite/
* gcc.target/avr/torture/pr98762.c: New test.

(cherry picked from commit e9fb6efa1cf542353fd44ddcbb5136344c463fd0)
gcc/config/avr/avr.cc
gcc/testsuite/gcc.target/avr/torture/pr98762.c [new file with mode: 0644]