[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL v2 42/91] target/hppa: Avoid tcg_const_i64 in trans_fid_f
From: |
Richard Henderson |
Subject: |
[PULL v2 42/91] target/hppa: Avoid tcg_const_i64 in trans_fid_f |
Date: |
Thu, 9 Mar 2023 12:05:01 -0800 |
Use a C test instead of a pre-processor test for the id.
Use tcg_constant_i64 instead of tcg_const_i64.
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
target/hppa/translate.c | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
diff --git a/target/hppa/translate.c b/target/hppa/translate.c
index cb4fd1fd62..3ea50d0cec 100644
--- a/target/hppa/translate.c
+++ b/target/hppa/translate.c
@@ -3547,12 +3547,16 @@ static void gen_fcpy_f(TCGv_i32 dst, TCGv_env unused,
TCGv_i32 src)
static bool trans_fid_f(DisasContext *ctx, arg_fid_f *a)
{
+ uint64_t ret;
+
+ if (TARGET_REGISTER_BITS == 64) {
+ ret = 0x13080000000000ULL; /* PA8700 (PCX-W2) */
+ } else {
+ ret = 0x0f080000000000ULL; /* PA7300LC (PCX-L2) */
+ }
+
nullify_over(ctx);
-#if TARGET_REGISTER_BITS == 64
- save_frd(0, tcg_const_i64(0x13080000000000ULL)); /* PA8700 (PCX-W2) */
-#else
- save_frd(0, tcg_const_i64(0x0f080000000000ULL)); /* PA7300LC (PCX-L2) */
-#endif
+ save_frd(0, tcg_constant_i64(ret));
return nullify_end(ctx);
}
--
2.34.1
- [PULL v2 32/91] target/rx: Remove `NB_MMU_MODES` define, (continued)
- [PULL v2 32/91] target/rx: Remove `NB_MMU_MODES` define, Richard Henderson, 2023/03/09
- [PULL v2 33/91] target/s390x: Remove `NB_MMU_MODES` define, Richard Henderson, 2023/03/09
- [PULL v2 34/91] target/sh4: Remove `NB_MMU_MODES` define, Richard Henderson, 2023/03/09
- [PULL v2 36/91] target/tricore: Remove `NB_MMU_MODES` define, Richard Henderson, 2023/03/09
- [PULL v2 37/91] target/xtensa: Remove `NB_MMU_MODES` define, Richard Henderson, 2023/03/09
- [PULL v2 35/91] target/sparc: Remove `NB_MMU_MODES` define, Richard Henderson, 2023/03/09
- [PULL v2 38/91] include/exec: Remove guards around `NB_MMU_MODES`, Richard Henderson, 2023/03/09
- [PULL v2 39/91] target/avr: Avoid use of tcg_const_i32 in SBIC, SBIS, Richard Henderson, 2023/03/09
- [PULL v2 40/91] target/avr: Avoid use of tcg_const_i32 throughout, Richard Henderson, 2023/03/09
- [PULL v2 41/91] target/cris: Avoid use of tcg_const_i32 throughout, Richard Henderson, 2023/03/09
- [PULL v2 42/91] target/hppa: Avoid tcg_const_i64 in trans_fid_f,
Richard Henderson <=
- [PULL v2 43/91] target/hppa: Avoid use of tcg_const_i32 throughout, Richard Henderson, 2023/03/09
- [PULL v2 45/91] target/m68k: Avoid tcg_const_i32 when modified, Richard Henderson, 2023/03/09
- [PULL v2 46/91] target/m68k: Avoid tcg_const_i32 in bfop_reg, Richard Henderson, 2023/03/09
- [PULL v2 44/91] target/i386: Avoid use of tcg_const_* throughout, Richard Henderson, 2023/03/09
- [PULL v2 48/91] target/mips: Split out gen_lxl, Richard Henderson, 2023/03/09
- [PULL v2 47/91] target/m68k: Avoid tcg_const_* throughout, Richard Henderson, 2023/03/09
- [PULL v2 49/91] target/mips: Split out gen_lxr, Richard Henderson, 2023/03/09
- [PULL v2 52/91] target/ppc: Split out gen_vx_vmul10, Richard Henderson, 2023/03/09
- [PULL v2 50/91] target/mips: Avoid tcg_const_tl in gen_r6_ld, Richard Henderson, 2023/03/09
- [PULL v2 54/91] target/rx: Use tcg_gen_abs_i32, Richard Henderson, 2023/03/09