diff options
author | Tim Northover <t.p.northover@gmail.com> | 2013-05-19 15:28:16 +0000 |
---|---|---|
committer | Tim Northover <t.p.northover@gmail.com> | 2013-05-19 15:28:16 +0000 |
commit | 77d0a4ac626bc56e31a83dfe410114f88b95ee5d (patch) | |
tree | b127911bc31150b0ce1e1250c7be15b5297befa5 /llvm/test | |
parent | 1dbf9a236ffaec9db9d3e08295367cdead59f288 (diff) | |
download | bcm5719-llvm-77d0a4ac626bc56e31a83dfe410114f88b95ee5d.tar.gz bcm5719-llvm-77d0a4ac626bc56e31a83dfe410114f88b95ee5d.zip |
Invalidate instruction cache when setting memory to be executable.
lli's remote MCJIT code calls setExecutable just prior to running
code. In line with Darwin behaviour this seems to be the place to
invalidate any caches needed so that relocations can take effect
properly.
llvm-svn: 182213
Diffstat (limited to 'llvm/test')
5 files changed, 4 insertions, 15 deletions
diff --git a/llvm/test/ExecutionEngine/MCJIT/remote/lit.local.cfg b/llvm/test/ExecutionEngine/MCJIT/remote/lit.local.cfg deleted file mode 100644 index 12fcda02732..00000000000 --- a/llvm/test/ExecutionEngine/MCJIT/remote/lit.local.cfg +++ /dev/null @@ -1,11 +0,0 @@ -config.suffixes = ['.ll', '.c', '.cpp'] - -def getRoot(config): - if not config.parent: - return config - return getRoot(config.parent) - -root = getRoot(config) - -if 'arm' in root.target_triple: - config.unsupported = True diff --git a/llvm/test/ExecutionEngine/MCJIT/remote/test-common-symbols-remote.ll b/llvm/test/ExecutionEngine/MCJIT/remote/test-common-symbols-remote.ll index a336c017c08..eb2e68606da 100644 --- a/llvm/test/ExecutionEngine/MCJIT/remote/test-common-symbols-remote.ll +++ b/llvm/test/ExecutionEngine/MCJIT/remote/test-common-symbols-remote.ll @@ -1,5 +1,5 @@ ; RUN: %lli_mcjit -remote-mcjit -O0 -disable-lazy-compilation=false %s -; XFAIL: arm, mips +; XFAIL: mips ; The intention of this test is to verify that symbols mapped to COMMON in ELF ; work as expected. diff --git a/llvm/test/ExecutionEngine/MCJIT/remote/test-data-align-remote.ll b/llvm/test/ExecutionEngine/MCJIT/remote/test-data-align-remote.ll index 9daf1684de8..874eeae2069 100644 --- a/llvm/test/ExecutionEngine/MCJIT/remote/test-data-align-remote.ll +++ b/llvm/test/ExecutionEngine/MCJIT/remote/test-data-align-remote.ll @@ -1,5 +1,5 @@ ; RUN: %lli_mcjit -remote-mcjit -O0 %s -; XFAIL: armv7, mips +; XFAIL: mips ; Check that a variable is always aligned as specified. diff --git a/llvm/test/ExecutionEngine/MCJIT/remote/test-global-init-nonzero-remote.ll b/llvm/test/ExecutionEngine/MCJIT/remote/test-global-init-nonzero-remote.ll index b8d94b50cfe..5337c5d2582 100644 --- a/llvm/test/ExecutionEngine/MCJIT/remote/test-global-init-nonzero-remote.ll +++ b/llvm/test/ExecutionEngine/MCJIT/remote/test-global-init-nonzero-remote.ll @@ -1,5 +1,5 @@ ; RUN: %lli_mcjit -remote-mcjit %s > /dev/null -; XFAIL: arm, mips +; XFAIL: mips @count = global i32 1, align 4 diff --git a/llvm/test/ExecutionEngine/MCJIT/remote/test-ptr-reloc-remote.ll b/llvm/test/ExecutionEngine/MCJIT/remote/test-ptr-reloc-remote.ll index 833a56a4a95..1a55879f8f6 100644 --- a/llvm/test/ExecutionEngine/MCJIT/remote/test-ptr-reloc-remote.ll +++ b/llvm/test/ExecutionEngine/MCJIT/remote/test-ptr-reloc-remote.ll @@ -1,5 +1,5 @@ ; RUN: %lli_mcjit -remote-mcjit -O0 %s -; XFAIL: arm, mips +; XFAIL: mips @.str = private unnamed_addr constant [6 x i8] c"data1\00", align 1 @ptr = global i8* getelementptr inbounds ([6 x i8]* @.str, i32 0, i32 0), align 4 |