diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2025-01-18 01:59:12 -0800 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2025-04-28 13:40:17 -0700 |
commit | 206c23e4720cd2b7668197887d1694bd346e979e (patch) | |
tree | f0321968eb99349fd4eb6d46d59e50069f0c61c5 | |
parent | 3a6ec7d71a4e268a6be319cf2efa780091d42d30 (diff) | |
download | qemu-206c23e4720cd2b7668197887d1694bd346e979e.zip qemu-206c23e4720cd2b7668197887d1694bd346e979e.tar.gz qemu-206c23e4720cd2b7668197887d1694bd346e979e.tar.bz2 |
target/s390x: Use tcg_gen_addcio_i64 for op_addc64
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
-rw-r--r-- | target/s390x/tcg/translate.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/target/s390x/tcg/translate.c b/target/s390x/tcg/translate.c index 00073c5..a714f9c 100644 --- a/target/s390x/tcg/translate.c +++ b/target/s390x/tcg/translate.c @@ -1250,11 +1250,7 @@ static DisasJumpType op_addc32(DisasContext *s, DisasOps *o) static DisasJumpType op_addc64(DisasContext *s, DisasOps *o) { compute_carry(s); - - TCGv_i64 zero = tcg_constant_i64(0); - tcg_gen_add2_i64(o->out, cc_src, o->in1, zero, cc_src, zero); - tcg_gen_add2_i64(o->out, cc_src, o->out, cc_src, o->in2, zero); - + tcg_gen_addcio_i64(o->out, cc_src, o->in1, o->in2, cc_src); return DISAS_NEXT; } |