diff mbox

[picochip] Emit a more optimal sequence for tstport

Message ID 4C3713D8.4060201@picochip.com
State New
Headers show

Commit Message

Hariharan Sandanagobalane July 9, 2010, 12:19 p.m. UTC
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:
diff mbox

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