From patchwork Sun Oct 13 08:44:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dimitar Dimitrov X-Patchwork-Id: 1175822 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-510864-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=dinux.eu Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="TQXa+vMY"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=dinux.eu header.i=@dinux.eu header.b="dFVYGXBY"; dkim-atps=neutral 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 46rZzN5Gp7z9sP4 for ; Sun, 13 Oct 2019 19:46:08 +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:from :to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; q=dns; s=default; b=fCv IyQZoG+uQqcm+L3UXx/buVWQa6ZKCjQBF/zyqcy6ufi6hsko0Az830Be+OQbmspo MfYeiyChusmTQJelBZaK2CFBGfPCpZwsF9E/pgJsRuySKUK7LZe/c3NL4Pg1g4CK OjjMv+1VDc2iosl6mYPwkqxTwrGaUEgY/sUYlsoI= 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:from :to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=default; bh=NBtapxvnQ oRnPLARvIeJBXH6Lmg=; b=TQXa+vMYWCaCTH2kvgNjMuJx9mMWIJfUKr+TmQWYe 1hFmabkA/tcAmtRUunaWWfifZN0OmOYLBl9btdmZP3vQjN7qAeExWZNuTFdnboW1 cSRbKCeRBXn3uWMk3GDptPrffggsCurWmTW9vb1HiO4oLfIoWGgRW9sfhusA521C xM= Received: (qmail 129121 invoked by alias); 13 Oct 2019 08:45:25 -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 128964 invoked by uid 89); 13 Oct 2019 08:45:19 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-22.0 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.1 spammy=UD:eu, ISA, H*F:D*eu, translate X-HELO: server28.superhosting.bg Received: from server28.superhosting.bg (HELO server28.superhosting.bg) (217.174.156.11) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 13 Oct 2019 08:45:15 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dinux.eu; s=default; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=y17VywhYAait78AcnvX4U+8x5+i8bKAsPRaFvqXgPXE=; b=dFVYGXBYSVz44Rgt/omKnp/ud1 lHISIUMdnzFYqo7vM/hDD0dPIjcuN8o+ugy0qHzUYW7B9r5bza4Vovt+RdmHgGvbC78MflTAHVVhD WEhC5bnKnLTW29R7uTMGVjt6slVLdbX9I1H3BmNBerwJcQAJ1NHVOHE/vylAz8K4/35cEPgKmqi5O 8YNy6Xg2yldF7wpEWeSJQ/DkUOd4jYW+76Uv0an4015eFhS8V1iQE44kyvg83E1TAdbGy1J4yxPhk ZDllgz39vJdjw1VJXud3htnHRfqYy5sz/wTBlJk4Ud6kcxru+jhQ0heYClszPaL4ukurqO6TC4p8T +QQSaIVQ==; Received: from [95.87.234.74] (port=45180 helo=localhost.localdomain) by server28.superhosting.bg with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.92) (envelope-from ) id 1iJZV1-00041Y-Kl; Sun, 13 Oct 2019 11:45:13 +0300 From: Dimitar Dimitrov To: gcc-patches@gcc.gnu.org Cc: Dimitar Dimitrov Subject: [PATCH 3/5] PRU: Fix comment about R3/RA Date: Sun, 13 Oct 2019 11:44:52 +0300 Message-Id: <20191013084454.13878-4-dimitar@dinux.eu> In-Reply-To: <20191013084454.13878-1-dimitar@dinux.eu> References: <20191013084454.13878-1-dimitar@dinux.eu> MIME-Version: 1.0 X-OutGoing-Spam-Status: No, score=-1.0 X-IsSubscribed: yes Comment had a typo. Fix it and clarify. gcc/ChangeLog: 2019-10-13 Dimitar Dimitrov * config/pru/pru.h: Clarify R3/RA ABI. Signed-off-by: Dimitar Dimitrov --- gcc/config/pru/pru.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/config/pru/pru.h b/gcc/config/pru/pru.h index 15fb637dec6..f2bdd1ef02b 100644 --- a/gcc/config/pru/pru.h +++ b/gcc/config/pru/pru.h @@ -125,7 +125,8 @@ 1 r1 Caller Saved. Also used as a temporary by function. profiler and function prologue/epilogue. 2 r2 sp Stack Pointer. - 3* r3.w0 ra Return Address (16-bit). + 3* r3.w0 ABI does not specify if it is caller or callee saved. + 3* r3.w2 ra Return Address (16-bit). 4 r4 fp Frame Pointer, also called Argument Pointer in ABI. 5-13 r5-r13 Callee Saved Registers. 14-29 r14-r29 Register Arguments. Caller Saved Registers. @@ -148,6 +149,11 @@ of 8 bit sub-registers (e.g. RA starts at r12). When outputting assembly, GCC will take into account the RTL operand size (e.g. r12:HI) in order to translate to the conventional PRU ISA format expected by GAS (r3.w0). + + TI ISA documentation (SPRUHV7C) does not mark r3.w0 as neither + caller-saved nor callee-saved. So until TI clarifies, let's mark + it as fixed. + */ #define FIXED_REGISTERS \