#include #include #include "do_jit.h" int main(int argc, char *argv[]) { (void)argv; bool do_jit = argc > 1; struct ejit_func *f = ejit_create_func(EJIT_TYPE(double), 0, NULL); ejit_movi_d(f, EJIT_FPR(0), 3.14159f); ejit_retr_d(f, EJIT_FPR(0)); ejit_select_compile_func(f, 0, 1, EJIT_USE64(double), do_jit); assert(ejit_run_func_f(f, 0, NULL) == 3.14159f); ejit_destroy_func(f); }