274def sm90EncodeCopyGlobalToShared =
275 (lambda unrestricted guard : SM86InstructionGuard .
276 unrestricted address : SM86Register .
277 unrestricted offset : Nat .
278 unrestricted source : SM86Register .
279 unrestricted sourceOffset : Nat .
280 unrestricted control : SM86Control .
281 then (sm90Require (sm90RegisterGroupAdmitted 2 source) SM90RefusalAddressUnaligned)
282 (sm90Require
283 (naturalAnd (nat-less-than sourceOffset sm90CopySourceOffsetLimit) (nat-less-than offset sm90CopySharedOffsetLimit))
284 SM90RefusalCopyOffsetOutOfRange)
285 (sm90Require (sm90ControlFits control) SM90RefusalControlOutOfRange)
286 (sm90Emit
287 (nest nat-add (sm90HeaderLow sm90OpcodeCopyGlobalToShared guard)
288 (sm90Put (sm90RegisterNumber address) sm90DestinationPlace)
289 (sm90Put (sm90RegisterNumber source) sm90SourcePlace)
290 (sm90Put sourceOffset sm90SecondSourcePlace)
291 (sm90Put offset sm90CopySharedOffsetPlace)))
292 (nat-add (sm90HeaderHigh control)) sm90CopyGlobalToSharedFixed)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.