www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 6563] New: wrong code when using at least 8 XMM regs

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=6563

           Summary: wrong code when using at least 8 XMM regs
           Product: D
           Version: D2
          Platform: Other
        OS/Version: FreeBSD
            Status: NEW
          Keywords: wrong-code
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: dawg dawgfoto.de



alias float T;
T val = 1;

int plot(T a, T b, T c, T d, T e, T f, T g, T h) {
  assert(a == val);
  return 0;
}

int main() {
  return plot(
      val,
      val,
      val,
      val,
      val,
      val,
      val,
      val,
  );
}

--

The values h-b are correctly loaded from XMM0-XMM6.
The calling function put a correctly into XMM7 but the plot
function loads it from the calling stack (misinterpreted as push parameter).

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 27 2011
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=6563




https://github.com/D-Programming-Language/dmd/pull/343

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