#include #include #include "do_jit.h" int main() { struct ejit_func *f = ejit_create_func(EJIT_TYPE(int), 0, NULL); ejit_movi(f, EJIT_GPR(0), 0xa500a500); ejit_retr(f, EJIT_GPR(0)); ejit_select_compile_func(f, 1, 0, EJIT_USE64(int), do_jit); assert(ejit_run_func(f, 0, NULL) == 0xa500a500); ejit_destroy_func(f); }