Source/Packages

Accelerator.SM90.InstructionEncoding

packages/hardware/architectures/nvidia-sm90/src/Accelerator/SM90/InstructionEncoding.alpha

500 lines73 declarations29.3 KiBSHA-256 6893fe9ca611

def · lines 82–83

sm90ControlFits

Full file
The control fits its field. The encoder admits every control that fits, as the hardware's decoder does: nvdisasm's grammar is stricter (it rejects a store or BRA that names a write scoreboard, a BRA with a read scoreboard, and a yield with stall 0 or 15 -- reference/oracles/ nvidia-sm90-ptxas/global-branch/README.md), but the RTX 3070 runs such words from the SM86 encoders, so refusing them here would change what an SM86 program means rather than how it is encoded. Whether a control is sound is the scoreboard model's question (Accelerator.SM86.Operands and the checked machine models), not the encoder's.
82def sm90ControlFits = (lambda unrestricted control : SM86Control .
83  nat-less-than (sm90ControlBits control) sm90ControlSpan)

The compiler supplied declaration spans and resolved links from this source snapshot. This page does not assert that this file belongs to a checked closure.