From: Jacob Lifshay <programmerjake@gmail.com>
To: Libre-RISCV General Development <libre-riscv-dev@lists.libre-riscv.org>
Subject: Re: [libre-riscv-dev] daily kan-ban update, 22jul2020
Date: Thu, 23 Jul 2020 10:06:24 -0700
Message-ID: <CAC2bXD61pYs-vZzduaZq0j-xovmgH+Xv188HTV6r1rUJB5TtpQ@mail.gmail.com> (raw)
In-Reply-To: <CAPweEDzsho_Jemrm03UG1UmwxtjnGx5+G47JBbGSVgH4DLc3TQ@mail.gmail.com>
On Thu, Jul 23, 2020, 09:42 Luke Kenneth Casson Leighton <lkcl@lkcl.net>
wrote:
> On Thursday, July 23, 2020, Jacob Lifshay <programmerjake@gmail.com>
> wrote:
>
> > On Thu, Jul 23, 2020, 02:40 Luke Kenneth Casson Leighton <lkcl@lkcl.net>
> > wrote:
> >
> > > On Thursday, July 23, 2020, Luke Kenneth Casson Leighton <
> lkcl@lkcl.net>
> > > wrote:
> > >
> > > >
> > > >
> > > > On Thursday, July 23, 2020, Jacob Lifshay <programmerjake@gmail.com>
> > > > wrote:
> > > >
> > > >>
> > > >> SimOnly, I discovered that for test_divwuo_regression_1 (0xc4e32b68
> /
> > > >> 0x32867d69), the pipeline (SimOnly) is giving the correct results
> > > >> (rt=0x3), it's the ISA simulator code that's messed up
> > > >> (rt=0xFFFFFFFF).
> > > >
> > > >
> > > > please raise a bugreport for it.
> > > >
> > >
> > > saw it, thank you for doing that.
> > >
> > > these look great btw
> > >
> > >
> > >
> > > https://git.libre-soc.org/?p=soc.git;a=commitdiff;h=
> > 78096b62db0345846cca70ab2f75f9c3519006c4
> >
> >
> > Thanks! I used the same list of test values as in
> > power-instruction-analyzer.
>
>
> i wondered if, like in the ieee754fp tests, if some random values could be
> added, too.
>
I specifically want the test cases to be reproducible for
power-instruction-analyzer, since the test results generated on a POWER9
cpu are checked into the repo for those who don't have a POWER9.
for soc, we can copy the test case generation logic from DivPipeCore's
tests in ieee754fpu since that covers waaay more cases (nicely
exponentially distributed too) but is also deterministic. it covers the
cases:
for all 0 <= a < 2^8 and 0 <= b < 64:
the case a << b if b < 64 - 8
and the case ~(a << b) if b < 64 - 8
and the case (1 << b) - 1
and the case ~((1 << b) - 1)
It might use a different value than 8 -- icr.
this covers all the corner cases I can think of, which random testing has a
very small chance of ever hitting (small enough that you'd need every
person on the planet to all run the test on the order of a billion times
each to hit the case once).
Jacob
_______________________________________________
libre-riscv-dev mailing list
libre-riscv-dev@lists.libre-riscv.org
http://lists.libre-riscv.org/mailman/listinfo/libre-riscv-dev
next prev parent reply index
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-23 0:13 Jacob Lifshay
2020-07-23 1:53 ` Cole Poirier
2020-07-23 2:29 ` Luke Kenneth Casson Leighton
2020-07-23 9:40 ` Luke Kenneth Casson Leighton
2020-07-23 16:31 ` Jacob Lifshay
2020-07-23 16:42 ` Luke Kenneth Casson Leighton
2020-07-23 17:06 ` Jacob Lifshay [this message]
2020-07-23 17:11 ` Luke Kenneth Casson Leighton
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=CAC2bXD61pYs-vZzduaZq0j-xovmgH+Xv188HTV6r1rUJB5TtpQ@mail.gmail.com \
--to=programmerjake@gmail.com \
--cc=libre-riscv-dev@lists.libre-riscv.org \
/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
Libre RISC-V Mailing list Archives (accessible via public-inbox)
Archives are clonable: git clone --mirror https://inbox.libre-soc.org/libre-riscv-dev
Example config snippet for mirrors
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git