Path: ...!weretis.net!feeder9.news.weretis.net!i2pn.org!i2pn2.org!.POSTED!not-for-mail From: mitchalsup@aol.com (MitchAlsup1) Newsgroups: comp.arch Subject: Re: My 66000 and High word facility Date: Tue, 13 Aug 2024 17:24:30 +0000 Organization: Rocksolid Light Message-ID: References: <38055f09c5d32ab77b9e3f1c7b979fb4@www.novabbs.org> <2024Aug11.163333@mips.complang.tuwien.ac.at> <2024Aug12.082936@mips.complang.tuwien.ac.at> <130df049c4c97984986767736b5b037a@www.novabbs.org> <27b9630c6cd23b6ac1251bb3416ce1cf@www.novabbs.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: i2pn2.org; logging-data="2460609"; mail-complaints-to="usenet@i2pn2.org"; posting-account="65wTazMNTleAJDh/pRqmKE7ADni/0wesT78+pyiDW8A"; User-Agent: Rocksolid Light X-Spam-Checker-Version: SpamAssassin 4.0.0 X-Rslight-Posting-User: ac58ceb75ea22753186dae54d967fed894c3dce8 X-Rslight-Site: $2y$10$Ad8DLcIFvFiS7I/JraiKzea4FgdUMSU5LXEATrNnHF5XUMWaQj9D6 Bytes: 3610 Lines: 67 On Tue, 13 Aug 2024 3:50:04 +0000, BGB wrote: > On 8/12/2024 8:23 PM, MitchAlsup1 wrote: >> On Tue, 13 Aug 2024 0:34:55 +0000, BGB wrote: >> >>> On 8/12/2024 5:35 PM, MitchAlsup1 wrote: >>>> On Mon, 12 Aug 2024 20:58:45 +0000, BGB wrote: >>>> >>>>> On 8/12/2024 3:12 PM, MitchAlsup1 wrote: >>>> >>>>>> See polpak:: r8_erf() >>>>>> >>>>>> >>>>>> r8_erf:                                 ; @r8_erf >> >>>> >>>> Why don't yuo download polpack, compile it, and state how many >>>> instructions it takes and how many words of storage it takes ?? >>> >>> Found what I assume you are talking about. >>> >>> Needed to add "polpak_test.c" as otherwise BGBCC lacks a main and prunes >>> everything; >>> Also needed to hack over some compiler holes related to "complex >>> _Double" to get it to build; >>> Also needed to stub over some library functions that were added in C99 >>> but missing in my C library. >> >> I only ask for r8_erf() >>> >> >> >>> As for "r8_erf()": >>> >>> <=== >>> >>> r8_erf: >> >> >> I count 283 instructions compared to my 85 including the 104 >> instructions >> it takes your compiler to get to the 1st instruction in My 66000 code !! >> > > Yeah, this is a compiler issue... Why not sit down and code it in ASM to see what your ISA can really do? Feel free to use My 66000 code as an example. > It might have been less if the code was like: > static const double somearr[8]={ ... }; > > But, this would still have used memory loads. > Getting the constants into expressions would likely require using > #define or similar... > > This is admittedly more how I would have imagined performance-oriented > code to be written. Not so much with dynamically initialized arrays. That particular piece of code was originally written in FORTRAN probably late 1960s or early 1970s then ported to C a while back. > > But, as I will note, even with this general level of lackluster code > generation, have still been managing to often beat RV64G performance... Anybody claiming RISC-V has a good ISA should have their degree revoked.