Hi Nick, Please let me know if you have had a chance to look at the following patch, https://gcc.gnu.org/ml/gcc-patches/2016-02/msg00415.html
Best Regards, Kaushik -----Original Message----- From: Kaushik Phatak Sent: Friday, February 05, 2016 6:26 PM To: 'gcc-patches@gcc.gnu.org' <gcc-patches@gcc.gnu.org> Cc: nick clifton (ni...@redhat.com) <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 replaces movw/mov instruction with the smaller clrw/clrb instruction. The clrw and clrb generates only 1 byte of opcode as compared to 3 or 2 bytes for movw and mov. There is a total of about 94 bytes code size improvement with this patch in these libgcc routines.