diff options
author | Maxime Chevalier-Boisvert <maxime.chevalierboisvert@shopify.com> | 2021-03-29 14:46:28 -0400 |
---|---|---|
committer | Alan Wu <XrXr@users.noreply.github.com> | 2021-10-20 18:19:32 -0400 |
commit | 0e5c3d66b8e6c3d1d828ce76a4c2caab3d1b71c1 (patch) | |
tree | af93e0670e7670b3d20c1f40d5226e916e76dc18 | |
parent | 98e93d6a8fbf1070e1b334dd1b1cf313c221bb17 (diff) |
Implement opt_gt
-rw-r--r-- | yjit_codegen.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/yjit_codegen.c b/yjit_codegen.c index 9e37dd8a09..7bd6eda313 100644 --- a/yjit_codegen.c +++ b/yjit_codegen.c @@ -932,6 +932,12 @@ gen_opt_ge(jitstate_t* jit, ctx_t* ctx) } 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) { struct rb_call_data * cd = (struct rb_call_data *)jit_get_arg(jit, 0); @@ -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); |