From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from server.nextmovesoftware.com (server.nextmovesoftware.com [162.254.253.69]) by sourceware.org (Postfix) with ESMTPS id 6F9F33858406 for ; Tue, 22 Feb 2022 23:19:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 6F9F33858406 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=nextmovesoftware.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=nextmovesoftware.com DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nextmovesoftware.com; s=default; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Message-ID:Date:Subject:In-Reply-To:References:To:From:Sender: Reply-To:Cc: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=3mO1LMeim+8WZ3itTaG4nNcs0iXuculipdhTBMoimkU=; b=WvOsaGiDc6nwDONwldOrwMjgUS Y9r6lIclYeWSkY75nFqQiNhJnYBCVglLQN30rh8h5vKQ5x5WOspBi7puJL3IE6WiS+K84HBu9xQ9m 6uO5ItFiEjsIQJ2l52jndcL3/+P2QTrpK6cLP12GGlUT3ZMOBmL0ssqGQlBd/QbgiUnqFK/l9CkT8 CCLQvDd1wNGTF0D5SEh16CJHG04k46jQgXyQDEjucf7vyuR+EPMzXkmNSUmh1T5yfruCKL4QPQAkC SOmzrDpafMtxgexLZsevJa+/HuSz/r1EFpzSCcedQYDFLmVOCbBi1tXbpNVl5LH7umjvtAULw0ssE fdnEW9zA==; Received: from host86-186-213-42.range86-186.btcentralplus.com ([86.186.213.42]:53239 helo=Dell) by server.nextmovesoftware.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nMeR3-0001MU-S6; Tue, 22 Feb 2022 18:19:10 -0500 From: "Roger Sayle" To: "'Tom de Vries'" , References: <057201d81df1$50523bc0$f0f6b340$@nextmovesoftware.com> <9f961501-f2a6-031e-11ee-2afc762f2f5d@suse.de> <008801d82806$771db4e0$65591ea0$@nextmovesoftware.com> <7b4e8644-9982-a622-f10a-bd89af2e4d58@suse.de> In-Reply-To: <7b4e8644-9982-a622-f10a-bd89af2e4d58@suse.de> Subject: RE: [PATCH] middle-end: Support ABIs that pass FP values as wider integers. Date: Tue, 22 Feb 2022 23:19:06 -0000 Message-ID: <000801d82842$9795f750$c6c1e5f0$@nextmovesoftware.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQJ9RK1A/mLmQI2lFVOi8QF0uUeM9QHLAqBAAoyOzRYBw8CUXqslHppg Content-Language: en-gb X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - server.nextmovesoftware.com X-AntiAbuse: Original Domain - gcc.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - nextmovesoftware.com X-Get-Message-Sender-Via: server.nextmovesoftware.com: authenticated_id: roger@nextmovesoftware.com X-Authenticated-Sender: server.nextmovesoftware.com: roger@nextmovesoftware.com X-Source: X-Source-Args: X-Source-Dir: X-Spam-Status: No, score=-6.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) 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: Tue, 22 Feb 2022 23:19:11 -0000 >> Anyway, I checked what cuda does for HF, and it passes a byte array: >>> .param .align 2 .b8 _Z5helloPj6__halfs_param_1[2], ... > > > > The one precedent that I can point to is that LLVM's nvptx backend passes > > HFmode values in SImode regs, see https://reviews.llvm.org/D28540 > > Interesting, thanks for the link. In theory, GCC could also support -mfloat-abi=nvcc and -mfloat-abi=llvm (much like other targets have -mfloat-abi=soft vs. -mfloat-abi=hard). At this point getting any ABI supporting HFmode would be an improvement. Roger --