lea

From Mill Computing Wiki
Jump to: navigation, search
speculable  flow stream  flow block  compute phase   operation  

native on: all

Load Effective Address.

Allows you to do address arithmetic the same way the load and store operations, and to some degree the call and inner operation, do.
Produces pointers that in turn can then be used as base pointers for loads, stores and calls.

There are several different addressing modes. The general formula for computing addresses is base+offset+(scale*index).
Base can come from a number of special Registers or the belt. Offset is always an inline constant. Those two are always present, although a zero offset doesn't take any space at all.
Scale and index are optional and alway appear together. The scale is a compile time constant, the index is always from the belt.

related operations: load, store, loadf, loadd, call, inner


lea(base b, off o) → op r0

operands: like Lea px:p


Core In Slots Latencies
Tin F0
Copper F0
Silver F0 F1 F2
Gold F0

lea(p b, off o) → op r0

operands: like Lea px:p


Core In Slots Latencies
Tin F0
Copper F0
Silver F0 F1 F2
Gold F0

lea(lbl l) → op r0

operands: like Lea px:p


Core In Slots Latencies
Tin F0
Copper F0
Silver F0 F1 F2
Gold F0


Instruction Set, alphabetical, Instruction Set by Category, Instruction Set, sortable, filterable