]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
AVR: target/117659 - Fix wrong code for u24 << 16.
authorGeorg-Johann Lay <avr@gjlay.de>
Mon, 18 Nov 2024 17:12:38 +0000 (18:12 +0100)
committerGeorg-Johann Lay <avr@gjlay.de>
Mon, 18 Nov 2024 17:30:48 +0000 (18:30 +0100)
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 bba27015f2815a8fa6fae46a29a70644e868341c)

gcc/config/avr/avr.cc

index f355146f992bb1254b5dd5582a215c57d8c68b82..c0f5242c0b2ea4c5809758f9c1ab411d24a26ca4 100644 (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);