Lds

sm86.sail

LDS, STS, LDL and STL: the uniform register is there with bit 91 alone, as CuAssembler's sm_86 encodings show: at 32 for a load, at 64 for a store, whose data is at 32

function Lds(load : bool, local : bool) -> unit = {
    let ur = if Field(91, 1) == 0b1 then (if load then UInt(Field(32, 6)) else UInt(Field(64, 6))) else URZ;
    StackAddress(ur);
    let buffer = if local then MEM_LOCAL() else 0;
    if not_bool(local) then SharedVar();
    if load then MemLoad(buffer, UInt(Field(73, 3)), Dst()) else MemStore(buffer, UInt(Field(73, 3)), UInt(Field(32, 8)))
}

Used by


Made from ScarletNX's Sail at 166ad3910f80. The Sail and the encodings' file are ScarletNX's (GPL-3.0-or-later); its encodings are from Mesa's NAK (sm70_encode.rs, MIT) and CuAssembler's sm_86 records.