llvm-project/llvm/test/ExecutionEngine
Peter Collingbourne a51c6ed608 Introduce llvm::sys::getProcessTriple() function.
In r143502, we renamed getHostTriple() to getDefaultTargetTriple()
as part of work to allow the user to supply a different default
target triple at configure time.  This change also affected the JIT.
However, it is inappropriate to use the default target triple in the
JIT in most circumstances because this will not necessarily match
the current architecture used by the process, leading to illegal
instruction and other such errors at run time.

Introduce the getProcessTriple() function for use in the JIT and
its clients, and cause the JIT to use it.  On architectures with a
single bitness, the host and process triples are identical.  On other
architectures, the host triple represents the architecture of the
host CPU, while the process triple represents the architecture used
by the host CPU to interpret machine code within the current process.
For example, when executing 32-bit code on a 64-bit Linux machine,
the host triple may be 'x86_64-unknown-linux-gnu', while the process
triple may be 'i386-unknown-linux-gnu'.

This fixes JIT for the 32-on-64-bit (and vice versa) build on non-Apple
platforms.

Differential Revision: http://llvm-reviews.chandlerc.com/D254

llvm-svn: 172627
2013-01-16 17:27:22 +00:00
..
MCJIT Introduce llvm::sys::getProcessTriple() function. 2013-01-16 17:27:22 +00:00
2002-12-16-ArgTest.ll Some regression tests which are testing the old jit and are exercising functionality which is both known to be broken and not expected to be fixed in the old jit. To remove these from the regression test output, I've marked them XFAIL (for lit tests) and ifdef'd them out (unit tests). These modifications remove the last long-standing regression test failures from the buildbots (though updating the triple to reflect new ubuntu configuration has temporarily caused some new failures). Tested on x86-64 and ARM Linux. 2012-10-08 13:06:30 +00:00
2003-01-04-ArgumentBug.ll This patch improves the MCJIT runtime dynamic loader by adding new handling 2012-04-12 20:13:57 +00:00
2003-01-04-LoopTest.ll This patch improves the MCJIT runtime dynamic loader by adding new handling 2012-04-12 20:13:57 +00:00
2003-01-04-PhiTest.ll Adding a basic ELF dynamic loader and MC-JIT for ELF. Functionality is currently basic and will be enhanced with future patches. 2012-01-16 08:56:09 +00:00
2003-01-09-SARTest.ll Adding a basic ELF dynamic loader and MC-JIT for ELF. Functionality is currently basic and will be enhanced with future patches. 2012-01-16 08:56:09 +00:00
2003-01-10-FUCOM.ll Adding a basic ELF dynamic loader and MC-JIT for ELF. Functionality is currently basic and will be enhanced with future patches. 2012-01-16 08:56:09 +00:00
2003-01-15-AlignmentTest.ll Adding a basic ELF dynamic loader and MC-JIT for ELF. Functionality is currently basic and will be enhanced with future patches. 2012-01-16 08:56:09 +00:00
2003-05-06-LivenessClobber.ll This patch improves the MCJIT runtime dynamic loader by adding new handling 2012-04-12 20:13:57 +00:00
2003-05-07-ArgumentTest.ll This patch improves the MCJIT runtime dynamic loader by adding new handling 2012-04-12 20:13:57 +00:00
2003-05-11-PHIRegAllocBug.ll Adding a basic ELF dynamic loader and MC-JIT for ELF. Functionality is currently basic and will be enhanced with future patches. 2012-01-16 08:56:09 +00:00
2003-06-04-bzip2-bug.ll Adding a basic ELF dynamic loader and MC-JIT for ELF. Functionality is currently basic and will be enhanced with future patches. 2012-01-16 08:56:09 +00:00
2003-06-05-PHIBug.ll Adding a basic ELF dynamic loader and MC-JIT for ELF. Functionality is currently basic and will be enhanced with future patches. 2012-01-16 08:56:09 +00:00
2003-08-15-AllocaAssertion.ll Adding a basic ELF dynamic loader and MC-JIT for ELF. Functionality is currently basic and will be enhanced with future patches. 2012-01-16 08:56:09 +00:00
2003-08-21-EnvironmentTest.ll This patch improves the MCJIT runtime dynamic loader by adding new handling 2012-04-12 20:13:57 +00:00
2003-08-23-RegisterAllocatePhysReg.ll Adding a basic ELF dynamic loader and MC-JIT for ELF. Functionality is currently basic and will be enhanced with future patches. 2012-01-16 08:56:09 +00:00
2003-10-18-PHINode-ConstantExpr-CondCode-Failure.ll Adding a basic ELF dynamic loader and MC-JIT for ELF. Functionality is currently basic and will be enhanced with future patches. 2012-01-16 08:56:09 +00:00
2005-12-02-TailCallBug.ll This patch improves the MCJIT runtime dynamic loader by adding new handling 2012-04-12 20:13:57 +00:00
2007-12-10-APIntLoadStore.ll Adding a basic ELF dynamic loader and MC-JIT for ELF. Functionality is currently basic and will be enhanced with future patches. 2012-01-16 08:56:09 +00:00
2008-06-05-APInt-OverAShr.ll Adding a basic ELF dynamic loader and MC-JIT for ELF. Functionality is currently basic and will be enhanced with future patches. 2012-01-16 08:56:09 +00:00
2010-01-15-UndefValue.ll Adding a basic ELF dynamic loader and MC-JIT for ELF. Functionality is currently basic and will be enhanced with future patches. 2012-01-16 08:56:09 +00:00
fpbitcast.ll Adding a basic ELF dynamic loader and MC-JIT for ELF. Functionality is currently basic and will be enhanced with future patches. 2012-01-16 08:56:09 +00:00
hello.ll This patch improves the MCJIT runtime dynamic loader by adding new handling 2012-04-12 20:13:57 +00:00
hello2.ll This patch improves the MCJIT runtime dynamic loader by adding new handling 2012-04-12 20:13:57 +00:00
lit.local.cfg Enable MCJIT tests on PowerPC. 2012-11-19 17:57:07 +00:00
simplesttest.ll Adding a basic ELF dynamic loader and MC-JIT for ELF. Functionality is currently basic and will be enhanced with future patches. 2012-01-16 08:56:09 +00:00
simpletest.ll Adding a basic ELF dynamic loader and MC-JIT for ELF. Functionality is currently basic and will be enhanced with future patches. 2012-01-16 08:56:09 +00:00
stubs.ll This patch improves the MCJIT runtime dynamic loader by adding new handling 2012-04-12 20:13:57 +00:00
test-arith.ll Adding a basic ELF dynamic loader and MC-JIT for ELF. Functionality is currently basic and will be enhanced with future patches. 2012-01-16 08:56:09 +00:00
test-branch.ll Adding a basic ELF dynamic loader and MC-JIT for ELF. Functionality is currently basic and will be enhanced with future patches. 2012-01-16 08:56:09 +00:00
test-call-no-external-funcs.ll This patch improves the MCJIT runtime dynamic loader by adding new handling 2012-04-12 20:13:57 +00:00
test-call.ll This patch improves the MCJIT runtime dynamic loader by adding new handling 2012-04-12 20:13:57 +00:00
test-cast.ll Adding a basic ELF dynamic loader and MC-JIT for ELF. Functionality is currently basic and will be enhanced with future patches. 2012-01-16 08:56:09 +00:00
test-common-symbols.ll This patch improves the MCJIT runtime dynamic loader by adding new handling 2012-04-12 20:13:57 +00:00
test-constantexpr.ll Adding a basic ELF dynamic loader and MC-JIT for ELF. Functionality is currently basic and will be enhanced with future patches. 2012-01-16 08:56:09 +00:00
test-fp-no-external-funcs.ll Some regression tests which are testing the old jit and are exercising functionality which is both known to be broken and not expected to be fixed in the old jit. To remove these from the regression test output, I've marked them XFAIL (for lit tests) and ifdef'd them out (unit tests). These modifications remove the last long-standing regression test failures from the buildbots (though updating the triple to reflect new ubuntu configuration has temporarily caused some new failures). Tested on x86-64 and ARM Linux. 2012-10-08 13:06:30 +00:00
test-fp.ll Some regression tests which are testing the old jit and are exercising functionality which is both known to be broken and not expected to be fixed in the old jit. To remove these from the regression test output, I've marked them XFAIL (for lit tests) and ifdef'd them out (unit tests). These modifications remove the last long-standing regression test failures from the buildbots (though updating the triple to reflect new ubuntu configuration has temporarily caused some new failures). Tested on x86-64 and ARM Linux. 2012-10-08 13:06:30 +00:00
test-global-init-nonzero.ll This patch improves the MCJIT runtime dynamic loader by adding new handling 2012-04-12 20:13:57 +00:00
test-global.ll This patch improves the MCJIT runtime dynamic loader by adding new handling 2012-04-12 20:13:57 +00:00
test-loadstore.ll This patch improves the MCJIT runtime dynamic loader by adding new handling 2012-04-12 20:13:57 +00:00
test-local.ll Additional ExecutionEngine tests, as part of bringing up the MCJIT on ELF 2012-01-17 09:14:54 +00:00
test-logical.ll Adding a basic ELF dynamic loader and MC-JIT for ELF. Functionality is currently basic and will be enhanced with future patches. 2012-01-16 08:56:09 +00:00
test-loop.ll Adding a basic ELF dynamic loader and MC-JIT for ELF. Functionality is currently basic and will be enhanced with future patches. 2012-01-16 08:56:09 +00:00
test-phi.ll Adding a basic ELF dynamic loader and MC-JIT for ELF. Functionality is currently basic and will be enhanced with future patches. 2012-01-16 08:56:09 +00:00
test-ret.ll Adding a basic ELF dynamic loader and MC-JIT for ELF. Functionality is currently basic and will be enhanced with future patches. 2012-01-16 08:56:09 +00:00
test-return.ll Remove "XFAIL: arm" from test/ExecutionEngine/test-return.ll 2012-01-17 18:21:05 +00:00
test-setcond-fp.ll Adding a basic ELF dynamic loader and MC-JIT for ELF. Functionality is currently basic and will be enhanced with future patches. 2012-01-16 08:56:09 +00:00
test-setcond-int.ll Adding a basic ELF dynamic loader and MC-JIT for ELF. Functionality is currently basic and will be enhanced with future patches. 2012-01-16 08:56:09 +00:00
test-shift.ll Adding a basic ELF dynamic loader and MC-JIT for ELF. Functionality is currently basic and will be enhanced with future patches. 2012-01-16 08:56:09 +00:00