Re:Ratification of the RISC-V Base ISA and Privileged Archit...
by cesarb on Wednesday July 10, 2019 @04:57PM
(#20406472)
> 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.
Re:Ratification of the RISC-V Base ISA and Privileged Archit...
by nsajko on Wednesday July 10, 2019 @05:07PM
(#20406559)
Fun fact: riscv does not even have a machine not instruction. In assembly it is just an alias for xori.
Re:Ratification of the RISC-V Base ISA and Privileged Archit...
by Vogtinator on Thursday July 11, 2019 @02:57AM
(#20409628)
Fun fact, neither does AArch64, it uses ORRN with xzr instead.
Has there been any discussion on this matter on risc-v mailing lists or somewhere? If the RISC-V Base ISA is now ratified, I think it is too late to change such things.
Edit: seems to be too late. According to [0], SLTx instructions "set the destination register to one or zero depending on whether the relation is true or not."
[0] https://www.imperialviolet.org/2016/12/31/riscv.html