blob: df8d85b38126773336bf7c9f3942cb411f9d97d7 [file] [log] [blame]
Chris Lattner285c68d2001-10-13 07:15:38 +00001
2%MyVar = global int 4
3%MyIntList = uninitialized global { \2 *, int }
4
5%AConst = constant int 123
6
Chris Lattner784c52f2001-10-14 23:28:56 +00007constant int 412
8
Chris Lattner285c68d2001-10-13 07:15:38 +00009implementation
10
11int "foo"(int %blah)
12begin
13 store int %blah, int *%MyVar
14 store int 12, { \2 *, int } * %MyIntList, ubyte 1
Chris Lattner784c52f2001-10-14 23:28:56 +000015
16 ;%ack = load int * %0 ;; Load from the unnamed constant
17 ;%fzo = add int %ack, %blah
18 ;ret int %fzo
Chris Lattner285c68d2001-10-13 07:15:38 +000019 ret int %blah
20end
21
Chris Lattner784c52f2001-10-14 23:28:56 +000022declare void "unimp"(float, double)