1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 12:41:49 +01:00

Disable JITTest.FunctionIsRecompiledAndRelinked and JITTest.NoStubs

on MIPS where they are not implemented.

llvm-svn: 156935
This commit is contained in:
Simon Atanasyan 2012-05-16 19:07:55 +00:00
parent 6fbce86b24
commit 8bc0051492

View File

@ -477,10 +477,11 @@ TEST_F(JITTest, ModuleDeletion) {
}
#endif // !defined(__arm__)
// 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
// ARM, MIPS 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__)
#if !defined(__arm__) && !defined(__mips__) && \
!defined(__powerpc__) && !defined(__ppc__)
typedef int (*FooPtr) ();
TEST_F(JITTest, NoStubs) {
@ -554,9 +555,10 @@ TEST_F(JITTest, FunctionPointersOutliveTheirCreator) {
#endif
}
// ARM doesn't have an implementation of replaceMachineCodeForFunction(), so
// recompileAndRelinkFunction doesn't work.
#if !defined(__arm__)
// ARM and MIPS do not have an implementation
// of replaceMachineCodeForFunction(), so recompileAndRelinkFunction
// doesn't work.
#if !defined(__arm__) && !defined(__mips__)
TEST_F(JITTest, FunctionIsRecompiledAndRelinked) {
Function *F = Function::Create(TypeBuilder<int(void), false>::get(Context),
GlobalValue::ExternalLinkage, "test", M);