target/sh4: Use tcg_gen_addcio_i32 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
206c23e472
commit
68188214d5
1 changed files with 2 additions and 8 deletions
|
|
@ -695,14 +695,8 @@ static void _decode_opc(DisasContext * ctx)
|
|||
tcg_gen_add_i32(REG(B11_8), REG(B11_8), REG(B7_4));
|
||||
return;
|
||||
case 0x300e: /* addc Rm,Rn */
|
||||
{
|
||||
TCGv t0, t1;
|
||||
t0 = tcg_constant_tl(0);
|
||||
t1 = tcg_temp_new();
|
||||
tcg_gen_add2_i32(t1, cpu_sr_t, cpu_sr_t, t0, REG(B7_4), t0);
|
||||
tcg_gen_add2_i32(REG(B11_8), cpu_sr_t,
|
||||
REG(B11_8), t0, t1, cpu_sr_t);
|
||||
}
|
||||
tcg_gen_addcio_i32(REG(B11_8), cpu_sr_t,
|
||||
REG(B11_8), REG(B7_4), cpu_sr_t);
|
||||
return;
|
||||
case 0x300f: /* addv Rm,Rn */
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue