[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 2/9] target/cris: Use tcg_gen_extract_tl
|
From: |
Philippe Mathieu-Daudé |
|
Subject: |
[PATCH v2 2/9] target/cris: Use tcg_gen_extract_tl |
|
Date: |
Tue, 24 Oct 2023 18:58:55 +0200 |
Inspired-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Edgar E. Iglesias <edgar@zeroasic.com>
---
target/cris/translate.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/target/cris/translate.c b/target/cris/translate.c
index b3974ba0bb..65b07e1d80 100644
--- a/target/cris/translate.c
+++ b/target/cris/translate.c
@@ -871,8 +871,7 @@ static void gen_tst_cc (DisasContext *dc, TCGv cc, int cond)
bits = 15;
}
- tcg_gen_shri_tl(cc, cc_result, bits);
- tcg_gen_andi_tl(cc, cc, 1);
+ tcg_gen_extract_tl(cc, cc_result, bits, 1);
} else {
cris_evaluate_flags(dc);
tcg_gen_andi_tl(cc, cpu_PR[PR_CCS],
--
2.41.0
- [PATCH v2 0/9] tcg: Use tcg_gen_[s]extract_{i32,i64,tl}, Philippe Mathieu-Daudé, 2023/10/24
- [PATCH v2 1/9] target/avr: Use tcg_gen_extract_tl, Philippe Mathieu-Daudé, 2023/10/24
- [PATCH v2 2/9] target/cris: Use tcg_gen_extract_tl,
Philippe Mathieu-Daudé <=
- [PATCH v2 3/9] target/i386: Use tcg_gen_extract_tl, Philippe Mathieu-Daudé, 2023/10/24
- [PATCH v2 4/9] target/mips: Use tcg_gen_extract_i32, Philippe Mathieu-Daudé, 2023/10/24
- [PATCH v2 5/9] target/ppc: Use tcg_gen_extract_i32, Philippe Mathieu-Daudé, 2023/10/24
- [PATCH v2 6/9] target/sparc: Use tcg_gen_extract_tl, Philippe Mathieu-Daudé, 2023/10/24
- [PATCH v2 7/9] target/xtensa: Use tcg_gen_extract_i32, Philippe Mathieu-Daudé, 2023/10/24
- [PATCH v2 8/9] target/mips: Use tcg_gen_ext16s_tl, Philippe Mathieu-Daudé, 2023/10/24
- [PATCH v2 9/9] target/mips: Use tcg_gen_ext*u_tl, Philippe Mathieu-Daudé, 2023/10/24