mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-03-29 09:26:56 +00:00
tcg/aarch64: Fix output of extract2 opcodes
This patch fixes two problems: (1) The inputs to the EXTR insn were reversed, (2) The input constraints use rZ, which means that we need to use the REG0 macro in order to supply XZR for a constant 0 input. Fixes: 464c2969d5d Backports commit 1789d4274b851fb8fdf4a947ce5474c63e813d0d from qemu
This commit is contained in:
parent
b2d75f4955
commit
d291a311ee
|
@ -2228,7 +2228,7 @@ static void tcg_out_op(TCGContext *s, TCGOpcode opc,
|
|||
|
||||
case INDEX_op_extract2_i64:
|
||||
case INDEX_op_extract2_i32:
|
||||
tcg_out_extr(s, ext, a0, a1, a2, args[3]);
|
||||
tcg_out_extr(s, ext, a0, REG0(2), REG0(1), args[3]);
|
||||
break;
|
||||
|
||||
case INDEX_op_add2_i32:
|
||||
|
|
Loading…
Reference in a new issue