[LLVMbugs] [Bug 653] NEW: [darwin] llvm-gcc does not pass {short, short} structures by value to functions correctly

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Nov 2 10:56:47 PST 2005


           Summary: [darwin] llvm-gcc does not pass {short,short} structures
                    by value to functions correctly
           Product: tools
           Version: 1.3
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P2
         Component: llvm-gcc
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: sabre at nondot.org

More darwin abi fun:
struct Point { short v; short h; };
short foo(struct Point X) { return X.v + X.h; }

$ gcc xx.c -S -o - -O3
        srawi r0,r3,16
        add r0,r0,r3
        extsh r3,r0

$ llvm-gcc xx.c -c -o - | llc
        add r2, r4, r3
        extsh r3, r2

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

More information about the llvm-bugs mailing list