From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/14697 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: info@mobile-stream.com Newsgroups: gmane.linux.lib.musl.general Subject: Re: [PATCH] mips: add single-instruction math functions Date: Wed, 18 Sep 2019 20:18:04 +0300 Message-ID: <965098322.20190918201804@mobile-stream.com> References: <20190911103224.504A15C44C@mx7.valuehost.ru> <20190913183123.GI9017@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="240439"; mail-complaints-to="usenet@blaine.gmane.org" To: musl@lists.openwall.com Original-X-From: musl-return-14713-gllmg-musl=m.gmane.org@lists.openwall.com Wed Sep 18 22:48:44 2019 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.89) (envelope-from ) id 1iAgsW-0010Rc-FE for gllmg-musl@m.gmane.org; Wed, 18 Sep 2019 22:48:44 +0200 Original-Received: (qmail 32056 invoked by uid 550); 18 Sep 2019 20:48:42 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 32034 invoked from network); 18 Sep 2019 20:48:41 -0000 Resent-From: Rich Felker Resent-Date: Wed, 18 Sep 2019 16:48:29 -0400 Resent-Message-ID: <20190918204829.GE9017@brightrain.aerifal.cx> Resent-To: musl@lists.openwall.com X-Priority: 3 (Normal) In-Reply-To: <20190913183123.GI9017@brightrain.aerifal.cx> Resent-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:14697 Archived-At: R> Why is this dependent on __mips_abs2008? There is also __mips_nan2008 (always set for hard-float R6 and -mnan=2008). Binaries built with this option (implicit or not) are unusable on -mnan=legacy system, this is enforced by kernel (unless booted with some debugging option). The fabs code could be changed to also depend on __mips_nan2008 (since these ISA features are paired) to prevent -mabs=2008 musl on -mabs=legacy system (rather unrealistic). Why is it wrong to depend on fine-grained ISA features after all? Why is it wrong to explicitly depend e.g. on __mips_dsp in the strchr code fearing improper usage on a system without DSP ASE? powerpc64, s390x have similar ifdefs in their math code and IIUC nothing prevents running (until SIGILL) statically-linked _ARCH_PWR5X binary on an _ARCH_PWR5 system. Or some powerpc64 code depends on __VSX__. Is it wrong to depend on __mips_msa? What is different with mips here?