#include #include #include "do_jit.h" static uint16_t data = 0xffff; int main(int argc, char *argv[]) { (void)argv; bool do_jit = argc > 1; struct ejit_func *f = ejit_create_func(EJIT_TYPE(unsigned long), 0, NULL); ejit_ldi_i16(f, EJIT_GPR(0), &data); ejit_retr(f, EJIT_GPR(0)); ejit_select_compile_func(f, 1, 0, false, do_jit, true); assert(ejit_run_func_i(f, 0, NULL) == -1); ejit_destroy_func(f); }