Re: [Bug target/43225] New: Structure copies not vectorized

2010-03-01 Thread Andrew Pinski
Sent from my iPhone On Mar 1, 2010, at 8:23 PM, "astrange at ithinksw dot com" > wrote: Source: #include struct a1 { char l[16];}; Are sure that struct has 128 bit alignment because I think it only has 8bit alignment. struct a2 { __m128i l; }; void f1(struct a1 *a, struct a1 *b)

[Bug target/43225] New: Structure copies not vectorized

2010-03-01 Thread astrange at ithinksw dot com
Source: #include struct a1 { char l[16];}; struct a2 { __m128i l; }; void f1(struct a1 *a, struct a1 *b) { *a = *b; } void f2(struct a2 *a, struct a2 *b) { *a = *b; } > /usr/local/gcc45/bin/gcc -O3 -fomit-frame-pointer -S copy_gcc.c _f1: movq(%rsi), %rax movq%r