https://llvm.org/bugs/show_bug.cgi?id=25212

            Bug ID: 25212
           Summary: IR declaration for complex library functions misses
                    sret
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
          Assignee: unassignedclangb...@nondot.org
          Reporter: jo...@netbsd.org
                CC: llvm-bugs@lists.llvm.org
    Classification: Unclassified

Code like:

  double _Complex mul_double_cc(double _Complex a, double _Complex b) {
    return a * b;
  }

will result in a declaration of __muldc3 or similar. On architectures that
don't pass the complex via registers, this declaration looks e.g. like:

declare void @__muldc3({ double, double }*, double, double, double, double)

This is missing the sret attribute on the first argument.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to