AVR: target/117659 - Fix wrong code for u24 << 16.

gcc/
	PR target/117659
	* config/avr/avr.cc (avr_out_ashlpsi3) [case 16]: Use %A1 as
	input (instead of bogus %A0).

(cherry picked from commit bba27015f2)
This commit is contained in:
Georg-Johann Lay 2024-11-18 18:12:38 +01:00
parent c6646b5a74
commit a2725b4ed6

View File

@ -7048,7 +7048,7 @@ avr_out_ashlpsi3 (rtx_insn *insn, rtx *op, int *plen)
int reg1 = REGNO (op[1]);
if (reg0 + 2 != reg1)
avr_asm_len ("mov %C0,%A0", op, plen, 1);
avr_asm_len ("mov %C0,%A1", op, plen, 1);
return avr_asm_len ("clr %B0" CR_TAB
"clr %A0", op, plen, 2);