1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 20:23:11 +01:00
llvm-mirror/test/ExecutionEngine/MCJIT
Ulrich Weigand 1c8e58ce82 [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
2003-01-04-ArgumentBug.ll
2003-01-04-LoopTest.ll Reinstate "Nuke the old JIT." 2014-09-02 22:28:02 +00:00
2003-01-04-PhiTest.ll
2003-01-09-SARTest.ll
2003-01-10-FUCOM.ll
2003-01-15-AlignmentTest.ll Reinstate "Nuke the old JIT." 2014-09-02 22:28:02 +00:00
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
2013-04-04-RelocAddend.ll [opaque pointer type] Add textual IR support for explicit type parameter to gep operator 2015-03-13 18:20:45 +00:00
cross-module-a.ll
cross-module-sm-pic-a.ll
eh-lg-pic.ll
eh.ll
fpbitcast.ll
hello2.ll
hello.ll
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
multi-module-sm-pic-a.ll
non-extern-addend.ll Reinstate "Nuke the old JIT." 2014-09-02 22:28:02 +00:00
pr13727.ll
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 Reinstate "Nuke the old JIT." 2014-09-02 22:28:02 +00:00
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 [opaque pointer type] Add textual IR support for explicit type parameter to load instruction 2015-02-27 21:17:42 +00:00
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