[LLVMdev] jit X86 target compilation callback bug
Kristaps Straupe
kstraupe at gmail.com
Tue Feb 2 07:29:33 PST 2010
Hi!
We are running llvm jit x86 on MS Visual Studio 2005. It seems there
is a bug in asm code in function X86CompilationCallback in file
X86JITInfo.cpp. Current code sets stack pointer to invalid value in
instruction "and esp, 16". Depending on current stack pointer value
it sometimes overwrites ecx and edx registers with next three lines.
We have fixed this problem by changing this instruction to "sub esp,
8" (8 because this function needs 2 temp 32bit variables). Are we
correct?
Thanks and let us know.
More information about the llvm-dev
mailing list