https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125518
--- Comment #1 from Georg-Johann Lay <gjl at gcc dot gnu.org> --- Created attachment 64596 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=64596&action=edit spill2-rtl.c: C-RTL test case (worksl) Interestingly, this version of the tests works and produces correct code. It rematerializes / moves reg24:HI=0 after the divmod: $ avr-gcc spill2-rtl.c -S -Os -dp && cat spill2-rtl.s foo: ldi r22,lo8(5) ; 50 [c=4 l=1] movqi_insn/1 ldi r23,0 ; 51 [c=4 l=1] movqi_insn/0 rcall __divmodhi4 ; 33 [c=0 l=1] *divmodhi4_call ldi r24,0 ; 52 [c=4 l=1] movqi_insn/0 ldi r25,0 ; 53 [c=4 l=1] movqi_insn/0 rjmp bar ; 10 [c=16 l=1] call_value_insn/3
