Kaushik Phatak writes:
> 2016-04-06 Kaushik Phatak
>
> * config/rl78/bit-count.S: Use clrw/clrb where possible.
> * config/rl78/cmpsi2.S: Likewise.
> * config/rl78/divmodhi.S Likewise.
> * config/rl78/divmodsi.S Likewise.
> * config/rl78/fpbit-sf.S Likewise.
>
Hi,
Please find below a patch that optimizes libgcc routines for the RL78 target.
This is similar to my earlier patch submitted here,
https://gcc.gnu.org/ml/gcc-patches/2016-02/msg00415.html
The patch optimizes the loading of immediate value in the case of 0x00, by
using the clrw or clrb instruc
Cc: nick clifton (ni...@redhat.com)
Subject: [PATCH: RL78] Optimize libgcc routines using clrw and clrb
Hi,
Please find below a simple patch which optimizes the loading of immediate value
by using the clrw or clrb instruction in case a 0x00 is being loaded into the
register.
The patch replace
Hi,
Please find below a simple patch which optimizes the loading of immediate value
by using the clrw or clrb
instruction in case a 0x00 is being loaded into the register.
The patch replaces movw/mov instruction with the smaller clrw/clrb instruction.
The clrw and clrb generates only 1 byte of op