Thread overview
[Issue 7497] New: optimizer/inliner misplaces load instruction
Feb 13, 2012
Ellery Newcomer
Feb 13, 2012
Ellery Newcomer
Feb 13, 2012
Ellery Newcomer
Feb 14, 2012
dawg@dawgfoto.de
Apr 20, 2012
SomeDude
Aug 21, 2012
Ellery Newcomer
February 13, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7497

           Summary: optimizer/inliner misplaces load instruction
           Product: D
           Version: D2
          Platform: x86_64
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: ellery-newcomer@utulsa.edu


--- Comment #0 from Ellery Newcomer <ellery-newcomer@utulsa.edu> 2012-02-13 11:32:09 PST ---
At least I'm guessing that is what is happening, as my intel x86_64 fu is weak.

the compilation:

dmd -O -inline xyz

the fireworks:

core.exception.AssertError@xyz.d(61): dookie 6

the code:

attached, I hope. Offending line is

assert((z=xyz1!byte(0,8,5,6)) == 6,format("dookie %s",z)); // yay! 6==6 is
false!

Compiled without -O or -inline, or if the preceding assertion is removed, or if the following calls are removed, the assertion passes. This one was lots of fun to reduce.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 13, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7497



--- Comment #1 from Ellery Newcomer <ellery-newcomer@utulsa.edu> 2012-02-13 11:33:18 PST ---
Created an attachment (id=1074)
teh codez

why did attachment creation fail? why did I know it would?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 13, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7497



--- Comment #2 from Ellery Newcomer <ellery-newcomer@utulsa.edu> 2012-02-13 15:19:49 PST ---
At least on dmd 2.057..

The 2.058 beta seems not to exhibit this behavior.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 14, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7497


dawg@dawgfoto.de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dawg@dawgfoto.de


--- Comment #3 from dawg@dawgfoto.de 2012-02-13 16:43:03 PST ---
Bisecting says that solving bug 7309 also fixed your issue. https://github.com/D-Programming-Language/dmd/commit/21c62d6

But I don't know if that's just a side-effect.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
April 20, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7497


SomeDude <lovelydear@mailmetrash.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |lovelydear@mailmetrash.com


--- Comment #4 from SomeDude <lovelydear@mailmetrash.com> 2012-04-20 00:14:30 PDT ---
(In reply to comment #2)
> At least on dmd 2.057..
> 
> The 2.058 beta seems not to exhibit this behavior.

Can't reproduce on 2.059 Win32 either.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
August 21, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7497


Ellery Newcomer <ellery-newcomer@utulsa.edu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME


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