llvm.org GIT mirror llvm / 0005cc7
Excluding ARM JIT tests until someone can fix this compilation path. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138676 91177308-0d34-0410-b5e6-96231b3b80d8 Andrew Trick 9 years ago
15 changed file(s) with 23 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 ; RUN: lli %s > /dev/null
1 ; XFAIL: arm
12
23 define i32 @foo(i32 %X, i32 %Y, double %A) {
34 %cond212 = fcmp une double %A, 1.000000e+00 ; [#uses=1]
0 ; RUN: lli %s > /dev/null
1 ; XFAIL: arm
12
23 define i32 @main() {
34 call i32 @mylog( i32 4 ) ; :1 [#uses=0]
0 ; RUN: lli %s > /dev/null
1 ; XFAIL: arm
12
23 define i32 @bar(i8* %X) {
34 ; pointer should be 4 byte aligned!
0 ; This testcase should return with an exit code of 1.
11 ;
22 ; RUN: not lli %s
3 ; XFAIL: arm
34
45 @test = global i64 0 ; [#uses=1]
56
0 ; RUN: lli %s test
1 ; XFAIL: arm
12
23 declare i32 @puts(i8*)
34
0 ; RUN: lli %s > /dev/null
1 ; XFAIL: arm
12
23 ; This testcase failed to work because two variable sized allocas confused the
34 ; local register allocator.
0 ; RUN: lli %s > /dev/null
1 ; XFAIL: arm
12
23 ;
34 ; Regression Test: EnvironmentTest.ll
0 ; RUN: lli %s > /dev/null
1 ; XFAIL: arm
12
23 ; This testcase exposes a bug in the local register allocator where it runs out
34 ; of registers (due to too many overlapping live ranges), but then attempts to
0 ; RUN: lli %s > /dev/null
1 ; XFAIL: arm
12
23 @A = global i32 0 ; [#uses=1]
34
0 ; RUN: lli %s > /dev/null
1 ; XFAIL: arm
12
23 @.LC0 = internal global [12 x i8] c"Hello World\00" ; <[12 x i8]*> [#uses=1]
34
0 ; RUN: lli %s > /dev/null
1 ; XFAIL: arm
12
23 @X = global i32 7 ; [#uses=0]
34 @msg = internal global [13 x i8] c"Hello World\0A\00" ; <[13 x i8]*> [#uses=1]
0 ; RUN: lli %s > /dev/null
1 ; XFAIL: arm
12
23 define i32 @bar() {
34 ret i32 0
0 ; RUN: lli -disable-lazy-compilation=false %s
1 ; XFAIL: arm
12
23 define i32 @main() nounwind {
34 entry:
0 ; RUN: lli %s > /dev/null
1 ; XFAIL: arm
12
23 define void @test(i8* %P, i16* %P.upgrd.1, i32* %P.upgrd.2, i64* %P.upgrd.3) {
34 %V = load i8* %P ; [#uses=1]
283283 return arg + 1;
284284 }
285285
286 // ARM tests disabled pending fix for PR10783.
287 #if !defined(__arm__)
286288 TEST_F(JITTest, FarCallToKnownFunction) {
287289 // x86-64 can only make direct calls to functions within 32 bits of
288290 // the current PC. To call anything farther away, we have to load
460462 EXPECT_EQ(RJMM->startExceptionTableCalls.size(),
461463 NumTablesDeallocated);
462464 }
465 #endif // !defined(__arm__)
463466
464467 // ARM and PPC still emit stubs for calls since the target may be too far away
465468 // to call directly. This #if can probably be removed when
607610 }
608611 namespace {
609612
613 // ARM tests disabled pending fix for PR10783.
614 #if !defined(__arm__)
610615 TEST_F(JITTest, AvailableExternallyFunctionIsntCompiled) {
611616 TheJIT->DisableLazyCompilation(true);
612617 LoadAssembly("define available_externally i32 "
626631 EXPECT_EQ(42, func()) << "func should return 42 from the static version,"
627632 << " not 7 from the IR version.";
628633 }
634 #endif // !defined(__arm__)
629635
630636 TEST_F(JITTest, EscapedLazyStubStillCallable) {
631637 TheJIT->DisableLazyCompilation(false);
728734 << " not 7 from the IR version.";
729735 }
730736
737 // ARM tests disabled pending fix for PR10783.
738 #if !defined(__arm__)
731739 TEST(LazyLoadedJITTest, EagerCompiledRecursionThroughGhost) {
732740 LLVMContext Context;
733741 const std::string Bitcode =
762770 (intptr_t)TheJIT->getPointerToFunction(recur1IR));
763771 EXPECT_EQ(3, recur1(4));
764772 }
773 #endif // !defined(__arm__)
765774
766775 // This code is copied from JITEventListenerTest, but it only runs once for all
767776 // the tests in this directory. Everything seems fine, but that's strange