Commit c2eb89af authored by Kai Backman's avatar Kai Backman

change stack splitting comparisons from signed to unsigned (oversight)

R=rsc
APPROVED=rsc
DELTA=9  (0 added, 0 deleted, 9 changed)
OCL=35911
CL=35952
parent fbba532f
......@@ -358,9 +358,9 @@ noops(void)
// split stack check for small functions
// MOVW g_stackguard(g), R1
// CMP R1, $-autosize(SP)
// MOVW.LT $args, R2
// MOVW.W.LT R14, R3
// BL.LT runtime·morestackx(SB) // modifies LR
// MOVW.LO $args, R2
// MOVW.W.LO R14, R3
// BL.LO runtime·morestackx(SB) // modifies LR
// MOVW.W R14,$-autosize(SP)
// TODO(kaib): add more trampolines
......@@ -383,28 +383,28 @@ noops(void)
p->from.offset = -autosize;
p->reg = REGSP;
// MOVW.LT $args, R2
// MOVW.LO $args, R2
p = appendp(p);
p->as = AMOVW;
p->scond = C_SCOND_LT;
p->scond = C_SCOND_LO;
p->from.type = D_CONST;
p->from.offset = curtext->to.offset2 & ~7;
p->to.type = D_REG;
p->to.reg = 2;
// MOVW.W.LT R14, R3
// MOVW.W.LO R14, R3
p = appendp(p);
p->as = AMOVW;
p->scond = C_SCOND_LT;
p->scond = C_SCOND_LO;
p->from.type = D_REG;
p->from.reg = REGLINK;
p->to.type = D_REG;
p->to.reg = 3;
// BL.LT runtime·morestackx(SB) // modifies LR
// BL.LO runtime·morestackx(SB) // modifies LR
p = appendp(p);
p->as = ABL;
p->scond = C_SCOND_LT;
p->scond = C_SCOND_LO;
p->to.type = D_BRANCH;
p->to.sym = symmorestack;
p->cond = pmorestack;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment