Re: [PATCH: RL78] Optimize libgcc routines using clrw and clrb

2016-04-06 Thread DJ Delorie
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. >

[PATCH: RL78] Optimize libgcc routines using clrw and clrb

2016-04-05 Thread Kaushik Phatak
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

RE: [PING PATCH: RL78] Optimize libgcc routines using clrw and clrb

2016-02-22 Thread Kaushik Phatak
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

[PATCH: RL78] Optimize libgcc routines using clrw and clrb

2016-02-05 Thread Kaushik Phatak
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