Operands and parameters
RegDst- Reg5 destination or discard
SrcL- left or sole Reg5 source
SrcType- source carrier selector
FABS clears the sign bit of the selected FP64 or FP32 carrier, preserves every other carrier bit, and publishes no numeric flags.
PTO-SCALAR-FABSfabs.{T} SrcL, ->{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. |
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 |
| Constant | 24:20 | 5'b00000 |
| SrcL | 19:15 | variable |
| Constant | 14:12 | 3'b000 |
| RegDst | 11:7 | variable |
| Constant | 6:0 | 7'b1111011 |
{
"reg": [
{
"bits": 7,
"name": "7'b1111011"
},
{
"bits": 5,
"name": "RegDst"
},
{
"bits": 3,
"name": "3'b000"
},
{
"bits": 5,
"name": "SrcL"
},
{
"bits": 5,
"name": "5'b00000"
},
{
"bits": 2,
"name": "SrcType"
},
{
"bits": 5,
"name": "5'b00000"
}
],
"config": {
"bits": 32,
"fontsize": 13,
"hspace": 900,
"lanes": 1,
"offset": 0
}
}fabs.{T} SrcL, ->{t, u, Rd}
RegDstSrcLSrcTypeThis Operation comes directly from the instruction owner; the page does not rewrite its behavior.
readonly func InstructionContractOperation_FABS() => ScalarOperationbegin return ScalarOperation_FABS;end;readonly func InstructionContractHandler_FABS() => ScalarSemanticHandlerbegin return ScalarHandler_FloatingUnary;end;
pure func InstructionContractSourceTypeLegal_FABS(encoded: bits(2)) => booleanbegin return encoded == '00' || encoded == '01';end;
pure func InstructionContractSourceCarrier_FABS(encoded: bits(2)) => bits(5)begin assert InstructionContractSourceTypeLegal_FABS(encoded); return ScalarFPSourceTypeCode(encoded);end;
pure func InstructionContractSourceArity_FABS() => integer {1..3}begin return 1;end;
pure func InstructionContractUsesProfileFlags_FABS() => booleanbegin return FALSE;end;
pure func InstructionContractUsesActiveRounding_FABS() => booleanbegin return FALSE;end;
pure func InstructionContractUnaryOperation_FABS() => FloatingUnaryOperationbegin return FloatingUnary_ABS;end;// PTO-INSTRUCTION: {"assembly":["fabs.{T} SrcL, ->{t, u, Rd}"],"block":[],"catalog_indices":[87],"catalog_records":[{"asm":"fabs.{T} SrcL, ->{t, u, Rd}","constraints":[{"field":"SrcType","operator":"one-of","values":[0,1]}],"encoding":[{"index":0,"mask":"0xf9f0707f","match":"0x0000007b","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":"SrcType","pieces":[{"instruction_lsb":25,"value_lsb":0,"width":2}],"signedness":"encoding-defined","width":2}],"form_id":"fabs_32_9515e008bf17","length_bits":32,"mnemonic":"FABS","semantic_family":"FSU","semantic_group":"FSU","semantic_handler":"FloatingUnary","semantic_summary":"FABS clears the sign bit of the selected FP64 or FP32 carrier, preserves every other carrier bit, and publishes no numeric flags.","status":"accepted"}],"classification":["fsu"],"contract":{"block_composition":["none"],"canonical_assembly":["fabs.{T} SrcL, ->{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":["fabs.fd a0, ->a1","fabs.fs t#1, ->t"],"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.","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":"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":["FABS clears the sign bit of the selected FP64 or FP32 carrier, preserves every other carrier bit, and publishes no numeric flags.","Existing NV, DZ, OF, UF, and NX state is unchanged.","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-FABS","mnemonic":"FABS","summary":"FABS clears the sign bit of the selected FP64 or FP32 carrier, preserves every other carrier bit, and publishes no numeric flags.","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-FABS-DECISION-BINDING-001// ndf: kind=contract level=L1 layer=scalar status=accepted// FABS MUST implement the mnemonic-local canonical assembly, encoded// legality, defaults, state and memory effects, ordering, and fault boundaries// declared in this owner. The operation region below is the executable binding// for every accepted decision that names this mnemonic.// NDF-END: PTO-FABS-DECISION-BINDING-001// DOC-BEGIN: decodereadonly func InstructionContractOperation_FABS() => ScalarOperationbegin return ScalarOperation_FABS;end;// DOC-END: decode// DOC-BEGIN: operationreadonly func InstructionContractHandler_FABS() => ScalarSemanticHandlerbegin return ScalarHandler_FloatingUnary;end;
pure func InstructionContractSourceTypeLegal_FABS(encoded: bits(2)) => booleanbegin return encoded == '00' || encoded == '01';end;
pure func InstructionContractSourceCarrier_FABS(encoded: bits(2)) => bits(5)begin assert InstructionContractSourceTypeLegal_FABS(encoded); return ScalarFPSourceTypeCode(encoded);end;
pure func InstructionContractSourceArity_FABS() => integer {1..3}begin return 1;end;
pure func InstructionContractUsesProfileFlags_FABS() => booleanbegin return FALSE;end;
pure func InstructionContractUsesActiveRounding_FABS() => booleanbegin return FALSE;end;
pure func InstructionContractUnaryOperation_FABS() => FloatingUnaryOperationbegin return FloatingUnary_ABS;end;// DOC-END: operation
FABS clears the sign bit of the selected FP64 or FP32 carrier while preserving every other carrier bit.
SrcType=00 selects a complete FP64 carrier; SrcType=01 selects the zero-extended low 32-bit FP32 carrier.
The operation clears only the selected sign bit and produces no new numeric flags.
RegDst selects the encoded destination or discard behavior.SrcL supplies the left scalar source.SrcType selects the source-carrier width.All explicit sources are snapshotted before numeric-status or destination effects.
Existing numeric flags remain unchanged.
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.
fabs.fd a0, ->a1 clears only the selected sign bit, publishes the carrier, and leaves numeric flags unchanged.
Bodies come from owning ASL. Dragging or buttons change only this page-session view order.
FABS MUST implement the mnemonic-local canonical assembly, encoded legality, defaults, state and memory effects, ordering, and fault boundaries declared in this owner. The operation region below is the executable binding for every accepted decision that names this mnemonic.
PTO-FABS-DECISION-BINDING-001asl/scalar/fsu/FABS.asl99bb0856c09d8400b419dad06937b1fc79979afc3f2aac3b46c44541eebb581a729d04a85661882d1cb23bc948d60d3a2130a3c68966d292a6ffcec9495dba6d18 matching entries
PTO-AVS-FSU-FABS-BOUND-001tests/asl/scalar/fsu/FABS/scalar-bound-fabs-values-001.asl8562388e23bbbcb43686d08a44ba3371f0307c15c6cf9497d14c2b18ae829e80PTO-AVS-FSU-FABS-DST-001tests/asl/scalar/fsu/FABS/scalar-exec-fabs-dst-001.asl12664fe07e532cff9f1ed700a7c3202c80844e3406c1173ae70d202ba22a1cedPTO-AVS-FSU-FABS-EXEC-001tests/asl/scalar/fsu/FABS/scalar-exec-fabs-direct-001.asl60f6a98cb1adaa497016ec20e94fa8dc4448301d5479f35aa992d441c957e260PTO-AVS-FSU-FABS-FLAGS-001tests/asl/scalar/fsu/FABS/scalar-state-fabs-flags-001.asl5f3a39c0112f90561fedf0424649231006e7e5e676ee24fed924cad198616331PTO-AVS-FSU-FABS-RSVD-001tests/asl/scalar/fsu/FABS/scalar-fault-fabs-types-001.asl15e141b04feebc7de656710a1c2e4dcdba67b362100fe0e7b60e4342adfa35a6PTO-AVS-FSU-FABS-SNAP-001tests/asl/scalar/fsu/FABS/scalar-exec-fabs-snap-001.asl88b3536db73be697e5af371f88641649fc1f6b3ced3779d70e506359d828c892PTO-AVS-FSU-FABS-SRC-001tests/asl/scalar/fsu/FABS/scalar-exec-fabs-src-001.aslae6901bc5889a5790316f27cbb342fda248310a7daceb4950afeebf6def603c1PTO-AVS-FSU-FABS-TYPE-001tests/asl/scalar/fsu/FABS/scalar-bound-fabs-types-001.asle95e4a943f1e78568ebf8d02301a8ab08c315abe5fc8a0db998499ada60bde8aPTO-AVS-SCALAR-FABS-DECODE-001tests/asl/scalar/fsu/FABS/scalar-decode-fabs-canonical-001.aslb95966a777c90d108d6e7ab90935bc48cfabf5049d9946c8a30d2db432c3a9b4PTO-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.mdf18d13f735cfaf9f2803c754c5818f4af33d1cc42c489f0d9ce060b07bb3a196Loading ADR-0084…
ADR-0084docs/status/decisions/0084-scalar-system-and-queue-operations.mde068992fa81e2c4ac46e492391a2f784141d68e041bf0b9e0586c37217d1e08c{
"classification": [
"fsu"
],
"documentation": "docs/scalar/fsu/FABS.md",
"id": "PTO-SCALAR-FABS",
"instruction_contract": {
"artifact": "spec/evidence/instruction-contract-closure.json",
"mnemonic": "FABS",
"ndf_clause": "PTO-INST-SCALAR-FABS"
},
"mnemonic": "FABS",
"readiness_subjects": [
"ADR-0028",
"ADR-0038",
"ADR-0059",
"ADR-0084"
],
"semantic_tests": [
"PTO-AVS-FSU-FABS-BOUND-001",
"PTO-AVS-FSU-FABS-DST-001",
"PTO-AVS-FSU-FABS-EXEC-001",
"PTO-AVS-FSU-FABS-FLAGS-001",
"PTO-AVS-FSU-FABS-RSVD-001",
"PTO-AVS-FSU-FABS-SNAP-001",
"PTO-AVS-FSU-FABS-SRC-001",
"PTO-AVS-FSU-FABS-TYPE-001"
],
"source": "asl/scalar/fsu/FABS.asl",
"surface": "scalar",
"tests": [
"PTO-AVS-FSU-FABS-BOUND-001",
"PTO-AVS-FSU-FABS-DST-001",
"PTO-AVS-FSU-FABS-EXEC-001",
"PTO-AVS-FSU-FABS-FLAGS-001",
"PTO-AVS-FSU-FABS-RSVD-001",
"PTO-AVS-FSU-FABS-SNAP-001",
"PTO-AVS-FSU-FABS-SRC-001",
"PTO-AVS-FSU-FABS-TYPE-001",
"PTO-AVS-SCALAR-FABS-DECODE-001"
]
}0.58.5 · Release candidate7dc8b7e5b121d2b2499a2273bebff29e2cd8681299bb0856c09d8400b419dad06937b1fc79979afc3f2aac3b46c44541eebb581aa4a65bbf8f9bb1b1f454e79ff0c21c3ceade1f50e6abd39b5a63bae3f6012f06asl/scalar/fsu/FABS.aslasl/scalar/fsu/FABS.aslasl/scalar/fsu/FABS.asl