qemu/target/hppa/translate.c
/* Compute signed overflow for subtraction.  */
Compute signed overflow for subtraction.
Compute signed overflow for subtraction .
static TCGv_reg do_sub_sv(DisasContext *ctx, TCGv_reg res,
                          TCGv_reg in1, TCGv_reg in2)
{
    TCGv_reg sv = get_temp(ctx);
    TCGv_reg tmp = tcg_temp_new();
    tcg_gen_xor_reg(sv, res, in1);
    tcg_gen_xor_reg(tmp, in1, in2);
    tcg_gen_and_reg(sv, sv, tmp);
    tcg_temp_free(tmp);
    return sv;
}
static TCGv_reg do_sub_sv ( DisasContext * ctx , TCGv_reg res , TCGv_reg in1 , TCGv_reg in2 ) { TCGv_reg sv = get_temp ( ctx ) ; TCGv_reg tmp = tcg_temp_new ( ) ; tcg_gen_xor_reg ( sv , res , in1 ) ; tcg_gen_xor_reg ( tmp , in1 , in2 ) ; tcg_gen_and_reg ( sv , sv , tmp ) ; tcg_temp_free ( tmp ) ; return sv ; }
Compute signed overflow for subtraction.
Compute signed overflow for subtraction .