[vm, compiler] Fix MemoryCopyInstr for RV32.
TEST=IRTest_MemoryCopy_0_0_8_8 Change-Id: I35ea73ec6424480f099800440cc08ffd12327bf5 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/294621 Reviewed-by: Daco Harkes <dacoharkes@google.com> Commit-Queue: Ryan Macnak <rmacnak@google.com>
This commit is contained in:
committed by
Commit Queue
parent
3e0d976d4b
commit
fde31b1c63
@@ -269,10 +269,10 @@ void MemoryCopyInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
|
||||
#if XLEN == 32
|
||||
__ lw(TMP, compiler::Address(src_reg, 0));
|
||||
__ lw(TMP2, compiler::Address(src_reg, 4));
|
||||
__ addi(src_reg, src_reg, 16);
|
||||
__ addi(src_reg, src_reg, 8);
|
||||
__ sw(TMP, compiler::Address(dest_reg, 0));
|
||||
__ sw(TMP2, compiler::Address(dest_reg, 4));
|
||||
__ addi(dest_reg, dest_reg, 16);
|
||||
__ addi(dest_reg, dest_reg, 8);
|
||||
#else
|
||||
__ ld(TMP, compiler::Address(src_reg));
|
||||
__ addi(src_reg, src_reg, 8);
|
||||
|
||||
Reference in New Issue
Block a user