]> git.proxmox.com Git - mirror_qemu.git/blobdiff - target/s390x/translate.c
target/s390x: Use tcg_gen_abs_i64
[mirror_qemu.git] / target / s390x / translate.c
index d4951836adb9292a6d68c1ff898ff4b19db773d8..e8e8a79b7d56b41b9fe1d33e1d9663405097bef6 100644 (file)
@@ -1407,13 +1407,7 @@ static DisasJumpType help_branch(DisasContext *s, DisasCompare *c,
 
 static DisasJumpType op_abs(DisasContext *s, DisasOps *o)
 {
-    TCGv_i64 z, n;
-    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);
+    tcg_gen_abs_i64(o->out, o->in2);
     return DISAS_NEXT;
 }