From patchwork Wed Dec 24 13:36:02 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Clifton X-Patchwork-Id: 423935 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)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id B5B61140081 for ; Thu, 25 Dec 2014 00:36:13 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:subject:date:message-id:mime-version:content-type; q=dns; s= default; b=asPWWoQSU3IdIfwntSs25OYVDIonmSHPjKuhr1al6JI4uFuL5cSe3 4ZlXSZR/hFW+RSC/GDgzZuuf8nqbgy4Bj8+3sejCaugSpjtFUWkx3cPBdc6YAxWG 273lkkngHzN/rw1CUaBz5udrJPwPgRccjv/n4zZA/YSd2c4tHmc2To= 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:from :to:subject:date:message-id:mime-version:content-type; s= default; bh=8uGyYZTW/9CLLfvDRSiWe0KmSdY=; b=ClBEPOlNU1dbZEieNUxn 0nmcPwARX4t/Fot7CW8vDV8/NoWp92CWjepnHkgttpN184xngAMIiUBxhT3OzQga HFA1RNOmztMNAOpG96i10IVZ17L1FjiYu2UHLKGkEr/RktTwketqf7DMpKX7TZlo VKYevJtIsDJl87QEzrDdm78= Received: (qmail 14024 invoked by alias); 24 Dec 2014 13:36:07 -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 14014 invoked by uid 89); 24 Dec 2014 13:36:06 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.7 required=5.0 tests=AWL, BAYES_00, SPF_HELO_PASS, SPF_PASS, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Wed, 24 Dec 2014 13:36:05 +0000 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id sBODa4u5016609 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Wed, 24 Dec 2014 08:36:04 -0500 Received: from littlehelper.redhat.com (vpn1-6-201.ams2.redhat.com [10.36.6.201]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id sBODa2ZE008102 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NO) for ; Wed, 24 Dec 2014 08:36:03 -0500 From: Nick Clifton To: gcc-patches@gcc.gnu.org Subject: Commit: MSP430: Fix addsi splitter (PR 64160) Date: Wed, 24 Dec 2014 13:36:02 +0000 Message-ID: <87h9wltbjx.fsf@redhat.com> MIME-Version: 1.0 X-IsSubscribed: yes Hi Guys. I am applying the patch below to fix PR 64160 for the MSP430. Cheers Nick gcc/ChangeLog 2014-12-24 Nick Clifton PR target/64160 * config/msp430/msp430.md (addsi splitter): Do not split when the destination partially overlaps the source. Index: config/msp430/msp430.md =================================================================== --- config/msp430/msp430.md (revision 219057) +++ config/msp430/msp430.md (working copy) @@ -402,14 +402,16 @@ operands[6] = msp430_subreg (HImode, operands[0], SImode, 2); operands[7] = msp430_subreg (HImode, operands[1], SImode, 2); operands[8] = msp430_subreg (HImode, operands[2], SImode, 2); + + /* BZ 64160: Do not use this splitter when the dest partially overlaps the source. */ + if (reg_overlap_mentioned_p (operands[3], operands[7]) + || reg_overlap_mentioned_p (operands[3], operands[8])) + FAIL; + if (GET_CODE (operands[5]) == CONST_INT) - { - operands[9] = GEN_INT (INTVAL (operands[5]) & 0xffff); - } + operands[9] = GEN_INT (INTVAL (operands[5]) & 0xffff); else - { - operands[9] = gen_rtx_ZERO_EXTEND (SImode, operands[5]); - } + operands[9] = gen_rtx_ZERO_EXTEND (SImode, operands[5]); " )