Source/Packages

Accelerator.SM90.InstructionEncoding

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

500 lines73 declarations29.3 KiBSHA-256 6893fe9ca611

def · lines 258–272

sm90EncodeReduceGlobalAddFloat32

Full file
258def sm90EncodeReduceGlobalAddFloat32 =
259  (lambda unrestricted guard : SM86InstructionGuard .
260  unrestricted address : SM86Register .
261  unrestricted value : SM86Register .
262  unrestricted offset : Nat .
263  unrestricted control : SM86Control .
264    then (sm90Require (sm90RegisterGroupAdmitted 2 address) SM90RefusalAddressUnaligned)
265    (sm90Require (nat-less-than offset sm90GlobalOffsetLimit) SM90RefusalGlobalOffsetOutOfRange)
266    (sm90Require (sm90ControlFits control) SM90RefusalControlOutOfRange)
267      (sm90Emit
268        (nest nat-add (sm90HeaderLow sm90OpcodeReduceGlobal guard)
269        (sm90Put (sm90RegisterNumber address) sm90SourcePlace)
270        (sm90Put (sm90RegisterNumber value) sm90SecondSourcePlace)
271          (sm90Put offset sm90GlobalOffsetPlace)))
272        (nat-add (sm90HeaderHigh control)) sm90ReduceGlobalAddFloat32Fixed)

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.