Lines Matching refs:execute_program

39     assert_eq!(vm.execute_program().unwrap(), 0x3);  in test_vm_add()
68 assert_eq!(vm.execute_program().unwrap(), 0x2a); in test_vm_alu64_arith()
101 assert_eq!(vm.execute_program().unwrap(), 0x11); in test_vm_alu64_bit()
130 assert_eq!(vm.execute_program().unwrap(), 0x2a); in test_vm_alu_arith()
161 assert_eq!(vm.execute_program().unwrap(), 0x11); in test_vm_alu_bit()
175 assert_eq!(vm.execute_program().unwrap(), 0x4); in test_vm_arsh32_high_shift()
189 assert_eq!(vm.execute_program().unwrap(), 0xffff8000); in test_vm_arsh()
205 assert_eq!(vm.execute_program().unwrap(), 0xfffffffffffffff8); in test_vm_arsh64()
220 assert_eq!(vm.execute_program().unwrap(), 0xffff8000); in test_vm_arsh_reg()
234 assert_eq!(vm.execute_program().unwrap(), 0xffffffff80000000); in test_vm_arsh_imm_overflow()
249 assert_eq!(vm.execute_program().unwrap(), 0xf800000000000000); in test_vm_arsh_reg_overflow()
263 assert_eq!(vm.execute_program().unwrap(), 0xffff8000); in test_vm_arsh32_imm_overflow()
278 assert_eq!(vm.execute_program().unwrap(), 0x80000000); in test_vm_arsh32_reg_overflow()
292 assert_eq!(vm.execute_program(mem).unwrap(), 0x1122); in test_vm_be16()
306 assert_eq!(vm.execute_program(mem).unwrap(), 0x1122); in test_vm_be16_high()
320 assert_eq!(vm.execute_program(mem).unwrap(), 0x11223344); in test_vm_be32()
334 assert_eq!(vm.execute_program(mem).unwrap(), 0x11223344); in test_vm_be32_high()
348 assert_eq!(vm.execute_program(mem).unwrap(), 0x1122334455667788); in test_vm_be64()
366 assert_eq!(vm.execute_program().unwrap(), 0x0102030405); in test_vm_call()
385 assert_eq!(vm.execute_program(mem).unwrap(), 0x102292e2f2c0708); in test_vm_call_memfrob()
421 assert_eq!(vm.execute_program().unwrap(), 0x3); in test_vm_div32_high_divisor()
434 assert_eq!(vm.execute_program().unwrap(), 0x3); in test_vm_div32_imm()
448 assert_eq!(vm.execute_program().unwrap(), 0x3); in test_vm_div32_reg()
462 assert_eq!(vm.execute_program().unwrap(), 0x300000000); in test_vm_div64_imm()
477 assert_eq!(vm.execute_program().unwrap(), 0x300000000); in test_vm_div64_reg()
491 assert_eq!(vm.execute_program().unwrap(), 0x3); in test_vm_early_exit()
514 vm.execute_program().unwrap(); in test_vm_err_call_unreg()
527 assert_eq!(vm.execute_program().unwrap(), 0x0); in test_vm_div64_by_zero_imm()
540 assert_eq!(vm.execute_program().unwrap(), 0x0); in test_vm_div_by_zero_imm()
553 assert_eq!(vm.execute_program().unwrap(), 0x1); in test_vm_mod64_by_zero_imm()
566 assert_eq!(vm.execute_program().unwrap(), 0x1); in test_vm_mod_by_zero_imm()
580 assert_eq!(vm.execute_program().unwrap(), 0x0); in test_vm_mod_by_zero_reg_long()
594 assert_eq!(vm.execute_program().unwrap(), 0x0); in test_vm_div64_by_zero_reg()
608 assert_eq!(vm.execute_program().unwrap(), 0x0); in test_vm_div_by_zero_reg()
622 assert_eq!(vm.execute_program().unwrap(), 0x0); in test_vm_div_by_zero_reg_long()
636 assert_eq!(vm.execute_program().unwrap(), 0x1); in test_vm_mod64_by_zero_reg()
650 assert_eq!(vm.execute_program().unwrap(), 0x1); in test_vm_mod_by_zero_reg()
663 vm.execute_program().unwrap(); in test_vm_err_stack_out_of_bound()
675 assert_eq!(vm.execute_program().unwrap(), 0x0); in test_vm_exit()
689 assert_eq!(vm.execute_program().unwrap(), 0x1); in test_vm_ja()
707 assert_eq!(vm.execute_program().unwrap(), 0x1); in test_vm_jeq_imm()
726 assert_eq!(vm.execute_program().unwrap(), 0x1); in test_vm_jeq_reg()
744 assert_eq!(vm.execute_program().unwrap(), 0x1); in test_vm_jge_imm()
763 assert_eq!(vm.execute_program().unwrap(), 0x1); in test_vm_jle_imm()
784 assert_eq!(vm.execute_program().unwrap(), 0x1); in test_vm_jle_reg()
802 assert_eq!(vm.execute_program().unwrap(), 0x1); in test_vm_jgt_imm()
822 assert_eq!(vm.execute_program().unwrap(), 0x1); in test_vm_jgt_reg()
840 assert_eq!(vm.execute_program().unwrap(), 0x1); in test_vm_jlt_imm()
860 assert_eq!(vm.execute_program().unwrap(), 0x1); in test_vm_jlt_reg()
877 assert_eq!(vm.execute_program().unwrap(), 0x1); in test_vm_jit_bounce()
896 assert_eq!(vm.execute_program().unwrap(), 0x1); in test_vm_jne_reg()
914 assert_eq!(vm.execute_program().unwrap(), 0x1); in test_vm_jset_imm()
933 assert_eq!(vm.execute_program().unwrap(), 0x1); in test_vm_jset_reg()
952 assert_eq!(vm.execute_program().unwrap(), 0x1); in test_vm_jsge_imm()
973 assert_eq!(vm.execute_program().unwrap(), 0x1); in test_vm_jsge_reg()
992 assert_eq!(vm.execute_program().unwrap(), 0x1); in test_vm_jsle_imm()
1014 assert_eq!(vm.execute_program().unwrap(), 0x1); in test_vm_jsle_reg()
1032 assert_eq!(vm.execute_program().unwrap(), 0x1); in test_vm_jsgt_imm()
1051 assert_eq!(vm.execute_program().unwrap(), 0x1); in test_vm_jsgt_reg()
1069 assert_eq!(vm.execute_program().unwrap(), 0x1); in test_vm_jslt_imm()
1089 assert_eq!(vm.execute_program().unwrap(), 0x1); in test_vm_jslt_reg()
1110 assert_eq!(vm.execute_program().unwrap(), 0x1); in test_vm_jeq32_imm()
1132 assert_eq!(vm.execute_program().unwrap(), 0x1); in test_vm_jeq32_reg()
1153 assert_eq!(vm.execute_program().unwrap(), 0x1); in test_vm_jge32_imm()
1175 assert_eq!(vm.execute_program().unwrap(), 0x1); in test_vm_jge32_reg()
1196 assert_eq!(vm.execute_program().unwrap(), 0x1); in test_vm_jgt32_imm()
1220 assert_eq!(vm.execute_program().unwrap(), 0x1); in test_vm_jgt32_reg()
1242 assert_eq!(vm.execute_program().unwrap(), 0x1); in test_vm_jle32_imm()
1266 assert_eq!(vm.execute_program().unwrap(), 0x1); in test_vm_jle32_reg()
1287 assert_eq!(vm.execute_program().unwrap(), 0x1); in test_vm_jlt32_imm()
1310 assert_eq!(vm.execute_program().unwrap(), 0x1); in test_vm_jlt32_reg()
1332 assert_eq!(vm.execute_program().unwrap(), 0x1); in test_vm_jne32_imm()
1355 assert_eq!(vm.execute_program().unwrap(), 0x1); in test_vm_jne32_reg()
1376 assert_eq!(vm.execute_program().unwrap(), 0x1); in test_vm_jset32_imm()
1398 assert_eq!(vm.execute_program().unwrap(), 0x1); in test_vm_jset32_reg()
1420 assert_eq!(vm.execute_program().unwrap(), 0x1); in test_vm_jsge32_imm()
1444 assert_eq!(vm.execute_program().unwrap(), 0x1); in test_vm_jsge32_reg()
1465 assert_eq!(vm.execute_program().unwrap(), 0x1); in test_vm_jsgt32_imm()
1487 assert_eq!(vm.execute_program().unwrap(), 0x1); in test_vm_jsgt32_reg()
1509 assert_eq!(vm.execute_program().unwrap(), 0x1); in test_vm_jsle32_imm()
1534 assert_eq!(vm.execute_program().unwrap(), 0x1); in test_vm_jsle32_reg()
1555 assert_eq!(vm.execute_program().unwrap(), 0x1); in test_vm_jslt32_imm()
1578 assert_eq!(vm.execute_program().unwrap(), 0x1); in test_vm_jslt32_reg()
1589 assert_eq!(vm.execute_program().unwrap(), 0x1122334455667788); in test_vm_lddw()
1601 assert_eq!(vm.execute_program().unwrap(), 0x80000000); in test_vm_lddw2()
1643 assert_eq!(vm.execute_program(mem).unwrap(), 0x9876543210); in test_vm_ldxb_all()
1656 assert_eq!(vm.execute_program(mem).unwrap(), 0x11); in test_vm_ldxb()
1671 assert_eq!(vm.execute_program(mem).unwrap(), 0x8877665544332211); in test_vm_ldxdw()
1726 assert_eq!(vm.execute_program(mem).unwrap(), 0x9876543210); in test_vm_ldxh_all()
1771 assert_eq!(vm.execute_program(mem).unwrap(), 0x3ff); in test_vm_ldxh_all2()
1784 assert_eq!(vm.execute_program(mem).unwrap(), 0x2211); in test_vm_ldxh()
1799 assert_eq!(vm.execute_program(mem).unwrap(), 0x1234); in test_vm_ldxh_same_reg()
1845 assert_eq!(vm.execute_program(mem).unwrap(), 0x030f0f); in test_vm_ldxw_all()
1858 assert_eq!(vm.execute_program(mem).unwrap(), 0x44332211); in test_vm_ldxw()
1872 assert_eq!(vm.execute_program(mem).unwrap(), 0x1122); in test_vm_le16()
1886 assert_eq!(vm.execute_program(mem).unwrap(), 0x11223344); in test_vm_le32()
1900 assert_eq!(vm.execute_program(mem).unwrap(), 0x1122334455667788); in test_vm_le64()
1913 assert_eq!(vm.execute_program().unwrap(), 0x10); in test_vm_lsh_imm()
1927 assert_eq!(vm.execute_program().unwrap(), 0x10); in test_vm_lsh_reg()
1940 assert_eq!(vm.execute_program().unwrap(), 0x10); in test_vm_lsh32_imm()
1954 assert_eq!(vm.execute_program().unwrap(), 0x10); in test_vm_lsh32_reg()
1967 assert_eq!(vm.execute_program().unwrap(), 0x1); in test_vm_lsh_imm_overflow()
1981 assert_eq!(vm.execute_program().unwrap(), 0x1); in test_vm_lsh_reg_overflow()
1994 assert_eq!(vm.execute_program().unwrap(), 0x1); in test_vm_lsh32_imm_overflow()
2008 assert_eq!(vm.execute_program().unwrap(), 0x1); in test_vm_lsh32_reg_overflow()
2023 assert_eq!(vm.execute_program().unwrap(), 0x5); in test_vm_mod()
2036 assert_eq!(vm.execute_program().unwrap(), 0x0); in test_vm_mod32()
2055 assert_eq!(vm.execute_program().unwrap(), 0x30ba5a04); in test_vm_mod64()
2068 assert_eq!(vm.execute_program().unwrap(), 0x1); in test_vm_mov()
2081 assert_eq!(vm.execute_program().unwrap(), 0xc); in test_vm_mul32_imm()
2095 assert_eq!(vm.execute_program().unwrap(), 0xc); in test_vm_mul32_reg()
2109 assert_eq!(vm.execute_program().unwrap(), 0x4); in test_vm_mul32_reg_overflow()
2122 assert_eq!(vm.execute_program().unwrap(), 0x100000004); in test_vm_mul64_imm()
2136 assert_eq!(vm.execute_program().unwrap(), 0x100000004); in test_vm_mul64_reg()
2156 assert_eq!(vm.execute_program().unwrap(), 0x75db9c97); in test_vm_mul_loop()
2169 assert_eq!(vm.execute_program().unwrap(), 0xfffffffffffffffe); in test_vm_neg64()
2182 assert_eq!(vm.execute_program().unwrap(), 0xfffffffe); in test_vm_neg()
2208 assert_eq!(vm.execute_program().unwrap(), 0x1); in test_vm_prime()
2222 assert_eq!(vm.execute_program().unwrap(), 0x00ffffff); in test_vm_rhs32()
2236 assert_eq!(vm.execute_program().unwrap(), 0x1); in test_vm_rsh_reg()
2255 assert_eq!(vm.execute_program().unwrap(), 0xcd); in test_vm_stack()
2283 assert_eq!(vm.execute_program().unwrap(), 0x01020304); in test_vm_stack2()
2297 assert_eq!(vm.execute_program(mem).unwrap(), 0x11); in test_vm_stb()
2313 assert_eq!(vm.execute_program(mem).unwrap(), 0x44332211); in test_vm_stdw()
2337 _ = vm.execute_program(mem).unwrap(); in test_vm_stdw_add_overflow()
2351 assert_eq!(vm.execute_program(mem).unwrap(), 0x2211); in test_vm_sth()
2390 assert_eq!(vm.execute_program().unwrap(), 0x0); in test_vm_string_stack()
2404 assert_eq!(vm.execute_program(mem).unwrap(), 0x44332211); in test_vm_stw()
2419 assert_eq!(vm.execute_program(mem).unwrap(), 0x11); in test_vm_stxb()
2449 assert_eq!(vm.execute_program(mem).unwrap(), 0xf0f2f3f4f5f6f7f8); in test_vm_stxb_all()
2468 assert_eq!(vm.execute_program(mem).unwrap(), 0xf1f9); in test_vm_stxb_all2()
2500 assert_eq!(vm.execute_program(mem).unwrap(), 0x2a); in test_vm_stxb_chain()
2519 assert_eq!(vm.execute_program(mem).unwrap(), 0x8877665544332211); in test_vm_stxdw()
2534 assert_eq!(vm.execute_program(mem).unwrap(), 0x2211); in test_vm_stxh()
2549 assert_eq!(vm.execute_program(mem).unwrap(), 0x44332211); in test_vm_stxw()
2580 assert_eq!(vm.execute_program(mem).unwrap(), 0x1); in test_vm_subnet()
2609 assert_eq!(vm.execute_program(mem).unwrap(), 0x1); in test_vm_tcp_port80_match()
2625 assert_eq!(vm.execute_program(mem).unwrap(), 0x0); in test_vm_tcp_port80_nomatch()
2641 assert_eq!(vm.execute_program(mem).unwrap(), 0x0); in test_vm_tcp_port80_nomatch_ethertype()
2657 assert_eq!(vm.execute_program(mem).unwrap(), 0x0); in test_vm_tcp_port80_nomatch_proto()
2665 assert_eq!(vm.execute_program(mem.as_mut_slice()).unwrap(), 0x1); in test_vm_tcp_sack_match()
2673 assert_eq!(vm.execute_program(mem.as_mut_slice()).unwrap(), 0x0); in test_vm_tcp_sack_nomatch()