Operands and parameters
RegDst- Reg5 destination or discard
imm- split 32-bit immediate placed in result bits 63:32
HL.LUI places its split 32-bit immediate in result bits 63:32 and clears result bits 31:0.
PTO-SCALAR-HL-LUIhl.lui imm, ->{t, u, Rd}| Field | Bits | Signedness | Architectural role | Encoded zero |
|---|---|---|---|---|
RegDst | 5 | encoding-defined | Reg5 destination or discard | Encoded zero discards the result. |
imm | 32 | encoding-defined | split 32-bit immediate placed in result bits 63:32 | Encoded zero materializes numeric zero. |
Loading WaveDrom diagram… The encoding table and WaveJSON remain available below.
| Decoded item | Bit range | Value |
|---|---|---|
| imm | 47:28 | variable |
| RegDst | 27:23 | variable |
| Constant | 22:16 | 7'b0010111 |
| imm | 15:4 | variable |
| Constant | 3:0 | 4'b1110 |
{
"reg": [
{
"bits": 4,
"name": "4'b1110"
},
{
"bits": 12,
"name": "imm"
},
{
"bits": 7,
"name": "7'b0010111"
},
{
"bits": 5,
"name": "RegDst"
},
{
"bits": 20,
"name": "imm"
}
],
"config": {
"bits": 48,
"fontsize": 13,
"hspace": 900,
"lanes": 2,
"offset": 0
}
}hl.lui imm, ->{t, u, Rd}
RegDstimmThis Operation comes directly from the instruction owner; the page does not rewrite its behavior.
readonly func InstructionContractOperation_HL_LUI() => ScalarOperationbegin return ScalarOperation_HL_LUI;end;readonly func InstructionContractHandler_HL_LUI() => ScalarSemanticHandlerbegin return ScalarHandler_MaterializeLongUpper;end;
pure func InstructionContractResult_HL_LUI( encoded_immediate: bits(32)) => Wordbegin return MaterializeLongUpper(encoded_immediate);end;// PTO-INSTRUCTION: {"assembly":["hl.lui imm, ->{t, u, Rd}"],"block":[],"catalog_indices":[195],"catalog_records":[{"asm":"hl.lui imm, ->{t, u, Rd}","constraints":[],"encoding":[{"index":0,"mask":"0x0000007f000f","match":"0x00000017000e","width_bits":48}],"encoding_kind":"HL48","fields":[{"name":"RegDst","pieces":[{"instruction_lsb":23,"value_lsb":0,"width":5}],"signedness":"encoding-defined","width":5},{"name":"imm","pieces":[{"instruction_lsb":28,"value_lsb":0,"width":20},{"instruction_lsb":4,"value_lsb":20,"width":12}],"signedness":"encoding-defined","width":32}],"form_id":"hl_lui_48_255991889818","length_bits":48,"mnemonic":"HL.LUI","semantic_family":"ALU","semantic_group":"ALU","semantic_handler":"MaterializeLongUpper","semantic_summary":"HL.LUI places its split 32-bit immediate in result bits 63:32 and clears result bits 31:0.","status":"accepted"}],"classification":["alu"],"contract":{"block_composition":["none"],"canonical_assembly":["hl.lui imm, ->{t, u, Rd}"],"defaults":["Every encoded source, immediate, and explicit destination field is required; no field can be omitted.","The mnemonic fixes unsigned immediate placement in result bits 63:32 and the common explicit destination behavior."],"encoding_class":"standalone-encoded","examples":["hl.lui imm, ->{t, u, rd}"],"exceptions":["Materialization is a total fixed-width operation and raises no arithmetic exception.","A fixed-bit mismatch raises Fault_IllegalInstruction before the destination effect and before TPC advances."],"field_contracts":{},"field_zero_meanings":{"RegDst":"Encoded zero discards the result.","imm":"Encoded zero materializes numeric zero."},"legality":["RegDst codes 0 and 24..29 discard, codes 1..23 write GPRs, code 30 pushes U, and code 31 pushes T.","Every encoded operand value is assigned; fixed encoding bits must match the canonical form."],"memory_effects":["none"],"operands":[{"field":"RegDst","role":"Reg5 destination or discard"},{"field":"imm","role":"split 32-bit immediate placed in result bits 63:32"}],"ordering":["Reassemble the complete encoded immediate before the destination effect.","Publish the upper-half result, then advance TPC by six bytes."],"standalone_opcode":true,"state_effects":["Reassemble imm from its two encoded pieces, zero-extend it to XLEN, shift it left by 32, and clear result bits 31:0.","Publish the complete XLEN result through the common Reg5 destination map. Only a T or U destination push changes a temporary queue.","No memory, reservation, descriptor, numeric-status, block, privilege, branch-target, or other control state changes. Successful execution advances TPC by six bytes."]},"depends_on":["PTO-BLOCK-MODEL-SCHEMA-PROFILE-ENCODING"],"id":"PTO-SCALAR-HL-LUI","mnemonic":"HL.LUI","summary":"HL.LUI places its split 32-bit immediate in result bits 63:32 and clears result bits 31:0.","surface":"scalar"}// PTO-REVIEW: {"review_method":"formal-definition-read","outcome":"FORMAL-COMPLETE","reviewed_fields":["assembly","encoding","defaults","operation","state","memory","ordering","faults","reserved"]}// NDF-BEGIN: PTO-HL-LUI-UPPER-HALF-001// ndf: kind=contract level=L1 layer=scalar status=accepted// HL.LUI MUST reconstruct its encoded 32-bit immediate, place it in result// bits 63:32, clear result bits 31:0, and publish through RegDst.// Encoded immediate zero MUST materialize zero.// NDF-END: PTO-HL-LUI-UPPER-HALF-001// DOC-BEGIN: decodereadonly func InstructionContractOperation_HL_LUI() => ScalarOperationbegin return ScalarOperation_HL_LUI;end;// DOC-END: decode// DOC-BEGIN: operationreadonly func InstructionContractHandler_HL_LUI() => ScalarSemanticHandlerbegin return ScalarHandler_MaterializeLongUpper;end;
pure func InstructionContractResult_HL_LUI( encoded_immediate: bits(32)) => Wordbegin return MaterializeLongUpper(encoded_immediate);end;// DOC-END: operation
HL.LUI is a 48-bit scalar ALU instruction. It places the split 32-bit immediate in result bits 63:32 and clears bits 31:0; its current instruction contract defines the result publication path and any additional state effect.
Execution snapshots the encoded inputs, then places the split 32-bit immediate in result bits 63:32 and clears bits 31:0, and only afterward performs the destination effects.
RegDst field selects the Reg5 result target or discards the result.imm field carries the split 32-bit value placed in result bits 63:32.These roles come from the current instruction contract. T/U sources are read and snapshotted without being removed from their queues; exact encoded-zero meanings appear in the generated defaults below.
Every scalar source is snapshotted before the destination effect. The completed value is then routed through RegDst using the current scalar destination map.
This ALU operation has no memory effect. After its successful architectural effects, TPC advances by 6 bytes.
The operation does not introduce a hidden scalar publication target or an implicit memory access. Architectural changes remain limited to the state effects enumerated by the current contract.
Materialization, movement, and extension are total at their fixed widths and do not raise arithmetic exceptions. A fixed-bit mismatch or unavailable selected T/U source faults before state effects.
The generated legality table is authoritative for assigned field values, reserved encodings, and destination discard codes. Decode and source availability are checked before architectural effects.
This example illustrates the current ASL owner and does not replace the normative operation.
For a small HL.LUI example, immediate 1 places a one at result bit 32 and clears the low word.
Bodies come from owning ASL. Dragging or buttons change only this page-session view order.
HL.LUI MUST reconstruct its encoded 32-bit immediate, place it in result bits 63:32, clear result bits 31:0, and publish through RegDst. Encoded immediate zero MUST materialize zero.
PTO-HL-LUI-UPPER-HALF-001asl/scalar/alu/HL.LUI.aslf0641fff3fc8e7c84af65e795eac1974e3d2e3861f3b3d14234201f1ba119900a02e4f79230b427b8fd8e83c927e9d2c0de3d9607d2d7e7d752487c78bb4d9f311 matching entries
PTO-AVS-SCALAR-HL-LUI-DECODE-001tests/asl/scalar/alu/HL.LUI/scalar-decode-hl-lui-canonical-001.asl654edd59247304ce6ef81bbcf18315c7d2377a7c5a193038921b771448b75185PTO-AVS-SCALAR-HL-LUI-MATERIALIZE-001tests/asl/scalar/alu/HL.LUI/scalar-exec-hl-lui-materialize-001.aslc04578a9d7fadcd405acfaeffe0da32a78580b0859425f4a4241035c8edb2355PTO-AVS-SCALAR-HL-LUI-UPPER-002tests/asl/scalar/alu/HL.LUI/scalar-exec-hl-lui-upper-002.asl25529e834b9c580541948185012facaabbcb0ed1d65219b9c1776419a8ca894bPTO-EVIDENCE-RELEASE-TRACEABILITYPTO-EVIDENCE-RELEASE-TRACEABILITYspec/evidence/release-traceability-readiness.jsonc7327021d39dc67ac5564bc55073b3870a397d79ac8d9648284d56e33bc14a3ePTO-EVIDENCE-INSTRUCTION-CONTRACT-CLOSUREPTO-EVIDENCE-INSTRUCTION-CONTRACT-CLOSUREspec/evidence/instruction-contract-closure.json3ef2bb62421c79dff8fa77a1c7983923b523244b8090812883ef81286ca8106aPTO-EVIDENCE-ARCHITECTURE-READINESSPTO-EVIDENCE-ARCHITECTURE-READINESSspec/evidence/architecture-readiness.json4b0b85199101251bea744e0f3591cc31906909dc80d5ab651c417a936036a004PTO-EVIDENCE-RELEASE-GATE-READINESSPTO-EVIDENCE-RELEASE-GATE-READINESSspec/evidence/release-gate-readiness.jsona0f4d2b6920c08981ea55fd8ef820708a40d4feb5402c5150e8e9ab532d84ce0PTO-EVIDENCE-RELEASE-MANIFESTPTO-EVIDENCE-RELEASE-MANIFESTspec/release-manifest.json1a64c109ed7a90351c41e2a418b3c0ebaf8ad975838986d2101385186b85c0d8Loading ADR-0026…
ADR-0026docs/status/decisions/0026-scalar-alu-totality-and-alias-order.md41d126f224dddc371832120f1b02eab64e426872fdcbea452bad77c90bdec349Loading ADR-0059…
ADR-0059docs/status/decisions/0059-mnemonic-field-encoding-closure.mdf18d13f735cfaf9f2803c754c5818f4af33d1cc42c489f0d9ce060b07bb3a196Loading ADR-0084…
ADR-0084docs/status/decisions/0084-scalar-system-and-queue-operations.mde068992fa81e2c4ac46e492391a2f784141d68e041bf0b9e0586c37217d1e08c{
"classification": [
"alu"
],
"documentation": "docs/scalar/alu/HL.LUI.md",
"id": "PTO-SCALAR-HL-LUI",
"instruction_contract": {
"artifact": "spec/evidence/instruction-contract-closure.json",
"mnemonic": "HL.LUI",
"ndf_clause": "PTO-INST-SCALAR-HL-LUI"
},
"mnemonic": "HL.LUI",
"readiness_subjects": [
"ADR-0026",
"ADR-0059",
"ADR-0084"
],
"semantic_tests": [
"PTO-AVS-SCALAR-HL-LUI-MATERIALIZE-001",
"PTO-AVS-SCALAR-HL-LUI-UPPER-002"
],
"source": "asl/scalar/alu/HL.LUI.asl",
"surface": "scalar",
"tests": [
"PTO-AVS-SCALAR-HL-LUI-DECODE-001",
"PTO-AVS-SCALAR-HL-LUI-MATERIALIZE-001",
"PTO-AVS-SCALAR-HL-LUI-UPPER-002"
]
}0.58.5 · Release candidate7dc8b7e5b121d2b2499a2273bebff29e2cd86812f0641fff3fc8e7c84af65e795eac1974e3d2e3861f3b3d14234201f1ba119900bc18ed3b34cf86a669b65930fcdcb8c1d2308e6fce33f7f91e5e162d35fc0697asl/scalar/alu/HL.LUI.aslasl/scalar/alu/HL.LUI.aslasl/scalar/alu/HL.LUI.asl