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: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to