qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Richard Henderson <richard.henderson@linaro.org>
To: qemu-devel@nongnu.org
Cc: mark.cave-ayland@ilande.co.uk
Subject: [PATCH 03/22] target/sparc: Remove gen_dest_fpr_F
Date: Fri,  3 Nov 2023 10:38:22 -0700	[thread overview]
Message-ID: <20231103173841.33651-4-richard.henderson@linaro.org> (raw)
In-Reply-To: <20231103173841.33651-1-richard.henderson@linaro.org>

Replace with tcg_temp_new_i32.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
 target/sparc/translate.c | 17 ++++++-----------
 1 file changed, 6 insertions(+), 11 deletions(-)

diff --git a/target/sparc/translate.c b/target/sparc/translate.c
index 713ac5bbae..cdc85be807 100644
--- a/target/sparc/translate.c
+++ b/target/sparc/translate.c
@@ -246,11 +246,6 @@ static void gen_store_fpr_F(DisasContext *dc, unsigned int dst, TCGv_i32 v)
     gen_update_fprs_dirty(dc, dst);
 }
 
-static TCGv_i32 gen_dest_fpr_F(DisasContext *dc)
-{
-    return tcg_temp_new_i32();
-}
-
 static TCGv_i64 gen_load_fpr_D(DisasContext *dc, unsigned int src)
 {
     src = DFPREG(src);
@@ -1873,7 +1868,7 @@ static void gen_ldf_asi(DisasContext *dc, DisasASI *da, MemOp orig_size,
         memop |= MO_ALIGN_4;
         switch (size) {
         case MO_32:
-            d32 = gen_dest_fpr_F(dc);
+            d32 = tcg_temp_new_i32();
             tcg_gen_qemu_ld_i32(d32, addr, da->mem_idx, memop);
             gen_store_fpr_F(dc, rd, d32);
             break;
@@ -1938,7 +1933,7 @@ static void gen_ldf_asi(DisasContext *dc, DisasASI *da, MemOp orig_size,
             case MO_32:
                 d64 = tcg_temp_new_i64();
                 gen_helper_ld_asi(d64, tcg_env, addr, r_asi, r_mop);
-                d32 = gen_dest_fpr_F(dc);
+                d32 = tcg_temp_new_i32();
                 tcg_gen_extrl_i64_i32(d32, d64);
                 gen_store_fpr_F(dc, rd, d32);
                 break;
@@ -2228,7 +2223,7 @@ static void gen_fmovs(DisasContext *dc, DisasCompare *cmp, int rd, int rs)
 
     s1 = gen_load_fpr_F(dc, rs);
     s2 = gen_load_fpr_F(dc, rd);
-    dst = gen_dest_fpr_F(dc);
+    dst = tcg_temp_new_i32();
     zero = tcg_constant_i32(0);
 
     tcg_gen_movcond_i32(TCG_COND_NE, dst, c32, zero, s1, s2);
@@ -4497,7 +4492,7 @@ static bool do_fd(DisasContext *dc, arg_r_r *a,
         return true;
     }
 
-    dst = gen_dest_fpr_F(dc);
+    dst = tcg_temp_new_i32();
     src = gen_load_fpr_D(dc, a->rs);
     func(dst, src);
     gen_store_fpr_F(dc, a->rd, dst);
@@ -4539,7 +4534,7 @@ static bool do_env_fd(DisasContext *dc, arg_r_r *a,
     }
 
     gen_op_clear_ieee_excp_and_FTT();
-    dst = gen_dest_fpr_F(dc);
+    dst = tcg_temp_new_i32();
     src = gen_load_fpr_D(dc, a->rs);
     func(dst, tcg_env, src);
     gen_helper_check_ieee_exceptions(cpu_fsr, tcg_env);
@@ -4697,7 +4692,7 @@ static bool do_env_fq(DisasContext *dc, arg_r_r *a,
 
     gen_op_clear_ieee_excp_and_FTT();
     gen_op_load_fpr_QT1(QFPREG(a->rs));
-    dst = gen_dest_fpr_F(dc);
+    dst = tcg_temp_new_i32();
     func(dst, tcg_env);
     gen_helper_check_ieee_exceptions(cpu_fsr, tcg_env);
     gen_store_fpr_F(dc, a->rd, dst);
-- 
2.34.1



  parent reply	other threads:[~2023-11-03 17:42 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-03 17:38 [PATCH 00/22] target/sparc: floating-point cleanup Richard Henderson
2023-11-03 17:38 ` [PATCH 01/22] target/sparc: Use tcg_gen_qemu_{ld, st}_i128 for ASI_M_BCOPY Richard Henderson
2023-11-03 17:38 ` [PATCH 02/22] target/sparc: Use tcg_gen_qemu_{ld, st}_i128 for ASI_M_BFILL Richard Henderson
2023-11-03 17:38 ` Richard Henderson [this message]
2024-01-30  7:54   ` [PATCH 03/22] target/sparc: Remove gen_dest_fpr_F Philippe Mathieu-Daudé
2023-11-03 17:38 ` [PATCH 04/22] target/sparc: Introduce gen_{load,store}_fpr_Q Richard Henderson
2024-01-30  7:56   ` Philippe Mathieu-Daudé
2023-11-03 17:38 ` [PATCH 05/22] target/sparc: Inline FNEG, FABS Richard Henderson
2024-01-30  8:04   ` Philippe Mathieu-Daudé
2024-01-30  8:40   ` Philippe Mathieu-Daudé
2024-02-02  4:32     ` Richard Henderson
2023-11-03 17:38 ` [PATCH 06/22] target/sparc: Use i128 for FSQRTq Richard Henderson
2023-11-03 17:38 ` [PATCH 07/22] target/sparc: Use i128 for FADDq, FSUBq, FMULq, FDIVq Richard Henderson
2023-11-03 17:38 ` [PATCH 08/22] target/sparc: Use i128 for FqTOs, FqTOi Richard Henderson
2023-11-03 17:38 ` [PATCH 09/22] target/sparc: Use i128 for FqTOd, FqTOx Richard Henderson
2023-11-03 17:38 ` [PATCH 10/22] target/sparc: Use i128 for FCMPq, FCMPEq Richard Henderson
2023-11-03 17:38 ` [PATCH 11/22] target/sparc: Use i128 for FsTOq, FiTOq Richard Henderson
2023-11-03 17:38 ` [PATCH 12/22] target/sparc: Use i128 for FdTOq, FxTOq Richard Henderson
2023-11-03 17:38 ` [PATCH 13/22] target/sparc: Use i128 for Fdmulq Richard Henderson
2023-11-03 17:38 ` [PATCH 14/22] target/sparc: Remove qt0, qt1 temporaries Richard Henderson
2023-11-03 17:38 ` [PATCH 15/22] target/sparc: Introduce cpu_get_fsr, cpu_put_fsr Richard Henderson
2024-01-30  8:10   ` Philippe Mathieu-Daudé
2023-11-03 17:38 ` [PATCH 16/22] target/split: Split ver from env->fsr Richard Henderson
2024-01-30  8:11   ` Philippe Mathieu-Daudé
2024-01-30 12:56     ` BALATON Zoltan
2023-11-03 17:38 ` [PATCH 17/22] target/sparc: Clear cexc and ftt in do_check_ieee_exceptions Richard Henderson
2023-11-03 17:38 ` [PATCH 18/22] target/sparc: Merge check_ieee_exceptions with FPop helpers Richard Henderson
2023-11-03 17:38 ` [PATCH 19/22] target/sparc: Split cexc and ftt from env->fsr Richard Henderson
2023-11-03 17:38 ` [PATCH 20/22] target/sparc: Remove cpu_fsr Richard Henderson
2023-11-03 17:38 ` [PATCH 21/22] target/sparc: Split fcc out of env->fsr Richard Henderson
2023-11-03 17:38 ` [PATCH 22/22] target/sparc: Remove FSR_FTT_NMASK, FSR_FTT_CEXC_NMASK Richard Henderson
2024-01-28  6:49 ` [PATCH 00/22] target/sparc: floating-point cleanup Richard Henderson
2024-01-29 21:50   ` Mark Cave-Ayland
2024-01-31 21:49   ` Mark Cave-Ayland
2024-02-02  5:36     ` Richard Henderson

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=20231103173841.33651-4-richard.henderson@linaro.org \
    --to=richard.henderson@linaro.org \
    --cc=mark.cave-ayland@ilande.co.uk \
    --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).