www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 13955] New: 64 bit C ABI not followed for passing structs

https://issues.dlang.org/show_bug.cgi?id=13955

          Issue ID: 13955
           Summary: 64 bit C ABI not followed for passing structs with
                    mixed floating types
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Keywords: wrong-code
          Severity: major
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: yebblies gmail.com

Both of these structs are passed in memory, when they should be passed via xmm
regs.

struct S
{
    float a;
    double b;
};
struct S
{
    double a;
    float b;
};

--
Jan 08 2015