ajout de l'instruction andi
This commit is contained in:
parent
632702421b
commit
c1e188df22
@ -288,6 +288,8 @@ mod test {
|
|||||||
let sltiu = decode::decode(0b0000000000_10001_011_11100_0010011);
|
let sltiu = decode::decode(0b0000000000_10001_011_11100_0010011);
|
||||||
let xori = decode::decode(0b_0000000000010001_100_11100_0010011);
|
let xori = decode::decode(0b_0000000000010001_100_11100_0010011);
|
||||||
let ori = decode::decode(0b00000000000_10001_110_11100_0010011);
|
let ori = decode::decode(0b00000000000_10001_110_11100_0010011);
|
||||||
|
let andi = decode::decode(0b000000000000_10001_111_11100_0010011);
|
||||||
|
assert_eq!("andi x28, x17, 0", print::print(andi, 0));
|
||||||
assert_eq!("addi x28, x17, 0", print::print(addi, 0));
|
assert_eq!("addi x28, x17, 0", print::print(addi, 0));
|
||||||
assert_eq!("slli x28, x17, 0", print::print(slli, 0));
|
assert_eq!("slli x28, x17, 0", print::print(slli, 0));
|
||||||
assert_eq!("slti x28, x17, 0", print::print(slti, 0));
|
assert_eq!("slti x28, x17, 0", print::print(slti, 0));
|
||||||
@ -324,4 +326,6 @@ mod test {
|
|||||||
assert_eq!("lwu x28, 1520(x17)", print::print(lwu, 0));
|
assert_eq!("lwu x28, 1520(x17)", print::print(lwu, 0));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user