1
0
mirror of https://github.com/fluencelabs/wasmer synced 2025-03-31 15:01:03 +00:00

Fix movsx(S32, S64).

This commit is contained in:
losfair 2019-11-18 01:08:39 +08:00
parent 08beb99baa
commit cbaa94a7fa

@ -1384,7 +1384,7 @@ impl Emitter for Assembler {
} else { } else {
dynasm!(self ; b >after ; disp: ; .dword -disp ; after: ; ldr w_tmp3, <disp ; sub x_tmp3, X(map_gpr(base).x()), x_tmp3); dynasm!(self ; b >after ; disp: ; .dword -disp ; after: ; ldr w_tmp3, <disp ; sub x_tmp3, X(map_gpr(base).x()), x_tmp3);
} }
dynasm!(self ; ldrh W(map_gpr(dst).x()), [x_tmp3]; sxtw X(map_gpr(dst).x()), W(map_gpr(dst).x())); dynasm!(self ; ldr W(map_gpr(dst).x()), [x_tmp3]; sxtw X(map_gpr(dst).x()), W(map_gpr(dst).x()));
} }
_ => unreachable!(), _ => unreachable!(),
} }