[Issue 5364] optimizer kills high dword of -1

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Oct 15 16:04:29 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=5364



--- Comment #8 from Don <clugdbug at yahoo.com.au> 2011-10-15 16:03:33 PDT ---
Here's what it does on 32-bit Windows. The commented line is where the
difference is.

            mov     ECX,8[ESP]
            mov     EAX,4[ESP]
            test    ECX,ECX
            jl      Lsecond
            jg      Lfirst
            test    EAX,EAX
            jb      Lsecond
Lfirst:     mov     EAX,0xFFFFFFFF
            mov     ECX,EAX    // xor ECX, ECX on failing case
Lsecond:    mov     EDX,ECX
            ret     8

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list