Skip to content

Commit

Permalink
Merge pull request #61 from cuonglm/cuonglm/fix-wrong-arm64-scaled-re…
Browse files Browse the repository at this point in the history
…gister-format

Fix wrong arm64 scaled register format
  • Loading branch information
nigeltao committed May 2, 2021
2 parents 674baa8 + b46926b commit 33fc3d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions encode_arm64.s
Expand Up @@ -382,7 +382,7 @@ inner0:

// if load32(src, s) != load32(src, candidate) { continue } break
MOVW 0(R7), R3
MOVW (R6)(R15*1), R4
MOVW (R6)(R15), R4
CMPW R4, R3
BNE inner0

Expand Down Expand Up @@ -672,7 +672,7 @@ inlineEmitCopyEnd:
MOVHU R3, 0(R17)(R11<<1)

// if uint32(x>>8) == load32(src, candidate) { continue }
MOVW (R6)(R15*1), R4
MOVW (R6)(R15), R4
CMPW R4, R14
BEQ inner1

Expand Down

0 comments on commit 33fc3d5

Please sign in to comment.