Bit Operation¶
Ch 12
ALU — Arithmetic Logic Unit |
**Group:** Bit Operation |
**Forms:** 8 |
**Unique mnemonics:** 8
Bit manipulation operations (scalar forms).
Instructions¶
| Mnemonic | Assembly | Length | Decode | Description |
|---|---|---|---|---|
| BCNT | bcnt srcL, M, N, ->{t, u, Rd} |
32 | — | Population count. Counts the number of set bits in a register. |
| BIC | bic SrcL, M, N, ->{t, u, Rd} |
32 | — | Bit clear / AND-NOT. |
| BIS | bis SrcL, M, N, ->{t, u, Rd} |
32 | — | Bit set / OR. |
| BXS | bxs SrcL, M, N, ->{t, u, Rd} |
32 | — | Bit-field extract signed. |
| BXU | bxu SrcL, M, N, ->{t, u, Rd} |
32 | — | Bit-field extract unsigned. |
| CLZ | clz SrcL, M, N, ->{t, u, Rd} |
32 | — | Count leading zeros. |
| CTZ | ctz SrcL, M, N, ->{t, u, Rd} |
32 | — | Count trailing zeros. |
| REV | rev SrcL, M, N, ->{t, u, Rd} |
32 | — | Bit-reversal operation. |