Skip to contentSkip to conversation

[5306] Fix tcg_gen_concat32_i64 on 64-bit hosts.

Qemu-devel Paul Brook 1 participant 1 message Sep 23, 2008

lore
Share & tools
lore

Paul Brook

author
#0 lore raw

Revision: 5306

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5306
Author:   pbrook
Date:     2008-09-23 22:31:10 +0000 (Tue, 23 Sep 2008)

Log Message:
-----------
Fix tcg_gen_concat32_i64 on 64-bit hosts.

Modified Paths:
--------------
trunk/tcg/tcg-op.h

Modified: trunk/tcg/tcg-op.h
===================================================================

tcg/tcg-op.h +2 -1
@@ -1418,8 +1418,9 @@
     tcg_gen_concat_i32_i64(dest, low, high);
 #else
     TCGv tmp = tcg_temp_new(TCG_TYPE_I64);
+    tcg_gen_ext32u_i64(dest, low);
     tcg_gen_shli_i64(tmp, high, 32);
-    tcg_gen_or_i64(dest, low, tmp);
+    tcg_gen_or_i64(dest, dest, tmp);
     tcg_temp_free(tmp);
 #endif
 }