summaryrefslogtreecommitdiff
path: root/examples/jit/jit.c
blob: 6debf5487094114364699b064217ab9743df0e9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29

#include "config.h"

#include <glib.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>

#include "ojprogram.h"

const char *program =
"load r0, s1\n"
"load r1, s2\n"
"add r2, r0, r1\n"
"store d1, r2\n";

int
main (int argc, char *argv[])
{
  OJProgram *p;

  p = oj_program_new ();
  oj_program_parse (p, program);
  oj_program_output_mmx (p);

  return 0;
}