From a66ca4c56e56f3f3b4b3d6cf75e64c45db455b85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Mei=C3=9Fner?= Date: Thu, 20 Jul 2023 20:58:08 +0100 Subject: [PATCH] Adds test_lduw. --- tests/execution.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/execution.rs b/tests/execution.rs index 9009fd0b..71f84296 100644 --- a/tests/execution.rs +++ b/tests/execution.rs @@ -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!(