Removed wrong spaces
This commit is contained in:
parent
89aaa4e821
commit
4438218d33
@ -68,7 +68,7 @@ pub fn print(ins: Instruction, pc: i32) -> String { //TODO pc should be u64
|
||||
}
|
||||
},
|
||||
RISCV_LUI => {
|
||||
format!("lui\t{}, 0x{:x}", REG_X[rd], ins.imm31_12)
|
||||
format!("lui\t{},{:x}", REG_X[rd], ins.imm31_12)
|
||||
},
|
||||
RISCV_AUIPC => {
|
||||
format!("auipc\t{},{:x}", REG_X[rd], ins.imm31_12)
|
||||
@ -174,8 +174,8 @@ mod test {
|
||||
fn test_lui() {
|
||||
let lui = decode::decode(0b01110001000011111000_11100_0110111);
|
||||
let lui_negatif = decode::decode(0b11110001000011111000_11100_0110111);
|
||||
assert_eq!("lui\tt3, 0x710f8000", print::print(lui, 0));
|
||||
assert_eq!("lui\tt3, 0xf10f8000", print::print(lui_negatif, 0));
|
||||
assert_eq!("lui\tt3,710f8000", print::print(lui, 0));
|
||||
assert_eq!("lui\tt3,f10f8000", print::print(lui_negatif, 0));
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
Loading…
Reference in New Issue
Block a user