mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
target/openrisc: Use tcg_gen_addcio_* for ADDC
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>
This commit is contained in:
parent
fcfbd8f4a9
commit
02b9d791be
1 changed files with 1 additions and 2 deletions
|
@ -221,8 +221,7 @@ static void gen_addc(DisasContext *dc, TCGv dest, TCGv srca, TCGv srcb)
|
||||||
TCGv t0 = tcg_temp_new();
|
TCGv t0 = tcg_temp_new();
|
||||||
TCGv res = tcg_temp_new();
|
TCGv res = tcg_temp_new();
|
||||||
|
|
||||||
tcg_gen_add2_tl(res, cpu_sr_cy, srca, dc->zero, cpu_sr_cy, dc->zero);
|
tcg_gen_addcio_tl(res, cpu_sr_cy, srca, srcb, cpu_sr_cy);
|
||||||
tcg_gen_add2_tl(res, cpu_sr_cy, res, cpu_sr_cy, srcb, dc->zero);
|
|
||||||
tcg_gen_xor_tl(cpu_sr_ov, srca, srcb);
|
tcg_gen_xor_tl(cpu_sr_ov, srca, srcb);
|
||||||
tcg_gen_xor_tl(t0, res, srcb);
|
tcg_gen_xor_tl(t0, res, srcb);
|
||||||
tcg_gen_andc_tl(cpu_sr_ov, t0, cpu_sr_ov);
|
tcg_gen_andc_tl(cpu_sr_ov, t0, cpu_sr_ov);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue