Skip to content

Commit 0dfed06

Browse files
committed
Fixed format
1 parent 1a2059f commit 0dfed06

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/hotspot/cpu/riscv/riscv.ad

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1365,10 +1365,10 @@ void MachPrologNode::format(PhaseRegAlloc *ra_, outputStream *st) const {
13651365
st->print("# stack bang size=%d\n\t", framesize);
13661366
}
13671367

1368-
st->print("sd fp, [sp, #%d]\n\t", - 2 * wordSize);
1369-
st->print("sd ra, [sp, #%d]\n\t", - wordSize);
1370-
if (PreserveFramePointer) { st->print("sub fp, sp, #%d\n\t", 2 * wordSize); }
13711368
st->print("sub sp, sp, #%d\n\t", framesize);
1369+
st->print("sd fp, [sp, #%d]\n\t", framesize - 2 * wordSize);
1370+
st->print("sd ra, [sp, #%d]\n\t", framesize - wordSize);
1371+
if (PreserveFramePointer) { st->print("add fp, sp, #%d\n\t", framesize); }
13721372

13731373
if (VerifyStackAtCalls) {
13741374
st->print("mv t2, %ld\n\t", MAJIK_DWORD);

0 commit comments

Comments
 (0)