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: 349061 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 20A521400D8 for ; Thu, 15 May 2014 15:55:19 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:mime-version:to:cc:subject:content-type; q=dns; s=default; b=UMgEay9lj+wDbcISjGIoWKb2yyBrxxTmLm4t9urwR3q 4hBAUg8uQfMXL1VuRIpS6x7FgthBhfhQ3djjSbIG3pO84C53hWq0VXnzkaJ32iQK tjxsyJomgoXwSWkVbLjMAAj0zv93rLZKIpAWPW1w2PvZqLtBPt0GdX740YJH6Xm4 = 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 :message-id:date:from:mime-version:to:cc:subject:content-type; s=default; bh=xFkT350kbUnFY61GuItl8CTXOG0=; b=qTynqXHMh2xyL22FH rHkL6AhbaGIvieFNblDmRMEm6zefbJUF4ACovLirPAqs9vJASY2TyoFEG90qkdqp zkg55FzsK17osQ1YH6CE3bDPYHSsRzOiBEq2ZUXuVN/63MxtwmZeAGqCj14z4KOh x+9dIhdWQB93iTXLVCV3Dbs0YQ= Received: (qmail 1759 invoked by alias); 15 May 2014 05:55:11 -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 1744 invoked by uid 89); 15 May 2014 05:55:10 -0000 Authentication-Results: sourceware.org; auth=none 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-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:content-type; bh=ahTadShnowikPEsCYkPp2HrSglAoQMosYO5qvhkRCjk=; b=VMqUFqWHz6LzyNyOYCdU3Bl1+6oUhB/fxBaOPM5rZ+V9ORlfloJUmnO3MtuL++u3yf 7i9Ek4ombI3qZ90+dyldgtB1u2A5fAFvxRRn5nS7I6XjuaNakY9k3wF0hA88mpWq7Eqi yInywLZZuky24tjgykgM1vk7L/ndgLIjITICsZT7e/UZNiXMKSlS5+1+CGkfwwHB3hpr ZHjHSehP5Bo8PN8pydKFkHnkwfAjgyz7ocqAiPmM0iT+adJk2MzFWEPKqNpxSd35z2W+ K503pQLDtTq1xQ6ZzmamefmS6eMI7NkOKmlz1JKTxGOuluoPiYkarDwKvmv5f6Z+iX9t sqlA== X-Gm-Message-State: ALoCoQn9Ur4oZKYd6OEyW/1ed7awRwa6EYlwx5I/8PAXlD0v4TGugT8FSNMImovYaMoBRnG4ZCN9 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 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. */