From patchwork Fri Jul 9 12:19:36 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hariharan Sandanagobalane X-Patchwork-Id: 58395 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 45D88B6F06 for ; Fri, 9 Jul 2010 22:19:52 +1000 (EST) Received: (qmail 30777 invoked by alias); 9 Jul 2010 12:19:47 -0000 Received: (qmail 30761 invoked by uid 22791); 9 Jul 2010 12:19:46 -0000 X-SWARE-Spam-Status: No, hits=-0.6 required=5.0 tests=AWL, BAYES_00, RCVD_NUMERIC_HELO X-Spam-Check-By: sourceware.org Received: from cartman.nzsolutions.net (HELO mail3.netzensolutions.com) (87.117.194.66) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 09 Jul 2010 12:19:39 +0000 Received: from [192.168.0.4] (localhost.localdomain [127.0.0.1]) by mail3.netzensolutions.com (Postfix) with ESMTPA id E6C2BE68C01 for ; Fri, 9 Jul 2010 13:19:36 +0100 (BST) Received: from 90.194.136.154 ([90.194.136.154] helo=[192.168.0.4]) by cartman.nzsolutions.co.uk; 9 Jul 2010 13:19:36 +0100 Message-ID: <4C3713D8.4060201@picochip.com> Date: Fri, 09 Jul 2010 13:19:36 +0100 From: Hariharan Sandanagobalane User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100430 Fedora/3.0.4-3.fc13 Thunderbird/3.0.4 MIME-Version: 1.0 To: gcc-patches@gcc.gnu.org Subject: [PATCH,picochip] Emit a more optimal sequence for tstport Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list 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