https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121794
--- Comment #1 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Georg-Johann Lay <g...@gcc.gnu.org>: https://gcc.gnu.org/g:e3d14112b266479da9f8fd9c304e0ae15bf0ad25 commit r16-3599-ge3d14112b266479da9f8fd9c304e0ae15bf0ad25 Author: Georg-Johann Lay <a...@gjlay.de> Date: Thu Sep 4 22:03:31 2025 +0200 AVR: target/121794 - Invoke zero_reg less. There are some cases where involing zero_reg is not needed and where there are other sequences with the same efficiency. An example is to use SBCI R,0 instead of SBC R,__zero_reg__ when R >= R16. This may turn out to be better for small ISRs. PR target/121794 gcc/ * config/avr/avr.cc (avr_out_compare): Only use zero_reg when there is no other sequence of the same length. (avr_out_plus_ext): Same. (avr_out_plus_1): Same.