Unicorn CPU emulator framework (ARM, AArch64, M68K, Mips, Sparc, PowerPC, RiscV, S390x, TriCore, X86)
GNU General Public License v2.0
7.33k
stars
1.31k
forks
source link
Backport from qemu : fix do_nonatomic_op_* vs signed operations #1922
Closed
redoste closed 5 months ago
This fix makes non-atomic versions of min/max operations aware of sign extension.
The following piece of RISC-V assembly was producing bogus results:
The expected result in
a6
is-1
but without the fix the result is1