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

--- Comment #0 from yebblies <> 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; }
void main()
    assert(f() + i() == 1.f +;

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to