target/arm: Fix typo in do_sat_addsub_64

Used the wrong temporary in the computation of subtractive overflow.

Backports commit 7a31e0c6c68baffab0867bdd92b8744568b1d3ba from qemu
This commit is contained in:
Lioncash 2018-08-16 07:05:59 -04:00
parent 46fd2c485a
commit eccda3afcc
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

@ -1725,7 +1725,7 @@ static void do_sat_addsub_64(DisasContext *s, TCGv_i64 reg, TCGv_i64 val, bool u
/* Detect signed overflow for subtraction. */
tcg_gen_xor_i64(tcg_ctx, t0, reg, val);
tcg_gen_sub_i64(tcg_ctx, t1, reg, val);
tcg_gen_xor_i64(tcg_ctx, reg, reg, t0);
tcg_gen_xor_i64(tcg_ctx, reg, reg, t1);
tcg_gen_and_i64(tcg_ctx, t0, t0, reg);
/* Bound the result. */