From 16c06398cf49d22628dfc6c10037f4c054af973a Mon Sep 17 00:00:00 2001 From: William Chen Date: Tue, 12 Jul 2022 10:29:00 -0700 Subject: [PATCH] check for load/store pair when splitting offset --- src/mapleall/maple_be/src/cg/aarch64/aarch64_offset_adjust.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mapleall/maple_be/src/cg/aarch64/aarch64_offset_adjust.cpp b/src/mapleall/maple_be/src/cg/aarch64/aarch64_offset_adjust.cpp index 7d5ff5812a..efad171631 100644 --- a/src/mapleall/maple_be/src/cg/aarch64/aarch64_offset_adjust.cpp +++ b/src/mapleall/maple_be/src/cg/aarch64/aarch64_offset_adjust.cpp @@ -72,7 +72,7 @@ void AArch64FPLROffsetAdjustment::AdjustmentOffsetForOpnd(Insn &insn, AArch64CGF bool condition = aarchCGFunc.IsOperandImmValid(insn.GetMachineOpcode(), &memOpnd, i); if (!condition) { MemOperand &newMemOpnd = aarchCGFunc.SplitOffsetWithAddInstruction( - memOpnd, memOpnd.GetSize(), static_cast(R16), false, &insn); + memOpnd, memOpnd.GetSize(), static_cast(R16), false, &insn, insn.IsLoadStorePair()); insn.SetOperand(i, newMemOpnd); } } -- Gitee