2001-10-13 07:15:38 +00:00
|
|
|
|
|
|
|
%MyVar = global int 4
|
|
|
|
%MyIntList = uninitialized global { \2 *, int }
|
|
|
|
|
|
|
|
%AConst = constant int 123
|
|
|
|
|
2001-11-26 19:17:06 +00:00
|
|
|
%Intern1 = internal constant int 52 ;; Intern in both testlink[12].ll
|
|
|
|
%Intern2 = constant int 12345 ;; Intern in one but not in other
|
|
|
|
|
2001-10-15 03:11:58 +00:00
|
|
|
%MyIntListPtr = constant { {\2,int}* } { {\2,int}* %MyIntList }
|
|
|
|
%MyVarPtr = global { int * } { int * %MyVar }
|
|
|
|
|
2001-10-14 23:28:56 +00:00
|
|
|
constant int 412
|
|
|
|
|
2001-10-13 07:15:38 +00:00
|
|
|
implementation
|
|
|
|
|
|
|
|
int "foo"(int %blah)
|
|
|
|
begin
|
|
|
|
store int %blah, int *%MyVar
|
|
|
|
store int 12, { \2 *, int } * %MyIntList, ubyte 1
|
2001-10-14 23:28:56 +00:00
|
|
|
|
2001-10-15 03:11:58 +00:00
|
|
|
%ack = load int * %0 ;; Load from the unnamed constant
|
|
|
|
%fzo = add int %ack, %blah
|
|
|
|
ret int %fzo
|
2001-10-13 07:15:38 +00:00
|
|
|
end
|
|
|
|
|
2001-10-14 23:28:56 +00:00
|
|
|
declare void "unimp"(float, double)
|
2001-11-26 19:17:06 +00:00
|
|
|
|
|
|
|
internal void "testintern"() begin ret void end
|
|
|
|
void "Testintern"() begin ret void end
|
|
|
|
internal void "testIntern"() begin ret void end
|
|
|
|
|