On 4/15/25 12:24, Richard Henderson wrote:
Signed-off-by: Richard Henderson <[email protected]>
---
  target/sparc/translate.c | 3 +--
  1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/target/sparc/translate.c b/target/sparc/translate.c
index bfe63649db..392b51196a 100644
--- a/target/sparc/translate.c
+++ b/target/sparc/translate.c
@@ -395,8 +395,7 @@ static void gen_op_addcc_int(TCGv dst, TCGv src1, TCGv 
src2, TCGv cin)
      TCGv z = tcg_constant_tl(0);
if (cin) {
-        tcg_gen_add2_tl(cpu_cc_N, cpu_cc_C, src1, z, cin, z);
-        tcg_gen_add2_tl(cpu_cc_N, cpu_cc_C, cpu_cc_N, cpu_cc_C, src2, z);
+        tcg_gen_addcio_tl(cpu_cc_N, cpu_cc_C, src1, src2, cin);
      } else {
          tcg_gen_add2_tl(cpu_cc_N, cpu_cc_C, src1, z, src2, z);
      }

Reviewed-by: Pierrick Bouvier <[email protected]>


Reply via email to