]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
target/hppa: Use TCG_COND_TST* in do_unit_zero_cond
authorRichard Henderson <richard.henderson@linaro.org>
Mon, 25 Mar 2024 21:04:06 +0000 (11:04 -1000)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 15 May 2024 08:03:44 +0000 (10:03 +0200)
Reviewed-by: Helge Deller <deller@gmx.de>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
target/hppa/translate.c

index 62cc3c3117e53274e98a8af5dfdf97ad44183387..b19d7c64fe0bd78bd6a2cff7194dd9b1a665f599 100644 (file)
@@ -1006,9 +1006,8 @@ static DisasCond do_unit_zero_cond(unsigned cf, bool d, TCGv_i64 res)
     tmp = tcg_temp_new_i64();
     tcg_gen_subi_i64(tmp, res, ones);
     tcg_gen_andc_i64(tmp, tmp, res);
-    tcg_gen_andi_i64(tmp, tmp, sgns);
 
-    return cond_make_ti(cf & 1 ? TCG_COND_EQ : TCG_COND_NE, tmp, 0);
+    return cond_make_ti(cf & 1 ? TCG_COND_TSTEQ : TCG_COND_TSTNE, tmp, sgns);
 }
 
 static TCGv_i64 get_carry(DisasContext *ctx, bool d,