* RE: [PING PATCH: RL78] Optimize libgcc routines using clrw and clrb
@ 2016-02-23 7:41 Kaushik Phatak
0 siblings, 0 replies; only message in thread
From: Kaushik Phatak @ 2016-02-23 7:41 UTC (permalink / raw)
To: 'gcc-patches@gcc.gnu.org'; +Cc: nick clifton (nickc@redhat.com)
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 (nickc@redhat.com) <nickc@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.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-02-23 7:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-23 7:41 [PING PATCH: RL78] Optimize libgcc routines using clrw and clrb Kaushik Phatak
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).