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 23209 invoked from network); 20 Jun 2020 02:29:22 -0000 Received: from mother.openwall.net (195.42.179.200) by inbox.vuxu.org with ESMTPUTF8; 20 Jun 2020 02:29:22 -0000 Received: (qmail 32434 invoked by uid 550); 20 Jun 2020 02:29:21 -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 32416 invoked from network); 20 Jun 2020 02:29:20 -0000 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1592620160; h=Content-Transfer-Encoding: Content-Type: MIME-Version: Message-ID: Date: Subject: In-Reply-To: References: Cc: To: From: Sender; bh=mLcPfJk30os43W/0Ki3K4Z2olq1k7nq3W4/+zKfp8OI=; b=fmH51RxlE6Tb5z3YHxvdcbtRd5ZgBhPNLvCptUhEycISkZoBT7YHcOUMfbEwihDtZFmTccGN dHrq6n+5u3ep74dVka1KEkHCnrTLXVpXFz+Qo5MXPHdu7PdSSW9uuwyhovGzdEOHYSNHQbaQ /a9dIo9O5suD23Uah4wUyT/IEnk= 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 2E432C433CA 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: Cc: "'Szabolcs Nagy'" References: <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> <096001d64684$d322d0f0$796872d0$@codeaurora.org> <20200619224624.GO6430@brightrain.aerifal.cx> In-Reply-To: <20200619224624.GO6430@brightrain.aerifal.cx> Date: Fri, 19 Jun 2020 21:29:04 -0500 Message-ID: <0a7201d646aa$921b84f0$b6528ed0$@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: AQDl/TNKBHSEAudqYErHy0s5F/zxRwH50ogSAmFWhvwB+jZi+gITbC+6Ama90EABV9EB6gJC3bfCAhbpVEkBfWy0qQGgt9+eqiQ3oOA= Content-Language: en-us Subject: RE: [musl] Hexagon DSP support > -----Original Message----- > From: Rich Felker > Sent: Friday, June 19, 2020 5:46 PM > To: sidneym@codeaurora.org > Cc: 'Szabolcs Nagy' ; musl@lists.openwall.com > Subject: Re: [musl] Hexagon DSP support > > On Fri, Jun 19, 2020 at 04:58:53PM -0500, sidneym@codeaurora.org wrote: > > > > > -----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. > > Are you talking about how libc-test was built or how musl was built? > This kind of replacement is not valid in either place. musl is built with - > ffreestanding, and libc-test is expected to be built with -fno-builtin. > The link order is the reason. The clang driver places -lclang_rt.builtins-hexagon ahead of -lc and it happens that this library includes an implementation of fma. I think fma is something that was introduced in error in compiler-rt.builtins because hexagon is the only arch that has it. > Rich