From 8f548b4b1db690f129ff3c433f6d1532e6aa1eb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Mei=C3=9Fner?= Date: Mon, 20 May 2024 21:31:01 +0000 Subject: [PATCH] Adds test_far_jumps() --- tests/execution.rs | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/tests/execution.rs b/tests/execution.rs index 2f643755..e763bc10 100644 --- a/tests/execution.rs +++ b/tests/execution.rs @@ -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]