mirror of
https://github.com/fluencelabs/wasmer
synced 2025-03-30 22:41:03 +00:00
Add comment to explain the change to I64ExtendI32U.
This commit is contained in:
parent
51e085a7ba
commit
6790702901
@ -4052,6 +4052,9 @@ impl FunctionCodeGenerator<CodegenError> for X64FunctionCode {
|
|||||||
loc,
|
loc,
|
||||||
ret,
|
ret,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// A 32-bit memory write does not automatically clear the upper 32 bits of a 64-bit word.
|
||||||
|
// So, we need to explicitly write zero to the upper half here.
|
||||||
if let Location::Memory(base, off) = ret {
|
if let Location::Memory(base, off) = ret {
|
||||||
Self::emit_relaxed_binop(
|
Self::emit_relaxed_binop(
|
||||||
a,
|
a,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user