Operands and parameters
RegDst- Reg5 destination or discard
SrcL- left or sole Reg5 source
SrcR- right Reg5 source
SrcType- source carrier selector
FLT performs ordered quiet less-than comparison and returns canonical XLEN zero or one.
PTO-SCALAR-FLTflt.{T} SrcL, SrcR, ->{t, u, Rd}| Field | Bits | Signedness | Architectural role | Encoded zero |
|---|---|---|---|---|
RegDst | 5 | encoding-defined | Reg5 destination or discard | Encoded zero discards the result. |
SrcL | 5 | encoding-defined | left or sole Reg5 source | Encoded zero reads the architectural zero GPR. |
SrcR | 5 | encoding-defined | right Reg5 source | Encoded zero reads the architectural zero GPR. |
SrcType | 2 | encoding-defined | source carrier selector | Encoded zero selects the 64-bit source carrier; it is not omission. |
Loading WaveDrom diagram… The encoding table and WaveJSON remain available below.
| Decoded item | Bit range | Value |
|---|---|---|
| Constant | 31:27 | 5'b00000 |
| SrcType | 26:25 | variable |
| SrcR | 24:20 | variable |
| SrcL | 19:15 | variable |
| Constant | 14:12 | 3'b010 |
| RegDst | 11:7 | variable |
| Constant | 6:0 | 7'b1011011 |
{
"reg": [
{
"bits": 7,
"name": "7'b1011011"
},
{
"bits": 5,
"name": "RegDst"
},
{
"bits": 3,
"name": "3'b010"
},
{
"bits": 5,
"name": "SrcL"
},
{
"bits": 5,
"name": "SrcR"
},
{
"bits": 2,
"name": "SrcType"
},
{
"bits": 5,
"name": "5'b00000"
}
],
"config": {
"bits": 32,
"fontsize": 13,
"hspace": 900,
"lanes": 1,
"offset": 0
}
}flt.{T} SrcL, SrcR, ->{t, u, Rd}
RegDstSrcLSrcRSrcTypeThis Operation comes directly from the instruction owner; the page does not rewrite its behavior.
readonly func InstructionContractOperation_FLT() => ScalarOperationbegin return ScalarOperation_FLT;end;readonly func InstructionContractHandler_FLT() => ScalarSemanticHandlerbegin return ScalarHandler_FloatingCompare;end;
pure func InstructionContractSourceTypeLegal_FLT(encoded: bits(2)) => booleanbegin return encoded == '00' || encoded == '01';end;
pure func InstructionContractSourceCarrier_FLT(encoded: bits(2)) => bits(5)begin assert InstructionContractSourceTypeLegal_FLT(encoded); return ScalarFPSourceTypeCode(encoded);end;
pure func InstructionContractSourceArity_FLT() => integer {1..3}begin return 2;end;
pure func InstructionContractUsesProfileFlags_FLT() => booleanbegin return FALSE;end;
pure func InstructionContractUsesActiveRounding_FLT() => booleanbegin return FALSE;end;
pure func InstructionContractCompareOperation_FLT() => FloatingCompareOperationbegin return FloatingCompare_LT;end;
pure func InstructionContractSignalingCompare_FLT() => booleanbegin return FALSE;end;// PTO-INSTRUCTION: {"assembly":["flt.{T} SrcL, SrcR, ->{t, u, Rd}"],"block":[],"catalog_indices":[103],"catalog_records":[{"asm":"flt.{T} SrcL, SrcR, ->{t, u, Rd}","constraints":[{"field":"SrcType","operator":"one-of","values":[0,1]}],"encoding":[{"index":0,"mask":"0xf800707f","match":"0x0000205b","width_bits":32}],"encoding_kind":"L32","fields":[{"name":"RegDst","pieces":[{"instruction_lsb":7,"value_lsb":0,"width":5}],"signedness":"encoding-defined","width":5},{"name":"SrcL","pieces":[{"instruction_lsb":15,"value_lsb":0,"width":5}],"signedness":"encoding-defined","width":5},{"name":"SrcR","pieces":[{"instruction_lsb":20,"value_lsb":0,"width":5}],"signedness":"encoding-defined","width":5},{"name":"SrcType","pieces":[{"instruction_lsb":25,"value_lsb":0,"width":2}],"signedness":"encoding-defined","width":2}],"form_id":"flt_32_1c09549d8d3f","length_bits":32,"mnemonic":"FLT","semantic_family":"FSU","semantic_group":"FSU","semantic_handler":"FloatingCompare","semantic_summary":"FLT performs ordered quiet less-than comparison and returns canonical XLEN zero or one.","status":"accepted"}],"classification":["fsu"],"contract":{"block_composition":["none"],"canonical_assembly":["flt.{T} SrcL, SrcR, ->{t, u, Rd}"],"defaults":["Every displayed operand field is encoded explicitly; encoded zero is a value and never denotes omission.","SrcType=0 selects an FP64 carrier and SrcType=1 selects the zero-extended low-word FP32 carrier. SrcType=2 and SrcType=3 are reserved."],"encoding_class":"standalone-encoded","examples":["flt.fd a0, a1, ->a2","flt.fs t#1, u#1, ->u"],"exceptions":["A fixed-bit mismatch, reserved SrcType, reserved DstType where present, or unavailable selected T/U source raises Fault_IllegalInstruction before source, profile, destination, flag, queue, or TPC effects.","Numeric profile flags update sticky status and do not themselves raise a synchronous PTO trap."],"field_contracts":{},"field_zero_meanings":{"RegDst":"Encoded zero discards the result.","SrcL":"Encoded zero reads the architectural zero GPR.","SrcR":"Encoded zero reads the architectural zero GPR.","SrcType":"Encoded zero selects the 64-bit source carrier; it is not omission."},"legality":["Every Reg5 source uses codes 0..23 for absolute GPRs, 24..27 for T#1..T#4, and 28..31 for U#1..U#4 without consumption.","Every Reg5 destination is assigned: codes 1..23 write GPRs, 30 pushes U, 31 pushes T, and 0 plus 24..29 discard only the result.","SrcType codes 0 and 1 are assigned; codes 2 and 3 are reserved."],"memory_effects":["none"],"operands":[{"field":"RegDst","role":"Reg5 destination or discard"},{"field":"SrcL","role":"left or sole Reg5 source"},{"field":"SrcR","role":"right Reg5 source"},{"field":"SrcType","role":"source carrier selector"}],"ordering":["Validate every encoded type before the first architectural source read or profile call.","Snapshot every explicit source before flag or destination effects; duplicate sources, destination aliases, and same-queue read-then-push observe pre-instruction values.","Accumulate produced flags, publish or discard the destination, and then advance TPC."],"standalone_opcode":true,"state_effects":["FLT performs ordered quiet less-than comparison and returns canonical XLEN zero or one.","Any NaN returns false. This quiet form records sticky NV only for a signaling NaN.","Destination codes 1..23 write GPRs, 30 pushes U, 31 pushes T, and 0 plus 24..29 discard the result.","Successful execution advances TPC by four bytes."]},"depends_on":["PTO-SCALAR-MODEL-FSU-PROFILE"],"id":"PTO-SCALAR-FLT","mnemonic":"FLT","summary":"FLT performs ordered quiet less-than comparison and returns canonical XLEN zero or one.","surface":"scalar"}// PTO-REVIEW: {"review_method":"formal-definition-read","outcome":"FORMAL-COMPLETE","reviewed_fields":["assembly","encoding","defaults","operation","state","memory","ordering","faults","reserved"]}// DOC-BEGIN: decodereadonly func InstructionContractOperation_FLT() => ScalarOperationbegin return ScalarOperation_FLT;end;// DOC-END: decode// DOC-BEGIN: operationreadonly func InstructionContractHandler_FLT() => ScalarSemanticHandlerbegin return ScalarHandler_FloatingCompare;end;
pure func InstructionContractSourceTypeLegal_FLT(encoded: bits(2)) => booleanbegin return encoded == '00' || encoded == '01';end;
pure func InstructionContractSourceCarrier_FLT(encoded: bits(2)) => bits(5)begin assert InstructionContractSourceTypeLegal_FLT(encoded); return ScalarFPSourceTypeCode(encoded);end;
pure func InstructionContractSourceArity_FLT() => integer {1..3}begin return 2;end;
pure func InstructionContractUsesProfileFlags_FLT() => booleanbegin return FALSE;end;
pure func InstructionContractUsesActiveRounding_FLT() => booleanbegin return FALSE;end;
pure func InstructionContractCompareOperation_FLT() => FloatingCompareOperationbegin return FloatingCompare_LT;end;
pure func InstructionContractSignalingCompare_FLT() => booleanbegin return FALSE;end;// DOC-END: operation
FLT performs ordered quiet less-than and publishes canonical XLEN one or zero.
SrcType=00 selects a complete FP64 carrier; SrcType=01 selects the zero-extended low 32-bit FP32 carrier.
Any NaN input makes the ordered comparison false.
The quiet form records sticky NV only for a signaling NaN.
RegDst selects the encoded destination or discard behavior.SrcL supplies the left scalar source.SrcR supplies the right scalar source.SrcType selects the source-carrier width.All explicit sources are snapshotted before numeric-status or destination effects.
Any architecture-produced NV is ORed into sticky numeric state before destination publication.
The result is published or discarded, then TPC advances by 4 bytes. The instruction has no memory or reservation effect.
SrcType=10 and SrcType=11 are reserved. Reserved types and unavailable T/U sources raise Fault_IllegalInstruction before source, profile, flag, queue, destination, or TPC effects.
Numeric flag updates do not themselves raise a synchronous PTO trap.
This example illustrates the current owner and does not define arithmetic independently of the normative rule or active profile.
flt.fd a0, a1, ->a2 applies the architecture-owned special-value rule and publishes canonical output before advancing TPC.
Bodies come from owning ASL. Dragging or buttons change only this page-session view order.
No NDF clause is attached to this unit.
17 matching entries
PTO-AVS-FSU-FLT-BOUND-001tests/asl/scalar/fsu/FLT/scalar-bound-flt-values-001.asl66d8a1aa422ae7a06c0ef0302c1c520ae1bef3a5243d61a11706d9bac7651554PTO-AVS-FSU-FLT-DST-001tests/asl/scalar/fsu/FLT/scalar-exec-flt-dst-001.aslc57ec08eec9daa2a9761c0258a7350608293480d8ffe312bfbfcfd018701543cPTO-AVS-FSU-FLT-EXEC-001tests/asl/scalar/fsu/FLT/scalar-exec-flt-direct-001.asl229ba77c6571b43f03a22760ab916c2b670e7a9059ce6303632314e4fb1ca009PTO-AVS-FSU-FLT-FLAGS-001tests/asl/scalar/fsu/FLT/scalar-state-flt-flags-001.asl6571dd9fc0743a83e0cd827e4d3a74a0c04e0c08412dfcd36d9bfdff84bc0f46PTO-AVS-FSU-FLT-RSVD-001tests/asl/scalar/fsu/FLT/scalar-fault-flt-types-001.asl06c2939b3e230073a4b6af852266e81c93b95411242528db00a3655cda1d2dbbPTO-AVS-FSU-FLT-SNAP-001tests/asl/scalar/fsu/FLT/scalar-exec-flt-snap-001.aslbd9bf516631ad8a168bcc440cfd1d2143ab783daf83e60d21e72ccadb63ad4d1PTO-AVS-FSU-FLT-SRC-001tests/asl/scalar/fsu/FLT/scalar-exec-flt-src-001.asl49898e98c1d2e1f49347f628499f538641f5e7656038aa8afd9853f8f7c9d867PTO-AVS-FSU-FLT-TYPE-001tests/asl/scalar/fsu/FLT/scalar-bound-flt-types-001.asl348bd86d38af0d069009f7107e9c25c5a111e59b4dc7480868b14b57a4ce457fPTO-AVS-SCALAR-FLT-DECODE-001tests/asl/scalar/fsu/FLT/scalar-decode-flt-canonical-001.asl0dfbc394b34e9671fad7fd88fd08fbf70db1477b7bd34ba36bc7d2f13a1772faPTO-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-0028…
ADR-0028docs/status/decisions/0028-scalar-fsu-totality-and-profile-boundary.md1be39ca1ffda14b703ca03df9654f323d03b9cac620ba37d5cbe6ce8f3f9c486Loading ADR-0038…
ADR-0038docs/status/decisions/0038-scalar-numeric-flag-state-and-ownership.mdeac15c3bee955bb92833482b9af8b9f149fe17c13138e6f2b22f0ed1cf40fc07Loading ADR-0059…
ADR-0059docs/status/decisions/0059-mnemonic-field-encoding-closure.mdf18d13f735cfaf9f2803c754c5818f4af33d1cc42c489f0d9ce060b07bb3a196{
"classification": [
"fsu"
],
"documentation": "docs/scalar/fsu/FLT.md",
"id": "PTO-SCALAR-FLT",
"instruction_contract": {
"artifact": "spec/evidence/instruction-contract-closure.json",
"mnemonic": "FLT",
"ndf_clause": "PTO-INST-SCALAR-FLT"
},
"mnemonic": "FLT",
"readiness_subjects": [
"ADR-0028",
"ADR-0038",
"ADR-0059"
],
"semantic_tests": [
"PTO-AVS-FSU-FLT-BOUND-001",
"PTO-AVS-FSU-FLT-DST-001",
"PTO-AVS-FSU-FLT-EXEC-001",
"PTO-AVS-FSU-FLT-FLAGS-001",
"PTO-AVS-FSU-FLT-RSVD-001",
"PTO-AVS-FSU-FLT-SNAP-001",
"PTO-AVS-FSU-FLT-SRC-001",
"PTO-AVS-FSU-FLT-TYPE-001"
],
"source": "asl/scalar/fsu/FLT.asl",
"surface": "scalar",
"tests": [
"PTO-AVS-FSU-FLT-BOUND-001",
"PTO-AVS-FSU-FLT-DST-001",
"PTO-AVS-FSU-FLT-EXEC-001",
"PTO-AVS-FSU-FLT-FLAGS-001",
"PTO-AVS-FSU-FLT-RSVD-001",
"PTO-AVS-FSU-FLT-SNAP-001",
"PTO-AVS-FSU-FLT-SRC-001",
"PTO-AVS-FSU-FLT-TYPE-001",
"PTO-AVS-SCALAR-FLT-DECODE-001"
]
}0.58.5 · Release candidate7dc8b7e5b121d2b2499a2273bebff29e2cd86812090c4032fd5762ee49323b171d617c7a7528ae9f90ea963ecc6c01f8c3b832fde35ad90b1fefd43d195a06efb6eb88392d6b587cd16010a44f534f389af6d427asl/scalar/fsu/FLT.aslasl/scalar/fsu/FLT.asl