From: Jocelyn Mayer <l_indien@magic.fr>
To: Julian Seward <jseward@acm.org>
Cc: qemu-devel@nongnu.org
Subject: [Qemu-devel] Re: emu errors for creqv,crnand,crnor,crorc ?
Date: Wed, 31 Oct 2007 14:27:23 +0100 [thread overview]
Message-ID: <1193837243.24629.22.camel@jma4.dev.netgem.com> (raw)
In-Reply-To: <200710311237.22174.jseward@acm.org>
On Wed, 2007-10-31 at 12:37 +0100, Julian Seward wrote:
> Hi Jocelyn
Hi,
> I ran valgrind's ppc32 insn set tests and got the impression that
> the above insns are not correctly implemented. It seems like 7 bits
> of CR are set to 1 and one is set to 0, when it should be the other
> way around. Below is a simple test case. On QEMU it prints
>
> result is 000fc000
>
> and on a real 7447
>
> result is 00004000
>
> Similar behaviour for creqv, crnand, crnor. But cror, crand, crxor work
> OK. So maybe it is related to the inverted-result-sense? But the strange
> thing is, ~0xFC != 0x04.
Thanks for testing and for the report !
I have to admit I never did extensive test on CR operations the same way
I did for arithmetic and logical ones.
What is strange is that 0xFC + 0x04... I will have to check all the CR
ops, I guess...
I also got a 74xx CPU at home, then I will try to compare running
step-by-step, if needed.
I'll tell you when I'll find the bug...
--
Jocelyn Mayer <l_indien@magic.fr>
next prev parent reply other threads:[~2007-10-31 13:27 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-31 11:37 [Qemu-devel] emu errors for creqv,crnand,crnor,crorc ? Julian Seward
2007-10-31 13:27 ` Jocelyn Mayer [this message]
2007-10-31 13:39 ` [Qemu-devel] " Julian Seward
2007-10-31 13:56 ` Jocelyn Mayer
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=1193837243.24629.22.camel@jma4.dev.netgem.com \
--to=l_indien@magic.fr \
--cc=jseward@acm.org \
--cc=qemu-devel@nongnu.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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.