From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 27184 invoked from network); 19 Jun 2020 21:59:13 -0000 Received: from mother.openwall.net (195.42.179.200) by inbox.vuxu.org with ESMTPUTF8; 19 Jun 2020 21:59:13 -0000 Received: (qmail 7325 invoked by uid 550); 19 Jun 2020 21:59:09 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 7304 invoked from network); 19 Jun 2020 21:59:09 -0000 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1592603948; h=Content-Transfer-Encoding: Content-Type: MIME-Version: Message-ID: Date: Subject: In-Reply-To: References: Cc: To: From: Sender; bh=Ocyex20ColoUKAWE+ui7uR5W6Bg7SzRxGM5t2N/3Rpg=; b=bX41FHdOFLXeDYzCc+9qfawfmAEuPv3cetKvMR4dYKYQny/0cgb0swpI22dvN3a+DOsns+ZL y4KimQ0B6bqNlEjhPCxAfAS+zTd5A09SvotthyftMcyxhdTN2scfrR/u+qkeDI/ERQW7Ufuy rcJZhOkzp2jJh8sMCCq5owtfy8s= X-Mailgun-Sending-Ip: 104.130.122.29 X-Mailgun-Sid: WyI1MGQzMyIsICJtdXNsQGxpc3RzLm9wZW53YWxsLmNvbSIsICJiZTllNGEiXQ== Sender: sidneym=codeaurora.org@mg.codeaurora.org DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 6858CC433CA Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=sidneym@codeaurora.org From: To: "'Szabolcs Nagy'" Cc: References: <029101d6134e$56d4ece0$047ec6a0$@codeaurora.org> <20200415180620.GA23945@port70.net> <20200415182619.GI11469@brightrain.aerifal.cx> <039701d61359$c56efa50$504ceef0$@codeaurora.org> <20200415192940.GJ11469@brightrain.aerifal.cx> <005a01d61f40$dc8cc7b0$95a65710$@codeaurora.org> <20200430235109.GJ21576@brightrain.aerifal.cx> <8c3611dcf8e2c59885fecd9ebdc70d79@codeaurora.org> <20200506005929.GG21576@brightrain.aerifal.cx> <1a0301d6458e$b4264d90$1c72e8b0$@codeaurora.org> <20200618214247.GD2048759@port70.net> In-Reply-To: <20200618214247.GD2048759@port70.net> Date: Fri, 19 Jun 2020 16:58:53 -0500 Message-ID: <096001d64684$d322d0f0$796872d0$@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQIJ09G+AagEjLpOzx+tJYmvN+2CiQI9VqstAOX9M0oB+dKIEgJhVob8Afo2YvoCE2wvugJmvdBAAVfRAeoCQt23wgIW6VRJp9vlEOA= Content-Language: en-us Subject: RE: [musl] Hexagon DSP support > -----Original Message----- > From: Szabolcs Nagy > Sent: Thursday, June 18, 2020 4:43 PM > To: sidneym@codeaurora.org > Cc: musl@lists.openwall.com > Subject: Re: [musl] Hexagon DSP support > > * sidneym@codeaurora.org [2020-06-18 11:37:05 > -0500]: > > I attached the updated REPORT with warning output disabled, -w and > > -fno-rounding-math (See https://bugs.llvm.org/show_bug.cgi?id=45329) > > along with the patch. I've rebased a couple of times without any > > conflicts and the git repo is here: > > https://github.com/quic/musl/tree/hexagon > > the fmal failures are a bit concerning: > > fmal should be a tail call to fma if long double has the same representation as > double. (can you please verify this? there should be a single branch instruction > in fmal) > > there are no fma failures with the same tests so fmal should work fine too. In the case of fma the selected function comes from compiler-rt-builtins. It looks like since fmal calls fma within the context of the c-library the c-library's version is branched to. compiler-rt-builtins for hexagon should include a fmal function that jumps to the optimized fma, it does not but I can fix that. I generally only use the tip-of-tree clang and that isn't generating correct code when building fma.c. When I use our internally release llvm tools fma and fmal tests both pass. Thanks > > may be the libc-test code got miscompiled or somehow wrong? > or long double arithmetics is broken?