Oops. Re-disable JITTest.NoStubs on ARM and PPC since they still use stubs to
authorJeffrey Yasskin <jyasskin@google.com>
Tue, 24 Nov 2009 02:11:14 +0000 (02:11 +0000)
committerJeffrey Yasskin <jyasskin@google.com>
Tue, 24 Nov 2009 02:11:14 +0000 (02:11 +0000)
make far calls work.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89733 91177308-0d34-0410-b5e6-96231b3b80d8

unittests/ExecutionEngine/JIT/JITTest.cpp

index b676ee41b27531d40d5badac84d1ad6ef8852d0b..12c6b67d987543b5b4af8006e090d3dfe2616698 100644 (file)
@@ -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);