llvm-project/llvm/test/ExecutionEngine/OrcMCJIT
Ulrich Weigand 7f02d67fce [RuntimeDyld, PowerPC] Fix check for external symbols when detecting reloction overflow
The PowerPC part of processRelocationRef currently assumes that external
symbols can be identified by checking for SymType == SymbolRef::ST_Unknown.
This is actually incorrect in some cases, causing relocation overflows to
be mis-detected. The correct check is to test whether Value.SymbolName
is null.

Includes test case. Note that it is a bit tricky to replicate the exact
condition that triggers the bug in a test case. The one included here
seems to fail reliably (before the fix) across different operating
system versions on Power, but it still makes a few assumptions (called
out in the test case comments).

Also add ppc64le platform name to the supported list in the lit.local.cfg
files for the MCJIT and OrcMCJIT directories, since those tests were
currently not run at all.

Fixes PR32650.

Reviewer: hfinkel

Differential Revision: https://reviews.llvm.org/D33402

llvm-svn: 303637
2017-05-23 14:51:18 +00:00
..
Inputs [ExecutionEngine] Disable weak symbol tests for COFF. 2016-08-09 20:48:22 +00:00
remote [RuntimeDyld] Revert r279182 and 279201 -- they broke some ARM bots. 2016-08-19 17:06:39 +00:00
2002-12-16-ArgTest.ll [opaque pointer type] Add textual IR support for explicit type parameter to the call instruction 2015-04-16 23:24:18 +00:00
2003-01-04-ArgumentBug.ll
2003-01-04-LoopTest.ll
2003-01-04-PhiTest.ll
2003-01-09-SARTest.ll
2003-01-10-FUCOM.ll
2003-01-15-AlignmentTest.ll
2003-05-06-LivenessClobber.ll
2003-05-07-ArgumentTest.ll
2003-05-11-PHIRegAllocBug.ll
2003-06-04-bzip2-bug.ll
2003-06-05-PHIBug.ll
2003-08-15-AllocaAssertion.ll
2003-08-21-EnvironmentTest.ll
2003-08-23-RegisterAllocatePhysReg.ll
2003-10-18-PHINode-ConstantExpr-CondCode-Failure.ll
2005-12-02-TailCallBug.ll
2007-12-10-APIntLoadStore.ll
2008-06-05-APInt-OverAShr.ll [opaque pointer type] Add textual IR support for explicit type parameter to the call instruction 2015-04-16 23:24:18 +00:00
2013-04-04-RelocAddend.ll
cross-module-a.ll
cross-module-sm-pic-a.ll [Mips64] Add support for MCJIT for MIPS64r2 and MIPS64r6 2015-05-28 13:48:41 +00:00
eh-lg-pic.ll Un-XFAIL JIT EH tests under [am]san. 2015-12-15 23:46:21 +00:00
eh.ll Un-XFAIL JIT EH tests under [am]san. 2015-12-15 23:46:21 +00:00
fpbitcast.ll [opaque pointer type] Add textual IR support for explicit type parameter to the call instruction 2015-04-16 23:24:18 +00:00
hello.ll
hello2.ll [opaque pointer type] Add textual IR support for explicit type parameter to the call instruction 2015-04-16 23:24:18 +00:00
lit.local.cfg [RuntimeDyld, PowerPC] Fix check for external symbols when detecting reloction overflow 2017-05-23 14:51:18 +00:00
load-object-a.ll
multi-module-a.ll
multi-module-eh-a.ll Un-XFAIL JIT EH tests under [am]san. 2015-12-15 23:46:21 +00:00
multi-module-sm-pic-a.ll [Mips64] Add support for MCJIT for MIPS64r2 and MIPS64r6 2015-05-28 13:48:41 +00:00
non-extern-addend.ll
pr13727.ll
pr32650.ll [RuntimeDyld, PowerPC] Fix check for external symbols when detecting reloction overflow 2017-05-23 14:51:18 +00:00
simplesttest.ll
simpletest.ll
stubs-sm-pic.ll [RuntimeDyld] Revert r279182 and 279201 -- they broke some ARM bots. 2016-08-19 17:06:39 +00:00
stubs.ll
test-arith.ll
test-branch.ll
test-call-no-external-funcs.ll
test-call.ll
test-cast.ll
test-common-symbols-alignment.ll
test-common-symbols.ll
test-constantexpr.ll
test-data-align.ll
test-fp-no-external-funcs.ll
test-fp.ll
test-global-ctors.ll
test-global-init-nonzero-sm-pic.ll [RuntimeDyld] Revert r279182 and 279201 -- they broke some ARM bots. 2016-08-19 17:06:39 +00:00
test-global-init-nonzero.ll
test-global.ll
test-loadstore.ll
test-local.ll
test-logical.ll
test-loop.ll
test-phi.ll
test-ptr-reloc-sm-pic.ll [RuntimeDyld] Revert r279182 and 279201 -- they broke some ARM bots. 2016-08-19 17:06:39 +00:00
test-ptr-reloc.ll
test-ret.ll
test-return.ll
test-setcond-fp.ll
test-setcond-int.ll
test-shift.ll
weak-function.ll [ExecutionEngine] Disable weak symbol tests for COFF. 2016-08-09 20:48:22 +00:00