riscv / riscv-bitmanip

Working draft of the proposed RISC-V Bitmanipulation extension

Home Page:https://jira.riscv.org/browse/RVG-122

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Multiple OR / Multiple XOR (MMIX)

zzo38 opened this issue · comments

commented

What I think would be more useful is the MOR and MXOR instructions of MMIX (only on 64-bit computers); it would be useful for many things that currently other instructions are needed for. Some of the existing things in this extension can be done by MOR and MXOR already, and it is useful for other thing, too. For example, endianness swap (including PDP-endian, and shift at same time if desired), reverse bits, fan out a number (instead of using multiplication), etc.