From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS3215 2.6.0.0/16 X-Spam-Status: No, score=-3.8 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 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 dcvr.yhbt.net (Postfix) with ESMTPS id 9280A1F8C6 for ; Tue, 13 Jul 2021 15:41:28 +0000 (UTC) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D8AF63835C27 for ; Tue, 13 Jul 2021 15:41:26 +0000 (GMT) Received: from esa3.mentor.iphmx.com (esa3.mentor.iphmx.com [68.232.137.180]) by sourceware.org (Postfix) with ESMTPS id 2A630384843E for ; Tue, 13 Jul 2021 15:41:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 2A630384843E 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: zfYmaZjzHThD73Bm+C4lg1AWAxaug7cd9pRUhkhfgCyHlAZ/ukBnxbbzgSndIkC+vO640spL8s UGTFXx+WBRGRN/gJ0V/vhtSxxAtKZ2UME3EQI6707JBTei8a7xqVXJ2sqjcBWVWHVlZfTnGgQJ lhniKagYlpdXMOP6B0OTzBSgBUcNtQlt9OR6OZUW1unTdT0XZXehTpQw/ukKU6z/ezQYLbvrGI 3ltEKh9e5T8b9rD3y8SIVydLgbqIuR9cXm+8u5+VMKoXZ84SNaLZAQ/hwKp7aul1PBnLiHgynL DUo= X-IronPort-AV: E=Sophos;i="5.84,236,1620720000"; d="scan'208";a="63472556" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa3.mentor.iphmx.com with ESMTP; 13 Jul 2021 07:41:15 -0800 IronPort-SDR: pRmE/D0rARvtatxwNfH1ingOVCyfbyxZcbt7XPEZeTEtkuZ/p/KCG2jgF7xHN00eMBFjewVrsT 07sMnwqrtBlMH6H/iTA1nfOGsNhOZRoMs3+NeOcgrL9shdNHzUlhjGAYA8lKmfjBehGVieZh01 p6XQ+VRMN7XlK2WDXA8iwGdNrVxZZHps68nXOWzvqJwbEG1j1uXsX6R9i0zmffnPMX62cf+T+k TiY1dwNRDj5f6UI8ka5Yi2Y3KWj6FGbcSU1IKdu7GcmQ+2/X2QO9kIRHZAGtF6FEM4EuKj1F1V eTM= Date: Tue, 13 Jul 2021 15:41:08 +0000 From: Joseph Myers X-X-Sender: jsm28@digraph.polyomino.org.uk To: IA32 System V Application Binary Interface Subject: Re: [llvm-dev] [PATCH] Add optional _Float16 support In-Reply-To: Message-ID: References: <20210701210537.51272-1-hjl.tools@gmail.com> User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-02.mgc.mentorg.com (139.181.222.2) To svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "Wang, Pengfei" , llvm-dev@lists.llvm.org, GNU C Library , GCC Patches Errors-To: libc-alpha-bounces+e=80x24.org@sourceware.org Sender: "Libc-alpha" On Tue, 13 Jul 2021, H.J. Lu wrote: > On Mon, Jul 12, 2021 at 8:59 PM Wang, Pengfei wrote: > > > > > Return _Float16 and _Complex _Float16 values in %xmm0/%xmm1 registers. > > > > Can you please explain the behavior here? Is there difference between _Float16 and _Complex _Float16 when return? I.e., > > 1, In which case will _Float16 values return in both %xmm0 and %xmm1? > > 2, For a single _Float16 value, are both real part and imaginary part returned in %xmm0? Or returned in %xmm0 and %xmm1 respectively? > > Here is the v2 patch to add the missing _Float16 bits. The PDF file is at > > https://gitlab.com/x86-psABIs/i386-ABI/-/wikis/Intel386-psABI This PDF shows _Complex _Float16 as having a size of 2 bytes (should be 4-byte size, 2-byte alignment). It also seems to change double from 4-byte to 8-byte alignment, which is wrong. And it's inconsistent about whether it covers the long double = double (Android) case - it shows that case for _Complex long double but not for long double itself. -- Joseph S. Myers joseph@codesourcery.com