From patchwork Thu May 15 05:54:55 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Kugan Vivekanandarajah X-Patchwork-Id: 30219 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ig0-f198.google.com (mail-ig0-f198.google.com [209.85.213.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 2F5722055D for ; Thu, 15 May 2014 05:55:27 +0000 (UTC) Received: by mail-ig0-f198.google.com with SMTP id uq10sf1735042igb.9 for ; Wed, 14 May 2014 22:55:26 -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:mailing-list:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:sender :delivered-to:message-id:date:from:user-agent:mime-version:to:cc :subject:x-original-sender:x-original-authentication-results :content-type; bh=ahTadShnowikPEsCYkPp2HrSglAoQMosYO5qvhkRCjk=; b=L9IgJvj3gc7KIx0AOETgWFUt1m/G04UO9+p67d26a1cl0IDspWHbH3/dt850zwfGgm TqEoaDPjsW7MQVORgsaH2v+HXL80MUQk6CE89nv1ifEH7OdVSnEZJeHp8VUF6MyuBdGN AEmlrTMTDxefjXGsynv9DAz58X0Ok1aLKx3DyWAF1YIb7apM68Zh8iQw4lfTmLlL1dMS foUOa1zEpI2Ak15vCK1AN42fhLnN3TIovWb7NJirb9jVCr3bYuT1WgbGhmmTslFj24H0 2kA6E4QTjDrVEsnEGAPzBznVj1tm5oKRrCaICq2aScleALwbqmOx/r0tiObqUGrgFXl9 /FUQ== X-Gm-Message-State: ALoCoQmpWiVbQjCxYGKSttoycMNMvBmMlKX+iNAgJkHDrikzUVuWXfCQdISK9ybqDaqOlxkxVeDG X-Received: by 10.182.186.103 with SMTP id fj7mr4167333obc.9.1400133326031; Wed, 14 May 2014 22:55:26 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.36.14 with SMTP id o14ls82221qgo.63.gmail; Wed, 14 May 2014 22:55:25 -0700 (PDT) X-Received: by 10.220.59.65 with SMTP id k1mr6863185vch.22.1400133325932; Wed, 14 May 2014 22:55:25 -0700 (PDT) Received: from mail-ve0-x235.google.com (mail-ve0-x235.google.com [2607:f8b0:400c:c01::235]) by mx.google.com with ESMTPS id b7si742524vev.94.2014.05.14.22.55.25 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 14 May 2014 22:55:25 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2607:f8b0:400c:c01::235 as permitted sender) client-ip=2607:f8b0:400c:c01::235; Received: by mail-ve0-f181.google.com with SMTP id pa12so677471veb.26 for ; Wed, 14 May 2014 22:55:25 -0700 (PDT) X-Received: by 10.52.104.7 with SMTP id ga7mr5698585vdb.29.1400133325805; Wed, 14 May 2014 22:55:25 -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.220.221.72 with SMTP id ib8csp295756vcb; Wed, 14 May 2014 22:55:24 -0700 (PDT) X-Received: by 10.66.251.101 with SMTP id zj5mr9879237pac.154.1400133324592; Wed, 14 May 2014 22:55:24 -0700 (PDT) Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id vu2si2105375pbc.493.2014.05.14.22.55.24 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 May 2014 22:55:24 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-return-367529-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Received: (qmail 1759 invoked by alias); 15 May 2014 05:55:11 -0000 Mailing-List: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org Precedence: list 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 1744 invoked by uid 89); 15 May 2014 05:55:10 -0000 X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-pb0-f52.google.com Received: from mail-pb0-f52.google.com (HELO mail-pb0-f52.google.com) (209.85.160.52) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Thu, 15 May 2014 05:55:09 +0000 Received: by mail-pb0-f52.google.com with SMTP id rr13so632171pbb.39 for ; Wed, 14 May 2014 22:55:08 -0700 (PDT) X-Received: by 10.66.157.200 with SMTP id wo8mr9846548pab.92.1400133308175; Wed, 14 May 2014 22:55:08 -0700 (PDT) Received: from [10.1.1.2] (58-6-183-210.dyn.iinet.net.au. [58.6.183.210]) by mx.google.com with ESMTPSA id ir10sm6831588pbc.59.2014.05.14.22.55.06 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 14 May 2014 22:55:07 -0700 (PDT) Message-ID: <537456AF.5020204@linaro.org> Date: Thu, 15 May 2014 15:54:55 +1000 From: Kugan User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: "gcc-patches@gcc.gnu.org" CC: Marcus Shawcroft , Richard Earnshaw Subject: [RFC][AArch64] Define BASE_REG_CLASS to be GENERAL_REGS X-IsSubscribed: yes X-Original-Sender: kugan.vivekanandarajah@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2607:f8b0:400c:c01::235 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org; dkim=pass header.i=@gcc.gnu.org X-Google-Group-Id: 836684582541 Hi All, In AArch64 back-end, BASE_REG_CLASS is defined to be POINTER_REGS. Shouldn’t this be GENERAL_REGS? Attached RFC patch makes it GENERAL_REGS. Regression tested for aarch64-none-linux-gnu on qemu-aarch64 with now new regression. Is this OK ? Thanks, Kugan gcc/ 2014-05-15 Kugan Vivekanandarajah * config/aarch64/aarch64.h (BASE_REG_CLASS) : define BASE_REG_CLASS to be GENERAL_REGS. diff --git a/gcc/config/aarch64/aarch64.h b/gcc/config/aarch64/aarch64.h index 7962aa4..e55cd94 100644 --- a/gcc/config/aarch64/aarch64.h +++ b/gcc/config/aarch64/aarch64.h @@ -448,7 +448,7 @@ enum reg_class #define REGNO_REG_CLASS(REGNO) aarch64_regno_regclass (REGNO) #define INDEX_REG_CLASS CORE_REGS -#define BASE_REG_CLASS POINTER_REGS +#define BASE_REG_CLASS GENERAL_REGS /* Register pairs used to eliminate unneeded registers that point into the stack frame. */