View source code
Display the source code in dmd/backend/cod3.d from which this page was generated on github.
Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using local clone.

Function dmd.backend.cod3.movregconst

Move constant value into reg. Take advantage of existing values in registers. If flags & mPSW set flags based on result Else if flags & 8 do not disturb flags Else don't care about flags If flags & 1 then byte move If flags & 2 then short move (for I32 and I64) If flags & 4 then don't disturb unused portion of register If flags & 16 then reg is a byte register AL..BH If flags & 64 (0x40) then 64 bit move (I64 only)

void movregconst (
  ref dmd.backend.codebuilder.CodeBuilder cdb,
  ubyte reg,
  ulong value,
  uint flags
) nothrow @trusted;

Returns

code (if any) generated

Authors

Walter Bright

License

Boost License 1.0