Skip to content

Commit bf4bf0d

Browse files
TheCowboyHermitmairaw
authored andcommitted
Fixed clt opcode page (#2230)
The stack transitional order is messed up that you can see the problem from here: https://docs.microsoft.com/en-us/dotnet/api/system.reflection.emit.opcodes.clt?view=netframework-4.7.2
1 parent 1e07a61 commit bf4bf0d

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

xml/System.Reflection.Emit/OpCodes.xml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2722,13 +2722,15 @@
27222722
|------------|---------------------|-----------------|
27232723
|FE 04|clt|Pushes 1 if `value1` is less than `value2`; else pushes 0.|
27242724

2725-
The stack transitional behavior, in sequential order, is: `value1` is pushed onto the stack.
2725+
The stack transitional behavior, in sequential order, is:
2726+
2727+
1. `value1` is pushed onto the stack.
27262728

2727-
1. `value2` is pushed onto the stack.
2729+
2. `value2` is pushed onto the stack.
27282730

2729-
2. `value2` and `value1` are popped from the stack; `clt` tests if `value1` is less than `value2`.
2731+
3. `value2` and `value1` are popped from the stack; `clt` tests if `value1` is less than `value2`.
27302732

2731-
3. If `value1` is less than `value2`, 1 is pushed onto the stack; otherwise 0 is pushed onto the stack.
2733+
4. If `value1` is less than `value2`, 1 is pushed onto the stack; otherwise 0 is pushed onto the stack.
27322734

27332735
The `clt` instruction compares `value1` and `value2`. If `value1` is strictly less than `value2`, then an `int32` value of 1 is pushed on the stack. Otherwise, an `int32` value of 0 is pushed on the stack.
27342736

@@ -14216,4 +14218,4 @@ callvirt m
1421614218
</Docs>
1421714219
</Member>
1421814220
</Members>
14219-
</Type>
14221+
</Type>

0 commit comments

Comments
 (0)