qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Laurent Desnogues" <laurent.desnogues@gmail.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH][ARM] Fix for dual signed mul
Date: Mon, 23 Jun 2008 19:22:05 +0200	[thread overview]
Message-ID: <761ea48b0806231022k706f0e1l73035d9ef2406b8c@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 118 bytes --]

Title says it all.

Some other problems exist in v6 instructions since FFmpeg still
doesn't work correctly.


Laurent

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: arm-dual-smul.patch --]
[-- Type: text/x-patch; name=arm-dual-smul.patch, Size: 445 bytes --]

--- svn-ref/target-arm/translate.c	2008-06-07 13:59:11.000000000 +0200
+++ svn/target-arm/translate.c	2008-06-23 19:13:15.000000000 +0200
@@ -247,8 +247,8 @@
 {
     TCGv tmp1 = new_tmp();
     TCGv tmp2 = new_tmp();
-    tcg_gen_ext8s_i32(tmp1, a);
-    tcg_gen_ext8s_i32(tmp2, b);
+    tcg_gen_ext16s_i32(tmp1, a);
+    tcg_gen_ext16s_i32(tmp2, b);
     tcg_gen_mul_i32(tmp1, tmp1, tmp2);
     dead_tmp(tmp2);
     tcg_gen_sari_i32(a, a, 16);

                 reply	other threads:[~2008-06-23 17:22 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=761ea48b0806231022k706f0e1l73035d9ef2406b8c@mail.gmail.com \
    --to=laurent.desnogues@gmail.com \
    --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).