From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/11578 Path: news.gmane.org!.POSTED!not-for-mail From: David Edelsohn Newsgroups: gmane.linux.lib.musl.general Subject: Re: [PATCH] powerpc64le: Add single instruction math functions Date: Fri, 23 Jun 2017 15:53:56 -0400 Message-ID: References: <20170623193533.GO1627@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1498247650 10096 195.159.176.226 (23 Jun 2017 19:54:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 23 Jun 2017 19:54:10 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-11591-gllmg-musl=m.gmane.org@lists.openwall.com Fri Jun 23 21:54:07 2017 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.84_2) (envelope-from ) id 1dOUec-0002NJ-1P for gllmg-musl@m.gmane.org; Fri, 23 Jun 2017 21:54:06 +0200 Original-Received: (qmail 13798 invoked by uid 550); 23 Jun 2017 19:54: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: Original-Received: (qmail 13779 invoked from network); 23 Jun 2017 19:54:08 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=/1+CMtL7wFwAGlUbnovJ7iG22J7yUtybEieBSt8e+xE=; b=vXCUPyOJNwOTDHDgdsnScTre/LUbLFpwnazF0zLi8cpA7KhyVb0e6TL34v3lIKqmm/ NTkZpQRTsqq3ki4TiaafAKjI2Zx3A/mtJTJwRtM3fmPXCO3BLmMpLguDlq/AA61o6QZR ucPtEjy8+QlibOMAY+SPTOrh8SeGl8t4FhpgFLf0JhDeHi8MWf6uW4B9TF+6HKX9/K44 s8y9hB1Uqt0nHvD5EgbTaRiNcR9wdY7Ymu4PnvPrakTuaBf6awRVCkdQFajQsftLon6D X5jbLPzu0syfpbP7ZRmGBFeqJzKSGvc/KU9DUFiL0DoyNh5Ps27clicWCotCF2IHG7qK Ee/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=/1+CMtL7wFwAGlUbnovJ7iG22J7yUtybEieBSt8e+xE=; b=O+VRFOO3/EuNAyDB31N+AdSIn8VvVmDcduyW5CSGtvPComV6Uq6aGvjdIqx9qLfnsc ee9y/TlYGbLV/xfRNNTz7pZNXH+BsWOHU+3fzq2lCfSEzmftjCDEtg3/CoQlNU+qRG1T /SMe8EGDwX6jmQ9zN0mXoEWCfrbW6ylYk1H0/LFZaql953Xm21dZa9vz4h3zCIY/Hg0e Gr8WVJA1JWmzoKsJsqpXFvGz/1dLnFUo8pUaQGchtAuXW2VHnFj8pCwdziJ21nd3bsFR k9R6pf6QhYgpyMESAkrYKtBrsY8twMHJ/6WQzR8OxbaOQY/59TcEszZJ8ZswrpT+JEVU O6zA== X-Gm-Message-State: AKS2vOzUG5uTI7IZ5quokks7NL5ZCMXo8aYuLOg65GW9OXe35pbdpqXx TuIfW8gJnfT91Y5XVBSUoa5w4rVOiA== X-Received: by 10.200.58.163 with SMTP id x32mr10972101qte.110.1498247636563; Fri, 23 Jun 2017 12:53:56 -0700 (PDT) In-Reply-To: <20170623193533.GO1627@brightrain.aerifal.cx> Xref: news.gmane.org gmane.linux.lib.musl.general:11578 Archived-At: On Fri, Jun 23, 2017 at 3:35 PM, Rich Felker wrote: > On Wed, Jun 21, 2017 at 10:53:13AM -0400, David Edelsohn wrote: >> The following two patches are a start at single instruction math >> functions for PowerPC64 architecture. Although PPC64LE Linux and >> ELFv2 ABI require Power8 as the minimum architecture, I have added >> guards that fallback to C code for earlier architectures. > > Indeed, musl uses the ELFv2 ABI (minus its gratuitous mandate of > minimum ISA level) for both little and big endian powerpc64, and I > think we have users of both (people running it on old powerbooks, > etc.). > > Am I reading correctly that sqrt, fma, and fabs are available even in > the lowest powerpc64 ISA, and don't need preprocessor conditionals? fabs and fma are part of the base ISA for Power processors that include floating point support. fsqrt originally was optional feature in the distant past (General Purpose group of optional instructions), but is required in the ISA for Power processors. Thanks, David