From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by sourceware.org (Postfix) with ESMTPS id 969433858C5F for ; Tue, 6 Jun 2023 14:49:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 969433858C5F Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-x633.google.com with SMTP id a640c23a62f3a-976a0a1a92bso703464666b.1 for ; Tue, 06 Jun 2023 07:49:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686062981; x=1688654981; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=hpkqFdTAo1CnXYTWVYWwXFBYf4qzMb5bx0M6Vot3FVk=; b=EcJjynAKDK1kl4hhMK26FLJYrnfGsoL++u1OxDXIgdQ6XRfhrc5XO50CW9YwjQHorc wKXCkuulVDpJ2Yvwi2gdbt5u+q8oIZbkp07rd96EY2azhblqe3NQcCaq67VDESCGUn3N 9GbIkyDVeAc8dx5ZxeNCSCXtB7/3io3jWSRGWQ6l4txo3HE24gvL9YhDzHDBMvOyX2ou ugEa+F2GHpKkM9Uw68IxxePJDzB04Vmntr/mJ3K2zJ0CfPF6JvbUcQhkysd4Df3lnwAw zrqRpPII17xPTunnLksYK/8CvaRuz62vseP0fIhUCDPJafF5FDZKsXAoXhuLwnA6saAE el5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686062981; x=1688654981; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=hpkqFdTAo1CnXYTWVYWwXFBYf4qzMb5bx0M6Vot3FVk=; b=Y/7hfA9hGwui5jUTgDqzhKdP7TMyDb2/xfO/ProH3/sZDEbfzBkOxReHp9aGD8EJYD NQSao7jZxHwVJXJDobZJQwwcfRGRsg49G0Oag4UxTxispiPJzUEf/JpBBIniMk89QDUR dJoj1d6W1l/g6pff1U+3U8r19Gv3CeQLA/6sJ+gVvqr2rkD37xDBBa247V7M1LQ7TnAM KULiZw0foaJlz3bAh3NX65YTL34LCq5jkcKYcZAH3sC6Wg4mcgq3yERPpJFAVTCi5a3V pLwlWHl2dTxBqRod0erftHEoOBTpzZL61lSTk1+hX70qEWgO3tQAN6rrkN9CatKS2Ebo EobQ== X-Gm-Message-State: AC+VfDzMfvF+vKzXbo+5QU+7fBV/l75PPTDiRZaNEOzjXLmXSBF2KKuc O+l6CMrhMhVF2w7NMzIr85eFidC7tHHMTOmYCJU= X-Google-Smtp-Source: ACHHUZ42tCScP2Ejk632+ecDcm2tY1vrZYr6F/oryV0ZclVkxNa4bqVfiyj4XnkGXmCcGI7pwbSnRAAi8FCalg7olb0= X-Received: by 2002:a17:906:6a20:b0:94e:48ac:9a51 with SMTP id qw32-20020a1709066a2000b0094e48ac9a51mr3096242ejc.4.1686062980773; Tue, 06 Jun 2023 07:49:40 -0700 (PDT) MIME-Version: 1.0 References: <20220524093828.505575-1-npiggin@gmail.com> In-Reply-To: <20220524093828.505575-1-npiggin@gmail.com> From: Umesh Kalappa Date: Tue, 6 Jun 2023 20:19:29 +0530 Message-ID: Subject: Passing the complex args in the GPR's To: Nicholas Piggin Cc: linuxppc-dev@lists.ozlabs.org, gcc@gcc.gnu.org, libc-alpha@sourceware.org, Segher Boessenkool , Michael Ellerman , Paul E Murphy Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Hi all , For the test case https://godbolt.org/z/vjs1vfs5W ,we see the mismatch in the ABI b/w gcc and clang . Do we have any supporting documents that second the GCC behaviour over CLANG ? EABI states like In the Power Architecture 64-Bit ELF V2 ABI Specification document (v1.1 from 16 July 2015) Page 53: Map complex floating-point and complex integer types as if the argument was specified as separate real and imaginary parts. and in this case the double complexes are broken down with double real and double img and expected to pass in FPR not the GPR. Thank you ~Umesh