hanchenye-llvm-project/llvm/test/Regression/Linker/testlink2.ll

23 lines
409 B
LLVM
Raw Normal View History

2001-10-13 15:15:38 +08:00
%MyVar = global int 4
%MyIntList = uninitialized global { \2 *, int }
%AConst = constant int 123
constant int 412
2001-10-13 15:15:38 +08:00
implementation
int "foo"(int %blah)
begin
store int %blah, int *%MyVar
store int 12, { \2 *, int } * %MyIntList, ubyte 1
;%ack = load int * %0 ;; Load from the unnamed constant
;%fzo = add int %ack, %blah
;ret int %fzo
2001-10-13 15:15:38 +08:00
ret int %blah
end
declare void "unimp"(float, double)