blob: 353c26d50d639bfe52586b8f8906b5dd847037f5 [file] [log] [blame]
sewardjec6ad592004-06-20 12:26:53 +00001
2/*---------------------------------------------------------------*/
3/*--- ---*/
4/*--- This file (main.c) is ---*/
5/*--- Copyright (c) 2004 OpenWorks LLP. All rights reserved. ---*/
6/*--- ---*/
7/*---------------------------------------------------------------*/
8
9#include <stdio.h>
10
11#include <stdlib.h>
12#include <assert.h>
13
14#include "storage.h"
15#include "ir_defs.h"
16
17
18
19
20
21/*---------------------------------------------------------------*/
22/*--- Test ---*/
23/*---------------------------------------------------------------*/
24
25int main ( void )
26{
27 Cell bb;
28 Cell stmts;
29
30 storage_init();
31 register_IR_tags();
32
33 stmts = cons( mkSTPut(8,4, mkEXAtomI(mkWord32(99))),
34 cons( mkSTPut(7,3, mkEXTmp(mkIRTemp(55))),
35 NIL ));
36
37 bb = mkBB(NIL, stmts, mkUJump(mkWord32(65565)));
38 ppIRBB(stdout, bb);
39
40 storage_done();
41
42 return 0;
43}
44
45
46