HalfOf

sm86.sail

the half a 16-bit source names (bit 60), with b's modifiers: MUFU.F16's and F2I's

function HalfOf(s : Operand) -> bits(32) = {
    let x = Half2At(UnpackHalf2(SrcBits(s)), UInt(Field(60, 1)));
    let absed = if SrcAbsRaw(s) then FAbs(x) else x;
    if SrcNegRaw(s) then FNeg(absed) else absed
}

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.