
These are an attempt to more systematically test the features covered by the MCJIT regression tests (though these tests apply to lli's default mode, which is now -jit-kind=orc). This first batch of tests includes a basic smoke test (trivial-return-zero), tests for single function calls and data references, and alignment handling.
16 lines
372 B
LLVM
16 lines
372 B
LLVM
; Check that we can execute a program that makes a single reference to an
|
|
; internal linkage global variable that is zero-initialized.
|
|
;
|
|
; Failure may indicate a problem with zero-initialized sections, or data
|
|
; sections more generally.
|
|
;
|
|
; RUN: %lli %s
|
|
|
|
@X = internal global i32 0
|
|
|
|
define i32 @main(i32 %argc, i8** %argv) {
|
|
entry:
|
|
%0 = load i32, i32* @X
|
|
ret i32 %0
|
|
}
|