mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-08 03:29:41 +00:00
12 lines
293 B
LLVM
12 lines
293 B
LLVM
|
; RUN: llvm-as < %s | llc -march=c | not grep fixarray_array3
|
||
|
; PR918
|
||
|
|
||
|
%structtype_s = type { i32 }
|
||
|
%fixarray_array3 = type [3 x %structtype_s]
|
||
|
|
||
|
define i32 %witness(%fixarray_array3* %p) {
|
||
|
%q = getelementptr %fixarray_array3* %p, i32 0, i32 0, i32 0
|
||
|
%v = load i32* %q
|
||
|
ret i32 %v
|
||
|
}
|