qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [4856] fix cvtsq2s[sd] (Juergen Lock)
@ 2008-07-07 20:25 Fabrice Bellard
  0 siblings, 0 replies; only message in thread
From: Fabrice Bellard @ 2008-07-07 20:25 UTC (permalink / raw)
  To: qemu-devel

Revision: 4856
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4856
Author:   bellard
Date:     2008-07-07 20:25:41 +0000 (Mon, 07 Jul 2008)

Log Message:
-----------
fix cvtsq2s[sd] (Juergen Lock)

Modified Paths:
--------------
    trunk/target-i386/translate.c

Modified: trunk/target-i386/translate.c
===================================================================
--- trunk/target-i386/translate.c	2008-07-07 20:15:54 UTC (rev 4855)
+++ trunk/target-i386/translate.c	2008-07-07 20:25:41 UTC (rev 4856)
@@ -3340,8 +3340,12 @@
             op1_offset = offsetof(CPUX86State,xmm_regs[reg]);
             tcg_gen_addi_ptr(cpu_ptr0, cpu_env, op1_offset);
             sse_op2 = sse_op_table3[(s->dflag == 2) * 2 + ((b >> 8) - 2)];
-            tcg_gen_trunc_tl_i32(cpu_tmp2_i32, cpu_T[0]);
-            tcg_gen_helper_0_2(sse_op2, cpu_ptr0, cpu_tmp2_i32);
+            if (ot == OT_LONG) {
+                tcg_gen_trunc_tl_i32(cpu_tmp2_i32, cpu_T[0]);
+                tcg_gen_helper_0_2(sse_op2, cpu_ptr0, cpu_tmp2_i32);
+            } else {
+                tcg_gen_helper_0_2(sse_op2, cpu_ptr0, cpu_T[0]);
+            }
             break;
         case 0x02c: /* cvttps2pi */
         case 0x12c: /* cvttpd2pi */

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-07-07 20:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-07 20:25 [Qemu-devel] [4856] fix cvtsq2s[sd] (Juergen Lock) Fabrice Bellard

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).