1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Implement opt_gt

This commit is contained in:
Maxime Chevalier-Boisvert 2021-03-29 14:46:28 -04:00 committed by Alan Wu
parent 98e93d6a8f
commit 0e5c3d66b8

View file

@ -931,6 +931,12 @@ gen_opt_ge(jitstate_t* jit, ctx_t* ctx)
return gen_fixnum_cmp(jit, ctx, cmovge);
}
static codegen_status_t
gen_opt_gt(jitstate_t* jit, ctx_t* ctx)
{
return gen_fixnum_cmp(jit, ctx, cmovg);
}
static codegen_status_t
gen_opt_aref(jitstate_t *jit, ctx_t *ctx)
{
@ -1956,6 +1962,7 @@ yjit_init_codegen(void)
yjit_reg_op(BIN(opt_lt), gen_opt_lt);
yjit_reg_op(BIN(opt_le), gen_opt_le);
yjit_reg_op(BIN(opt_ge), gen_opt_ge);
yjit_reg_op(BIN(opt_gt), gen_opt_gt);
yjit_reg_op(BIN(opt_aref), gen_opt_aref);
yjit_reg_op(BIN(opt_and), gen_opt_and);
yjit_reg_op(BIN(opt_minus), gen_opt_minus);