[LLVMbugs] [Bug 1643] New: Flags should be different from an expand parameter and a divided parameter

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Thu Sep 6 20:01:01 PDT 2007


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

           Summary: Flags should be different from an expand parameter and a
                    divided parameter
           Product: libraries
           Version: trunk
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: P2
         Component: Common Code Generator Code
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: nicolas.geoffray at lip6.fr
                CC: llvmbugs at cs.uiuc.edu


Currently, when doing a call or for formal arguments, SelectionDAG gives a
OrigAlignmentFlag to:
- arguments whose type is expanded (eg i8 -> i32)
- broken up arguments (eg i64 -> i32 + i32)

However the two cases need to have a different flag in the PPC32 ELF ABI. In
this target, arguments are aligned when they are double word, for example:

declare void @foo(i32 %a, i64 %c)

%a goes into register 1
%c goes into registers 3 and 4

The PPC code generator sees three arguments for this function of type i32 and
the last argument has the flag OrigAlignmentFlag. Currently, it can not know if
the last argument is an i64 divided into two i32 or if the last argument is i1,
i8 or i16 which are expanded.


-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list