made small improvement to fix 24884 (#17101)

This commit is contained in:
Walter Bright 2024-12-02 00:23:34 -08:00 committed by GitHub
parent 82a5d2a7c4
commit d8c0e79bfb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 12 additions and 0 deletions

View file

@ -412,4 +412,15 @@ assert(op != BADINS);
// if (cs.Irm == 0x3D) *(char*)0=0;
// if (cs.Iop == LEA && cs.Irm == 0xCB) *(char*)0=0;
}
/***********
* Print opcodes
*/
@trusted
void print()
{
printf("---\n");
for (code *c = head; c; c = c.next)
printf("%02x\n", c.Iop);
}
}

View file

@ -4177,6 +4177,7 @@ void cdmemset(ref CGstate cg, ref CodeBuilder cdb,elem *e,ref regm_t pretregs)
{
regwithvalue(cdb, mAX, value, I64?64:0);
getregs(cdb, mAX);
cgstate.regimmed_set(AX, value);
freenode(evalue);
}
else