From patchwork Fri Jul 9 12:19:36 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [picochip] Emit a more optimal sequence for tstport Date: Fri, 09 Jul 2010 02:19:36 -0000 From: Hariharan Sandanagobalane X-Patchwork-Id: 58395 Message-Id: <4C3713D8.4060201@picochip.com> To: gcc-patches@gcc.gnu.org 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