[llvm-bugs] [Bug 28077] New: Parameter passing error on PowerPC

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Jun 10 08:48:22 PDT 2016


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

            Bug ID: 28077
           Summary: Parameter passing error on PowerPC
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: carlo.bertolli at gmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 16508
  --> https://llvm.org/bugs/attachment.cgi?id=16508&action=edit
Source exposing the bug

On a Power8 system, running ubuntu bare-metal, the attached C++ program prints

Before the call
y6 = 17.000000
y0 = 11.000000
y1 = 12.000000
y2 = 13.000000
y3 = 14.000000
y4 = 15.000000
y5 = 16.000000
z0 = 21.000000
In the callee
y6 = 0.000000
y0 = 0.000000
y1 = 12.000000
y2 = 13.000000
y3 = 14.000000
y4 = 15.000000
y5 = 23.000000
z0 = 0.000000
result is = 24.000000

This was compiled with:
clang: commit 122b63ac47a3060e05b5886347f03db8f4ef3ca7
llvm: commit 88581904012f9bac90c2c1b085ea6fe70d5a69ab

Thanks

-- carlo

-- 
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/20160610/8d487369/attachment.html>


More information about the llvm-bugs mailing list