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

           Summary: xmm ops use actual addition/subtraction when
                    evaluating real+imaginary
           Product: D
           Version: D1 & D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: wrong-code
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: yebbl...@gmail.com
        ReportedBy: yebbl...@gmail.com


--- Comment #0 from yebblies <yebbl...@gmail.com> 2012-02-27 03:24:24 EST ---
Code generation for real+imaginary,imaginary+real,real-imaginary and
imaginary-real is done by xmmorth, which implements it the same as real+real,
resulting in very wrong code.

float f() { return 1.f; }
ifloat i() { return 1.fi; }
void main()
{
    assert(f() + i() == 1.f + 1.fi);
}

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

Reply via email to