Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
cesarb
on July 10, 2019
|
parent
|
context
|
favorite
| on:
Ratification of the RISC-V Base ISA and Privileged...
> 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
on July 10, 2019
[–]
Fun fact: riscv does not even have a machine
not
instruction. In assembly it is just an alias for
xori
.
Vogtinator
on July 11, 2019
|
parent
[–]
Fun fact, neither does AArch64, it uses ORRN with xzr instead.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
You can already do that: use XORI with immediate 1 to toggle.