From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from esa2.mentor.iphmx.com (esa2.mentor.iphmx.com [68.232.141.98]) by sourceware.org (Postfix) with ESMTPS id D9F6A383B831; Fri, 18 Jun 2021 14:19:54 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org D9F6A383B831 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mentor.com IronPort-SDR: BMHTlEHrIpjqu339i2lzh3XkmTO7/iRMzeiyAlYQw7cq2EXo0YdHhZIxjyXUVqeIHS/UXFzxFy ApvDoCxpc3HA2+v0DaZnB18LynbDzmBp5dGYmlr5UlRx3dwRLeHC7xdg7j95r/XeaX17vGaSnb ThMYO1iRCuA9Xr//ty/lOopOw3afHJAxotCIJpKveGCZt8WPP8+UHGJ4gy7s72Bf9OZaB8kNWH E1czLtXF7z6vjR8Srmk+vZfsUunEDhpbiEjDTS3YEtU/L4W/ydMMr+9OynE2rdtspD6oOcHUt2 evI= X-IronPort-AV: E=Sophos;i="5.83,284,1616486400"; d="scan'208";a="62563382" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa2.mentor.iphmx.com with ESMTP; 18 Jun 2021 06:19:54 -0800 IronPort-SDR: UQXYrvphSI3wAA/5KtRt/y6hf7DwtSx7xmsBZACoxH9lUfe0wO2AdLGcgp0InRYXcJ5JwoQ6kU fgrB0TVK2yrIH3ozWYFM4aaJx1imuNISrD1mfHIF4UM+LICLqUqF199isUedNktjSZFLvfaiNO Jis1Jb+ex0QnKpAulki0iVWWrUQ68PwgJBrvLkb2uE6gH7b72NkIp+POs6cK4MVaezYXvlhSIq QDi+8gkwNIMvEQ3CNRzKs8WwxzYAbxK8KWJ501XnsYIVbv9FfIxuucmGzAS7MiEmXTru1Qb72f FxE= From: Julian Brown To: CC: , Tobias Burnus , Jakub Jelinek , Thomas Schwinge , Andrew Stubbs Subject: [PATCH 1/5] amdgcn: Use unsigned types for udivsi3/umodsi3 libgcc helper args/return Date: Fri, 18 Jun 2021 07:19:30 -0700 Message-ID: X-Mailer: git-send-email 2.29.2 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: SVR-IES-MBX-07.mgc.mentorg.com (139.181.222.7) To SVR-IES-MBX-04.mgc.mentorg.com (139.181.222.4) X-Spam-Status: No, score=-11.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Jun 2021 14:19:56 -0000 This patch changes the argument and return types for the libgcc __udivsi3 and __umodsi3 helper functions for GCN to USItype instead of SItype. This is probably just cosmetic in practice. I can probably self-approve this, but I'll give Andrew Stubbs a chance to comment. Thanks, Julian 2021-06-18 Julian Brown libgcc/ * config/gcn/lib2-divmod.c (__udivsi3, __umodsi3): Change argument and return types to USItype. * config/gcn/lib2-gcn.h (__udivsi3, __umodsi3): Update prototypes. --- libgcc/config/gcn/lib2-divmod.c | 8 ++++---- libgcc/config/gcn/lib2-gcn.h | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/libgcc/config/gcn/lib2-divmod.c b/libgcc/config/gcn/lib2-divmod.c index 0d6ca44f521..7c72e24e0c3 100644 --- a/libgcc/config/gcn/lib2-divmod.c +++ b/libgcc/config/gcn/lib2-divmod.c @@ -102,15 +102,15 @@ __modsi3 (SItype a, SItype b) } -SItype -__udivsi3 (SItype a, SItype b) +USItype +__udivsi3 (USItype a, USItype b) { return udivmodsi4 (a, b, 0); } -SItype -__umodsi3 (SItype a, SItype b) +USItype +__umodsi3 (USItype a, USItype b) { return udivmodsi4 (a, b, 1); } diff --git a/libgcc/config/gcn/lib2-gcn.h b/libgcc/config/gcn/lib2-gcn.h index 11476c4cda8..9223d73b8e7 100644 --- a/libgcc/config/gcn/lib2-gcn.h +++ b/libgcc/config/gcn/lib2-gcn.h @@ -38,8 +38,8 @@ typedef int word_type __attribute__ ((mode (__word__))); /* Exported functions. */ extern SItype __divsi3 (SItype, SItype); extern SItype __modsi3 (SItype, SItype); -extern SItype __udivsi3 (SItype, SItype); -extern SItype __umodsi3 (SItype, SItype); +extern USItype __udivsi3 (USItype, USItype); +extern USItype __umodsi3 (USItype, USItype); extern HItype __divhi3 (HItype, HItype); extern HItype __modhi3 (HItype, HItype); extern UHItype __udivhi3 (UHItype, UHItype); -- 2.29.2