2 ms·
> And the motivation is maybe to be able to toggle boolean values with one instruction? You can already do that: use XORI with immediate 1 to toggle.
by cesarb 7y ago
> And the motivation is maybe to be able to toggle boolean values with one instruction?
You can already do that: use XORI with immediate 1 to toggle.
- nsajko 7y agoFun fact: riscv does not even have a machine not instruction. In assembly it is just an alias for xori.
- Vogtinator 7y agoFun fact, neither does AArch64, it uses ORRN with xzr instead.