fix(asm): encode BSF, BSR and POPCNT

Assisted-by: GLM 5.3
This commit is contained in:
2026-08-24 20:19:34 +02:00
parent 5e06d6a6aa
commit b08005753e
3 changed files with 33 additions and 11 deletions
+1 -1
View File
@@ -95,7 +95,7 @@ func (e *enc) encode(mnem string, ops []Operand) error {
return e.encodePushPop(ops, true)
case "POP":
return e.encodePushPop(ops, false)
case "LZCNT", "TZCNT":
case "BSF", "BSR", "LZCNT", "TZCNT", "POPCNT":
return e.encodeCount(base, ops, size)
case "MOVBLZX", "MOVBQZX", "MOVWLZX", "MOVWQZX", "MOVWLSX", "MOVLQSX":
return e.encodeMovExtend(base, ops)