diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2024-03-25 11:04:06 -1000 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2024-05-15 10:03:44 +0200 |
commit | 25f97be7236cc96bccce35f27999b0289c2b221f (patch) | |
tree | e4cfb50540420b287233c283a1c18475489ceef4 /target/hppa | |
parent | fbe65c648d46efd5b77f30e9d60a14f09535ea1a (diff) | |
download | qemu-25f97be7236cc96bccce35f27999b0289c2b221f.zip qemu-25f97be7236cc96bccce35f27999b0289c2b221f.tar.gz qemu-25f97be7236cc96bccce35f27999b0289c2b221f.tar.bz2 |
target/hppa: Use TCG_COND_TST* in do_unit_zero_cond
Reviewed-by: Helge Deller <deller@gmx.de>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'target/hppa')
-rw-r--r-- | target/hppa/translate.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/target/hppa/translate.c b/target/hppa/translate.c index 62cc3c3..b19d7c6 100644 --- a/target/hppa/translate.c +++ b/target/hppa/translate.c @@ -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, |