uxmal / reko

Reko is a binary decompiler.
https://uxmal.github.io/reko
GNU General Public License v2.0
2.09k stars 250 forks source link

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

Closed gregoral closed 5 months ago

gregoral commented 5 months ago

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

gregoral commented 5 months ago

Resolved by: #1328 Closing issue.