public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH,picochip] Emit a more optimal sequence for tstport
@ 2010-07-09 12:19 Hariharan Sandanagobalane
  0 siblings, 0 replies; only message in thread
From: Hariharan Sandanagobalane @ 2010-07-09 12:19 UTC (permalink / raw)
  To: gcc-patches

Hello all,
I have made the following change to emit optimal sequence for tstport 
instruction. Commited to mainline as r161996.

Thanks
Hari

ChangeLog

         * config/picochip/picochip.md (commsTestPort): Emit more
         efficient sequence for tstport instruction.


patch:

Index: gcc/config/picochip/picochip.md
===================================================================
--- gcc/config/picochip/picochip.md     (revision 161995)
+++ gcc/config/picochip/picochip.md     (working copy)
@@ -2372,7 +2372,7 @@
                    UNSPEC_TESTPORT))
     (clobber (reg:CC CC_REGNUM))]
    ""
-  "// %0 := TestPort(%1)\;TSTPORT %1\;COPYSW.0 %0\;AND.0 %0,8,%0"
+  "// %0 := TestPort(%1)\;COPY.1 0,%0 \\\ TSTPORT %1\;COPYEQ 1,%0"
    [(set_attr "length" "9")])

  ; Entry point for array tstport (the actual port index is computed as the

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-07-09 12:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-09 12:19 [PATCH,picochip] Emit a more optimal sequence for tstport Hariharan Sandanagobalane

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).