7c: fix registerization of vlong constants
This commit is contained in:
parent
b29d5ac7b1
commit
14c7edf96e
3 changed files with 4 additions and 4 deletions
|
@ -264,7 +264,7 @@ int samaddr(Node*, Node*);
|
|||
void gbranch(int);
|
||||
void patch(Prog*, long);
|
||||
int sconst(Node*);
|
||||
int sval(long);
|
||||
int sval(vlong);
|
||||
void gpseudo(int, Sym*, Node*);
|
||||
int usableoffset(Node*, vlong, Node*);
|
||||
|
||||
|
|
|
@ -551,7 +551,7 @@ mkvar(Adr *a, int docon)
|
|||
{
|
||||
Var *v;
|
||||
int i, t, n, et, z;
|
||||
long o;
|
||||
vlong o;
|
||||
Bits bit;
|
||||
Sym *s;
|
||||
|
||||
|
@ -566,7 +566,7 @@ mkvar(Adr *a, int docon)
|
|||
if(s == S) {
|
||||
if(t != D_CONST || !docon || a->reg != NREG)
|
||||
goto none;
|
||||
et = TLONG;
|
||||
// et = TLONG;
|
||||
}
|
||||
if(t == D_CONST) {
|
||||
if(s == S && sval(o))
|
||||
|
|
|
@ -1315,7 +1315,7 @@ isaddcon(vlong v)
|
|||
}
|
||||
|
||||
int
|
||||
sval(long v)
|
||||
sval(vlong v)
|
||||
{
|
||||
return isaddcon(v) || isaddcon(-v);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue