{
Plist *pl;
Prog *p1, *p2;
- Node sp, di, cx, con;
+ Node sp, di, cx, con, ax;
if((uint32)plast->firstpc->to.offset <= 0)
return;
gins(ACLD, N, N);
gins(AMOVQ, &sp, &di);
gins(AMOVQ, &con, &cx);
+ nodconst(&con, types[TUINT64], 0);
+ nodreg(&ax, types[TUINT64], D_AX);
+ gins(AMOVQ, &con, &ax);
gins(AREP, N, N);
gins(ASTOSQ, N, N);
{
Plist *pl;
Prog *p1, *p2;
- Node sp, di, cx, con;
+ Node sp, di, cx, con, ax;
if(plast->firstpc->to.offset <= 0)
return;
gins(ACLD, N, N);
gins(AMOVL, &sp, &di);
gins(AMOVL, &con, &cx);
+ nodconst(&con, types[TUINT32], 0);
+ nodreg(&ax, types[TUINT32], D_AX);
+ gins(AMOVL, &con, &ax);
gins(AREP, N, N);
gins(ASTOSL, N, N);