AVR: ad target/116407 - Fix linker error "relocation truncated to fit".

PR target/116407
gcc/
	* config/avr/avr.md (*dec-and-branchhi!=-1.l.clobber):
	Increase the additional jump offset to 2 words.
This commit is contained in:
Georg-Johann Lay 2024-08-18 17:07:15 +02:00
parent dfb2e8caa8
commit 22acd3c4d1

View file

@ -7718,7 +7718,7 @@
"sub %A0,%3" CR_TAB
"sbc %B0,__zero_reg__", operands);
int jump_mode = avr_jump_mode (operands[2], insn, 1 - avr_adiw_reg_p (operands[0]));
int jump_mode = avr_jump_mode (operands[2], insn, 2);
const char *op = ((EQ == <CODE>) ^ (jump_mode == 1)) ? "brcc" : "brcs";
operands[1] = gen_rtx_CONST_STRING (VOIDmode, op);