Commit 902a4d5f authored by Ken Thompson's avatar Ken Thompson

6c bug with large constants

R=r
OCL=19056
CL=19056
parent 6ee7fe58
......@@ -642,6 +642,17 @@ gmove(Node *f, Node *t)
/*
* load
*/
if(ft == TVLONG || ft == TUVLONG)
if(f->op == OCONST)
if(f->vconst > 0x7fffffffLL || f->vconst < -0x7fffffffLL)
if(t->op != OREGISTER) {
regalloc(&nod, f, Z);
gmove(f, &nod);
gmove(&nod, t);
regfree(&nod);
return;
}
if(f->op == ONAME || f->op == OINDREG ||
f->op == OIND || f->op == OINDEX)
switch(ft) {
......
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