操作数与参数
SrcL- left absolute GPR source
SrcR- right absolute GPR source
SrcRType- right-source modifier selector
SETC.OR - Combine scalar comparison results and update the bundle commit condition.
PTO-SCALAR-SETC-ORsetc.or SrcL, SrcR<.sw, .uw, .not>| 字段 | 位宽 | 有符号性 | 架构角色 | 编码零 |
|---|---|---|---|---|
SrcL | 5 | encoding-defined | left absolute GPR source | Encoded zero names the architectural zero GPR. |
SrcR | 5 | encoding-defined | right absolute GPR source | Encoded zero names the architectural zero GPR. |
SrcRType | 2 | encoding-defined | right-source modifier selector | Encoded zero selects value zero of the right-source modifier selector. |
Loading WaveDrom diagram… The encoding table and WaveJSON remain available below.
| Decoded item | Bit range | Value |
|---|---|---|
| Constant | 31:27 | 5'b00000 |
| SrcRType | 26:25 | variable |
| SrcR | 24:20 | variable |
| SrcL | 19:15 | variable |
| Constant | 14:0 | 15'b011000001100101 |
{
"reg": [
{
"bits": 15,
"name": "15'b011000001100101"
},
{
"bits": 5,
"name": "SrcL"
},
{
"bits": 5,
"name": "SrcR"
},
{
"bits": 2,
"name": "SrcRType"
},
{
"bits": 5,
"name": "5'b00000"
}
],
"config": {
"bits": 32,
"fontsize": 13,
"hspace": 900,
"lanes": 1,
"offset": 0
}
}setc.or SrcL, SrcR<.sw, .uw, .not>
SrcLSrcRSrcRType下面是该指令所有者中的 Operation;页面没有重写这段行为。
readonly func InstructionContractOperation_SETC_OR() => ScalarOperationbegin return ScalarOperation_SETC_OR;end;readonly func InstructionContractHandler_SETC_OR() => ScalarSemanticHandlerbegin return ScalarHandler_ExecuteSetCommitLogical;end;
pure func InstructionContractCombinesWithOR_SETC_OR() => booleanbegin return TRUE;end;
pure func InstructionContractCommitLogicalValue_SETC_OR( left: Word, right: Word) => Wordbegin if InstructionContractCombinesWithOR_SETC_OR() then return left OR right; end; return left AND right;end;// PTO-INSTRUCTION: {"assembly":["setc.or SrcL, SrcR<.sw, .uw, .not>"],"block":[],"catalog_indices":[412],"catalog_records":[{"asm":"setc.or SrcL, SrcR<.sw, .uw, .not>","constraints":[],"encoding":[{"index":0,"mask":"0xf8007fff","match":"0x00003065","width_bits":32}],"encoding_kind":"L32","fields":[{"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":"SrcRType","pieces":[{"instruction_lsb":25,"value_lsb":0,"width":2}],"signedness":"encoding-defined","width":2}],"form_id":"setc_or_32_740134c709d2","length_bits":32,"mnemonic":"SETC.OR","semantic_family":"BRU","semantic_group":"BRU","semantic_handler":"ExecuteSetCommitLogical","semantic_summary":"SETC.OR - Combine scalar comparison results and update the bundle commit condition.","status":"accepted"}],"classification":["bru"],"contract":{"block_composition":["Applicable only in the body of an active block whose BARG.TYPE is Conditional. Across the entire SETC condition-setting family, at most one occurrence may complete successfully in that block."],"canonical_assembly":["setc.or SrcL, SrcR<.sw, .uw, .not>"],"defaults":["The selected assembly form determines which fields are present; every present field carries its encoded value and no encoded zero means omission."],"encoding_class":"standalone-encoded","examples":["setc.or SrcL, SrcR<.sw, .uw, .not>"],"exceptions":["Wrong block placement or a second successful SETC condition setter raises Illegal Block Exception before scalar source readiness or any architectural or pending-block effect.","A fixed-bit mismatch or unavailable selected relative source raises Fault_IllegalInstruction before commit state, BARG, queues, or TPC effects."],"field_contracts":{},"field_zero_meanings":{"SrcL":"Encoded zero names the architectural zero GPR.","SrcR":"Encoded zero names the architectural zero GPR.","SrcRType":"Encoded zero selects value zero of the right-source modifier selector."},"legality":["All SETC condition setters share one block-private successful-occurrence marker; a failed first occurrence does not consume it."],"memory_effects":["none"],"operands":[{"field":"SrcL","role":"left absolute GPR source"},{"field":"SrcR","role":"right absolute GPR source"},{"field":"SrcRType","role":"right-source modifier selector"}],"ordering":["Check Conditional-block applicability and the shared occurrence marker before scalar source readiness or reads.","Snapshot all sources, compute the canonical zero-or-one condition, then atomically update the commit argument, BARG.TAKEN, and the occurrence marker."],"standalone_opcode":true,"state_effects":["Compute SETC.OR's local comparison or logical condition from source snapshots and canonicalize it to zero or one.","Atomically write that value to the commit argument and BARG.TAKEN, then mark the block condition as set. Preserve BARG.BPC, BARG.BPCN, BARG.BlockType, and BARG.TYPE.","No memory, reservation, descriptor, numeric-status, or destination-register effect occurs. Successful execution advances TPC by the encoded instruction length."]},"depends_on":["PTO-BLOCK-MODEL-SCHEMA-PROFILE-ENCODING"],"id":"PTO-SCALAR-SETC-OR","mnemonic":"SETC.OR","summary":"SETC.OR - Combine scalar comparison results and update the bundle commit condition.","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-SETC-OR-CONDITIONAL-SETTER-001// ndf: kind=contract level=L1 layer=scalar status=accepted// SETC.OR MUST be applicable only in one active Conditional block.// Across all SETC condition setters, only the first successful occurrence in// that block may snapshot sources and atomically update CommitArgument and// BARG.TAKEN. A rejected occurrence MUST NOT consume the shared marker.// NDF-END: PTO-SETC-OR-CONDITIONAL-SETTER-001// DOC-BEGIN: decodereadonly func InstructionContractOperation_SETC_OR() => ScalarOperationbegin return ScalarOperation_SETC_OR;end;// DOC-END: decode// DOC-BEGIN: operationreadonly func InstructionContractHandler_SETC_OR() => ScalarSemanticHandlerbegin return ScalarHandler_ExecuteSetCommitLogical;end;
pure func InstructionContractCombinesWithOR_SETC_OR() => booleanbegin return TRUE;end;
pure func InstructionContractCommitLogicalValue_SETC_OR( left: Word, right: Word) => Wordbegin if InstructionContractCombinesWithOR_SETC_OR() then return left OR right; end; return left AND right;end;// DOC-END: operation
SETC.OR 计算按位或条件,并把它发布为当前条件指令束的提交判定。
放置和单次设置检查通过后,指令对操作数取快照并执行按位或。
组合值为零时提交条件为假,任何非零值都表示真。
SrcL 提供左侧标量源。SrcR 提供右侧标量源。SrcRType 选择右源变换。规范化条件会原子写入 _CommitArgument 和 BARG.TAKEN,同时置位条件已设置标记。
成功时,SETC.OR 让 TPC 前进 4 字节;它没有标量目的位置,也不产生内存或保留状态效果。
该指令只在适用的条件指令束上下文中合法,并且只能有一个条件设置操作成功。
放置错误或重复设置会在读取源之前引发非法指令束异常;编码或源不可用会在提交状态或 TPC 效果前引发 Fault_IllegalInstruction。
下面的示例只帮助理解当前所有者,不构成第二份语义定义。
setc.or SrcL, SrcR<.sw, .uw, .not> 按上述规则计算条件,把规范化判定写入提交状态,并且只在更新完成后推进 TPC。
正文来自 owning ASL。拖拽或按钮只临时改变当前页面显示顺序。
SETC.OR MUST be applicable only in one active Conditional block. Across all SETC condition setters, only the first successful occurrence in that block may snapshot sources and atomically update CommitArgument and BARG.TAKEN. A rejected occurrence MUST NOT consume the shared marker.
PTO-SETC-OR-CONDITIONAL-SETTER-001asl/scalar/bru/SETC.OR.asle73de411caa4934daa458e0b1900fa1d9ad25f3696d6e2486f5f2d4c43ca2c483c4a28d8c35188e497bc5b642099fd4507adcd247c39e05b319217478c34179c11 matching entries
PTO-AVS-BRU-SETC-OR-BOUND-001tests/asl/scalar/bru/SETC.OR/scalar-bound-setc-or-fields-001.asl3338363288c030109d2f9a77914a4cbc438a8e7092b81f124cc63ef938f7523ePTO-AVS-BRU-SETC-OR-EXEC-001tests/asl/scalar/bru/SETC.OR/scalar-exec-setc-or-direct-001.aslf892d3472cd751a451e62ee7db8e321eb21e06c278ad18c2e88994ffb158f669PTO-AVS-SCALAR-SETC-OR-DECODE-001tests/asl/scalar/bru/SETC.OR/scalar-decode-setc-or-canonical-001.aslc89a47773c380cb68276802860e9c76a2355c19c6885b624e164c5d3935d896cPTO-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-0027…
ADR-0027docs/status/decisions/0027-scalar-bru-totality-and-target-legality.md9289112d250e31f4222dcd27d20bda791be7a1b57764af7ed9b187e767b7acedLoading 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": [
"bru"
],
"documentation": "docs/scalar/bru/SETC.OR.md",
"id": "PTO-SCALAR-SETC-OR",
"instruction_contract": {
"artifact": "spec/evidence/instruction-contract-closure.json",
"mnemonic": "SETC.OR",
"ndf_clause": "PTO-INST-SCALAR-SETC-OR"
},
"mnemonic": "SETC.OR",
"readiness_subjects": [
"ADR-0027",
"ADR-0059",
"ADR-0084"
],
"semantic_tests": [
"PTO-AVS-BRU-SETC-OR-BOUND-001",
"PTO-AVS-BRU-SETC-OR-EXEC-001"
],
"source": "asl/scalar/bru/SETC.OR.asl",
"surface": "scalar",
"tests": [
"PTO-AVS-BRU-SETC-OR-BOUND-001",
"PTO-AVS-BRU-SETC-OR-EXEC-001",
"PTO-AVS-SCALAR-SETC-OR-DECODE-001"
]
}0.58.5 · 候选发布7dc8b7e5b121d2b2499a2273bebff29e2cd86812e73de411caa4934daa458e0b1900fa1d9ad25f3696d6e2486f5f2d4c43ca2c4855684ea04c1776242999eed1cdf4436dcc84b800f551d18f2f42c27b31fa3152asl/scalar/bru/SETC.OR.aslasl/scalar/bru/SETC.OR.aslasl/scalar/bru/SETC.OR.asl