mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-22 07:32:48 +00:00
4797826e17
TestRunner tests). This makes creating the new test database class easier to implement. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8841 91177308-0d34-0410-b5e6-96231b3b80d8
20 lines
468 B
LLVM
20 lines
468 B
LLVM
; RUN: analyze %s -tddatastructure
|
|
|
|
%str = type { int, int* }
|
|
|
|
implementation
|
|
|
|
void %bar(%str* %S, %str* %T) {
|
|
%A1 = getelementptr %str* %S, long 0, ubyte 0
|
|
%B1 = getelementptr %str* %S, long 0, ubyte 1
|
|
%A2 = getelementptr %str* %S, long 0, ubyte 0
|
|
%B2 = getelementptr %str* %S, long 0, ubyte 1
|
|
%a1 = cast int* %A1 to long*
|
|
%a2 = cast int* %A2 to long*
|
|
%V = load long* %a1
|
|
;store long %V, long* %a2
|
|
%V2 = load int** %B1
|
|
store int* %V2, int** %B2
|
|
ret void
|
|
}
|