Skip to content

Commit

Permalink
fix:(encoder) incorrectly pass pv due to wrongly use BTC instead of…
Browse files Browse the repository at this point in the history
… `BTS`
  • Loading branch information
AsterDY committed Oct 29, 2024
1 parent 8bfed73 commit 9a15fa2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/encoder/x86/assembler_regabi_amd64.go
Original file line number Diff line number Diff line change
Expand Up @@ -1050,8 +1050,9 @@ func (self *Assembler) _asm_OP_recurse(p *ir.Instr) {
self.Emit("MOVQ", _ST, _DI) // MOVQ ST, DI
self.Emit("MOVQ", _ARG_fv, _SI) // MOVQ $fv, SI
if pv {
self.Emit("BTCQ", jit.Imm(alg.BitPointerValue), _SI) // BTCQ $1, SI
self.Emit("BTSQ", jit.Imm(alg.BitPointerValue), _SI) // BTSQ $1, SI
}

self.call_encoder(_F_encodeTypedPointer) // CALL encodeTypedPointer
self.Emit("TESTQ", _ET, _ET) // TESTQ ET, ET
self.Sjmp("JNZ", _LB_error) // JNZ _error
Expand Down

0 comments on commit 9a15fa2

Please sign in to comment.