Skip to content
Prev Previous commit
[ppc64le] Incorporated code review comments
  • Loading branch information
alhad-deshpande committed Aug 17, 2022
commit 46c5a681058dd9b7fea0c9c919137a8b3533ccf7
8 changes: 4 additions & 4 deletions src/mono/mono/mini/mini-ppc.c
Original file line number Diff line number Diff line change
Expand Up @@ -5183,8 +5183,8 @@ mono_arch_emit_prolog (MonoCompile *cfg)
}
}
else if (ppc_is_imm32 (inst->inst_offset)) {
ppc_addis (code, ainfo->reg + cur_reg, inst->inst_basereg, ppc_ha(doffset));
ppc_stptr (code, ainfo->reg + cur_reg, doffset, inst->inst_basereg);
ppc_addis (code, ppc_r12, inst->inst_basereg, ppc_ha(doffset));
ppc_stptr (code, ainfo->reg + cur_reg, doffset, ppc_r12);
}
else {
g_assert_not_reached();
Expand All @@ -5198,8 +5198,8 @@ mono_arch_emit_prolog (MonoCompile *cfg)
inst->inst_basereg);
}
else if (ppc_is_imm32 (inst->inst_offset)) {
ppc_addis (code, ainfo->reg + cur_reg, inst->inst_basereg, ppc_ha(doffset));
ppc_stptr (code, ainfo->reg + cur_reg, doffset, inst->inst_basereg);
ppc_addis (code, ppc_r12, inst->inst_basereg, ppc_ha(doffset));
ppc_stptr (code, ainfo->reg + cur_reg, doffset, ppc_r12);
}
else {
g_assert_not_reached();
Expand Down