mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 20:23:11 +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
19 lines
755 B
LLVM
19 lines
755 B
LLVM
; RUN: %lli -jit-kind=mcjit -O0 -relocation-model=pic -code-model=small %s
|
|
; RUN: %lli -lljit-platform=Inactive -O0 -relocation-model=pic -code-model=small %s
|
|
; XFAIL: mips-, mipsel-, aarch64, arm, i686, i386
|
|
|
|
@.str = private unnamed_addr constant [6 x i8] c"data1\00", align 1
|
|
@ptr = global i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i32 0, i32 0), align 4
|
|
@.str1 = private unnamed_addr constant [6 x i8] c"data2\00", align 1
|
|
@ptr2 = global i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str1, i32 0, i32 0), align 4
|
|
|
|
define i32 @main(i32 %argc, i8** nocapture %argv) nounwind readonly {
|
|
entry:
|
|
%0 = load i8*, i8** @ptr, align 4
|
|
%1 = load i8*, i8** @ptr2, align 4
|
|
%cmp = icmp eq i8* %0, %1
|
|
%. = zext i1 %cmp to i32
|
|
ret i32 %.
|
|
}
|
|
|