uxmal / reko

Reko is a binary decompiler.

Home Page:https://uxmal.github.io/reko

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RISC-V: missing c.slli64, c.srai64, c.srli64 hint instructions

gregoral opened this issue · comments

Reko does not properly recognize and decompile the following hint instructions:

c.slli64
c.srai64
c.srli64

These are supposed to be special variants of c.slli, c.srai, c.srli when the immediate value is 0.
In effect this instruction then becomes a nop and has its own mnemonic.

I've opened a pull request with support for these 3 hint instructions.
Pull request: #1328

Resolved by: #1328
Closing issue.