mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
target/sparc: Use tcg_gen_addcio_tl for gen_op_addcc_int
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
68188214d5
commit
6ed4d97ff7
1 changed files with 1 additions and 2 deletions
|
@ -396,8 +396,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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue