[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
Sun Mar 9 22:09:56 PDT 2014


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


safety0ff.bugz <safety0ff.bugz at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |safety0ff.bugz at gmail.com


--- Comment #4 from safety0ff.bugz <safety0ff.bugz at gmail.com> 2014-03-09 22:08:33 PDT ---
(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.

-- 
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