ср, 8 июл. 2026 г. в 21:39, Georg-Johann Lay <[email protected]>:
>
> This patch factors out negating R18:SI which is used in several
> places.  It also adds
>
>     .macro  .call_if_neg  reg, labl
>
> for convenience.  It calls <labl> iff <reg> < 0.
>
> libgcc/
>         * config/avr/t-avr (LIB1ASMFUNCS): Add _negsi2_r18.
>         * config/avr/asm-defs.h (.call_if_neg): New .macro.
>         * config/avr/lib1funcs.S (__divmodsi4): Use .call_if_neg.
>         (__negsi2_r18): New function.
>         * config/avr/lib1funcs-fixed.S (__divsa3): Use .call_if_neg.
>

Please apply.

Denis.

Reply via email to