summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/ExecutionEngine/JIT/JITTest.cpp
diff options
context:
space:
mode:
authorJeffrey Yasskin <jyasskin@google.com>2009-11-24 02:11:14 +0000
committerJeffrey Yasskin <jyasskin@google.com>2009-11-24 02:11:14 +0000
commit9c2d34012d0c23a4a61b59e364b73be32522ef27 (patch)
treee45c98f50e93819f677dbd64b79930a03647ec8e /llvm/unittests/ExecutionEngine/JIT/JITTest.cpp
parentcfb181d3cba3cd7f431b1417dd2d00afee5a62a3 (diff)
downloadbcm5719-llvm-9c2d34012d0c23a4a61b59e364b73be32522ef27.tar.gz
bcm5719-llvm-9c2d34012d0c23a4a61b59e364b73be32522ef27.zip
Oops. Re-disable JITTest.NoStubs on ARM and PPC since they still use stubs to
make far calls work. llvm-svn: 89733
Diffstat (limited to 'llvm/unittests/ExecutionEngine/JIT/JITTest.cpp')
-rw-r--r--llvm/unittests/ExecutionEngine/JIT/JITTest.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/unittests/ExecutionEngine/JIT/JITTest.cpp b/llvm/unittests/ExecutionEngine/JIT/JITTest.cpp
index b676ee41b27..12c6b67d987 100644
--- a/llvm/unittests/ExecutionEngine/JIT/JITTest.cpp
+++ b/llvm/unittests/ExecutionEngine/JIT/JITTest.cpp
@@ -457,6 +457,10 @@ TEST_F(JITTest, ModuleDeletion) {
NumTablesDeallocated);
}
+// ARM and PPC still emit stubs for calls since the target may be too far away
+// to call directly. This #if can probably be removed when
+// http://llvm.org/PR5201 is fixed.
+#if !defined(__arm__) && !defined(__powerpc__) && !defined(__ppc__)
typedef int (*FooPtr) ();
TEST_F(JITTest, NoStubs) {
@@ -494,6 +498,7 @@ TEST_F(JITTest, NoStubs) {
ASSERT_EQ(stubsBefore, RJMM->stubsAllocated);
}
+#endif // !ARM && !PPC
TEST_F(JITTest, FunctionPointersOutliveTheirCreator) {
TheJIT->DisableLazyCompilation(true);
OpenPOWER on IntegriCloud