From patchwork Fri Jun 18 14:19:29 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julian Brown X-Patchwork-Id: 1494309 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4G61Kb6pNkz9sT6 for ; Sat, 19 Jun 2021 00:20:18 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id EE46E3AA942E for ; Fri, 18 Jun 2021 14:20:15 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from esa2.mentor.iphmx.com (esa2.mentor.iphmx.com [68.232.141.98]) by sourceware.org (Postfix) with ESMTPS id 46FC1386FC19; Fri, 18 Jun 2021 14:19:52 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 46FC1386FC19 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: 8+r+6UgCMI31XED6WRRle0m1t77vZKey/RLCpn6SBkbeQXJXxnlZfV0yO6KqTtTq16uzFm2ksa ubEKWbl44CPh5DovTOUoWT0OZErsrH4g8ninfaE/4n+QweAyGPuFthOTqBfUK1VCL+QFeoVajc /TfRww4DdxB8A+kqtCnEgHOHI4SNkZMtZi4uapWIgZQxddapGC4asYUz1zxcVAu+qNmx02YlrR 0ULaAE+0m7pVxTvoQi0lt//NnJz98743b9lZm3b1gHmt+aDv4upFVfsVpFM3gZu5GXXTnvcho0 KGI= X-IronPort-AV: E=Sophos;i="5.83,284,1616486400"; d="scan'208";a="62563379" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa2.mentor.iphmx.com with ESMTP; 18 Jun 2021 06:19:51 -0800 IronPort-SDR: dZsNpg0x+ulKO/6eQczsQSawGnoES5891pMhG6OS5vfyBxk2QzdOuVP86mBnRLgNd6Bos2Wqz1 BNEla1z8EnnnDyBS//4Gf/tNVl6Ha3cPW25pSP7eAHbhK0aDZskaTHy6v5j4Qxuleb+z+14UtA orZoViJVCe5/on0LFGxMNa6obfyeBWkjuV2SUMYTu839fDpGyqAbCHfhql80fBRBRDFU46SFpl 5TVxn4ZDYeiVfLZfp5N4Lp22qhN30ahYzyILWbs31M5zHHFj8qz4x6IN8eXwkuR/vuydWKjjNu weg= From: Julian Brown To: Subject: [PATCH 0/5] amdgcn: Improve TImode support Date: Fri, 18 Jun 2021 07:19:29 -0700 Message-ID: X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 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=-5.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=no 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: , Cc: Jakub Jelinek , Tobias Burnus , Thomas Schwinge , fortran@gcc.gnu.org, Andrew Stubbs Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org Sender: "Gcc-patches" This patch series extends TImode support for AMD GCN (see e.g. PR96306 and PR95730). This fixes several test failures that appear at present, and enables use of a 128-bit integer "omp_depend_kind" for OpenMP 5.0. Tested with offloading to AMD GCN. Further commentary on invididual patches. Thanks, Julian Julian Brown (5): amdgcn: Use unsigned types for udivsi3/umodsi3 libgcc helper args/return amdgcn: Add [us]mulsi3_highpart SGPR alternatives & [us]mulsid3/muldi3 expanders amdgcn: Add clrsbsi2/clrsbdi2 implementation amdgcn: Enable support for TImode for AMD GCN Fortran: Re-enable 128-bit integers for AMD GCN gcc/config/gcn/gcn.c | 30 ++++++++++ gcc/config/gcn/gcn.h | 11 ++-- gcc/config/gcn/gcn.md | 95 +++++++++++++++++++++++++++--- libgcc/config/gcn/lib2-bswapti2.c | 47 +++++++++++++++ libgcc/config/gcn/lib2-divmod-di.c | 35 +++++++++++ libgcc/config/gcn/lib2-divmod.c | 8 +-- libgcc/config/gcn/lib2-gcn.h | 12 +++- libgcc/config/gcn/t-amdgcn | 2 + libgfortran/configure | 22 ++----- libgfortran/configure.ac | 4 -- 10 files changed, 226 insertions(+), 40 deletions(-) create mode 100644 libgcc/config/gcn/lib2-bswapti2.c create mode 100644 libgcc/config/gcn/lib2-divmod-di.c