Lines Matching refs:mem
236 let mem = &[0xaa, 0xbb, 0x11, 0x22, 0xcc, 0xdd]; in test_vm_mbuff() localVariable
242 data.write_unaligned(mem.as_ptr() as u64); in test_vm_mbuff()
243 data_end.write_unaligned(mem.as_ptr() as u64 + mem.len() as u64); in test_vm_mbuff()
247 assert_eq!(vm.execute_program(mem, &mbuff).unwrap(), 0x2211); in test_vm_mbuff()
270 let mem = &[0xaa, 0xbb, 0x11, 0x22, 0xcc, 0xdd]; in test_vm_mbuff_with_rust_api() localVariable
276 *data = mem.as_ptr() as u64; in test_vm_mbuff_with_rust_api()
277 *data_end = mem.as_ptr() as u64 + mem.len() as u64; in test_vm_mbuff_with_rust_api()
281 assert_eq!(vm.execute_program(mem, &mbuff).unwrap(), 0x2211); in test_vm_mbuff_with_rust_api()
294 let mem = &mut [0xaa, 0xbb, 0x11, 0x22, 0xcc, 0xdd]; in test_jit_mbuff() localVariable
300 *data = mem.as_ptr() as u64; in test_jit_mbuff()
301 *data_end = mem.as_ptr() as u64 + mem.len() as u64; in test_jit_mbuff()
307 assert_eq!(vm.execute_program_jit(mem, &mut mbuff).unwrap(), 0x2211); in test_jit_mbuff()
318 let mem = &mut [ in test_vm_jit_ldabsb() localVariable
323 assert_eq!(vm.execute_program(mem).unwrap(), 0x33); in test_vm_jit_ldabsb()
327 assert_eq!(vm.execute_program_jit(mem).unwrap(), 0x33); in test_vm_jit_ldabsb()
338 let mem = &mut [ in test_vm_jit_ldabsh() localVariable
343 assert_eq!(vm.execute_program(mem).unwrap(), 0x4433); in test_vm_jit_ldabsh()
347 assert_eq!(vm.execute_program_jit(mem).unwrap(), 0x4433); in test_vm_jit_ldabsh()
358 let mem = &mut [ in test_vm_jit_ldabsw() localVariable
363 assert_eq!(vm.execute_program(mem).unwrap(), 0x66554433); in test_vm_jit_ldabsw()
367 assert_eq!(vm.execute_program_jit(mem).unwrap(), 0x66554433); in test_vm_jit_ldabsw()
378 let mem = &mut [ in test_vm_jit_ldabsdw() localVariable
383 assert_eq!(vm.execute_program(mem).unwrap(), 0xaa99887766554433); in test_vm_jit_ldabsdw()
387 assert_eq!(vm.execute_program_jit(mem).unwrap(), 0xaa99887766554433); in test_vm_jit_ldabsdw()
398 let mem = &mut [ in test_vm_err_ldabsb_oob() localVariable
403 vm.execute_program(mem).unwrap(); in test_vm_err_ldabsb_oob()
428 let mem = &mut [ in test_vm_jit_ldindb() localVariable
433 assert_eq!(vm.execute_program(mem).unwrap(), 0x88); in test_vm_jit_ldindb()
437 assert_eq!(vm.execute_program_jit(mem).unwrap(), 0x88); in test_vm_jit_ldindb()
448 let mem = &mut [ in test_vm_jit_ldindh() localVariable
453 assert_eq!(vm.execute_program(mem).unwrap(), 0x9988); in test_vm_jit_ldindh()
457 assert_eq!(vm.execute_program_jit(mem).unwrap(), 0x9988); in test_vm_jit_ldindh()
468 let mem = &mut [ in test_vm_jit_ldindw() localVariable
473 assert_eq!(vm.execute_program(mem).unwrap(), 0x88776655); in test_vm_jit_ldindw()
477 assert_eq!(vm.execute_program_jit(mem).unwrap(), 0x88776655); in test_vm_jit_ldindw()
488 let mem = &mut [ in test_vm_jit_ldinddw() localVariable
493 assert_eq!(vm.execute_program(mem).unwrap(), 0xccbbaa9988776655); in test_vm_jit_ldinddw()
497 assert_eq!(vm.execute_program_jit(mem).unwrap(), 0xccbbaa9988776655); in test_vm_jit_ldinddw()
508 let mem = &mut [ in test_vm_err_ldindb_oob() localVariable
513 vm.execute_program(mem).unwrap(); in test_vm_err_ldindb_oob()