Skip to content

Commit

Permalink
Fix MoveMbrR instruction sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
guillep committed May 2, 2023
1 parent c7d8034 commit 5ea6166
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions smalltalksrc/VMMaker/CogARMv8Compiler.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -1193,8 +1193,8 @@ CogARMv8Compiler >> computeMaximumSize [
ifTrue: [:u :i | 4]
ifFalse: [self notYetImplemented. self literalLoadInstructionBytes + 4]].
[MoveMbrR] -> [^self is9BitValue: (operands at: 0)
ifTrue: [:value | 8 "2 instrutions" ]
ifFalse: [ self literalLoadInstructionBytes + 4 ]].
ifTrue: [:value | 4 ]
ifFalse: [ 8 ]].

[MoveRM8r] -> [^self is12BitValue: (operands at: 1)
ifTrue: [:u :i | 4]
Expand Down

0 comments on commit 5ea6166

Please sign in to comment.