[LLVMbugs] [Bug 4403] New: clang x86-64 ABI doesn' t set alignment correctly for byval struct containing SSE vector

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue Jun 16 18:01:14 PDT 2009


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

           Summary: clang x86-64 ABI doesn't set alignment correctly for
                    byval struct containing SSE vector
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: LLVM Codegen
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: sharparrow1 at yahoo.com
                CC: llvmbugs at cs.uiuc.edu


Testcase:
#include <emmintrin.h>
struct x {__m128 x,y,z;};
__m128 a(int a, int b, int c, int d, int e, int f, int g, struct x x) { return
x.x; }

The -emit-llvm output doesn't set the alignment for argument x, and as a result
the -S result contains an misaligned load.

r73306 is the parallel fix for x86-32; I think that the code for x86-64 should
be doing something similar.


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