target/tricore: Inline TARGET_LONG_BITS in decode_rr_logical_shift()
PATCH 1/1 target/tricore: Inline TARGET_LONG_BITS in decode_rr_logical_shift()
We only support 32-bit TriCore architecture.
--- target/tricore/translate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
target/tricore/translate.c +2 -2
@@ -5936,7 +5936,7 @@ static void decode_rr_logical_shift(DisasContext *ctx)break ;case OPC2_32_RR_CLO :tcg_gen_not_tl (cpu_gpr_d[r3], cpu_gpr_d[r1]); -tcg_gen_clzi_tl (cpu_gpr_d[r3], cpu_gpr_d[r3],TARGET_LONG_BITS ); +tcg_gen_clzi_tl (cpu_gpr_d[r3], cpu_gpr_d[r3],32 );break ;case OPC2_32_RR_CLO_H :gen_helper_clo_h (cpu_gpr_d[r3], cpu_gpr_d[r1]);
@@ -5948,7 +5948,7 @@ static void decode_rr_logical_shift(DisasContext *ctx)gen_helper_cls_h (cpu_gpr_d[r3], cpu_gpr_d[r1]);break ;case OPC2_32_RR_CLZ : -tcg_gen_clzi_tl (cpu_gpr_d[r3], cpu_gpr_d[r1],TARGET_LONG_BITS ); +tcg_gen_clzi_tl (cpu_gpr_d[r3], cpu_gpr_d[r1],32 );break ;case OPC2_32_RR_CLZ_H :gen_helper_clz_h (cpu_gpr_d[r3], cpu_gpr_d[r1]);
Signature · 1 line
2.47.1
Quoted 21 lines · Philippe Mathieu-Daudé
We only support 32-bit TriCore architecture.
Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- target/tricore/translate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)target/tricore/translate.c +1
-1@@ -5936,7 +5936,7 @@ static void decode_rr_logical_shift(DisasContext *ctx)break ;case OPC2_32_RR_CLO :tcg_gen_not_tl (cpu_gpr_d[r3], cpu_gpr_d[r1]); -tcg_gen_clzi_tl (cpu_gpr_d[r3], cpu_gpr_d[r3],TARGET_LONG_BITS ); +tcg_gen_clzi_tl (cpu_gpr_d[r3], cpu_gpr_d[r3],32 );break ;case OPC2_32_RR_CLO_H :gen_helper_clo_h (cpu_gpr_d[r3], cpu_gpr_d[r1]);
target/tricore/translate.c static void decode_rr_logical_shift(DisasContext *ctx) · line 5954
Quoted 8 lines
target/tricore/translate.c +1
-1@@ -5948,7 +5948,7 @@ static void decode_rr_logical_shift(DisasContext *ctx)gen_helper_cls_h (cpu_gpr_d[r3], cpu_gpr_d[r1]);break ;case OPC2_32_RR_CLZ : -tcg_gen_clzi_tl (cpu_gpr_d[r3], cpu_gpr_d[r1],TARGET_LONG_BITS ); +tcg_gen_clzi_tl (cpu_gpr_d[r3], cpu_gpr_d[r1],32 );break ;case OPC2_32_RR_CLZ_H :gen_helper_clz_h (cpu_gpr_d[r3], cpu_gpr_d[r1]);
Leave it alone unless you swap /_tl/_i32/ ?
r~
Quoted 26 lines · Richard Henderson
Quoted 25 lines · Philippe Mathieu-Daudé
We only support 32-bit TriCore architecture.
Signed-off-by Philippe Mathieu-Daudé <[email protected]>---
target/tricore/translate.c| 4 ++--1 file changed, 2 insertions(+), 2 deletions(-)target/tricore/translate.c +0
-0@@ -5936,7 +5936,7 @@ static void decode_rr_logical_shift(DisasContext *ctx) break;case
OPC2_32_RR_CLO:
tcg_gen_not_tl(cpu_gpr_d[r3], cpu_gpr_d[r1]);
-tcg_gen_clzi_tl(cpu_gpr_d[r3], cpu_gpr_d[r3], TARGET_LONG_BITS); +tcg_gen_clzi_tl(cpu_gpr_d[r3], cpu_gpr_d[r3], 32); break;
caseOPC2_32_RR_CLO_H:
gen_helper_clo_h(cpu_gpr_d[r3], cpu_gpr_d[r1]);target/tricore/translate.c +0
-0@@ -5948,7 +5948,7 @@ static void decode_rr_logical_shift(DisasContext *ctx) gen_helper_cls_h(cpu_gpr_d[r3], cpu_gpr_d[r1]); break;
Quoted 8 lines
Quoted 6 lines
case
OPC2_32_RR_CLZ:
-tcg_gen_clzi_tl(cpu_gpr_d[r3], cpu_gpr_d[r1], TARGET_LONG_BITS); +tcg_gen_clzi_tl(cpu_gpr_d[r3], cpu_gpr_d[r1], 32); break;
caseOPC2_32_RR_CLZ_H:
gen_helper_clz_h(cpu_gpr_d[r3], cpu_gpr_d[r1]);Leave it alone unless you swap /_tl/_i32/ ?
I was expecting something like that, fair enough :)
Quoted 6 lines · Philippe Mathieu-Daudé
We only support 32-bit TriCore architecture.
Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- target/tricore/translate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Cheers,
Bastian