detab cod1.d (#20906)

This commit is contained in:
Walter Bright 2025-02-20 21:59:50 -08:00 committed by GitHub
parent 1d8658d722
commit 5529c3f91b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2215,7 +2215,7 @@ void loaddata(ref CodeBuilder cdb, elem* e, ref regm_t outretregs)
forregs = outretregs & (cgstate.allregs | INSTR.FLOATREGS); // XMMREGS ? forregs = outretregs & (cgstate.allregs | INSTR.FLOATREGS); // XMMREGS ?
if (e.Eoper == OPconst) if (e.Eoper == OPconst)
{ {
if (0 && tyvector(tym) && forregs & XMMREGS) // TODO if (0 && tyvector(tym) && forregs & XMMREGS) // TODO
{ {
assert(!flags); assert(!flags);
const xreg = allocreg(cdb, forregs, tym); // allocate registers const xreg = allocreg(cdb, forregs, tym); // allocate registers
@ -2224,15 +2224,15 @@ void loaddata(ref CodeBuilder cdb, elem* e, ref regm_t outretregs)
return; return;
} }
if (tyfloating(tym)) if (tyfloating(tym))
{ {
const vreg = allocreg(cdb, forregs, tym); // allocate floating point register const vreg = allocreg(cdb, forregs, tym); // allocate floating point register
float value = e.Vfloat; float value = e.Vfloat;
if (sz == 8) if (sz == 8)
value = e.Vdouble; value = e.Vdouble;
loadFloatRegConst(cdb,vreg,value,sz); loadFloatRegConst(cdb,vreg,value,sz);
return; return;
} }
targ_size_t value = e.Vint; targ_size_t value = e.Vint;
if (sz == 8) if (sz == 8)