Test case
use raki::{BaseIOpcode, Decode, Instruction, Isa, OpcodeKind};
fn example() {
let inst_bytes: u32 = 0x00001597;
let inst: Instruction = match inst_bytes.decode(Isa::Rv64) {
Ok(inst) => inst,
Err(e) => panic!("decoding failed due to {e:?}"),
};
println!("{inst}"); // auipc a1, 0x1000
}
rvcodec.js reports that it is supposed to be aiupc a1, 0x1, https://luplab.gitlab.io/rvcodecjs/#q=0x00001597&abi=false&isa=AUTO
Test case
rvcodec.js reports that it is supposed to be
aiupc a1, 0x1, https://luplab.gitlab.io/rvcodecjs/#q=0x00001597&abi=false&isa=AUTO