View source code
Display the source code in dmd/backend/arm/cod3.d from which thispage was generated on github.
Report a bug
If you spot a problem with this page, click here to create aBugzilla 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 usinglocal clone.

Function dmd.backend.arm.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,
  ulong flags
) nothrow @trusted;

Parameters

NameDescription
cdb code sink for generated output
reg target register
value value to move into register
flags options

Authors

Walter Bright

License

Boost License 1.0