From: Aurelien Jarno <aurelien@aurel32.net>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [6836] target-i386: use the new bswap* TCG ops
Date: Fri, 13 Mar 2009 09:35:41 +0000 [thread overview]
Message-ID: <E1Li3np-00073R-SF@cvs.savannah.gnu.org> (raw)
Revision: 6836
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6836
Author: aurel32
Date: 2009-03-13 09:35:41 +0000 (Fri, 13 Mar 2009)
Log Message:
-----------
target-i386: use the new bswap* TCG ops
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Modified Paths:
--------------
trunk/target-i386/translate.c
Modified: trunk/target-i386/translate.c
===================================================================
--- trunk/target-i386/translate.c 2009-03-13 09:35:34 UTC (rev 6835)
+++ trunk/target-i386/translate.c 2009-03-13 09:35:41 UTC (rev 6836)
@@ -6643,23 +6643,13 @@
tcg_gen_bswap64_i64(cpu_T[0], cpu_T[0]);
gen_op_mov_reg_T0(OT_QUAD, reg);
} else
+#endif
{
- TCGv_i32 tmp0;
gen_op_mov_TN_reg(OT_LONG, 0, reg);
-
- tmp0 = tcg_temp_new_i32();
- tcg_gen_trunc_i64_i32(tmp0, cpu_T[0]);
- tcg_gen_bswap32_i32(tmp0, tmp0);
- tcg_gen_extu_i32_i64(cpu_T[0], tmp0);
+ tcg_gen_ext32u_tl(cpu_T[0], cpu_T[0]);
+ tcg_gen_bswap32_tl(cpu_T[0], cpu_T[0]);
gen_op_mov_reg_T0(OT_LONG, reg);
}
-#else
- {
- gen_op_mov_TN_reg(OT_LONG, 0, reg);
- tcg_gen_bswap32_i32(cpu_T[0], cpu_T[0]);
- gen_op_mov_reg_T0(OT_LONG, reg);
- }
-#endif
break;
case 0xd6: /* salc */
if (CODE64(s))
reply other threads:[~2009-03-13 9:35 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=E1Li3np-00073R-SF@cvs.savannah.gnu.org \
--to=aurelien@aurel32.net \
--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).