From patchwork Mon Oct 20 14:26:45 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bernd Schmidt X-Patchwork-Id: 401155 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 A28C214007D for ; Tue, 21 Oct 2014 01:28:23 +1100 (AEDT) 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:subject:references :in-reply-to:content-type; q=dns; s=default; b=cTsCrp3Bb1YbrAC7i 9bLXvmcvNeTbs+Wh+h6Wy8M5JQqEMGA622wDTLiPV2BTZFT7nuzi3jBWavR/1/O5 6dISkelncPJ4+768ZKh47LyL3CT3dVRzF8TEovyNmSXckkEoGhpaQKwek0YvneCC 7PATWCf+Rcd+ZVZpIiczdegJqA= 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:subject:references :in-reply-to:content-type; s=default; bh=fIm716uIAKNOMRbwKnqTXLo v8sc=; b=fRA6yWbyCUPVj4G8BEElvYE1l0l2h136mfExGaJ8FtQGzYAOy/6DgyS Lv9EpuSjxg5JsrYoD8dowP+5IaGqjIQy8QnXXitQXqyf3E0k9A2i1LDg2w9lO+3a 6cFMMzaH99/Lf++ijX5cZBtHk/awGnXotn1742UpYzakfn+MXkX0= Received: (qmail 966 invoked by alias); 20 Oct 2014 14:28:05 -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 913 invoked by uid 89); 20 Oct 2014 14:28:04 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 20 Oct 2014 14:28:03 +0000 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=SVR-IES-FEM-03.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1XgDwG-0004QO-Na from Bernd_Schmidt@mentor.com for gcc-patches@gcc.gnu.org; Mon, 20 Oct 2014 07:28:00 -0700 Received: from [127.0.0.1] (137.202.0.76) by SVR-IES-FEM-03.mgc.mentorg.com (137.202.0.108) with Microsoft SMTP Server id 14.3.181.6; Mon, 20 Oct 2014 15:27:59 +0100 Message-ID: <54451BA5.7070007@codesourcery.com> Date: Mon, 20 Oct 2014 16:26:45 +0200 From: Bernd Schmidt User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.8.0 MIME-Version: 1.0 To: GCC Patches Subject: The nvptx port [6/11+] Pseudo call args References: <54451994.9070209@codesourcery.com> In-Reply-To: <54451994.9070209@codesourcery.com> On ptx, we'll be using pseudos to pass function args as well, and there's one assert that needs to be toned town to make that work. Bernd gcc/ * expr.c (use_reg_mode): Just return for pseudo registers. ------------------------------------------------------------------------ Index: gcc/expr.c =================================================================== --- gcc/expr.c (revision 422421) +++ gcc/expr.c (revision 422422) @@ -2321,7 +2321,10 @@ copy_blkmode_to_reg (enum machine_mode m void use_reg_mode (rtx *call_fusage, rtx reg, enum machine_mode mode) { - gcc_assert (REG_P (reg) && REGNO (reg) < FIRST_PSEUDO_REGISTER); + gcc_assert (REG_P (reg)); + + if (!HARD_REGISTER_P (reg)) + return; *call_fusage = gen_rtx_EXPR_LIST (mode, gen_rtx_USE (VOIDmode, reg), *call_fusage);