From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 60006 invoked by alias); 5 May 2015 08:35:38 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 59995 invoked by uid 89); 5 May 2015 08:35:38 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-wi0-f177.google.com Received: from mail-wi0-f177.google.com (HELO mail-wi0-f177.google.com) (209.85.212.177) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Tue, 05 May 2015 08:35:36 +0000 Received: by wiun10 with SMTP id n10so136910410wiu.1 for ; Tue, 05 May 2015 01:35:34 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.181.13.198 with SMTP id fa6mr1866635wid.41.1430814933958; Tue, 05 May 2015 01:35:33 -0700 (PDT) Received: by 10.28.104.138 with HTTP; Tue, 5 May 2015 01:35:33 -0700 (PDT) In-Reply-To: <55473842.3060606@huawei.com> References: <5513D05B.2020909@huawei.com> <5527824C.4090409@huawei.com> <554735D9.8090805@huawei.com> <55473842.3060606@huawei.com> Date: Tue, 05 May 2015 08:35:00 -0000 Message-ID: Subject: Re: [PATCH, AArch64] [4.9] Backport PR64304 fix (miscompilation with -mgeneral-regs-only ) From: Marcus Shawcroft To: Chen Shanyao Cc: "gcc-patches@gcc.gnu.org" , Marcus Shawcroft , Richard Earnshaw , "Yangfei (Felix)" Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2015-05/txt/msg00285.txt.bz2 On 4 May 2015 at 10:13, Chen Shanyao wrote: > According to your opinion, I split the backports of pr64304 into 2 emails, > and this one is for 4.9 branch. > This patch backport the fix of PR target/64304 , miscompilation with > -mgeneral-regs-only, to the 4.9 branch from trunk r219844. Tested on x86_64 > by using qemu of aarch64. > OK for 4.9? > > diff -rupN gcc-4.9-20150225/gcc/ChangeLog > gcc-4.9-20150225.pr64304//gcc/ChangeLog > --- gcc-4.9-20150225/gcc/ChangeLog 2015-03-04 20:48:30.000000000 -0500 > +++ gcc-4.9-20150225.pr64304//gcc/ChangeLog 2015-03-04 20:55:59.000000000 > -0500 > @@ -1,3 +1,13 @@ > +2015-03-05 Shanyao Chen > + > + Backported from mainline > + 2015-01-19 Jiong Wang > + Andrew Pinski > + > + PR target/64304 > + * config/aarch64/aarch64.md (define_insn "*ashl3_insn"): Deleted. > + (ashl3): Don't expand if operands[2] is not constant. > + OK /Marcus