()
| 75 | |
| 76 | |
| 77 | def test_vm_checker(): |
| 78 | ib = relax.ExecBuilder() |
| 79 | with pytest.raises(RuntimeError): |
| 80 | with ib.function("func0", num_inputs=2): |
| 81 | ib.emit_call("test.vm.add", args=[ib.r(0), ib.r(2)], dst=ib.r(2)) |
| 82 | ib.emit_ret(ib.r(2)) |
| 83 | ib.get() |
| 84 | |
| 85 | |
| 86 | def test_neg_imm(): |