DADD, DMUL and DFMA (NAK's OpDAdd, OpDMul and OpDFma): the rounding at 78-79. DADD's second source is in c's place (NAK encodes it with no b), DMUL's in b's. One game's map draws the Depths with vertex programs that take each position to doubles (F2F.F64), add and scale it by constant pairs (DADD R40, R24, c[1][0x18], DFMA R24, R60, c[1][0x8], R38), and round it back to floats: refused, those draws were skipped. Only the rounding to nearest is translated, and an immediate (whose 32 bits are a double's high word) is refused
function D_check(two : Operand) -> unit = {
if not_bool(Float64()) then throw(Unsupported("%s on a device without doubles", OpName()));
if UInt(Field(78, 2)) != 0 then throw(Unsupported("%s rounding %u", OpName(), UInt(Field(78, 2))));
if SrcIsImm(A) | SrcIsImm(two) then throw(Unsupported("%s with an immediate", OpName()))
}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.