From patchwork Thu Nov 14 18:58:46 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joern Rennecke X-Patchwork-Id: 291335 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]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 57D542C00A9 for ; Fri, 15 Nov 2013 05:59:10 +1100 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=h3ZbVkKi3ZP2hR4Y ElRsaLA3Fm799cWdIm7l65Y1GvmdvPcQ5nGYKY7VZiy3kp/+57ddMLdPtGaMIcqG R66m8YQ7YKl0NZ5zpB2E64nZlKYFqALriKSZA3afN8rBWSUlneG3SXrJyfS6aXEU GP1UBZbfAiFtNsyUtdCt+Y/wcNw= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding; s=default; bh=iRJ533CZT/LeVC4fPtPoSZ bTGGc=; b=fUzTXLFLtgIyT8Tm2Pxi7kxvRpEQ0+iVRUmb84NCby5aud4mgHIsIg t0cIfkW+a1rey0cZXgcCE81lLX+R3MR3RbSwsa8oWaujjt8/7tGlzzKIo5ADE6LD ziNkbcsjyUOHYjflMXWDa1NBaohyI8Hu7ivBCa/OCvGmwcmWMP3cQ= Received: (qmail 12612 invoked by alias); 14 Nov 2013 18:58:56 -0000 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 Received: (qmail 12603 invoked by uid 89); 14 Nov 2013 18:58:55 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=2.6 required=5.0 tests=AWL, BAYES_50, MEDICAL_SUBJECT, RDNS_NONE, URIBL_BLOCKED autolearn=no version=3.3.2 X-HELO: c62.cesmail.net Received: from Unknown (HELO c62.cesmail.net) (216.154.195.54) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Thu, 14 Nov 2013 18:58:54 +0000 Received: from unknown (HELO delta2) ([192.168.1.50]) by c62.cesmail.net with ESMTP; 14 Nov 2013 13:58:46 -0500 Received: from cust213-dsl91-135-11.idnet.net (cust213-dsl91-135-11.idnet.net [91.135.11.213]) by webmail.spamcop.net (Horde MIME library) with HTTP; Thu, 14 Nov 2013 13:58:46 -0500 Message-ID: <20131114135846.wgubdheswsg88gog-nzlynne@webmail.spamcop.net> Date: Thu, 14 Nov 2013 13:58:46 -0500 From: Joern Rennecke To: gcc-patches@gcc.gnu.org Subject: Committed: arc.md: Remove extra alignment in doloop_begin_i MIME-Version: 1.0 User-Agent: Internet Messaging Program (IMP) H3 (4.1.4) That extra alignment causes some branches to go out of range. 2013-11-14 Joern Rennecke * config/arc/arc.md (doloop_begin_i): Remove extra alignment; use (.&-4) idiom. Index: config/arc/arc.md =================================================================== --- config/arc/arc.md (revision 204806) +++ config/arc/arc.md (working copy) @@ -4789,8 +4789,7 @@ (define_insn "doloop_begin_i" { /* ??? Can do better for when a scratch register is known. But that would require extra testing. */ - arc_clear_unalign (); - return ".p2align 2\;push_s r0\;add r0,pcl,%4-.+2\;sr r0,[2]; LP_START\;add r0,pcl,.L__GCC__LP%1-.+2\;sr r0,[3]; LP_END\;pop_s r0"; + return "push_s r0\;add r0,pcl,%4-(.&-4)\;sr r0,[2]; LP_START\;add r0,pcl,.L__GCC__LP%1-(.&-4)\;sr r0,[3]; LP_END\;pop_s r0"; } /* Check if the loop end is in range to be set by the lp instruction. */ size = INTVAL (operands[3]) < 2 ? 0 : 2048;