Skip to content

Commit

Permalink
compiler(arm64): fixes B.cond limits
Browse files Browse the repository at this point in the history
Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
  • Loading branch information
mathetake committed Apr 15, 2024
1 parent a0fbb18 commit 023e216
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/engine/wazevo/backend/isa/arm64/machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -391,8 +391,8 @@ const (
maxSignedInt26 = 1<<25 - 1
minSignedInt26 = -(1 << 25)

maxSignedInt19 = 1<<19 - 1
minSignedInt19 = -(1 << 19)
maxSignedInt19 = 1<<18 - 1
minSignedInt19 = -(1 << 18)
)

func (m *machine) insertConditionalJumpTrampoline(cbr *instruction, currentBlk *labelPosition, nextLabel label) {
Expand Down

0 comments on commit 023e216

Please sign in to comment.