пн, 8 июн. 2026 г. в 14:37, Georg-Johann Lay <[email protected]>:
>
> This patch outsources macros from lib1funcs.S to
> a new header file asm-defs.h.
>
> It adds a new macro REGNO that maps register names to
> the respective register number, so that we can do
> arithmetic with them.  This is needed to replace
> code like
>         mov_l   r28, r26
>         mov_h   r29, r27
> with
>         wmov    r28, r26
> i.e. it is no more required to use plain register numbers
> in wmov and similar macros.
>
> The generated code is almost the same.  It differs in
> no-op changes, for example when
>         mov_h   r29, r27
>         mov_l   r28, r26
> is replaced by
>         wmov    r28, r26
> in the case without MOVW, the generated code is now
>         mov     r28, r26
>         mov     r29, r27
> i.e. MOVs are swapped.
>
> Ok for trunk?
>

Ok.
Please apply.

Denis

Reply via email to