qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Vince Weaver <vince@csl.cornell.edu>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [5123] Fix y register loads and stores
Date: Mon, 1 Sep 2008 18:28:16 -0400 (EDT)	[thread overview]
Message-ID: <20080901182340.H84348@stanley.csl.cornell.edu> (raw)
In-Reply-To: <20080901173717.J84348@stanley.csl.cornell.edu>


> I think something is still odd with the 64-bit multiply code (the rest of the 
> tcg instructions seem to work fine).

I found the problem (this required writing some x86_64 assembly routines 
with pasted in values from out_asm results).

The problem is that my test case does a signed multiply of
    0x386d4380 x 0xc22e4507

These should both be sign extended, but for some reason despite the

     tcg_gen_ext_tl_i64(r_temp, src2);
     tcg_gen_ext_tl_i64(r_temp2, src1);

calls in gen_op_smul() the values aren't sign extended.  This matters for 
the second operand, and thus we get the wrong result.

It wasn't easy to see this with the remote-gdb stuff because annoyingly I 
can't get gdb to display the 64-bit register contents when using 
sparcv8plus binaries.

So something is wrong with the sign extension.  Unfortunately I won't have 
time to look into this more until tomorrow, but I wanted to just get this 
out there.

Vince

  reply	other threads:[~2008-09-01 22:28 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-01 19:35 [Qemu-devel] [5123] Fix y register loads and stores Blue Swirl
2008-09-01 21:39 ` Vince Weaver
2008-09-01 22:28   ` Vince Weaver [this message]
2008-09-01 23:05     ` Vince Weaver
2008-09-02 16:55       ` Blue Swirl

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=20080901182340.H84348@stanley.csl.cornell.edu \
    --to=vince@csl.cornell.edu \
    --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 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).