[LLVMbugs] [Bug 732] NEW: ABI mismatch passing/receiving non-native GCC generic vectors to functions

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Mon Apr 10 18:48:53 PDT 2006


http://llvm.org/bugs/show_bug.cgi?id=732

           Summary: ABI mismatch passing/receiving non-native GCC generic
                    vectors to functions
           Product: tools
           Version: 1.7
          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


Consider: 
typedef float v8 __attribute__ ((vector_size (32)));
v8 test() {
  return (v8){ 1,2,3,4,5,6,7};
}

GCC codegens this to return the vector by reference (passing a hidden argument).  With vector_size == 
4/8, GCC returns the result in integer registers.

At some point we need to do this as well, though this is not very high priority.  We do correctly handle 
the vector_size=16 case, the most important one.

-Chris



------- 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