riscemu icon indicating copy to clipboard operation
riscemu copied to clipboard

Support for pseudoops

Open tobiasgrosser opened this issue 3 years ago • 3 comments

I just realized riscemu does not support seqz, snez, sltz and slez. These and the other pseudoinstructions documents in the RISCV manual would be really useful.

tobiasgrosser avatar Jan 31 '22 07:01 tobiasgrosser

Great catch!

Some pseudonyms are already implemented, I think I'll ad a separate "instruction set" which contains all pseudonyms, so they can be included or excluded as needed.

AntonLydike avatar Feb 03 '22 09:02 AntonLydike

So much real world code contains pseudoinstructions so this feature would be very useful. :)

bjourne avatar Aug 21 '24 10:08 bjourne

Thanks for the poke @bjourne, this appears to be a relatively straight-forward thing to implement. I'm happy to give feedback on a PR on this, if anyone decides to tackle the problem, or implement it myself when I find the time.

I guess a good first step would be to get a list of all pseudoinstructions from the manual?

AntonLydike avatar Aug 30 '24 07:08 AntonLydike