[Issue 12164] Function returning ptrdiff_t.min in 64-bit returning 0 when -O is set.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Mar 15 10:26:31 PDT 2014


https://d.puremagic.com/issues/show_bug.cgi?id=12164



--- Comment #6 from yebblies <yebblies at gmail.com> 2014-03-16 04:26:30 EST ---
(In reply to comment #4)
> (In reply to comment #3)
> > The backend tried to emit OPmemcmp and screws it up somehow, probably missing a
> > REX_W prefix or two.
> 
> When I looked at the assembly on my end the memcmp looked fine.
> The emitted code for returning ptrdiff.min or 0 depending on the memcmp result
> looks like it has more than one issue in it.

If someone can identify exactly which instructions are wrong, and what they
should be, I can probably fix it fairly easily.  Otherwise it will have to
wait, I don't have the energy to go digging through the assembly right now.

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


More information about the Digitalmars-d-bugs mailing list