mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-03-23 06:25:12 +00:00
target/arm: Fix sign-extension for SMLAL*
The 32-bit product should be sign-extended, not zero-extended. Fixes: ea96b37 Backports commit 1ab170865202aab8301131f31bffd87ea0f60d16 from qemu
This commit is contained in:
parent
0d0d054382
commit
fb1988190e
|
@ -8335,7 +8335,8 @@ static bool op_smlaxxx(DisasContext *s, arg_rrrr *a,
|
|||
case 2:
|
||||
tl = load_reg(s, a->ra);
|
||||
th = load_reg(s, a->rd);
|
||||
t1 = tcg_const_i32(tcg_ctx, 0);
|
||||
t1 = tcg_temp_new_i32(tcg_ctx);
|
||||
tcg_gen_sari_i32(tcg_ctx, t1, t0, 31);
|
||||
tcg_gen_add2_i32(tcg_ctx, tl, th, tl, th, t0, t1);
|
||||
tcg_temp_free_i32(tcg_ctx, t0);
|
||||
tcg_temp_free_i32(tcg_ctx, t1);
|
||||
|
|
Loading…
Reference in a new issue