Source/Packages

Accelerator.SM86.InstructionEncoding

packages/hardware/architectures/nvidia-sm86/src/Accelerator/SM86/InstructionEncoding.alpha

2,937 lines191 declarations105.3 KiBSHA-256 0462dcc8328a

def · lines 729–751

sm86EncodeFloatConvert

Full file
F2F register form, src at bits 32..39, width codes log2(bytes), RNE at 78..79 and FTZ at 80 both zero. Source: OpF2F and encode_alu_base, Mesa revision 61a2e907f1d6e4a8432d91d0fde5d439a875fbbe (link above).
729def sm86EncodeFloatConvert =
730  (lambda unrestricted guard : SM86InstructionGuard .
731    unrestricted conversion : SM86FloatConversion .
732    unrestricted control : SM86Control .
733    nat-eliminate
734      (lambda unrestricted valid : Nat . SM86InstructionEncodingResult)
735      (sm86InstructionUnsupported 65)
736      (lambda unrestricted predecessor : Nat .
737        unrestricted ignored : SM86InstructionEncodingResult .
738        then (sm86EncodeInstructionFields 0x310 guard control)
739          (sm86InstructionPrependField
740            16
741            8
742            (sm86RegisterNatural (sm86FloatConversionDestination conversion)))
743          (sm86InstructionPrependField
744            32
745            8
746            (sm86RegisterNatural (sm86FloatConversionSource conversion)))
747          (sm86InstructionPrependField 75 2 (sm86FloatConversionDestinationSize conversion))
748          (sm86InstructionOneField 84 2)
749          sm86FloatConversionSourceSize
750          conversion)
751      (sm86FloatConversionAdmitted conversion))

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.