Skip to content

Commit 378956d

Browse files
authored
compiler(arm64): fixes B.cond offset limits (#2183)
Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
1 parent a0fbb18 commit 378956d

File tree

1 file changed

+2
-2
lines changed
  • internal/engine/wazevo/backend/isa/arm64

1 file changed

+2
-2
lines changed

internal/engine/wazevo/backend/isa/arm64/machine.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -391,8 +391,8 @@ const (
391391
maxSignedInt26 = 1<<25 - 1
392392
minSignedInt26 = -(1 << 25)
393393

394-
maxSignedInt19 = 1<<19 - 1
395-
minSignedInt19 = -(1 << 19)
394+
maxSignedInt19 = 1<<18 - 1
395+
minSignedInt19 = -(1 << 18)
396396
)
397397

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

0 commit comments

Comments
 (0)