Bug 138 – surplus "jmp short" generated within inline assembler code

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Linux
Creation time
2006-05-13T07:47:00Z
Last change time
2014-02-15T13:18:46Z
Keywords
wrong-code
Assigned to
bugzilla
Creator
thomas-dloop

Comments

Comment #0 by thomas-dloop — 2006-05-13T07:47:47Z
void foo(){ asm{ neg EAX; je L2; L1: neg EAX; jne L1; L2: inc EAX; } } results in: _D1a3fooFZv: push EBP mov EBP,ESP neg EAX je LF jmp short L9 L9: neg EAX jne L9 jmp short LF LF: inc EAX pop EBP ret but should be: _D1a3fooFZv: push EBP mov EBP,ESP neg EAX je LF L9: neg EAX jne L9 LF: inc EAX pop EBP ret
Comment #1 by bugzilla — 2006-06-30T20:23:39Z
Fixed DMD 0.162