mirror of https://github.com/proxmox/mirror_qemu
target/s390x: Use tcg_gen_abs_i64
Reviewed-by: David Hildenbrand <david@redhat.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>master
parent
fe21b785ff
commit
fa45f61114
|
@ -1407,13 +1407,7 @@ static DisasJumpType help_branch(DisasContext *s, DisasCompare *c,
|
||||||
|
|
||||||
static DisasJumpType op_abs(DisasContext *s, DisasOps *o)
|
static DisasJumpType op_abs(DisasContext *s, DisasOps *o)
|
||||||
{
|
{
|
||||||
TCGv_i64 z, n;
|
tcg_gen_abs_i64(o->out, o->in2);
|
||||||
z = tcg_const_i64(0);
|
|
||||||
n = tcg_temp_new_i64();
|
|
||||||
tcg_gen_neg_i64(n, o->in2);
|
|
||||||
tcg_gen_movcond_i64(TCG_COND_LT, o->out, o->in2, z, n, o->in2);
|
|
||||||
tcg_temp_free_i64(n);
|
|
||||||
tcg_temp_free_i64(z);
|
|
||||||
return DISAS_NEXT;
|
return DISAS_NEXT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue