Skip to content

Commit

Permalink
Adds test_lduw.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lichtso committed Jul 20, 2023
1 parent 163214f commit a66ca4c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/execution.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1303,6 +1303,20 @@ fn test_err_instruction_count_lddw_capped() {

// BPF_LD : Loads

#[test]
fn test_lduw() {
test_interpreter_and_jit_asm!(
"
lduw r0, 0x10203040
lduw r0, 0x01020304
exit",
[],
(),
TestContextObject::new(3),
ProgramResult::Ok(0x1122334400000000),
);
}

#[test]
fn test_ldxb() {
test_interpreter_and_jit_asm!(
Expand Down

0 comments on commit a66ca4c

Please sign in to comment.