yuyang-ok commented on issue #5595:
by the way.
how to get disassembly easy.
@afonso360like blow.
Disassembly of 28 bytes:
0: 63 46 c6 00 blt a2, a2, 0xc
4: 63 18 c6 00 bne a2, a2, 0x10
8: 63 f6 b5 00 bgeu a1, a1, 0xc
c: 13 e5 05 00 ori a0, a1, 0
10: 6f 00 80 00 j 8
14: 13 e5 05 00 ori a0, a1, 0
18: 67 80 00 00 ret
afonso360 commented on issue #5595:
:wave: Hey! I use
clif-util compile
to get those disassembled examples. So, something along the lines ofcargo run -- compile -D --target riscv64 ./testcase.clif
in the cranelift directory.
Last updated: Dec 23 2024 at 12:05 UTC