mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 10:42:39 +01:00
[lli] Make -jit-kind=orc the default JIT engine
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
This commit is contained in:
parent
3f2ee9f1ab
commit
4b5fb80723
@ -1,5 +1,5 @@
|
||||
; tests lowering of vector bswap
|
||||
; RUN: lli -force-interpreter %s | FileCheck %s
|
||||
; RUN: lli -jit-kind=mcjit -force-interpreter %s | FileCheck %s
|
||||
|
||||
; CHECK: 0x100
|
||||
; CHECK: 0x10000
|
||||
|
@ -1,4 +1,4 @@
|
||||
; RUN: %lli -force-interpreter=true %s
|
||||
; RUN: %lli -jit-kind=mcjit -force-interpreter=true %s
|
||||
|
||||
define i32 @main() {
|
||||
%a = add i32 0, undef
|
||||
|
@ -1,4 +1,4 @@
|
||||
; RUN: %lli -force-interpreter %s
|
||||
; RUN: %lli -jit-kind=mcjit -force-interpreter %s
|
||||
|
||||
define i32 @func() {
|
||||
entry:
|
||||
|
@ -1,4 +1,4 @@
|
||||
; RUN: %lli -force-interpreter %s
|
||||
; RUN: %lli -jit-kind=mcjit -force-interpreter %s
|
||||
|
||||
declare void @exit(i32)
|
||||
declare i32 @rand()
|
||||
|
@ -1,4 +1,4 @@
|
||||
; RUN: lli -O0 -force-interpreter < %s
|
||||
; RUN: lli -jit-kind=mcjit -O0 -force-interpreter < %s
|
||||
|
||||
; libffi does not support fp128 so we don’t test it
|
||||
declare float @llvm.sin.f32(float)
|
||||
|
@ -1,3 +1,4 @@
|
||||
; RUN: %lli -jit-kind=mcjit %s > /dev/null
|
||||
; RUN: %lli %s > /dev/null
|
||||
|
||||
@.LC0 = internal global [10 x i8] c"argc: %d\0A\00" ; <[10 x i8]*> [#uses=1]
|
||||
|
@ -1,3 +1,4 @@
|
||||
; RUN: %lli -jit-kind=mcjit %s > /dev/null
|
||||
; RUN: %lli %s > /dev/null
|
||||
|
||||
define i32 @foo(i32 %X, i32 %Y, double %A) {
|
||||
|
@ -1,3 +1,4 @@
|
||||
; RUN: %lli -jit-kind=mcjit %s > /dev/null
|
||||
; RUN: %lli %s > /dev/null
|
||||
|
||||
define i32 @main() {
|
||||
|
@ -1,3 +1,4 @@
|
||||
; RUN: %lli -jit-kind=mcjit %s > /dev/null
|
||||
; RUN: %lli %s > /dev/null
|
||||
|
||||
define i32 @main() {
|
||||
|
@ -1,3 +1,4 @@
|
||||
; RUN: %lli -jit-kind=mcjit %s > /dev/null
|
||||
; RUN: %lli %s > /dev/null
|
||||
|
||||
; We were accidentally inverting the signedness of right shifts. Whoops.
|
||||
|
@ -1,3 +1,4 @@
|
||||
; RUN: %lli -jit-kind=mcjit %s > /dev/null
|
||||
; RUN: %lli %s > /dev/null
|
||||
|
||||
define i32 @main() {
|
||||
|
@ -1,3 +1,4 @@
|
||||
; RUN: %lli -jit-kind=mcjit %s > /dev/null
|
||||
; RUN: %lli %s > /dev/null
|
||||
|
||||
define i32 @bar(i8* %X) {
|
||||
|
@ -1,5 +1,6 @@
|
||||
; This testcase should return with an exit code of 1.
|
||||
;
|
||||
; RUN: not %lli -jit-kind=mcjit %s
|
||||
; RUN: not %lli %s
|
||||
|
||||
@test = global i64 0 ; <i64*> [#uses=1]
|
||||
|
@ -1,3 +1,4 @@
|
||||
; RUN: %lli -jit-kind=mcjit %s test
|
||||
; RUN: %lli %s test
|
||||
|
||||
declare i32 @puts(i8*)
|
||||
|
@ -1,3 +1,4 @@
|
||||
; RUN: %lli -jit-kind=mcjit %s > /dev/null
|
||||
; RUN: %lli %s > /dev/null
|
||||
|
||||
define i32 @main() {
|
||||
|
@ -1,3 +1,4 @@
|
||||
; RUN: %lli -jit-kind=mcjit %s > /dev/null
|
||||
; RUN: %lli %s > /dev/null
|
||||
|
||||
; Testcase distilled from 256.bzip2.
|
||||
|
@ -1,3 +1,4 @@
|
||||
; RUN: %lli -jit-kind=mcjit %s > /dev/null
|
||||
; RUN: %lli %s > /dev/null
|
||||
|
||||
; Testcase distilled from 256.bzip2.
|
||||
|
@ -1,3 +1,4 @@
|
||||
; RUN: %lli -jit-kind=mcjit %s > /dev/null
|
||||
; RUN: %lli %s > /dev/null
|
||||
|
||||
; This testcase failed to work because two variable sized allocas confused the
|
||||
|
@ -1,4 +1,4 @@
|
||||
; RUN: %lli %s > /dev/null
|
||||
; RUN: %lli -jit-kind=mcjit %s > /dev/null
|
||||
|
||||
;
|
||||
; Regression Test: EnvironmentTest.ll
|
||||
|
@ -1,3 +1,4 @@
|
||||
; RUN: %lli -jit-kind=mcjit %s > /dev/null
|
||||
; RUN: %lli %s > /dev/null
|
||||
|
||||
; This testcase exposes a bug in the local register allocator where it runs out
|
||||
|
@ -1,3 +1,4 @@
|
||||
; RUN: %lli -jit-kind=mcjit %s > /dev/null
|
||||
; RUN: %lli %s > /dev/null
|
||||
|
||||
@A = global i32 0 ; <i32*> [#uses=1]
|
||||
|
@ -1,4 +1,5 @@
|
||||
; PR672
|
||||
; RUN: %lli -jit-kind=mcjit %s
|
||||
; RUN: %lli %s
|
||||
; XFAIL: mcjit-ia32
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
; RUN: %lli -force-interpreter %s
|
||||
; RUN: %lli -jit-kind=mcjit -force-interpreter %s
|
||||
; PR1836
|
||||
|
||||
define i32 @main() {
|
||||
|
@ -1,4 +1,4 @@
|
||||
; RUN: %lli -force-interpreter=true %s | FileCheck %s
|
||||
; RUN: %lli -jit-kind=mcjit -force-interpreter=true %s | FileCheck %s
|
||||
; CHECK: 1
|
||||
|
||||
target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32"
|
||||
|
@ -1,3 +1,4 @@
|
||||
; RUN: %lli -jit-kind=mcjit %s
|
||||
; RUN: %lli %s
|
||||
;
|
||||
; Verify relocations to global symbols with addend work correctly.
|
||||
|
@ -1,3 +1,4 @@
|
||||
; RUN: %lli -jit-kind=mcjit -extra-module=%p/Inputs/cross-module-b.ll %s > /dev/null
|
||||
; RUN: %lli -extra-module=%p/Inputs/cross-module-b.ll %s > /dev/null
|
||||
|
||||
declare i32 @FB()
|
||||
|
@ -1,3 +1,4 @@
|
||||
; RUN: %lli -jit-kind=mcjit -extra-module=%p/Inputs/cross-module-b.ll -relocation-model=pic -code-model=small %s > /dev/null
|
||||
; RUN: %lli -extra-module=%p/Inputs/cross-module-b.ll -relocation-model=pic -code-model=small %s > /dev/null
|
||||
; XFAIL: mips-, mipsel-, i686, i386
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
; REQUIRES: cxx-shared-library
|
||||
; RUN: %lli -relocation-model=pic -code-model=large %s
|
||||
; RUN: %lli -jit-kind=mcjit -relocation-model=pic -code-model=large %s
|
||||
; XFAIL: cygwin, windows-msvc, windows-gnu, mips-, mipsel-, i686, i386, aarch64, arm
|
||||
declare i8* @__cxa_allocate_exception(i64)
|
||||
declare void @__cxa_throw(i8*, i8*, i8*)
|
||||
|
@ -1,4 +1,5 @@
|
||||
; REQUIRES: cxx-shared-library
|
||||
; RUN: %lli -jit-kind=mcjit %s
|
||||
; RUN: %lli %s
|
||||
; XFAIL: arm, cygwin, windows-msvc, windows-gnu
|
||||
declare i8* @__cxa_allocate_exception(i64)
|
||||
|
@ -1,4 +1,4 @@
|
||||
; RUN: %lli -force-interpreter=true %s | FileCheck %s
|
||||
; RUN: %lli -jit-kind=mcjit -force-interpreter=true %s | FileCheck %s
|
||||
; CHECK: 40091eb8
|
||||
|
||||
define i32 @test(double %x) {
|
||||
|
@ -1,3 +1,4 @@
|
||||
; RUN: %lli -jit-kind=mcjit %s > /dev/null
|
||||
; RUN: %lli %s > /dev/null
|
||||
|
||||
@.LC0 = internal global [12 x i8] c"Hello World\00" ; <[12 x i8]*> [#uses=1]
|
||||
|
@ -1,3 +1,4 @@
|
||||
; RUN: %lli -jit-kind=mcjit %s > /dev/null
|
||||
; RUN: %lli %s > /dev/null
|
||||
|
||||
@X = global i32 7 ; <i32*> [#uses=0]
|
||||
|
@ -1,12 +1,14 @@
|
||||
; This first line will generate the .o files for the next run line
|
||||
; RUN: rm -rf %t.cachedir %t.cachedir2 %t.cachedir3
|
||||
; RUN: mkdir -p %t.cachedir %t.cachedir2 %t.cachedir3
|
||||
; RUN: %lli -jit-kind=mcjit -extra-module=%p/Inputs/multi-module-b.ll -extra-module=%p/Inputs/multi-module-c.ll -enable-cache-manager -object-cache-dir=%t.cachedir %s
|
||||
; RUN: %lli -extra-module=%p/Inputs/multi-module-b.ll -extra-module=%p/Inputs/multi-module-c.ll -enable-cache-manager -object-cache-dir=%t.cachedir %s
|
||||
|
||||
; Collect generated objects.
|
||||
; RUN: find %t.cachedir -type f -name 'multi-module-?.o' -exec mv -v '{}' %t.cachedir2 ';'
|
||||
|
||||
; This line tests MCJIT object loading
|
||||
; RUN: %lli -jit-kind=mcjit -extra-object=%t.cachedir2/multi-module-b.o -extra-object=%t.cachedir2/multi-module-c.o %s
|
||||
; RUN: %lli -extra-object=%t.cachedir2/multi-module-b.o -extra-object=%t.cachedir2/multi-module-c.o %s
|
||||
|
||||
; These lines put the object files into an archive
|
||||
@ -14,6 +16,7 @@
|
||||
; RUN: llvm-ar r %t.cachedir3/load-object.a %t.cachedir2/multi-module-c.o
|
||||
|
||||
; This line test MCJIT archive loading
|
||||
; RUN: %lli -jit-kind=mcjit -extra-archive=%t.cachedir3/load-object.a %s
|
||||
; RUN: %lli -extra-archive=%t.cachedir3/load-object.a %s
|
||||
|
||||
declare i32 @FB()
|
||||
|
@ -1,3 +1,4 @@
|
||||
; RUN: %lli -jit-kind=mcjit -extra-module=%p/Inputs/multi-module-b.ll -extra-module=%p/Inputs/multi-module-c.ll %s > /dev/null
|
||||
; RUN: %lli -extra-module=%p/Inputs/multi-module-b.ll -extra-module=%p/Inputs/multi-module-c.ll %s > /dev/null
|
||||
|
||||
declare i32 @FB()
|
||||
|
@ -1,4 +1,5 @@
|
||||
; REQUIRES: cxx-shared-library
|
||||
; RUN: %lli -jit-kind=mcjit -extra-module=%p/Inputs/multi-module-eh-b.ll %s
|
||||
; RUN: %lli -extra-module=%p/Inputs/multi-module-eh-b.ll %s
|
||||
; XFAIL: arm, cygwin, windows-msvc, windows-gnu
|
||||
declare i8* @__cxa_allocate_exception(i64)
|
||||
|
@ -1,3 +1,4 @@
|
||||
; RUN: %lli -jit-kind=mcjit -extra-module=%p/Inputs/multi-module-b.ll -extra-module=%p/Inputs/multi-module-c.ll -relocation-model=pic -code-model=small %s > /dev/null
|
||||
; RUN: %lli -extra-module=%p/Inputs/multi-module-b.ll -extra-module=%p/Inputs/multi-module-c.ll -relocation-model=pic -code-model=small %s > /dev/null
|
||||
; XFAIL: mips-, mipsel-, i686, i386
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
; RUN: %lli -jit-kind=mcjit %s > /dev/null
|
||||
; RUN: %lli %s > /dev/null
|
||||
|
||||
define i32 @foo(i32 %x, i32 %y, double %d) {
|
||||
|
@ -1,3 +1,4 @@
|
||||
; RUN: %lli -jit-kind=mcjit -O0 -disable-lazy-compilation=false %s
|
||||
; RUN: %lli -O0 -disable-lazy-compilation=false %s
|
||||
|
||||
; The intention of this test is to verify that symbols mapped to COMMON in ELF
|
||||
|
@ -1,4 +1,4 @@
|
||||
; RUN: %lli -extra-module=%p/Inputs/cross-module-b.ll -disable-lazy-compilation=true -remote-mcjit -mcjit-remote-process=lli-child-target%exeext %s > /dev/null
|
||||
; RUN: %lli -jit-kind=mcjit -extra-module=%p/Inputs/cross-module-b.ll -disable-lazy-compilation=true -remote-mcjit -mcjit-remote-process=lli-child-target%exeext %s > /dev/null
|
||||
; XFAIL: windows-gnu,windows-msvc
|
||||
; UNSUPPORTED: powerpc64-unknown-linux-gnu
|
||||
; Remove UNSUPPORTED for powerpc64-unknown-linux-gnu if problem caused by r266663 is fixed
|
||||
|
@ -1,5 +1,5 @@
|
||||
; REQUIRES: cxx-shared-library
|
||||
; RUN: %lli -remote-mcjit -mcjit-remote-process=lli-child-target%exeext %s
|
||||
; RUN: %lli -jit-kind=mcjit -remote-mcjit -mcjit-remote-process=lli-child-target%exeext %s
|
||||
; XFAIL: arm, cygwin, windows-msvc, windows-gnu
|
||||
; UNSUPPORTED: powerpc64-unknown-linux-gnu
|
||||
; Remove UNSUPPORTED for powerpc64-unknown-linux-gnu if problem caused by r266663 is fixed
|
||||
|
@ -1,4 +1,4 @@
|
||||
; RUN: %lli -extra-module=%p/Inputs/multi-module-b.ll -extra-module=%p/Inputs/multi-module-c.ll -disable-lazy-compilation=true -remote-mcjit -mcjit-remote-process=lli-child-target%exeext %s > /dev/null
|
||||
; RUN: %lli -jit-kind=mcjit -extra-module=%p/Inputs/multi-module-b.ll -extra-module=%p/Inputs/multi-module-c.ll -disable-lazy-compilation=true -remote-mcjit -mcjit-remote-process=lli-child-target%exeext %s > /dev/null
|
||||
; XFAIL: windows-gnu,windows-msvc
|
||||
; UNSUPPORTED: powerpc64-unknown-linux-gnu
|
||||
; Remove UNSUPPORTED for powerpc64-unknown-linux-gnu if problem caused by r266663 is fixed
|
||||
|
@ -1,4 +1,4 @@
|
||||
; RUN: %lli -remote-mcjit -mcjit-remote-process=lli-child-target%exeext %s > /dev/null
|
||||
; RUN: %lli -jit-kind=mcjit -remote-mcjit -mcjit-remote-process=lli-child-target%exeext %s > /dev/null
|
||||
; XFAIL: windows-gnu,windows-msvc
|
||||
; UNSUPPORTED: powerpc64-unknown-linux-gnu
|
||||
; Remove UNSUPPORTED for powerpc64-unknown-linux-gnu if problem caused by r266663 is fixed
|
||||
|
@ -1,4 +1,4 @@
|
||||
; RUN: %lli -remote-mcjit -disable-lazy-compilation=false -mcjit-remote-process=lli-child-target%exeext %s
|
||||
; RUN: %lli -jit-kind=mcjit -remote-mcjit -disable-lazy-compilation=false -mcjit-remote-process=lli-child-target%exeext %s
|
||||
; XFAIL: windows-gnu,windows-msvc
|
||||
; UNSUPPORTED: powerpc64-unknown-linux-gnu
|
||||
; Remove UNSUPPORTED for powerpc64-unknown-linux-gnu if problem caused by r266663 is fixed
|
||||
|
@ -1,4 +1,4 @@
|
||||
; RUN: %lli -remote-mcjit -disable-lazy-compilation=false -relocation-model=pic -code-model=small %s
|
||||
; RUN: %lli -jit-kind=mcjit -remote-mcjit -disable-lazy-compilation=false -relocation-model=pic -code-model=small %s
|
||||
; XFAIL: *
|
||||
; This function should fail until remote symbol resolution is supported.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
; RUN: %lli -remote-mcjit -O0 -disable-lazy-compilation=false -mcjit-remote-process=lli-child-target%exeext %s
|
||||
; RUN: %lli -jit-kind=mcjit -remote-mcjit -O0 -disable-lazy-compilation=false -mcjit-remote-process=lli-child-target%exeext %s
|
||||
; XFAIL: windows-gnu,windows-msvc
|
||||
; UNSUPPORTED: powerpc64-unknown-linux-gnu
|
||||
; Remove UNSUPPORTED for powerpc64-unknown-linux-gnu if problem caused by r266663 is fixed
|
||||
|
@ -1,4 +1,4 @@
|
||||
; RUN: %lli -remote-mcjit -O0 -mcjit-remote-process=lli-child-target%exeext %s
|
||||
; RUN: %lli -jit-kind=mcjit -remote-mcjit -O0 -mcjit-remote-process=lli-child-target%exeext %s
|
||||
; XFAIL: windows-gnu,windows-msvc
|
||||
; UNSUPPORTED: powerpc64-unknown-linux-gnu
|
||||
; Remove UNSUPPORTED for powerpc64-unknown-linux-gnu if problem caused by r266663 is fixed
|
||||
|
@ -1,4 +1,4 @@
|
||||
; RUN: %lli -remote-mcjit -mcjit-remote-process=lli-child-target%exeext %s > /dev/null
|
||||
; RUN: %lli -jit-kind=mcjit -remote-mcjit -mcjit-remote-process=lli-child-target%exeext %s > /dev/null
|
||||
; XFAIL: windows-gnu,windows-msvc
|
||||
; UNSUPPORTED: powerpc64-unknown-linux-gnu
|
||||
; Remove UNSUPPORTED for powerpc64-unknown-linux-gnu if problem caused by r266663 is fixed
|
||||
|
@ -1,4 +1,4 @@
|
||||
; RUN: %lli -remote-mcjit -mcjit-remote-process=lli-child-target%exeext %s > /dev/null
|
||||
; RUN: %lli -jit-kind=mcjit -remote-mcjit -mcjit-remote-process=lli-child-target%exeext %s > /dev/null
|
||||
; XFAIL: windows-gnu,windows-msvc
|
||||
; UNSUPPORTED: powerpc64-unknown-linux-gnu
|
||||
; Remove UNSUPPORTED for powerpc64-unknown-linux-gnu if problem caused by r266663 is fixed
|
||||
|
@ -1,4 +1,4 @@
|
||||
; RUN: %lli -remote-mcjit -mcjit-remote-process=lli-child-target%exeext \
|
||||
; RUN: %lli -jit-kind=mcjit -remote-mcjit -mcjit-remote-process=lli-child-target%exeext \
|
||||
; RUN: -relocation-model=pic -code-model=small %s > /dev/null
|
||||
; XFAIL: mips-, mipsel-, aarch64, arm, i686, i386, windows-gnu, windows-msvc
|
||||
; UNSUPPORTED: powerpc64-unknown-linux-gnu
|
||||
|
@ -1,4 +1,4 @@
|
||||
; RUN: %lli -remote-mcjit -O0 -mcjit-remote-process=lli-child-target%exeext %s
|
||||
; RUN: %lli -jit-kind=mcjit -remote-mcjit -O0 -mcjit-remote-process=lli-child-target%exeext %s
|
||||
; XFAIL: windows-gnu,windows-msvc
|
||||
; UNSUPPORTED: powerpc64-unknown-linux-gnu
|
||||
; Remove UNSUPPORTED for powerpc64-unknown-linux-gnu if problem caused by r266663 is fixed
|
||||
|
@ -1,4 +1,4 @@
|
||||
; RUN: %lli -remote-mcjit -mcjit-remote-process=lli-child-target%exeext \
|
||||
; RUN: %lli -jit-kind=mcjit -remote-mcjit -mcjit-remote-process=lli-child-target%exeext \
|
||||
; RUN: -O0 -relocation-model=pic -code-model=small %s
|
||||
; XFAIL: mips-, mipsel-, aarch64, arm, i686, i386, windows-gnu, windows-msvc
|
||||
; UNSUPPORTED: powerpc64-unknown-linux-gnu
|
||||
|
@ -1,3 +1,4 @@
|
||||
; RUN: %lli -jit-kind=mcjit %s > /dev/null
|
||||
; RUN: %lli %s > /dev/null
|
||||
|
||||
define i32 @main() {
|
||||
|
@ -1,3 +1,4 @@
|
||||
; RUN: %lli -jit-kind=mcjit %s > /dev/null
|
||||
; RUN: %lli %s > /dev/null
|
||||
|
||||
define i32 @bar() {
|
||||
|
@ -1,3 +1,4 @@
|
||||
; RUN: %lli -jit-kind=mcjit -disable-lazy-compilation=false -relocation-model=pic -code-model=small %s
|
||||
; RUN: %lli -disable-lazy-compilation=false -relocation-model=pic -code-model=small %s
|
||||
; XFAIL: mips-, mipsel-, i686, i386, aarch64, arm
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
; RUN: %lli -jit-kind=mcjit -disable-lazy-compilation=false %s
|
||||
; RUN: %lli -disable-lazy-compilation=false %s
|
||||
|
||||
define i32 @main() nounwind {
|
||||
|
@ -1,3 +1,4 @@
|
||||
; RUN: %lli -jit-kind=mcjit %s > /dev/null
|
||||
; RUN: %lli %s > /dev/null
|
||||
|
||||
define i32 @main() {
|
||||
|
@ -1,3 +1,4 @@
|
||||
; RUN: %lli -jit-kind=mcjit %s > /dev/null
|
||||
; RUN: %lli %s > /dev/null
|
||||
|
||||
; test unconditional branch
|
||||
|
@ -1,3 +1,4 @@
|
||||
; RUN: %lli -jit-kind=mcjit %s > /dev/null
|
||||
; RUN: %lli %s > /dev/null
|
||||
|
||||
define i32 @_Z14func_exit_codev() nounwind uwtable {
|
||||
|
@ -1,3 +1,4 @@
|
||||
; RUN: %lli -jit-kind=mcjit %s > /dev/null
|
||||
; RUN: %lli %s > /dev/null
|
||||
|
||||
declare void @exit(i32)
|
||||
|
@ -1,3 +1,4 @@
|
||||
; RUN: %lli -jit-kind=mcjit %s > /dev/null
|
||||
; RUN: %lli %s > /dev/null
|
||||
|
||||
define i32 @foo() {
|
||||
|
@ -1,3 +1,4 @@
|
||||
; RUN: %lli -jit-kind=mcjit -O0 %s
|
||||
; RUN: %lli -O0 %s
|
||||
|
||||
; This test checks that common symbols have been allocated addresses honouring
|
||||
|
@ -1,3 +1,4 @@
|
||||
; RUN: %lli -jit-kind=mcjit -O0 -disable-lazy-compilation=false %s
|
||||
; RUN: %lli -O0 -disable-lazy-compilation=false %s
|
||||
|
||||
; The intention of this test is to verify that symbols mapped to COMMON in ELF
|
||||
|
@ -1,3 +1,4 @@
|
||||
; RUN: %lli -jit-kind=mcjit %s > /dev/null
|
||||
; RUN: %lli %s > /dev/null
|
||||
|
||||
; This tests to make sure that we can evaluate weird constant expressions
|
||||
|
@ -1,3 +1,4 @@
|
||||
; RUN: %lli -jit-kind=mcjit -O0 %s
|
||||
; RUN: %lli -O0 %s
|
||||
|
||||
; Check that a variable is always aligned as specified.
|
||||
|
@ -1,3 +1,4 @@
|
||||
; RUN: %lli -jit-kind=mcjit %s > /dev/null
|
||||
; RUN: %lli %s > /dev/null
|
||||
|
||||
define double @test(double* %DP, double %Arg) {
|
||||
|
@ -1,3 +1,4 @@
|
||||
; RUN: %lli -jit-kind=mcjit %s > /dev/null
|
||||
; RUN: %lli %s > /dev/null
|
||||
|
||||
define double @test(double* %DP, double %Arg) {
|
||||
|
@ -1,3 +1,4 @@
|
||||
; RUN: %lli -jit-kind=mcjit %s > /dev/null
|
||||
; RUN: %lli %s > /dev/null
|
||||
; XFAIL: darwin
|
||||
@var = global i32 1, align 4
|
||||
|
@ -1,3 +1,4 @@
|
||||
; RUN: %lli -jit-kind=mcjit -relocation-model=pic -code-model=small %s > /dev/null
|
||||
; RUN: %lli -relocation-model=pic -code-model=small %s > /dev/null
|
||||
; XFAIL: mips-, mipsel-, aarch64, arm, i686, i386
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
; RUN: %lli -jit-kind=mcjit %s > /dev/null
|
||||
; RUN: %lli %s > /dev/null
|
||||
|
||||
@count = global i32 1, align 4
|
||||
|
@ -1,3 +1,4 @@
|
||||
; RUN: %lli -jit-kind=mcjit %s > /dev/null
|
||||
; RUN: %lli %s > /dev/null
|
||||
|
||||
@count = global i32 0, align 4
|
||||
|
@ -1,3 +1,4 @@
|
||||
; RUN: %lli -jit-kind=mcjit %s > /dev/null
|
||||
; RUN: %lli %s > /dev/null
|
||||
|
||||
define void @test(i8* %P, i16* %P.upgrd.1, i32* %P.upgrd.2, i64* %P.upgrd.3) {
|
||||
|
@ -1,3 +1,4 @@
|
||||
; RUN: %lli -jit-kind=mcjit %s > /dev/null
|
||||
; RUN: %lli %s > /dev/null
|
||||
|
||||
define i32 @main() nounwind uwtable {
|
||||
|
@ -1,3 +1,4 @@
|
||||
; RUN: %lli -jit-kind=mcjit %s > /dev/null
|
||||
; RUN: %lli %s > /dev/null
|
||||
|
||||
define i32 @main() {
|
||||
|
@ -1,3 +1,4 @@
|
||||
; RUN: %lli -jit-kind=mcjit %s > /dev/null
|
||||
; RUN: %lli %s > /dev/null
|
||||
|
||||
define i32 @main() {
|
||||
|
@ -1,3 +1,4 @@
|
||||
; RUN: %lli -jit-kind=mcjit %s > /dev/null
|
||||
; RUN: %lli %s > /dev/null
|
||||
|
||||
; test phi node
|
||||
|
@ -1,3 +1,4 @@
|
||||
; RUN: %lli -jit-kind=mcjit -O0 -relocation-model=pic -code-model=small %s
|
||||
; RUN: %lli -O0 -relocation-model=pic -code-model=small %s
|
||||
; XFAIL: mips-, mipsel-, aarch64, arm, i686, i386
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
; RUN: %lli -jit-kind=mcjit -O0 %s
|
||||
; RUN: %lli -O0 %s
|
||||
|
||||
@.str = private unnamed_addr constant [6 x i8] c"data1\00", align 1
|
||||
|
@ -1,3 +1,4 @@
|
||||
; RUN: %lli -jit-kind=mcjit %s > /dev/null
|
||||
; RUN: %lli %s > /dev/null
|
||||
|
||||
; test return instructions
|
||||
|
@ -1,3 +1,4 @@
|
||||
; RUN: %lli -jit-kind=mcjit %s > /dev/null
|
||||
; RUN: %lli %s > /dev/null
|
||||
|
||||
define i32 @main() nounwind uwtable {
|
||||
|
@ -1,3 +1,4 @@
|
||||
; RUN: %lli -jit-kind=mcjit %s > /dev/null
|
||||
; RUN: %lli %s > /dev/null
|
||||
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
; RUN: %lli -jit-kind=mcjit %s > /dev/null
|
||||
; RUN: %lli %s > /dev/null
|
||||
|
||||
define i32 @main() {
|
||||
|
@ -1,3 +1,4 @@
|
||||
; RUN: %lli -jit-kind=mcjit %s > /dev/null
|
||||
; RUN: %lli %s > /dev/null
|
||||
|
||||
define i32 @main() {
|
||||
|
@ -1,4 +1,5 @@
|
||||
; RUN: lli -jit-kind=mcjit -extra-module %p/Inputs/weak-function-2.ll %s
|
||||
; RUN: lli -extra-module %p/Inputs/weak-function-2.ll %s
|
||||
; UNSUPPORTED: uses_COFF
|
||||
;
|
||||
; Check that functions in two different modules agree on the address of weak
|
||||
|
@ -1,3 +1,4 @@
|
||||
; RUN: %lli -jit-kind=mcjit %s | FileCheck %s
|
||||
; RUN: %lli %s | FileCheck %s
|
||||
; REQUIRES: fma3
|
||||
; CHECK: 12.000000
|
||||
|
@ -2,6 +2,7 @@
|
||||
; floating point intrinsics (defined as macros) are used.
|
||||
; This unit test guards against the failure.
|
||||
;
|
||||
; RUN: %lli -jit-kind=mcjit %s | FileCheck %s
|
||||
; RUN: %lli %s | FileCheck %s
|
||||
|
||||
@flt = internal global float 12.0e+0
|
||||
|
@ -1,3 +1,4 @@
|
||||
; RUN: %lli -jit-kind=mcjit %s > /dev/null
|
||||
; RUN: %lli %s > /dev/null
|
||||
|
||||
define i64 @foo() {
|
||||
|
@ -1,3 +1,4 @@
|
||||
; RUN: %lli -jit-kind=mcjit %s > /dev/null
|
||||
; RUN: %lli %s > /dev/null
|
||||
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
; RUN: %lli -jit-kind=mcjit %s > /dev/null
|
||||
; RUN: %lli %s > /dev/null
|
||||
|
||||
define i32 @main() {
|
||||
|
@ -1,4 +1,4 @@
|
||||
; RUN: %lli -force-interpreter=true %s > /dev/null
|
||||
; RUN: %lli -jit-kind=mcjit -force-interpreter=true %s > /dev/null
|
||||
|
||||
define i32 @main() {
|
||||
zext <2 x i1> <i1 true,i1 true> to <2 x i8>
|
||||
|
@ -1,4 +1,4 @@
|
||||
; RUN: %lli -force-interpreter=true %s > /dev/null
|
||||
; RUN: %lli -jit-kind=mcjit -force-interpreter=true %s > /dev/null
|
||||
|
||||
define i32 @main() {
|
||||
%v0 = insertelement <2 x i8> zeroinitializer, i8 1, i32 1
|
||||
|
@ -1,4 +1,4 @@
|
||||
; RUN: %lli -force-interpreter=true %s > /dev/null
|
||||
; RUN: %lli -jit-kind=mcjit -force-interpreter=true %s > /dev/null
|
||||
|
||||
define i32 @main() {
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
; RUN: %lli -force-interpreter=true %s | FileCheck %s
|
||||
; RUN: %lli -jit-kind=mcjit -force-interpreter=true %s | FileCheck %s
|
||||
; CHECK: int test passed
|
||||
; CHECK: double test passed
|
||||
; CHECK: float test passed
|
||||
|
@ -1,3 +1,4 @@
|
||||
; RUN: %lli -jit-kind=mcjit %s > /dev/null
|
||||
; RUN: %lli %s > /dev/null
|
||||
|
||||
define i32 @main() {
|
||||
|
@ -1,4 +1,4 @@
|
||||
; RUN: %lli -force-interpreter=true %s > /dev/null
|
||||
; RUN: %lli -jit-kind=mcjit -force-interpreter=true %s > /dev/null
|
||||
|
||||
define i32 @main() {
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
; RUN: %lli -jit-kind=mcjit %s > /dev/null
|
||||
; RUN: %lli %s > /dev/null
|
||||
|
||||
define i32 @main() {
|
||||
|
@ -1,3 +1,4 @@
|
||||
; RUN: %lli -jit-kind=mcjit %s > /dev/null
|
||||
; RUN: %lli %s > /dev/null
|
||||
|
||||
define i32 @main() {
|
||||
|
@ -1,4 +1,4 @@
|
||||
; RUN: %lli -force-interpreter=true %s > /dev/null
|
||||
; RUN: %lli -jit-kind=mcjit -force-interpreter=true %s > /dev/null
|
||||
|
||||
define i32 @main() {
|
||||
%shamt = add <2 x i8> <i8 0, i8 0>, <i8 1, i8 2>
|
||||
|
@ -1,4 +1,4 @@
|
||||
; RUN: %lli -force-interpreter=true %s > /dev/null
|
||||
; RUN: %lli -jit-kind=mcjit -force-interpreter=true %s > /dev/null
|
||||
|
||||
define i32 @main() {
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
|
||||
; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
|
||||
; RUN: diff %t1.ll %t2.ll
|
||||
; RUN: llvm-as < %s | lli --force-interpreter=true | FileCheck %s
|
||||
; RUN: llvm-as < %s | lli -jit-kind=mcjit --force-interpreter=true | FileCheck %s
|
||||
; CHECK: -255
|
||||
|
||||
@ARRAY = global [ 20 x i17 ] zeroinitializer
|
||||
|
@ -1,4 +1,4 @@
|
||||
; RUN: opt < %s -licm | lli -force-interpreter
|
||||
; RUN: opt < %s -licm | lli -jit-kind=mcjit -force-interpreter
|
||||
|
||||
define i32 @main() {
|
||||
entry:
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user