Difference between revisions of "Instruction Set/lea"
(Created page with "{{DISPLAYTITLE:lea}} <div style="font-size:80%;line-height:90%;margin-bottom:2em">realizing flow stream [[Decode|flow block]...") | |||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:lea}} | {{DISPLAYTITLE:lea}} | ||
− | <div style="font-size:80%;line-height:90%;margin-bottom:2em">[[Speculation| | + | <div style="font-size:80%;line-height:90%;margin-bottom:2em">[[Speculation|speculable]] [[Encoding|flow stream]] [[Decode|flow block]] [[Phasing|compute phase]] operation <br /> |
'''native on:''' [[Cores|all]]<br /> | '''native on:''' [[Cores|all]]<br /> | ||
</div> | </div> | ||
− | + | Load Effective Address. | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | Allows you to do address arithmetic the same way the [[Instruction_Set/load|load]] and [[Instruction_Set/store|store]] operations, and to some degree the [[Instruction_Set/call|call]] and [[Instruction_Set/inner|inner]] operation, do.<br /> | |
− | + | 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 | |
− | + | <code>base+offset+(scale*index)</code>.<br /> | |
− | + | 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.<br /> | |
− | + | Scale and index are optional and alway appear together. The scale is a compile time constant, the index is always from the belt. | |
− | + | ||
− | + | <b>related operations:</b> [[Instruction_Set/load|load]], [[Instruction_Set/store|store]], [[Instruction_Set/loadf|loadf]], [[Instruction_Set/loadd|loadd]], [[Instruction_Set/call|call]], [[Instruction_Set/inner|inner]] | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
---- | ---- | ||
− | <code style="font-size:130%"><b style="color:#050">lea</b>(<span style="color:#009">[[Sources#base|base]]</span> <span title="base special register">b</span>, <i><span style="color:#009">[[Immediates#off|off]]</span> <span title="manifest constant">o</span></i> | + | <code style="font-size:130%"><b style="color:#050">lea</b>(<span style="color:#009">[[Sources#base|base]]</span> <span title="base special register">b</span>, <i><span style="color:#009">[[Immediates#off|off]]</span> <span title="manifest constant">o</span></i>) → [[Domains#op|op]] r<sub>0</sub></code> |
− | + | <div style="font-size:80%;line-height:90%;margin-bottom:2em">'''operands:''' [[Operands#likeLea|like Lea px:p]] | |
− | <div style="font-size:80%;line-height:90%;margin-bottom:2em">'''operands:''' [[Operands# | + | |
</div> | </div> | ||
<br /> | <br /> | ||
Line 37: | Line 25: | ||
! [[Cores|Core]] || [[Slot|In Slots]]|| [[Latency|Latencies]] | ! [[Cores|Core]] || [[Slot|In Slots]]|| [[Latency|Latencies]] | ||
|- | |- | ||
− | | [[Cores/Tin/Encoding# | + | | [[Cores/Tin/Encoding#lea|Tin]] || F0 || |
|- | |- | ||
− | | [[Cores/Copper/Encoding# | + | | [[Cores/Copper/Encoding#lea|Copper]] || F0 || |
|- | |- | ||
− | | [[Cores/Silver/Encoding# | + | | [[Cores/Silver/Encoding#lea|Silver]] || F0 F1 F2 || |
|- | |- | ||
− | | [[Cores/Gold/Encoding# | + | | [[Cores/Gold/Encoding#lea|Gold]] || F0 || |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
|} | |} | ||
---- | ---- | ||
<code style="font-size:130%"><b style="color:#050">lea</b>(<span style="color:#009">[[Domains#p|p]]</span> <span title="belt operand from opsWindow">b</span>, <i><span style="color:#009">[[Immediates#off|off]]</span> <span title="manifest constant">o</span></i>) → [[Domains#op|op]] r<sub>0</sub></code> | <code style="font-size:130%"><b style="color:#050">lea</b>(<span style="color:#009">[[Domains#p|p]]</span> <span title="belt operand from opsWindow">b</span>, <i><span style="color:#009">[[Immediates#off|off]]</span> <span title="manifest constant">o</span></i>) → [[Domains#op|op]] r<sub>0</sub></code> | ||
− | <div style="font-size:80%;line-height:90%;margin-bottom:2em">'''operands:''' [[Operands# | + | <div style="font-size:80%;line-height:90%;margin-bottom:2em">'''operands:''' [[Operands#likeLea|like Lea px:p]] |
</div> | </div> | ||
<br /> | <br /> | ||
Line 59: | Line 43: | ||
! [[Cores|Core]] || [[Slot|In Slots]]|| [[Latency|Latencies]] | ! [[Cores|Core]] || [[Slot|In Slots]]|| [[Latency|Latencies]] | ||
|- | |- | ||
− | | [[Cores/Tin/Encoding# | + | | [[Cores/Tin/Encoding#lea|Tin]] || F0 || |
|- | |- | ||
− | | [[Cores/Copper/Encoding# | + | | [[Cores/Copper/Encoding#lea|Copper]] || F0 || |
|- | |- | ||
− | | [[Cores/Silver/Encoding# | + | | [[Cores/Silver/Encoding#lea|Silver]] || F0 F1 F2 || |
|- | |- | ||
− | | [[Cores/Gold/Encoding# | + | | [[Cores/Gold/Encoding#lea|Gold]] || F0 || |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
|} | |} | ||
---- | ---- | ||
− | <code style="font-size:130%"><b style="color:#050">lea</b>( | + | <code style="font-size:130%"><b style="color:#050">lea</b>(<i><span style="color:#009">[[Immediates#lbl|lbl]]</span> <span title="name of label or function">l</span></i>) → [[Domains#op|op]] r<sub>0</sub></code> |
− | + | <div style="font-size:80%;line-height:90%;margin-bottom:2em">'''operands:''' [[Operands#likeLea|like Lea px:p]] | |
− | <div style="font-size:80%;line-height:90%;margin-bottom:2em">'''operands:''' [[Operands# | + | |
</div> | </div> | ||
<br /> | <br /> | ||
Line 82: | Line 61: | ||
! [[Cores|Core]] || [[Slot|In Slots]]|| [[Latency|Latencies]] | ! [[Cores|Core]] || [[Slot|In Slots]]|| [[Latency|Latencies]] | ||
|- | |- | ||
− | | [[Cores/Tin/Encoding# | + | | [[Cores/Tin/Encoding#lea|Tin]] || F0 || |
|- | |- | ||
− | | [[Cores/Copper/Encoding# | + | | [[Cores/Copper/Encoding#lea|Copper]] || F0 || |
|- | |- | ||
− | | [[Cores/Silver/Encoding# | + | | [[Cores/Silver/Encoding#lea|Silver]] || F0 F1 F2 || |
|- | |- | ||
− | | [[Cores/Gold/Encoding# | + | | [[Cores/Gold/Encoding#lea|Gold]] || F0 || |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
|} | |} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | [[Instruction_Set|Instruction Set, alphabetical]], [[Instruction Set by Category]], [http://millcomputing.com/instructions.html?collapse=7#ops Instruction Set, sortable, filterable] | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + |
Latest revision as of 14:13, 23 February 2021
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
Core | In Slots | Latencies |
---|---|---|
Tin | F0 | |
Copper | F0 | |
Silver | F0 F1 F2 | |
Gold | F0 |
Core | In Slots | Latencies |
---|---|---|
Tin | F0 | |
Copper | F0 | |
Silver | F0 F1 F2 | |
Gold | F0 |
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