Skip to content

Commit

Permalink
Adds test_far_jumps()
Browse files Browse the repository at this point in the history
  • Loading branch information
Lichtso committed May 20, 2024
1 parent dae52e0 commit 8f548b4
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions tests/execution.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2801,6 +2801,29 @@ fn test_err_exit_capped() {
);
}

#[test]
fn test_far_jumps() {
test_interpreter_and_jit_asm!(
"
call function_c
exit
function_a:
exit
function_b:
.fill 1024, 0x0F
exit
function_c:
mov32 r1, 0x00000010
hor64 r1, 0x00000001
callx r1
exit",
[],
(),
TestContextObject::new(7),
ProgramResult::Ok(0),
);
}

// Symbols and Relocation

#[test]
Expand Down

0 comments on commit 8f548b4

Please sign in to comment.