85def sm90LowerBranch =
86 (lambda unrestricted guard : SM86InstructionGuard .
87 unrestricted offset : SM86Unsigned32 .
88 unrestricted descriptor : SM86Unsigned32 .
89 unrestricted control : SM86Control .
90 let unrestricted displacement = (sm86Unsigned32Natural offset) in
91 let unrestricted sign = (sm86Unsigned32Natural descriptor) in
92 sm90Choose NvidiaInstructionRealization
93 (naturalAnd (naturalEqual sign sm90ForwardDescriptor) (nat-less-than displacement sm90SignBit32))
94 (sm90RealizeEncoding (sm90EncodeBranch guard (constructor SM90BranchTarget SM90BranchForward displacement) control))
95 (sm90Choose NvidiaInstructionRealization
96 (naturalAnd (naturalEqual sign sm90BackwardDescriptor) (naturalLessOrEqual sm90SignBit32 displacement))
97 (sm90RealizeEncoding (sm90EncodeBranch guard
98 (constructor SM90BranchTarget SM90BranchBackward (nat-subtract sm90Modulus32 displacement)) control))
99 (sm90InstructionRefused b"an SM86 BRA's descriptor is not its displacement's sign extension")))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.