search for: ebp

Displaying 20 results from an estimated 1653 matches for "ebp".

2018 Dec 01
2
Where's the optimiser gone? (part 5.b): missed tail calls, and more...
Compile the following functions with "-O3 -target i386" (see <https://godbolt.org/z/VmKlXL>): long long div(long long foo, long long bar) { return foo / bar; } On the left the generated code; on the right the expected, properly optimised code: div: # @div push ebp | mov ebp, esp | push dword ptr [ebp + 20] | push dword ptr [ebp + 16] | push dword ptr [ebp + 12] | push dword ptr [ebp + 8] | call __divdi3 | jmp __divdi3 add esp, 16 | pop...
2001 Nov 21
1
X11DRV problem? (Backtrace)
...L32.DLL' (0x411b9000) No debug information in 32bit DLL 'SHELL32.DLL' (0x410dc000) Unhandled exception: c0000092 in 32-bit code (0x40acc1a5). In 32-bit mode. 0x40acc1a5 (X11DRV.DLL.Polygon+0x185): fmul %st(6),%st Wine-dbg>bt Backtrace: >0 0x40acc1a5 (X11DRV.DLL.Polygon+0x185) (ebp=407d5c74) 1 0x40a3ba95 (GDI32.DLL.Polygon+0x55) (ebp=407d5c94) 2 0x409a95e8 (USER32.DLL.DrawEdge+0x12e8) (ebp=407d5de0) 3 0x409aa1dc (USER32.DLL.DrawFrameControl+0x6c) (ebp=407d5e00) 4 0x409c708c (USER32.DLL.AdjustWindowRectEx+0x117c) (ebp=407d5e3c) 5 0x409c7b1a (USER32.DLL.AdjustWindowRe...
2008 Dec 27
5
[LLVMdev] Controlling the stack layout
...veloper, I'd like to add a language-specific information at a fixed location of each stack frame. The reason is that I want to retrieve this information when dynamically walking the stack. For example, X86 has the following stack layout for a function with two arguments and two locals: 12(%ebp) - second function parameter 8(%ebp) - first function parameter 4(%ebp) - old %EIP (the function's "return address") 0(%ebp) - old %EBP (previous function's base pointer) -4(%ebp) - first local variable -8(%ebp) - second local variable I'd like to g...
2001 Nov 19
1
Crash when pressing OK/Cancel in User Preferences - Lotus Notes RNext
...bit code (0x005d77c1). In 32-bit mode. Symbol h_errno is invalid 0x005d77c1 (NNOTESWS.DLL.ReadFontPreferences+0x43da1 in D:\LOTUS\NOTES\NNOTESWS.DLL): movl 0x6a(%eax),%ecx Wine-dbg>bt Backtrace: =>0 0x005d77c1 (NNOTESWS.DLL.ReadFontPreferences+0x43da1 in D:\LOTUS\NOTES\NNOTESWS.DLL) (ebp=40614fe8) 1 0x408271df (WINPROC_wrapper+0x17 in libuser32.so) (ebp=4061500c) 2 0x4082726a (WINPROC_CallWndProc+0x82(proc=0x5d7420, hwnd=0x20089, msg=0x2, wParam=0x0, lParam=0x0) [winproc.c:173] in libuser32.so) (ebp=4061503c) 3 0x4082cd42 (CallWindowProcA+0x4a(func=0x5d7420, hwnd=0x20089, m...
2004 Jun 11
2
wine is6 problems
...mented function error in rpccrt4.dll error ) - Using native ole32.dll ( Gives a page fault on read access error) Any pointers would be most welcome. Regards, Swapnil. Backtrace: =>0 0x4034c7ac (INSTR_EmulateInstruction+0x84(rec=0x4182eb00, context=0x4182e834) [instr.c:449] in KERNEL32.DLL) (ebp=4182e744) 1 0x40382973 (vectored_handler+0x53(ptrs=0x4182e778) [wowthunk.c:353] in KERNEL32.DLL) (ebp=4182e760) 2 0x400927d2 (call_vectored_handlers+0x52(rec=0x4182eb00, context=0x4182e834) [exception.c:195] in NTDLL.DLL) (ebp=4182e78c) 3 0x40092956 (EXC_RtlRaiseException+0x9a(rec=0x4182eb0...
2018 Nov 30
2
(Question regarding the) incomplete "builtins library" of "Compiler-RT"
...kstk() as well as their own __alloca() routines. --- llvm.c --- int main(int argc) { int stack[1111]; return _alloca(argc); } --- EOF --- Compiled with "-target i386-mingw" this generates the following code (see <https://godbolt.org/z/yPk4Jo>): _main: # @main push ebp mov ebp, esp mov eax, 4456 call __alloca mov eax, dword ptr [ebp + 8] mov dword ptr [ebp - 4452], eax # 4-byte Spill call ___main mov dword ptr [ebp - 4], 0 mov eax, dword ptr [ebp + 8] mov dword ptr [esp], eax call __alloca add esp, 44...
2019 Aug 08
2
Suboptimal code generated by clang+llc in quite a common scenario (?)
...aa !11 %arrayidx2 = getelementptr inbounds i8, i8* %2, i64 2 store i8 %k, i8* %arrayidx2, align 1, !tbaa !13 ret i32 0 } According to that, the variable ‘scscx’ is loaded three times despite it’s never modified. The resulting assembly code is this: .globl _tst _tst: .cfi_startproc pushl %ebp .cfi_def_cfa_offset 8 .cfi_offset %ebp, -8 movl %esp, %ebp .cfi_def_cfa_register %ebp pushl %esi .cfi_offset %esi, -12 movb 16(%ebp), %al movb 12(%ebp), %cl movb 8(%ebp), %dl movl _scscx, %esi movb %dl, (%esi) movl _scscx, %edx movb %cl, 1(%edx) movl _scscx, %ecx movb %al, 2(%ecx) x...
2004 Sep 08
2
Running microsoft vss under wine
Hello, I am using wine on RH9. I am running Visual Source Safe like thus wine --ssexp.exe THe VSS GUI starts OK. the Visual Source Safe database is on Windows Partition. This Windows Partition is mounted on my Linux like thus: mount -t nfs -o rw,nolock 192.168.0.77:/mnt/server/Share /mnt/vss I am able to launch a VSS session : I can successfully check out and check in files (I point my
2007 Dec 20
1
[LLVMdev] Code Generation Problem llvm 1.9
...nt %9, 0 ; <bool>:7 [#uses=1] br bool %7, label %entry.bb19_crit_edge.i270, label %bb.preheader.i271 It gets converted to the following MachineBasicBlock __exp.exit (0x8c58628, LLVM BB @0x8c1c558, ID#21): Predecessors according to CFG: 0x8c53a90 0x8c55b50 MOV32mi %EBP, 1, %NOREG, -224, <ga:DataStore> %EAX = MOV32rm %EBP, 1, %NOREG, -224 %EAX = ADD32ri8 %EAX, 40 MOV32mi %EAX, 1, %NOREG, 0, 0 MOV32mi %EAX, 1, %NOREG, 4, 1075576832 %ESP = SUB32ri %ESP, 16 %XMM0 = CVTSI2SDrr %EDI MOVSDmr %ESP, 1, %NOREG,...
2009 Mar 11
4
[LLVMdev] Bug in X86CompilationCallback_SSE
..., (%0)\n" "movaps %%xmm1, 16(%0)\n" "movaps %%xmm2, 32(%0)\n" "movaps %%xmm3, 48(%0)\n" :: "r"(SAVEBUF) : "memory" ); intptr_t *StackPtr=0, RetAddr=0; asm volatile ( // get stack ptr and retaddr "movl %%ebp,%0\n" "movl 4(%%ebp),%1\n" :"=r"(StackPtr), "=r"(RetAddr) :: "memory" ); X86CompilationCallback2(StackPtr,RetAddr); // gcc knows how to call this according to the ABI asm volatile ( // restore XMM arg registers "movaps 48(%0),...
2007 Dec 19
0
[LLVMdev] JIT Stub Problem
....loc, the error does not occur. In addition, here's what the MachineFunction code and the generated machine code look like for these basic blocks. falseBlock (0xa60cb18, LLVM BB @0xa5ce378, ID#81): Predecessors according to CFG: 0xa60ca80 %EAX = MOV32ri 617 %EBX = MOV32rm %EBP, 1, %NOREG, -12 %EDI = MOV32rm %EBP, 1, %NOREG, -8 %ESI = MOV32rm %EBP, 1, %NOREG, -4 %ESP = MOV32rr %EBP %EBP = POP32r RET codeRepl (0xa5f4148, LLVM BB @0xa5ce310, ID#82): Predecessors according to CFG: 0xa60ca80 %EDI = INC32r %EDI %EAX...
2016 Apr 04
2
How to call an (x86) cleanup/catchpad funclet
...to emit vc++ compatible SEH structures for my personality on x86/Windows and my handler works fine, but the only thing I can't figure out is how to call these funclets, they look like: Catch: "?catch$3@?0?m3 at 4HA": LBB4_3: # %BasicBlock26 pushl %ebp pushl %eax addl $12, %ebp movl %esp, -28(%ebp) movl $LBB4_5, %eax addl $4, %esp popl %ebp retl # CATCHRET cleanup: "?dtor$2@?0?m2 at 4HA": LBB3_2: pushl %ebp subl $8, %esp addl $12, %ebp movl %ebp, %eax movl %esp, %ecx movl %eax, 4(%ecx) movl $1,...
2011 Nov 02
5
[LLVMdev] About JIT by LLVM 2.9 or later
...MSVC, the program will be *crashed*. I traced into the implementations, ASMs are: * Caller:* float4x4 f; float4 b = fetch(&f); // Calling function. first address is a temporary result generated by caller. And secondary is the &f. 013C1428 lea eax,[ebp-48h] 013C142B push eax 013C142C lea ecx,[ebp-138h] 013C1432 push ecx 013C1433 call fetch (13C11D6h) 013C1438 add esp,8 // Copy result to another temporary vairable. 013C143B mov edx,dword ptr [eax] 013C143D mov...
2015 Feb 13
2
[LLVMdev] trunk's optimizer generates slower code than 3.5
...var_40] mov esi, [rsp+48h+var_34] mov r11d, edi jl short loc_100000D84 nop dword ptr [rax+00h] loc_100000D50: ; CODE XREF: _main+DA j mov edi, [rcx] lea ebp, [rdi+1] mov [rcx], ebp cmp edi, edx jl short loc_100000D71 mov dword ptr [rcx], 0 add rcx, 0FFFFFFFFFFFFFFFCh test esi, esi lea esi, [rsi-1] j...
2018 Nov 25
3
BUGS n code generated for target i386 compiling __bswapdi3, and for target x86-64 compiling __bswapsi2()
...ou can find these sources in "compiler-rt/lib/builtins/bswapsi2.c" and "compiler-rt/lib/builtins/bswapdi2.c", for example! Compiled with "-O3 -target i386" this yields the following code (see <https://godbolt.org/z/F4UIl4>): __bswapsi2: # @__bswapsi2 push ebp mov ebp, esp mov eax, dword ptr [ebp + 8] bswap eax pop ebp ret __bswapdi2: # @__bswapdi2 push ebp mov ebp, esp mov edx, dword ptr [ebp + 8] mov eax, dword ptr [ebp + 12] bswap eax bswap edx pop ebp ret __bswapsi2() is correct, bu...
2008 Dec 28
0
[LLVMdev] Controlling the stack layout
> I'd like to generate this layout: > > 12(%ebp) - second function parameter > 8(%ebp) - first function parameter > 4(%ebp) - old %EIP (the function's "return address") > 0(%ebp) - old %EBP (previous function's base pointer) > -4(%ebp) - My language specific information > -8(%ebp) - firs...
2015 Feb 14
2
[LLVMdev] trunk's optimizer generates slower code than 3.5
...mov r11d, edi >> jl short loc_100000D84 >> nop dword ptr [rax+00h] >> >> loc_100000D50: ; CODE XREF: _main+DA j >> mov edi, [rcx] >> lea ebp, [rdi+1] >> mov [rcx], ebp >> cmp edi, edx >> jl short loc_100000D71 >> mov dword ptr [rcx], 0 >> add rcx, 0FFFFFFFFFFFFFFFCh >> test esi, esi...
2015 Feb 14
2
[LLVMdev] trunk's optimizer generates slower code than 3.5
...gt; jl short loc_100000D84 >>>> nop dword ptr [rax+00h] >>>> >>>> loc_100000D50: ; CODE XREF: _main+DA j >>>> mov edi, [rcx] >>>> lea ebp, [rdi+1] >>>> mov [rcx], ebp >>>> cmp edi, edx >>>> jl short loc_100000D71 >>>> mov dword ptr [rcx], 0 >>>> add rcx, 0FFFFFFFFFFFFFFFCh &g...
2008 Jul 12
2
[LLVMdev] Shuffle regression
...I think I found a regression in the shuffle instruction. I've attached a replacement of fibonacci.cpp to reproduce the issue. It runs fine on release 2.3 but revision 52648 fails, and I suspect that the issue is still present. 2.3 generates the following x86 code: 03A10010 push ebp 03A10011 mov ebp,esp 03A10013 and esp,0FFFFFFF0h 03A10019 movups xmm0,xmmword ptr ds:[141D280h] 03A10020 xorps xmm1,xmm1 03A10023 movaps xmm2,xmm0 03A10026 shufps xmm2,xmm1,32h 03A1002A movaps xmm1,xmm0 03A1002D shufps xmm1,xmm...
2012 Mar 20
0
[LLVMdev] Runtime linker issue wtih X11R6 on i386 with -O3 optimization
....section .debug_loc,"", at progbits .Lsection_debug_loc: .text .Ltext_begin: .data .text .globl moo .align 16, 0x90 .type moo, at function moo: # @moo .Ltmp3: .cfi_startproc .Lfunc_begin0: .loc 1 12 0 # a.c:12:0 # BB#0: pushl %ebp .Ltmp4: .cfi_def_cfa_offset 8 .Ltmp5: .cfi_offset %ebp, -8 movl %esp, %ebp .Ltmp6: .cfi_def_cfa_register %ebp pushl %ebx subl $20, %esp .Ltmp7: .cfi_offset %ebx, -12 calll .L0$pb .L0$pb: popl %eax .Ltmp8: addl $_GLOBAL_OFFSET_TABLE_+(.Ltmp8-.L0$pb), %eax movl 8(%ebp), %ecx leal .L.str a...