* [Qemu-devel] [5138] Fix sign extension problems with smul and umul (Vince Weaver)
@ 2008-09-02 16:33 Blue Swirl
0 siblings, 0 replies; only message in thread
From: Blue Swirl @ 2008-09-02 16:33 UTC (permalink / raw)
To: qemu-devel
Revision: 5138
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5138
Author: blueswir1
Date: 2008-09-02 16:33:23 +0000 (Tue, 02 Sep 2008)
Log Message:
-----------
Fix sign extension problems with smul and umul (Vince Weaver)
Modified Paths:
--------------
trunk/target-sparc/translate.c
Modified: trunk/target-sparc/translate.c
===================================================================
--- trunk/target-sparc/translate.c 2008-09-02 16:19:05 UTC (rev 5137)
+++ trunk/target-sparc/translate.c 2008-09-02 16:33:23 UTC (rev 5138)
@@ -769,8 +769,8 @@
r_temp = tcg_temp_new(TCG_TYPE_I64);
r_temp2 = tcg_temp_new(TCG_TYPE_I64);
- tcg_gen_extu_tl_i64(r_temp, src2);
- tcg_gen_extu_tl_i64(r_temp2, src1);
+ tcg_gen_extu_i32_i64(r_temp, src2);
+ tcg_gen_extu_i32_i64(r_temp2, src1);
tcg_gen_mul_i64(r_temp2, r_temp, r_temp2);
tcg_gen_shri_i64(r_temp, r_temp2, 32);
@@ -793,8 +793,8 @@
r_temp = tcg_temp_new(TCG_TYPE_I64);
r_temp2 = tcg_temp_new(TCG_TYPE_I64);
- tcg_gen_ext_tl_i64(r_temp, src2);
- tcg_gen_ext_tl_i64(r_temp2, src1);
+ tcg_gen_ext_i32_i64(r_temp, src2);
+ tcg_gen_ext_i32_i64(r_temp2, src1);
tcg_gen_mul_i64(r_temp2, r_temp, r_temp2);
tcg_gen_shri_i64(r_temp, r_temp2, 32);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-09-02 16:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-02 16:33 [Qemu-devel] [5138] Fix sign extension problems with smul and umul (Vince Weaver) Blue Swirl
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).