mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-23 10:54:07 +08:00
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:
parent
c6646b5a74
commit
a2725b4ed6
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user