Displaying 5 results from an estimated 5 matches for "savebuf".
Did you mean:
namebuf
2009 Mar 11
4
[LLVMdev] Bug in X86CompilationCallback_SSE
I don't know how to file a PR, but I have a patch (see below), that
should work regardless of abi differences, since it relies on the
compiler to do the though job.
void X86CompilationCallback_SSE(void) {
char * SAVEBUF= (char*) alloca(64+12); // alloca is 16byte aligned
asm volatile (
"movl %%eax,(%0)\n"
"movl %%edx,4(%0)\n" // Save EAX/EDX/ECX
"movl %%ecx,8(%0)\n"
:: "r"(SAVEBUF+64): "memory" );
asm volatile (
// Save all XM...
2009 Mar 12
0
[LLVMdev] Bug in X86CompilationCallback_SSE
...Mar 11, 2009, at 2:39 PM, Corrado Zoccolo wrote:
> I don't know how to file a PR, but I have a patch (see below), that
> should work regardless of abi differences, since it relies on the
> compiler to do the though job.
>
> void X86CompilationCallback_SSE(void) {
> char * SAVEBUF= (char*) alloca(64+12); // alloca is 16byte aligned
How do you ensure it's 16-byte aligned? Can you declare a local array
and specify alignment using attribute __aligned?
Evan
>
> asm volatile (
> "movl %%eax,(%0)\n"
> "movl %%edx,4(%0)\n"...
2009 Mar 11
0
[LLVMdev] Bug in X86CompilationCallback_SSE
Hello, Corrado
> Before you can correctly invoke a function via the Procedure Linkage
> Table (plt), the ABI mandates that ebx is pointing to the GOT (Global
> Offset Table) (see http://www.greyhat.ch/lab/downloads/pic.html)
This is known issue, just nobody realized, that we have bunch of non-
PIC-aware assembler code. :) Fixing would be not so trivial though,
mostly due to ABI
2009 Mar 12
0
[LLVMdev] Bug in X86CompilationCallback_SSE
...Mar 11, 2009, at 2:39 PM, Corrado Zoccolo wrote:
> I don't know how to file a PR, but I have a patch (see below), that
> should work regardless of abi differences, since it relies on the
> compiler to do the though job.
>
> void X86CompilationCallback_SSE(void) {
> char * SAVEBUF= (char*) alloca(64+12); // alloca is 16byte aligned
>
> asm volatile (
> "movl %%eax,(%0)\n"
> "movl %%edx,4(%0)\n" // Save EAX/EDX/ECX
> "movl %%ecx,8(%0)\n"
> :: "r"(SAVEBUF+64): "memory" );
>
> a...
2009 Mar 10
2
[LLVMdev] Bug in X86CompilationCallback_SSE
Hello.
I found that the X86CompilationCallback_SSE wrapper for
X86CompilationCallback2 is not setting up properly for the PIC
invocation.
Before you can correctly invoke a function via the Procedure Linkage
Table (plt), the ABI mandates that ebx is pointing to the GOT (Global
Offset Table) (see http://www.greyhat.ch/lab/downloads/pic.html)
Dump of assembler code for function