← Back to index
|
Original Bugzilla link
Bug 824 – "mov EAX, func;" and "lea EAX, func;" generate incorrect code
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D1 (retired)
Platform
All
OS
All
Creation time
2007-01-09T09:16:00Z
Last change time
2014-02-15T13:13:06Z
Assigned to
bugzilla
Creator
thomas-dloop
Comments
Comment #0
by thomas-dloop — 2007-01-09T09:16:20Z
# void foo(){} # # void bar(){ # asm{ # mov ECX, foo; # lea EDX, foo; # } # } DMD-1.00 generates the following code for bar: 804a0c4: 55 push ebp 804a0c5: 8b ec mov ebp,esp 804a0c7: 8b 00 mov eax,DWORD PTR [eax] 804a0c9: 8b c0 mov eax,eax 804a0cb: 5d pop ebp 804a0cc: c3 ret
Comment #1
by bugzilla — 2007-01-27T18:56:26Z
Fixed DMD 1.001
Comment #2
by thomas-dloop — 2007-02-15T03:42:09Z
Added to DStress as
http://dstress.kuehne.cn/run/a/asm_lea_02_A.d
http://dstress.kuehne.cn/run/a/asm_mov_04_A.d