8c, 6c: fix mulgen botch error for handling multiplication by zero constant
This commit is contained in:
parent
294e940f57
commit
393dfd1ced
2 changed files with 10 additions and 0 deletions
|
@ -312,6 +312,11 @@ mulgen1(ulong v, Node *n)
|
|||
Mparam *p;
|
||||
Node nod, nods;
|
||||
|
||||
if(v == 0){
|
||||
zeroregm(n);
|
||||
return 1;
|
||||
}
|
||||
|
||||
for(i = 0; i < nelem(multab); i++) {
|
||||
p = &multab[i];
|
||||
if(p->value == v)
|
||||
|
|
|
@ -312,6 +312,11 @@ mulgen1(ulong v, Node *n)
|
|||
Mparam *p;
|
||||
Node nod, nods;
|
||||
|
||||
if(v == 0){
|
||||
zeroregm(n);
|
||||
return 1;
|
||||
}
|
||||
|
||||
for(i = 0; i < nelem(multab); i++) {
|
||||
p = &multab[i];
|
||||
if(p->value == v)
|
||||
|
|
Loading…
Reference in a new issue