Patchwork [18/21] target-sparc: Tidy fpack32.

login
register
mail settings
Submitter Richard Henderson
Date Oct. 18, 2011, 6:50 p.m.
Message ID <1318963843-25100-19-git-send-email-rth@twiddle.net>
Download mbox | patch
Permalink /patch/120493/
State New
Headers show

Comments

Richard Henderson - Oct. 18, 2011, 6:50 p.m.
Use the new gen_gsr_fop_DDD helper.

Signed-off-by: Richard Henderson <rth@twiddle.net>
---
 target-sparc/translate.c |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)

Patch

diff --git a/target-sparc/translate.c b/target-sparc/translate.c
index 66107ee..267ac71 100644
--- a/target-sparc/translate.c
+++ b/target-sparc/translate.c
@@ -4290,12 +4290,7 @@  static void disas_sparc_insn(DisasContext * dc, unsigned int insn)
                     break;
                 case 0x03a: /* VIS I fpack32 */
                     CHECK_FPU_FEATURE(dc, VIS1);
-                    cpu_src1_64 = gen_load_fpr_D(dc, rs1);
-                    cpu_src2_64 = gen_load_fpr_D(dc, rs2);
-                    cpu_dst_64 = gen_dest_fpr_D();
-                    gen_helper_fpack32(cpu_dst_64, cpu_gsr,
-                                       cpu_src1_64, cpu_src2_64);
-                    gen_store_fpr_D(dc, rd, cpu_dst_64);
+                    gen_gsr_fop_DDD(dc, rd, rs1, rs2, gen_helper_fpack32);
                     break;
                 case 0x03b: /* VIS I fpack16 */
                     CHECK_FPU_FEATURE(dc, VIS1);