From patchwork Thu Sep 4 07:12:58 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Venkataramanan Kumar X-Patchwork-Id: 36680 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oi0-f69.google.com (mail-oi0-f69.google.com [209.85.218.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 329AA202E4 for ; Thu, 4 Sep 2014 07:13:00 +0000 (UTC) Received: by mail-oi0-f69.google.com with SMTP id a141sf7484206oig.4 for ; Thu, 04 Sep 2014 00:12:59 -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=CBh4aFK5oCYHCcjulGTYF2a334gVR4fmVtlOKrhebnU=; b=mErOzC/uKprxIQSZ31qp4oJpfovFuge8NgUlS5NiV39soUROnL611H1PjuvCovPyyT /sAu++L5I8t+pj6gHJ9WR3WWUhxFKRbFxz9yVVJV6AUwOnNcZkGCI6fRdjquJ9l2Ay0m d5y8j97YYgyyrCUWHJfIf1liPDDMc9QuvU00r5WQ32vEeWZuaKAQksRBeWiPnigk2OAx +WkeHMI0s8zCd19iLumhmSqBKwM5GdiQ8DOrHcYu90q4i8G0KBn3izH2nywYrAXHoXqH zKJQMeZ0/thv8HjPJjs3JFOtzCNyQ0e0Gi7Sf19bsB5Pvv881bRn9xe2m0GcsgLnIgzp Vfyg== X-Gm-Message-State: ALoCoQlJP5nBiLffA1iIg3A3B5Wh5/UBakDD47sPYnCryFMhQzQk8jfCbtJuIu9hi01ExiWOszK+ X-Received: by 10.182.43.164 with SMTP id x4mr1509428obl.5.1409814779827; Thu, 04 Sep 2014 00:12:59 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.102.23 with SMTP id v23ls141629qge.51.gmail; Thu, 04 Sep 2014 00:12:59 -0700 (PDT) X-Received: by 10.220.159.204 with SMTP id k12mr1678333vcx.15.1409814779755; Thu, 04 Sep 2014 00:12:59 -0700 (PDT) Received: from mail-vc0-f171.google.com (mail-vc0-f171.google.com [209.85.220.171]) by mx.google.com with ESMTPS id c4si2496765vda.13.2014.09.04.00.12.59 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 04 Sep 2014 00:12:59 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.171 as permitted sender) client-ip=209.85.220.171; Received: by mail-vc0-f171.google.com with SMTP id id10so10096975vcb.2 for ; Thu, 04 Sep 2014 00:12:59 -0700 (PDT) X-Received: by 10.52.97.233 with SMTP id ed9mr1698991vdb.16.1409814779667; Thu, 04 Sep 2014 00:12:59 -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 uj3csp792434vcb; Thu, 4 Sep 2014 00:12:59 -0700 (PDT) X-Received: by 10.224.157.7 with SMTP id z7mr1798544qaw.26.1409814779242; Thu, 04 Sep 2014 00:12:59 -0700 (PDT) Received: from mail-qa0-f51.google.com (mail-qa0-f51.google.com [209.85.216.51]) by mx.google.com with ESMTPS id c30si5152525qgc.108.2014.09.04.00.12.59 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 04 Sep 2014 00:12:59 -0700 (PDT) Received-SPF: pass (google.com: domain of venkataramanan.kumar@linaro.org designates 209.85.216.51 as permitted sender) client-ip=209.85.216.51; Received: by mail-qa0-f51.google.com with SMTP id j7so8890423qaq.24 for ; Thu, 04 Sep 2014 00:12:59 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.140.37.207 with SMTP id r73mr4001752qgr.9.1409814778912; Thu, 04 Sep 2014 00:12:58 -0700 (PDT) Received: by 10.140.25.165 with HTTP; Thu, 4 Sep 2014 00:12:58 -0700 (PDT) Date: Thu, 4 Sep 2014 12:42:58 +0530 Message-ID: Subject: [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.171 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, 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))