]> git.feebdaed.xyz Git - 0xmirror/gcc.git/commit
AVR: Refactor avr.cc::out_shift_with_cnt().
authorGeorg-Johann Lay <avr@gjlay.de>
Tue, 16 Dec 2025 17:08:14 +0000 (18:08 +0100)
committerGeorg-Johann Lay <avr@gjlay.de>
Wed, 17 Dec 2025 16:44:51 +0000 (17:44 +0100)
commitd3d60480d0a8a241d9c7f148509e5700a5022bc9
tree6acab76a5e28ad3a60bf44138c2767ca4e735395
parent77a8ed6de20b99c5c1a0124caf52a89573c840ee
AVR: Refactor avr.cc::out_shift_with_cnt().

This is a no-op refactoring of out_shift_with_cnt() that passes the
shift rtx_code instead of an template asm string.

gcc/
* config/avr/avr-protos.h (out_shift_with_cnt): Remove.
* config/avr/avr.cc (avr_out_shift_with_cnt): New static
function from out_shift_with_cnt: Pass shift rtx_code instead
of asm template.
(avr_out_shift_1): New static helper function.
(ashlqi3_out, ashlhi3_out, avr_out_ashlpsi3, ashlsi3_out)
(ashrqi3_out, ashrhi3_out, avr_out_ashrpsi3, ashrsi3_out)
(lshrqi3_out, lshrhi3_out, avr_out_lshrpsi3, lshrsi3_out):
Adjust avr_out_shift_with_cnt to new interface.
gcc/config/avr/avr-protos.h
gcc/config/avr/avr.cc