diff options
Diffstat (limited to 'examples/jit.c')
-rw-r--r-- | examples/jit.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/examples/jit.c b/examples/jit.c index d3fc7f6..92ca490 100644 --- a/examples/jit.c +++ b/examples/jit.c @@ -35,15 +35,15 @@ main (int argc, char *argv[]) offset = orc_program_add_constant (p, 2, 1, "offset"); shift = orc_program_add_constant (p, 2, 1, "shift"); - orc_program_append (p, "add_s16", t1, s1, s2); - orc_program_append (p, "add_s16", t1, t1, offset); - orc_program_append (p, "rshift_s16", d1, t1, shift); + orc_program_append (p, "addw", t1, s1, s2); + orc_program_append (p, "addw", t1, t1, offset); + orc_program_append (p, "shrsw", d1, t1, shift); #if 0 - orc_program_append (p, "lshift_s16", d1, s1, shift); - //orc_program_append (p, "sub_s16", t1, t1, shift); - //orc_program_append (p, "mul_s16", d1, s1, s2); - //orc_program_append (p, "_loadi_s16", t1, t1, shift); + orc_program_append (p, "shlw", d1, s1, shift); + //orc_program_append (p, "subw", t1, t1, shift); + //orc_program_append (p, "mullw", d1, s1, s2); + //orc_program_append (p, "_loadiw", t1, t1, shift); #endif orc_program_compile (p); |