Skip to content

Commit

Permalink
Merge pull request #27 from khei4/fix-typo
Browse files Browse the repository at this point in the history
fix typo on test comment assembler
  • Loading branch information
d0iasm authored Oct 1, 2023
2 parents 07994c5 + fa432e9 commit 1e0eaa5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/rv32i.rs
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ fn or_rd_rs1_rs2() {
let data = vec![
0x13, 0x08, 0x30, 0x00, // addi x16, x0, 3
0x93, 0x08, 0x50, 0x00, // addi x17, x0, 5
0x33, 0x69, 0x18, 0x01, // xor x18, x16, x17
0x33, 0x69, 0x18, 0x01, // or x18, x16, x17
];
let expected_xregs = helper::create_xregs(vec![(16, 3), (17, 5), (18, 7)]);
let expected_fregs = helper::create_fregs(vec![]);
Expand Down Expand Up @@ -476,7 +476,7 @@ fn blt_rs1_rs2_imm() {
let data = vec![
0x13, 0x08, 0xd0, 0xff, // addi x16, x0, -3
0x93, 0x08, 0x50, 0x00, // addi x17, x0, 5
0x63, 0x46, 0x18, 0x01, // blt x16, x17, -8
0x63, 0x46, 0x18, 0x01, // blt x16, x17, 12
];
let expected_xregs = helper::create_xregs(vec![(16, -3i64 as u64), (17, 5)]);
let expected_fregs = helper::create_fregs(vec![]);
Expand Down

0 comments on commit 1e0eaa5

Please sign in to comment.