picochip.md (commsTestPort): Emit more efficient sequence for tstport instruction.
authorHariharan Sandanagobalane <hariharan@picochip.com>
Fri, 9 Jul 2010 12:18:46 +0000 (12:18 +0000)
committerHariharan Sandanagobalane <hariharans@gcc.gnu.org>
Fri, 9 Jul 2010 12:18:46 +0000 (12:18 +0000)
  * config/picochip/picochip.md (commsTestPort): Emit more efficient sequence
    for tstport instruction.

From-SVN: r161996

gcc/ChangeLog
gcc/config/picochip/picochip.md

index 7ee8a697370a13245fcf2a98f7bd5be3dbc481d7..6d64c97fbdb13a42b74cf65c782c8a4f0dad90c3 100644 (file)
@@ -1,3 +1,8 @@
+2010-07-09  Hariharan Sandanagobalane <hariharan@picochip.com>
+
+       * config/picochip/picochip.md (commsTestPort): Emit more
+       efficient sequence for tstport instruction.
+
 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
 
        * config/i386/i386.c (ix86_veclib_handler): Make static.
index 66323dda0c7ca44cdf57757a05d26af6319ec897..3a12a3d0a3d62cc5a29a1a43f114acba67ae9f8e 100644 (file)
                   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