[llvm-bugs] [Bug 25212] New: IR declaration for complex library functions misses sret

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Oct 16 11:02:06 PDT 2015


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: unassignedclangbugs at nondot.org
          Reporter: joerg at NetBSD.org
                CC: llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20151016/c7a39fdb/attachment-0001.html>


More information about the llvm-bugs mailing list