From: BAndViG Date: Sun, 24 Feb 2019 19:47:12 +0300 Subject: [OpenRISC] OR1K FPU Tools In-Reply-To: References: <20181127211855.GC3235@lianli.shorne-pla.net> <8BFA5ABB61214594AF57022CFD5BCBE6@BAndViG> <3ADA35F1727C43478E251E65657B7168@BAndViG> <99D3A6CAD94A4F5F8DC0635EB165E03C@BAndViG> <1ABC8480744C4D40BD98B00970F56DEB@BAndViG> Message-ID: <7EBEFC65A32346488B1AC081BE1641BA@BAndViG> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: openrisc@lists.librecores.org No problem, Stafford. You've done and continue making a lot of useful things for advance OR1K eco-system. Automated testing is also important tool while I'm not in hurry to complete FP support in GCC9. However, I think it could be good to complete it till GCC9 release. I use yours GCC and binutils sources and run TestFloat/Whetstone on SoC build for Atlys board (Spartan-6 LX45 based). I'm sure that TestFloat/Whetstone shouldn't be included into or1k-tests as is. As you mentioned they take a long time for simulation while or1k-tests are relatively short. Perhaps, it would be better to extract subset of tests from them to create faster testing procedures in or1k-tests, while separate repos under openrisc/ make sense. Andrey From: Stafford Horne Sent: Sunday, February 24, 2019 5:41 PM To: BAndViG Cc: Openrisc Subject: Re: [OpenRISC] OR1K FPU Tools Hi BandViG, Thanks for the update. Sorry, I got a bit sidetracked with the automated testing for mor1kx (see https://travis-ci.org/stffrdhrn/mor1kx/jobs/497775754). I did have a go at running the test float and whetstone source you gave me a few days ago. I ran with marocchino in icarus with GCC9. The only problem was it took a really time to run. I noticed a similar issue in Whetstone. The GCC/binutils branches I am using are: - https://github.com/stffrdhrn/gcc/tree/or1k-fpu-1 - https://github.com/stffrdhrn/binutils-gdb/tree/orfpx64a32 Are you using the same? Perhaps I should run on an FPGA. How have you been running it? In terms of the testfloat and whetstone code, do you think it would be any issue if I add this into or1k-tests? Or another repo under openrisc/? -Stafford On Sun, Feb 24, 2019 at 8:06 PM BAndViG wrote: > > Hello, > > GCC9 and floating point status update. > > I build GCC9+NewLIB based tool-chain and tried to compile and run my FPU > tools. I added “-O2” option to NewLIB’s compiler options, but > without –mhard-float and –mdouble-float options. That means all math > functions use soft subroutines instead of fp-instructions. As a result, it is > desirable to get low performance of math functions computation. > > “TestFloat”. > I updated systfloat.S from “testfloat” tool to meet GCC9 ABI about correct > handling double precision operands (find updated version in attachment). > With the update all “testfloat” tests were passed for both single and double > precision cases. > > “Whetstone” > Excluding math functions (see note above) all other tests should operate > normally. > I build single precision version of Whetstone with options “–O2 –flto”. All > tests passed. Next I’m planning to re-bulid NewLIB with –mhard-float option > (but without –mdouble-float) and check full support for single precision. > I also tried double precision version of Whetstone, however it hangs up being > compiled ether with “–O2 –flto” or just “-O2” options. The only variant to > get operable double precision Whetstone is to build it with “-O0” option. > > WBR > Andrey > > > From: Stafford Horne > Sent: Monday, January 21, 2019 9:52 PM > To: BAndViG > Cc: Openrisc > Subject: Re: OR1K FPU Tools > > Hello, > > I have started adapting this to run in my test harness. Its going to take > some time as I only get about 30 minutes a day. Some things to mention. > 1 The tests I will run first are in stffrdhrn/or1k-tests (mirror of > openrisc/or1k-tests) > 2 The test harness uses the SoC design stffrdhrn/mor1kx-generic (mirror of > openrisc/mor1kx-generic) > 3 The harness requires that the pipeline be in mor1kx module (I noticed > marocchino is separated out, I will try to add it in) > 4 The harness requires support for the monitor_* signals (I noticed > marocchino doesn't support them) > > I am almost done with 3 and 4, but I have to go out now. If you have any > comments are suggestions please let me know. > > -Stafford > > _______________________________________________ OpenRISC mailing list OpenRISC at lists.librecores.org https://lists.librecores.org/listinfo/openrisc WBR Andrey