mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
Add some more interesting test cases for the linker
llvm-svn: 816
This commit is contained in:
parent
c65d902eee
commit
16ffc9987c
@ -5,6 +5,9 @@
|
||||
|
||||
%AConst = constant int 123
|
||||
|
||||
; Initialized to point to external %MyVar
|
||||
%MyVarPtr = global { int * } { int * %MyVar }
|
||||
|
||||
declare int "foo"(int %blah) ;; Declared in testlink2.ll
|
||||
|
||||
declare void "print"(int %Value)
|
||||
|
@ -4,6 +4,9 @@
|
||||
|
||||
%AConst = constant int 123
|
||||
|
||||
%MyIntListPtr = constant { {\2,int}* } { {\2,int}* %MyIntList }
|
||||
%MyVarPtr = global { int * } { int * %MyVar }
|
||||
|
||||
constant int 412
|
||||
|
||||
implementation
|
||||
@ -13,10 +16,9 @@ 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
|
||||
ret int %blah
|
||||
%ack = load int * %0 ;; Load from the unnamed constant
|
||||
%fzo = add int %ack, %blah
|
||||
ret int %fzo
|
||||
end
|
||||
|
||||
declare void "unimp"(float, double)
|
||||
|
Loading…
Reference in New Issue
Block a user