mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Szabolcs Nagy <nsz@port70.net>
To: musl@lists.openwall.com
Subject: Re: [PATCH] s390x: Add single instruction math functions
Date: Mon, 12 Jun 2017 11:03:32 +0200	[thread overview]
Message-ID: <20170612090331.GZ9350@port70.net> (raw)
In-Reply-To: <CAGWvnykuvo=zF3rDADPJ0p92Pr3emO96qPYyqCPO7nknpF-RFA@mail.gmail.com>

* David Edelsohn <dje.gcc@gmail.com> [2017-06-11 22:46:09 -0400]:

> On Sun, Jun 11, 2017 at 6:19 AM, Szabolcs Nagy <nsz@port70.net> wrote:
> > * Rich Felker <dalias@libc.org> [2017-06-10 22:20:44 -0400]:
> >> On Sat, Jun 10, 2017 at 05:48:05PM -0400, David Edelsohn wrote:
> >> > When I worked with Bobby Bingham to create the s390x port of Musl, I
> >> > said that he could assume newer processors.  Also, I don't believe
> >> > that LLVM supports the earlier processors.  I believe that he assumed
> >> > some more recent instructions in other parts of the code.
> >>
> >> That seems doubtful; the amount of asm in musl is minimal and unlikely
> >> to benefit from later ISA levels; all the instructions I see look like
> >> very basic stuff that would always have been available.
> >>
> >> Now, what likely is accurate is your claim that nobody is using musl
> >> on lower ISA levels, so maybe it doesn't matter.
> >
> > well i am using s390x musl with lower isa level for compile tests
> >
> > and it seems gas rejects unrecognized opcodes so the new inline
> > asm does not compile for me.
> >
> > i think either musl configure should make sure the cc targets
> > the right isa level or the code should handle it with ifdefs
> 
> I have asked the IBM toolchain team how to distinguish the
> architecture level at compile time, or at least distinguish support
> for the FP rounding instruction.
> 
> Are you actually running s390x musl on a system earlier than z196
> architecture level?  The public IBM LinuxONE Cloud is running on a z13
> system, many generations newer than even z196.
> 

no, i only have a cross compiler, but since the toolchain build script
uses default settings i get z900 arch, if that's not good then gcc
config default should be fixed for musl.

> The following IBM table of supported and tested systems
> 
> https://www-03.ibm.com/systems/z/os/linux/resources/testedplatforms.html
> 
> shows that RHEL 7 and SLES 12 require at least z196, and Ubuntu 16.04
> requires at least zEC12.
> 
> I can't find any official hardware requirements description for Alpine
> Linux. I tend to doubt that user would run it on older hardware,
> especially hardware no longer supported by other, modern Linux
> distributions.
> 
> Building musl libc on older hardware is a nice accomplishment, but
> investing effort and complexity to maintain support probably isn't
> useful to any musl libc user and probably isn't a productive use of
> developer resources.
> 
> I will continue to inquire if there is a simple technique to accomplish this.
> 
> Thanks, David


  parent reply	other threads:[~2017-06-12  9:03 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-09 14:51 David Edelsohn
2017-06-10 15:36 ` Szabolcs Nagy
2017-06-10 17:25   ` David Edelsohn
2017-06-10 18:29     ` Szabolcs Nagy
2017-06-10 18:53       ` David Edelsohn
2017-06-10 19:48         ` Rich Felker
2017-06-10 20:22           ` David Edelsohn
2017-06-10 21:28             ` Szabolcs Nagy
2017-06-10 21:44               ` David Edelsohn
2017-06-10 21:48                 ` David Edelsohn
2017-06-11  2:20                   ` Rich Felker
2017-06-11 10:19                     ` Szabolcs Nagy
2017-06-11 15:04                       ` Rich Felker
2017-06-11 16:45                         ` Szabolcs Nagy
2017-06-11 21:45                           ` Rich Felker
2017-06-12  2:46                       ` David Edelsohn
2017-06-12  4:36                         ` Tuan M. Hoang
2017-06-12  9:03                         ` Szabolcs Nagy [this message]
2017-06-12 13:28                           ` David Edelsohn
2017-06-12 13:54                             ` David Edelsohn
2017-06-12 20:28                               ` Szabolcs Nagy
2017-06-12 21:02                                 ` David Edelsohn
2017-06-13 15:55                                   ` Szabolcs Nagy
2017-06-14 23:34                                     ` Rich Felker
2017-06-14 23:40                                       ` A. Wilcox
2017-06-14 23:44                             ` Rich Felker
2017-06-15 12:18                               ` David Edelsohn
2017-06-18 17:12                               ` David Edelsohn
2017-06-21  0:49                                 ` Rich Felker
2017-06-21  1:07                                   ` David Edelsohn
2017-06-21  1:20                                     ` Rich Felker
2017-06-21  3:34                                       ` David Edelsohn
2017-06-23 19:31                                         ` Rich Felker
2017-06-10 21:37             ` Rich Felker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170612090331.GZ9350@port70.net \
    --to=nsz@port70.net \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).