mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
b608c4e35f
MCJIT served well as the default JIT engine in lli for a long time, but the code is getting old and maintenance efforts don't seem to be in sight. In the meantime Orc became mature enough to fill that gap. The newly added greddy mode is very similar to the execution model of MCJIT. It should work as a drop-in replacement for common JIT tasks. Reviewed By: lhames Differential Revision: https://reviews.llvm.org/D98931
17 lines
334 B
LLVM
17 lines
334 B
LLVM
; RUN: %lli -jit-kind=mcjit -O0 %s
|
|
; RUN: %lli -O0 %s
|
|
|
|
; Check that a variable is always aligned as specified.
|
|
|
|
@var = global i32 0, align 32
|
|
define i32 @main() {
|
|
%addr = ptrtoint i32* @var to i64
|
|
%mask = and i64 %addr, 31
|
|
%tst = icmp eq i64 %mask, 0
|
|
br i1 %tst, label %good, label %bad
|
|
good:
|
|
ret i32 0
|
|
bad:
|
|
ret i32 1
|
|
}
|