* [Qemu-devel] [5306] Fix tcg_gen_concat32_i64 on 64-bit hosts.
@ 2008-09-23 22:31 Paul Brook
0 siblings, 0 replies; only message in thread
From: Paul Brook @ 2008-09-23 22:31 UTC (permalink / raw)
To: qemu-devel
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.
Signed-off-by: Paul Brook <paul@codesourcery.com>
Modified Paths:
--------------
trunk/tcg/tcg-op.h
Modified: trunk/tcg/tcg-op.h
===================================================================
--- trunk/tcg/tcg-op.h 2008-09-23 13:38:44 UTC (rev 5305)
+++ trunk/tcg/tcg-op.h 2008-09-23 22:31:10 UTC (rev 5306)
@@ -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
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-09-23 22:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-23 22:31 [Qemu-devel] [5306] Fix tcg_gen_concat32_i64 on 64-bit hosts Paul Brook
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).