From: Aleksandar Markovic <aleksandar.m.mail@gmail.com>
To: Paul Clarke <pc@us.ibm.com>
Cc: stefan.brankovic@rt-rk.com,
Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>,
"qemu-ppc@nongnu.org" <qemu-ppc@nongnu.org>,
qemu-devel <qemu-devel@nongnu.org>
Subject: Re: Re: target/ppc: bug in optimised vsl/vsr implementation?
Date: Mon, 30 Sep 2019 16:53:09 +0200 [thread overview]
Message-ID: <CAL1e-=j68W7GyRwNB2WAPQTShQV5CRQ4NNV9qCd2kkLuFKw5RQ@mail.gmail.com> (raw)
In-Reply-To: <18547009-8840-fc6f-1782-dc2b49f66c96@us.ibm.com>
[-- Attachment #1: Type: text/plain, Size: 1352 bytes --]
30.09.2019. 16.35, "Paul Clarke" <pc@us.ibm.com> је написао/ла:
>
> On 9/28/19 5:17 PM, Aleksandar Markovic wrote:
> > Also, check on the hardware the behavior listed as 'undefined' for
vsl/vsr
> > in the docs - even though it is tehnically irrelevant, I am courious
> > whether the old or the new (or none of them) solution match the
hardware.
>
> There does appear to be some odd behavior when one strays into the
undefined. For example:
> source vector: 0102030405060708090a0b0c0d0e0f10
> shift vector: 01020101010101010101010101010101
> after vsl: 020806080a0c0e10121416181a1c1e20
> ...this appears to use the byte-respective shift values
>
> using vsr with that result and the same shift vector:
> after vsr: 0182030405060708090a0b0c0d0e0f10
> I expected to get back a result matching the source vector, but somehow,
an extra bit got set.
>
> It would probably take some more thorough investigation to map out the
undefined behavior, but I doubt there's any value to that.
>
Absolutely agree. I thought if the 'undefined' behavior is something
obviously simple, we could try to match it, assuming also that it remains
constant across all implementations. But, this behaviour is not a simple
one, so, imho, let's leave 'undefined' undefined.
Thanks for a nice experiment!
Aleksandar
> PC
[-- Attachment #2: Type: text/html, Size: 1662 bytes --]
next prev parent reply other threads:[~2019-09-30 14:54 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-26 18:04 target/ppc: bug in optimised vsl/vsr implementation? Mark Cave-Ayland
2019-09-28 17:45 ` Aleksandar Markovic
2019-09-28 22:17 ` Aleksandar Markovic
2019-09-30 14:34 ` Paul Clarke
2019-09-30 14:53 ` Aleksandar Markovic [this message]
2019-09-30 14:37 ` Aleksandar Markovic
2019-10-01 18:24 ` Mark Cave-Ayland
2019-10-02 14:08 ` Stefan Brankovic
2019-10-03 11:11 ` Stefan Brankovic
2019-10-02 17:38 ` Alex Bennée
2019-10-02 19:40 ` Richard Henderson
2019-10-02 19:55 ` Paul Clarke
2019-10-04 19:32 ` Aleksandar Markovic
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='CAL1e-=j68W7GyRwNB2WAPQTShQV5CRQ4NNV9qCd2kkLuFKw5RQ@mail.gmail.com' \
--to=aleksandar.m.mail@gmail.com \
--cc=mark.cave-ayland@ilande.co.uk \
--cc=pc@us.ibm.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
--cc=stefan.brankovic@rt-rk.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.
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).