Fixes a bug in 32bit signed multiply on x86_64 jit

We were storing the zexted result instead of the sexted result
This commit is contained in:
Ryan Houdek committed 2020-09-29 12:33:33 -07:00
1 parent 5c518dd96e
commit 05d43945a6
1 file changed
+1 -2
+1 -2
View File
@@ -1652,8 +1652,7 @@ void *JITCore::CompileCode([[maybe_unused]] FEXCore::IR::IRListView<true> const
case 4:
movsxd(rax, GetSrc<RA_32>(Op->Header.Args[0].ID()));
imul(GetSrc<RA_32>(Op->Header.Args[1].ID()));
movsxd(rax, edx);
mov(GetDst<RA_64>(Node), rdx);
movsxd(GetDst<RA_64>(Node).cvt64(), edx);
break;
case 8:
mov(rax, GetSrc<RA_64>(Op->Header.Args[0].ID()));