From: Aurelien Jarno <aurelien@aurel32.net>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [7045] target-mips: optimize gen_flt3_arith()
Date: Wed, 08 Apr 2009 21:48:18 +0000 [thread overview]
Message-ID: <E1Lrfd4-0002uc-In@cvs.savannah.gnu.org> (raw)
Revision: 7045
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=7045
Author: aurel32
Date: 2009-04-08 21:48:18 +0000 (Wed, 08 Apr 2009)
Log Message:
-----------
target-mips: optimize gen_flt3_arith()
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Modified Paths:
--------------
trunk/target-mips/translate.c
Modified: trunk/target-mips/translate.c
===================================================================
--- trunk/target-mips/translate.c 2009-04-08 21:48:10 UTC (rev 7044)
+++ trunk/target-mips/translate.c 2009-04-08 21:48:18 UTC (rev 7045)
@@ -7259,39 +7259,37 @@
check_cp1_64bitmode(ctx);
{
TCGv t0 = tcg_temp_local_new();
- TCGv_i32 fp0 = tcg_temp_local_new_i32();
- TCGv_i32 fph0 = tcg_temp_local_new_i32();
- TCGv_i32 fp1 = tcg_temp_local_new_i32();
- TCGv_i32 fph1 = tcg_temp_local_new_i32();
+ TCGv_i32 fp = tcg_temp_new_i32();
+ TCGv_i32 fph = tcg_temp_new_i32();
int l1 = gen_new_label();
int l2 = gen_new_label();
gen_load_gpr(t0, fr);
tcg_gen_andi_tl(t0, t0, 0x7);
- gen_load_fpr32(fp0, fs);
- gen_load_fpr32h(fph0, fs);
- gen_load_fpr32(fp1, ft);
- gen_load_fpr32h(fph1, ft);
tcg_gen_brcondi_tl(TCG_COND_NE, t0, 0, l1);
- gen_store_fpr32(fp0, fd);
- gen_store_fpr32h(fph0, fd);
+ gen_load_fpr32(fp, fs);
+ gen_load_fpr32h(fph, fs);
+ gen_store_fpr32(fp, fd);
+ gen_store_fpr32h(fph, fd);
tcg_gen_br(l2);
gen_set_label(l1);
tcg_gen_brcondi_tl(TCG_COND_NE, t0, 4, l2);
tcg_temp_free(t0);
#ifdef TARGET_WORDS_BIGENDIAN
- gen_store_fpr32(fph1, fd);
- gen_store_fpr32h(fp0, fd);
+ gen_load_fpr32(fp, fs);
+ gen_load_fpr32h(fph, ft);
+ gen_store_fpr32h(fp, fd);
+ gen_store_fpr32(fph, fd);
#else
- gen_store_fpr32(fph0, fd);
- gen_store_fpr32h(fp1, fd);
+ gen_load_fpr32h(fph, fs);
+ gen_load_fpr32(fp, ft);
+ gen_store_fpr32(fph, fd);
+ gen_store_fpr32h(fp, fd);
#endif
gen_set_label(l2);
- tcg_temp_free_i32(fp0);
- tcg_temp_free_i32(fph0);
- tcg_temp_free_i32(fp1);
- tcg_temp_free_i32(fph1);
+ tcg_temp_free_i32(fp);
+ tcg_temp_free_i32(fph);
}
opn = "alnv.ps";
break;
reply other threads:[~2009-04-08 21:48 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=E1Lrfd4-0002uc-In@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).