Commit b28d84f6 authored by Russ Cox's avatar Russ Cox

8l: add AIMULW

R=ken
OCL=29972
CL=29972
parent bd61c4e5
...@@ -823,6 +823,7 @@ uchar ymovtab[] = ...@@ -823,6 +823,7 @@ uchar ymovtab[] =
ASHRL, Ycol, Yml, 6, 0xac,0xad,0,0, ASHRL, Ycol, Yml, 6, 0xac,0xad,0,0,
/* extra imul */ /* extra imul */
AIMULW, Yml, Yrl, 7, Pq,0xaf,0,0,
AIMULL, Yml, Yrl, 7, Pm,0xaf,0,0, AIMULL, Yml, Yrl, 7, Pm,0xaf,0,0,
0 0
}; };
...@@ -1281,7 +1282,11 @@ mfound: ...@@ -1281,7 +1282,11 @@ mfound:
break; break;
case 7: /* imul rm,r */ case 7: /* imul rm,r */
*andptr++ = t[4]; if(t[4] == Pq) {
*andptr++ = Pe;
*andptr++ = Pm;
} else
*andptr++ = t[4];
*andptr++ = t[5]; *andptr++ = t[5];
asmand(&p->from, reg[p->to.type]); asmand(&p->from, reg[p->to.type]);
break; break;
......
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