Index: src/compiler/arm/code-generator-arm.cc |
diff --git a/src/compiler/arm/code-generator-arm.cc b/src/compiler/arm/code-generator-arm.cc |
index 89321949ebbc5e47194cd1f3d00f59a3b463813a..2022068fd94c4411def67ebfb3ea55a0d341af1b 100644 |
--- a/src/compiler/arm/code-generator-arm.cc |
+++ b/src/compiler/arm/code-generator-arm.cc |
@@ -1448,7 +1448,11 @@ void CodeGenerator::AssembleMove(InstructionOperand* source, |
destination->IsRegister() ? g.ToRegister(destination) : kScratchReg; |
switch (src.type()) { |
case Constant::kInt32: |
- __ mov(dst, Operand(src.ToInt32())); |
+ if (src.rmode() == RelocInfo::WASM_MEMORY_REFERENCE) { |
+ __ mov(dst, Operand(src.ToInt32(), src.rmode())); |
+ } else { |
+ __ mov(dst, Operand(src.ToInt32())); |
+ } |
break; |
case Constant::kInt64: |
UNREACHABLE(); |