Skip to content

bug: AUIPC instruction not properly decoded #37

@pandaninjas

Description

@pandaninjas

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions