diff options
Diffstat (limited to 'examples/jit.c')
-rw-r--r-- | examples/jit.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/jit.c b/examples/jit.c index 52cd1be..d3fc7f6 100644 --- a/examples/jit.c +++ b/examples/jit.c @@ -28,12 +28,12 @@ main (int argc, char *argv[]) p = orc_program_new (); - d1 = orc_program_add_destination (p, "s16", "d1"); - s1 = orc_program_add_source (p, "s16", "s1"); - s2 = orc_program_add_source (p, "s16", "s2"); - t1 = orc_program_add_temporary (p, "s16", "t1"); - offset = orc_program_add_constant (p, "s16", 1, "offset"); - shift = orc_program_add_constant (p, "s16", 1, "shift"); + d1 = orc_program_add_destination (p, 2, "d1"); + s1 = orc_program_add_source (p, 2, "s1"); + s2 = orc_program_add_source (p, 2, "s2"); + t1 = orc_program_add_temporary (p, 2, "t1"); + 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); |