mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
b9aef21886
Fix for LLI failure on Windows\X86: http://llvm.org/PR5053 LLI.exe crashes on Windows\X86 when single precession floating point intrinsics like the following are used: acos, asin, atan, atan2, ceil, copysign, cos, cosh, exp, floor, fmin, fmax, fmod, log, pow, sin, sinh, sqrt, tan, tanh The above intrinsics are defined as inline-expansions in math.h, and are not exported by msvcr120.dll (Win32 API GetProcAddress returns null). For an FREM instruction, the JIT compiler generates a call to a stub for the fmodf() intrinsic, and adds a relocation to fixup at load time. The loader searches the libraries for the function, but fails because the symbol is not exported. So, the call target remains NULL and the execution crashes. Since the math functions are loaded at JIT/runtime, the JIT can patch CALL instruction directly instead of the searching the libraries' exported symbols. However, this fix caused build failures due to unresolved symbols like _fmodf at link time. Therefore, the current fix defines helper functions in the Runtime link/load library to perform the above operations. The address of these helper functions are used to patch up the CALL instruction at load time. Reviewers: lhames, rnk Reviewed By: rnk Differential Revision: http://reviews.llvm.org/D5387 Patch by Swaroop Sridhar! llvm-svn: 221947 |
||
---|---|---|
.. | ||
Interpreter | ||
MCJIT | ||
RuntimeDyld | ||
2002-12-16-ArgTest.ll | ||
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 | ||
2010-01-15-UndefValue.ll | ||
fma3-jit.ll | ||
fpbitcast.ll | ||
frem.ll | ||
hello2.ll | ||
hello.ll | ||
lit.local.cfg | ||
mov64zext32.ll | ||
simplesttest.ll | ||
simpletest.ll | ||
stubs.ll | ||
test-arith.ll | ||
test-branch.ll | ||
test-call-no-external-funcs.ll | ||
test-call.ll | ||
test-cast.ll | ||
test-common-symbols.ll | ||
test-constantexpr.ll | ||
test-fp-no-external-funcs.ll | ||
test-fp.ll | ||
test-global-init-nonzero.ll | ||
test-global.ll | ||
test-interp-vec-arithm_float.ll | ||
test-interp-vec-arithm_int.ll | ||
test-interp-vec-cast.ll | ||
test-interp-vec-insertelement.ll | ||
test-interp-vec-insertextractvalue.ll | ||
test-interp-vec-loadstore.ll | ||
test-interp-vec-logical.ll | ||
test-interp-vec-select.ll | ||
test-interp-vec-setcond-fp.ll | ||
test-interp-vec-setcond-int.ll | ||
test-interp-vec-shift.ll | ||
test-interp-vec-shuffle.ll | ||
test-loadstore.ll | ||
test-local.ll | ||
test-logical.ll | ||
test-loop.ll | ||
test-phi.ll | ||
test-ret.ll | ||
test-return.ll | ||
test-setcond-fp.ll | ||
test-setcond-int.ll | ||
test-shift.ll |