From patchwork Thu Sep 4 07:42:31 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Venkataramanan Kumar X-Patchwork-Id: 36682 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oi0-f70.google.com (mail-oi0-f70.google.com [209.85.218.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id A030B202E4 for ; Thu, 4 Sep 2014 07:42:32 +0000 (UTC) Received: by mail-oi0-f70.google.com with SMTP id u20sf46806611oif.9 for ; Thu, 04 Sep 2014 00:42:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:mime-version:date:message-id :subject:from:to:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe:content-type; bh=5M5yxy17f8sDG1LxL5BR8kRvH7cqNxbbX60bdWHtdK4=; b=d0t+zZpQNDGrbjkumEOc3ieW7D68EWYQ7X2tQ9AtahfBPQu5E2RHt8WOe8eVl0iiny /GTao95J0dP4e1EZ+IIqRirzw0/dCSu14HzXz7BbLl3RwL4p6iH82AHtSwOw1SbsSZUl aWhaPK0Ovsf7/PPfXKtUkrEVSBt9a4plJMZJ3+6c4Mk1+L77ZS1kF8mbRcU/AzvD72h5 ardpp78QmhVeERgCufHqxmlY1NM1ynLmsF+shhv9ce99jvSgeWXdAFsBjkVGgP/eMYNT vaQ3rH4te2iWEIZ+36xvt2BN0/PsITTBVE5pECQlhFh65uesvDVDZIcDBnZrJRQB62UM L2tg== X-Gm-Message-State: ALoCoQnqdtmGKLhbdqfjMeUCmv+ctFCnfDDqg66e/zZvruEipy2EqGylHyT7QcDKDS4ahJrJ4jxW X-Received: by 10.50.73.162 with SMTP id m2mr1621740igv.1.1409816552161; Thu, 04 Sep 2014 00:42:32 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.84.176 with SMTP id l45ls163576qgd.81.gmail; Thu, 04 Sep 2014 00:42:32 -0700 (PDT) X-Received: by 10.52.164.80 with SMTP id yo16mr1765442vdb.44.1409816552061; Thu, 04 Sep 2014 00:42:32 -0700 (PDT) Received: from mail-vc0-f178.google.com (mail-vc0-f178.google.com [209.85.220.178]) by mx.google.com with ESMTPS id fj7si5255899vcb.13.2014.09.04.00.42.31 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 04 Sep 2014 00:42:31 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.178 as permitted sender) client-ip=209.85.220.178; Received: by mail-vc0-f178.google.com with SMTP id la4so10359768vcb.9 for ; Thu, 04 Sep 2014 00:42:31 -0700 (PDT) X-Received: by 10.52.160.10 with SMTP id xg10mr1708182vdb.1.1409816551740; Thu, 04 Sep 2014 00:42:31 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.45.67 with SMTP id uj3csp795123vcb; Thu, 4 Sep 2014 00:42:31 -0700 (PDT) X-Received: by 10.140.47.129 with SMTP id m1mr3883623qga.95.1409816551332; Thu, 04 Sep 2014 00:42:31 -0700 (PDT) Received: from mail-qa0-f54.google.com (mail-qa0-f54.google.com [209.85.216.54]) by mx.google.com with ESMTPS id t4si8627387qaj.16.2014.09.04.00.42.31 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 04 Sep 2014 00:42:31 -0700 (PDT) Received-SPF: pass (google.com: domain of venkataramanan.kumar@linaro.org designates 209.85.216.54 as permitted sender) client-ip=209.85.216.54; Received: by mail-qa0-f54.google.com with SMTP id x12so9208304qac.27 for ; Thu, 04 Sep 2014 00:42:31 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.140.28.245 with SMTP id 108mr3968778qgz.45.1409816551103; Thu, 04 Sep 2014 00:42:31 -0700 (PDT) Received: by 10.140.25.165 with HTTP; Thu, 4 Sep 2014 00:42:31 -0700 (PDT) Date: Thu, 4 Sep 2014 13:12:31 +0530 Message-ID: Subject: [PATCH v2 AArch64]: Re: [PATCH AArch64]: Add constraint letter for stack_protect_test pattern. From: Venkataramanan Kumar To: Marcus Shawcroft , "gcc-patches@gcc.gnu.org" , Patch Tracking , Richard Earnshaw X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: venkataramanan.kumar@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.178 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Hi maintainers, I just added "=r" and retested it. gcc/ChangeLog 2014-09-04 Venkataramanan Kumar * config/aarch64/aarch64.md (stack_protect_test_) Add register constraint for operand 0. regards, venkat. On 4 September 2014 12:42, Venkataramanan Kumar wrote: > Hi Maintainers, > > Below patch adds register constraint "r" for destination operand in > "stack_protect_test" pattern. > > We need a general register here and adding "r" will avoid vector > register getting allocated. > > regression tested on aarch64-unknown-linux-gnu. > > Ok for trunk? > > regards, > Venkat. > > > gcc/ChangeLog > > 2014-09-04 Venkataramanan Kumar > > * config/aarch64/aarch64.md (stack_protect_test_) Add register > constraint for operand 0. > > > diff --git a/gcc/config/aarch64/aarch64.md b/gcc/config/aarch64/aarch64.md > index b5be79c..77588b9 100644 > --- a/gcc/config/aarch64/aarch64.md > +++ b/gcc/config/aarch64/aarch64.md > @@ -4026,7 +4026,7 @@ > }) > > (define_insn "stack_protect_test_" > - [(set (match_operand:PTR 0 "register_operand") > + [(set (match_operand:PTR 0 "register_operand" "r") > (unspec:PTR [(match_operand:PTR 1 "memory_operand" "m") > (match_operand:PTR 2 "memory_operand" "m")] > UNSPEC_SP_TEST)) diff --git a/gcc/config/aarch64/aarch64.md b/gcc/config/aarch64/aarch64.md index b5be79c..ed6e602 100644 --- a/gcc/config/aarch64/aarch64.md +++ b/gcc/config/aarch64/aarch64.md @@ -4026,7 +4026,7 @@ }) (define_insn "stack_protect_test_" - [(set (match_operand:PTR 0 "register_operand") + [(set (match_operand:PTR 0 "register_operand" "=r") (unspec:PTR [(match_operand:PTR 1 "memory_operand" "m") (match_operand:PTR 2 "memory_operand" "m")] UNSPEC_SP_TEST))